Documentation ¶
Index ¶
- func Equal(t *testing.T, expected, got interface{})
- func Equalf(t *testing.T, expected, got interface{}, msg string, args ...interface{})
- func Fail(t *testing.T, msg string, args ...interface{})
- func FailNowOnError(t *testing.T, err error, msg string)
- func FailNowOnErrorf(t *testing.T, err error, msg string, args ...interface{})
- func FailOnError(t *testing.T, err error, msg string)
- func FailOnErrorf(t *testing.T, err error, msg string, args ...interface{})
- func False(t *testing.T, v interface{})
- func Falsef(t *testing.T, v interface{}, msg string, args ...interface{})
- func Nil(t *testing.T, v interface{})
- func Nilf(t *testing.T, v interface{}, msg string, args ...interface{})
- func NotEqual(t *testing.T, expected, got interface{})
- func NotEqualf(t *testing.T, expected, got interface{}, msg string, args ...interface{})
- func NotNil(t *testing.T, v interface{})
- func NotNilf(t *testing.T, v interface{}, msg string, args ...interface{})
- func True(t *testing.T, v interface{})
- func Truef(t *testing.T, v interface{}, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal asserts given two values are equal. If it's not equal, it logs the error trace. It supports all the values supported by `reflect.DeepEqual`
func Equalf ¶
Equalf asserts given two values are equal. If it's not equal, it logs the error trace. It supports all the values supported by `reflect.DeepEqual`
func FailNowOnError ¶
FailNowOnError asserts given `error` if it's not nil. It reports the error trace and fails the test
func FailNowOnErrorf ¶
FailNowOnErrorf asserts given `error` if it's not nil. It reports the error trace and fails the test
func FailOnError ¶
FailOnError asserts given `error` if it's not nil. It reports the error trace
func FailOnErrorf ¶
FailOnErrorf asserts given `error` if it's not nil. It reports the error trace
func NotEqual ¶
NotEqual asserts given two values are not equal. If it's equal, it logs the error trace. It supports all the values supported by `reflect.DeepEqual`
func NotEqualf ¶
NotEqualf asserts given two values are not equal. If it's equal, it logs the error trace. It supports all the values supported by `reflect.DeepEqual`
Types ¶
This section is empty.