Documentation
¶
Overview ¶
Package asserts holds tiny test assertion helpers shared across botbooter's test packages. It is imported only from _test.go files.
Index ¶
- func Equal[T comparable](t *testing.T, got, expected T, message string)
- func Error(t *testing.T, err error, message string)
- func ErrorIs(t *testing.T, err, target error, message string)
- func False(t *testing.T, got bool, message string)
- func NoError(t *testing.T, err error, message string)
- func NotNil(t *testing.T, got any, message string)
- func True(t *testing.T, got bool, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T comparable](t *testing.T, got, expected T, message string)
Equal fails the test with message if got is not equal to expected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.