The highest tagged major version is
v4.
package
Version:
v0.15.0-alpha1
Opens a new window with list of versions in this module.
Published: Jul 18, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
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 Err(t *testing.T, err error)
-
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 True(t *testing.T, actual interface{})
func Eq(t *testing.T, expected interface{}, actual interface{})
Eq asserts the values are equal. Uses reflect.DeepEqual to test for equality
func EqItems(t *testing.T, expected interface{}, actual interface{})
EqItems asserts the given slices have the same elements (regardless of their order)
Err asserts the error is not nil
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")
}
NoErr asserts the error is nil
func NotEq(t *testing.T, notThisValue interface{}, actual interface{})
NotEq asserts the given values are not equal. Uses reflect.DeepEqual to test for equality
func True(t *testing.T, actual interface{})
True asserts that the given value is a boolean true
Source Files
¶
Click to show internal directories.
Click to hide internal directories.