testing

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEmpty

func AssertEmpty(t *testing.T, array interface{}, desc string)

func AssertEqualInt

func AssertEqualInt(t *testing.T, got, wanted int, desc string)

func AssertEqualString

func AssertEqualString(t *testing.T, got, wanted string, desc string)

func AssertEqualuint64

func AssertEqualuint64(t *testing.T, got, wanted uint64, desc string)

func AssertErrorInterface

func AssertErrorInterface(t *testing.T, got interface{}, wanted interface{}, desc string)

func AssertErrorType

func AssertErrorType(t *testing.T, got interface{}, wanted interface{}, desc string)

func AssertNoErr

func AssertNoErr(t *testing.T, err error)

func AssertStatus

func AssertStatus(t *testing.T, got int, wanted int, desc string)

func AssertType

func AssertType(t *testing.T, got interface{}, wanted interface{}, desc string)

func Fatalf

func Fatalf(t *testing.T, format string, args ...interface{})

Like testing.Fatalf, but adds the stack trace of the current call

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 StackTrace

func StackTrace() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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