Documentation ¶
Index ¶
- func AssertEmpty(t *testing.T, array interface{}, desc string)
- func AssertEqualInt(t *testing.T, got, wanted int, desc string)
- func AssertEqualString(t *testing.T, got, wanted string, desc string)
- func AssertEquals(t *testing.T, a1, a2 interface{})
- func AssertEqualuint64(t *testing.T, got, wanted uint64, desc string)
- func AssertErrorInterface(t *testing.T, got interface{}, wanted interface{}, desc string)
- func AssertErrorType(t *testing.T, got interface{}, wanted interface{}, desc string)
- func AssertFalse(t *testing.T, cond bool, desc string)
- func AssertNil(t *testing.T, p interface{}, desc string)
- func AssertNoErr(t *testing.T, err error)
- func AssertNotEqualInt(t *testing.T, got, wanted int, desc string)
- func AssertNotNil(t *testing.T, p interface{}, desc string)
- func AssertPanic(t *testing.T, f func())
- func AssertStatus(t *testing.T, got int, wanted int, desc string)
- func AssertSuccess(t *testing.T, err error)
- func AssertTrue(t *testing.T, cond bool, desc string)
- func AssertType(t *testing.T, got interface{}, wanted interface{}, desc string)
- func Fatalf(t *testing.T, format string, args ...interface{})
- func RunWithTimeout(t *testing.T, d time.Duration, f func())
- func StackTrace() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEmpty ¶
func AssertEquals ¶ added in v0.11.0
func AssertErrorInterface ¶
func AssertErrorType ¶
func AssertNoErr ¶
func AssertNotEqualInt ¶ added in v0.10.0
func AssertNotNil ¶ added in v0.10.0
func AssertPanic ¶ added in v0.11.0
func AssertSuccess ¶ added in v0.11.0
func AssertType ¶
func RunWithTimeout ¶
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.
Click to show internal directories.
Click to hide internal directories.