Documentation ¶
Index ¶
- func Equal(tb testing.TB, expected interface{}, actual interface{}, ...)
- func EqualOneOf(tb testing.TB, expecteds []interface{}, actual interface{}, ...)
- func False(tb testing.TB, value bool, msgAndArgs ...interface{})
- func Matches(tb testing.TB, expectedMatch string, actual string, msgAndArgs ...interface{})
- func Nil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
- func NoError(tb testing.TB, err error, msgAndArgs ...interface{})
- func NoErrorWithinT(tb testing.TB, t time.Duration, f func() error, msgAndArgs ...interface{})
- func NoneEquals(tb testing.TB, expected interface{}, actuals interface{}, ...)
- func NotEqual(tb testing.TB, expected interface{}, actual interface{}, ...)
- func NotNil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
- func OneOfEquals(tb testing.TB, expected interface{}, actuals interface{}, ...)
- func True(tb testing.TB, value bool, msgAndArgs ...interface{})
- func YesError(tb testing.TB, err error, msgAndArgs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualOneOf ¶
func EqualOneOf(tb testing.TB, expecteds []interface{}, actual interface{}, msgAndArgs ...interface{})
EqualOneOf checks if a value is equal to one of the elements of a slice.
func NoErrorWithinT ¶ added in v1.6.0
NoErrorWithinT checks that 'f' finishes within time 't' and does not emit an error
func NoneEquals ¶ added in v1.5.3
func NoneEquals(tb testing.TB, expected interface{}, actuals interface{}, msgAndArgs ...interface{})
NoneEquals checks one element of a slice equals a value.
func OneOfEquals ¶ added in v1.1.0
func OneOfEquals(tb testing.TB, expected interface{}, actuals interface{}, msgAndArgs ...interface{})
OneOfEquals checks whether one element of a slice equals a value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.