Documentation
¶
Index ¶
- func Contains[T comparable](t *testing.T, arr []T, elem T, formatString string, args ...any) bool
- func ContainsAll[T comparable](t *testing.T, arr []T, elems []T, formatString string, args ...any) bool
- func Equal[T comparable](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func EqualArray[T comparable](t *testing.T, expected, actual []T, formatString string, args ...any) bool
- func EqualMap[T, R comparable](t *testing.T, expected, actual map[T]R, formatString string, args ...any) bool
- func False(t *testing.T, actual bool, formatString string, args ...any) bool
- func Greater[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func GreaterOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func IsNil[T any](t *testing.T, actual *T, formatString string, args ...any) bool
- func Less[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func LessOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func NotContains[T comparable](t *testing.T, arr []T, elem T, formatString string, args ...any) bool
- func NotEqual[T comparable](t *testing.T, expected T, actual T, formatString string, args ...any) bool
- func NotNil[T any](t *testing.T, actual *T, formatString string, args ...any) bool
- func True(t *testing.T, actual bool, formatString string, args ...any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶
func ContainsAll[T comparable](t *testing.T, arr []T, elems []T, formatString string, args ...any) bool
ContainsAll checks if all elements are in an array.
func EqualArray ¶
func EqualArray[T comparable](t *testing.T, expected, actual []T, formatString string, args ...any) bool
EqualArray checks if two arrays are equal.
func EqualMap ¶
func EqualMap[T, R comparable](t *testing.T, expected, actual map[T]R, formatString string, args ...any) bool
EqualMap checks if two maps are equal.
func Greater ¶
func Greater[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
Greater checks if a value is greater than another.
func GreaterOrEqual ¶
func GreaterOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
GreaterOrEqual checks if a value is greater or equal to another.
func Less ¶
func Less[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
Less checks if a value is less than another.
func LessOrEqual ¶
func LessOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool
LessOrEqual checks if a value is less or equal to another.
func NotContains ¶
func NotContains[T comparable](t *testing.T, arr []T, elem T, formatString string, args ...any) bool
NotContains checks if an element is not in an array.
func NotEqual ¶
func NotEqual[T comparable](t *testing.T, expected T, actual T, formatString string, args ...any) bool
NotEqual checks if two values are not equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.