testing

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertErrorInterface

func AssertErrorInterface(t *testing.T, expected interface{}, actual error, desc string)

func AssertErrorType

func AssertErrorType(t *testing.T, expected interface{}, actual error, desc string)

func RunWithTimeout

func RunWithTimeout(t *testing.T, d time.Duration, f func())

Borrowed from net/http tests: goTimeout runs f, failing t if f takes more than d to complete.

func TrimTestArgs added in v1.1.0

func TrimTestArgs()

TrimTestArgs finds the first -- in os.Args and trim all args before that

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL