Documentation
¶
Overview ¶
Package is provides test assertion utilities.
Index ¶
- func Equal(t *testing.T, expected, actual any) bool
- func EqualError(t *testing.T, expected, actual error) bool
- func EqualJSON(t *testing.T, expected, actual string) bool
- func Error(t *testing.T, err error) bool
- func MustEqual(t *testing.T, expected, actual any)
- func MustEqualError(t *testing.T, expected, actual error)
- func MustError(t *testing.T, err error)
- func MustNoError(t *testing.T, err error)
- func Nil(t *testing.T, actual any) bool
- func NoError(t *testing.T, err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualError ¶
EqualError asserts that the given error values are equal.
func MustEqualError ¶
MustEqualError requires that the given error values are equal.
func MustNoError ¶
MustNoError requires that the given err is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.