Documentation
¶
Index ¶
- func DeepEqual[T any](t *testing.T, a T, b T)
- func ElementsMatch[T comparable](t *testing.T, a []T, b []T)
- func Equal[T comparable](t *testing.T, expected T, actual T)
- func Equalf[T comparable](t *testing.T, expected T, actual T, s string, fmtArgs ...any)
- func Error(t *testing.T, err error)
- func ErrorIs(t *testing.T, err error, match error)
- func Greater[T constraints.Ordered](t *testing.T, a T, b T)
- func GreaterOrEqual[T constraints.Ordered](t *testing.T, a T, b T)
- func InDelta[T ~float32 | ~float64](t *testing.T, actual T, expected T, delta T)
- func Less[T constraints.Ordered](t *testing.T, a T, b T)
- func LessOrEqual[T constraints.Ordered](t *testing.T, a T, b T)
- func Nil[T any](t *testing.T, a *T)
- func NoError(t *testing.T, err error)
- func NotNil[T any](t *testing.T, a *T)
- func NotNilf[T any](t *testing.T, a *T, f string, fmtArgs ...any)
- func SlicesEqual[T comparable](t *testing.T, expected []T, actual []T)
- func True(t *testing.T, b bool)
- func Truef(t *testing.T, b bool, s string, fmtArgs ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementsMatch ¶
func ElementsMatch[T comparable](t *testing.T, a []T, b []T)
func Equal ¶
func Equal[T comparable](t *testing.T, expected T, actual T)
func Equalf ¶
func Equalf[T comparable](t *testing.T, expected T, actual T, s string, fmtArgs ...any)
func GreaterOrEqual ¶
func GreaterOrEqual[T constraints.Ordered](t *testing.T, a T, b T)
func LessOrEqual ¶
func LessOrEqual[T constraints.Ordered](t *testing.T, a T, b T)
func SlicesEqual ¶
func SlicesEqual[T comparable](t *testing.T, expected []T, actual []T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.