package testutil

import "github.com/docker/distribution/Godeps/_workspace/src/google.golang.org/cloud/internal/testutil"

Package testutil contains helper functions for writing tests.

Index

Functions

func Context

func Context(scopes ...string) context.Context

TODO(djd): Delete this function when it's no longer used.

func NoAuthContext

func NoAuthContext() context.Context

TODO(djd): Delete this function when it's no longer used.

func ProjID

func ProjID() string

func TokenSource

func TokenSource(ctx context.Context, scopes ...string) oauth2.TokenSource

Source Files

context.go

Version
v2.3.0-rc.1+incompatible
Published
Jan 21, 2016
Platform
linux/amd64
Imports
8 packages
Last checked
6 minutes ago

Tools for package owners.