Documentation
¶
Overview ¶
Package require provides fail-fast test assertions used by the root module.
Index ¶
- func Contains(t testingT, container, item any, msgAndArgs ...any) bool
- func Empty(t testingT, object any, msgAndArgs ...any) bool
- func Equal(t testingT, expected, actual any, msgAndArgs ...any) bool
- func Error(t testingT, err error, msgAndArgs ...any) bool
- func ErrorIs(t testingT, err, target error, msgAndArgs ...any) bool
- func FailNow(t testingT, msgAndArgs ...any)
- func False(t testingT, value bool, msgAndArgs ...any) bool
- func GreaterOrEqual(t testingT, actual, expected any, msgAndArgs ...any) bool
- func Len(t testingT, object any, length int, msgAndArgs ...any) bool
- func NoError(t testingT, err error, msgAndArgs ...any) bool
- func NotEmpty(t testingT, object any, msgAndArgs ...any) bool
- func NotNil(t testingT, value any, msgAndArgs ...any) bool
- func PanicsWithValue(t testingT, expected any, fn func(), msgAndArgs ...any) bool
- func Regexp(t testingT, rx any, str any, msgAndArgs ...any) bool
- func True(t testingT, value bool, msgAndArgs ...any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailNow ¶
func FailNow(t testingT, msgAndArgs ...any)
FailNow marks the test as failed and stops execution.
func GreaterOrEqual ¶
GreaterOrEqual requires actual to be greater than or equal to expected.
func PanicsWithValue ¶
PanicsWithValue requires fn to panic with expected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.