testing

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 AssertEquals added in v0.11.0

func AssertEquals(t *testing.T, a1, a2 interface{})

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 AssertFalse added in v0.10.0

func AssertFalse(t *testing.T, cond bool, desc string)

func AssertNil added in v0.10.0

func AssertNil(t *testing.T, p interface{}, desc string)

func AssertNoErr

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

func AssertNotEqualInt added in v0.10.0

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

func AssertNotNil added in v0.10.0

func AssertNotNil(t *testing.T, p interface{}, desc string)

func AssertPanic added in v0.11.0

func AssertPanic(t *testing.T, f func())

func AssertStatus

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

func AssertSuccess added in v0.11.0

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

func AssertTrue added in v0.10.0

func AssertTrue(t *testing.T, cond bool, 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