Documentation ¶
Overview ¶
A wrapper around *testing.T. I hate the if a != b { t.ErrorF(....) } pattern.
Index ¶
- func Bytes(t *testing.T, actual []byte, expected []byte)
- func Equal[T comparable](t *testing.T, actual T, expected T)
- func Error(t *testing.T, actual error, expected error)
- func Fail(t *testing.T, fmt string, args ...interface{})
- func False(t *testing.T, actual bool)
- func List[T comparable](t *testing.T, actuals []T, expecteds []T)
- func Nil(t *testing.T, actual any)
- func NotEqual[T comparable](t *testing.T, actual T, expected T)
- func NotNil(t *testing.T, actual any)
- func Nowish(t *testing.T, actual time.Time)
- func StringContains(t *testing.T, actual string, expected string)
- func Timeish(t *testing.T, actual time.Time, expected time.Time)
- func True(t *testing.T, actual bool)
- func Validation(t *testing.T, result any) *v
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List[T comparable](t *testing.T, actuals []T, expecteds []T)
Two lists are equal (same length & same values in the same order)
func StringContains ¶
The string contains the given value
func Validation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.