package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Apr 24, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
-
func Eq(t *testing.T, expected interface{}, actual interface{})
-
func EqItems(t *testing.T, expected interface{}, actual interface{})
-
func Fail(t *testing.T, text string)
-
func Failf(t *testing.T, format string, args ...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 Eq(t *testing.T, expected interface{}, actual interface{})
Uses reflect.DeepEqual to test for equality
func EqItems(t *testing.T, expected interface{}, actual interface{})
EqItems checks whether two slices have the same elements (regardless of their order)
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(t *testing.T, notThisValue interface{}, actual interface{})
Uses reflect.DeepEqual to test for equality
Source Files
¶
Click to show internal directories.
Click to hide internal directories.