Documentation
¶
Index ¶
- func Eq(t *testing.T, expected interface{}, actual interface{})
- func EqItems(t *testing.T, expected interface{}, actual interface{})
- func Err(t *testing.T, err error)
- func Fail(t *testing.T, text string)
- func Failf(t *testing.T, format string, args ...interface{})
- func MustMatch(t *testing.T, match *regexp.Regexp, value interface{})
- func MustPanic(t *testing.T, match *regexp.Regexp)
- func NoErr(t *testing.T, err error)
- func NotEq(t *testing.T, notThisValue interface{}, actual interface{})
- func NotNil(t *testing.T, actual interface{})
- func StringChannelExpect(t *testing.T, expected string, channel chan string, timeout time.Duration)
- func StringChannelMustTimeout(t *testing.T, channel chan string, timeout time.Duration)
- func True(t *testing.T, actual interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqItems ¶ added in v0.9.0
EqItems asserts the given slices have the same elements (regardless of their order)
func MustPanic ¶ added in v0.9.0
MustPanic ensures that the caller's context will panic and that the panic will match the given regular expression
func() { defer mustPanic(t, regexp.MustCompile("+*")) panic("some text") }
func NotEq ¶ added in v0.9.0
NotEq asserts the given values are not equal. Uses reflect.DeepEqual to test for equality
func StringChannelExpect ¶ added in v1.3.0
StringChannelExpect that the given channel receives the expected string next, with the given timeout
func StringChannelMustTimeout ¶ added in v1.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.