Documentation
¶
Index ¶
- func Contains[T comparable, S StringOrSet[T]](t testing.TB, s S, lf T, out ...any)
- func ContainsFunc[A, B any, S Set[A]](t testing.TB, s S, lf B, cmp func(A, B) bool, out ...any)
- func Empty[T any](t testing.TB, v T, out ...any)
- func Equal[T any](t testing.TB, a, b T, out ...any)
- func EqualFunc[A, B any](t testing.TB, a A, b B, cmp func(A, B) bool, out ...any)
- func Error(t testing.TB, got, want error, out ...any)
- func False(t testing.TB, got bool, out ...any)
- func Greater[T cmp.Ordered](t testing.TB, a, b T)
- func HasNoPrefix(t testing.TB, s string, pfx string, out ...any)
- func HasNoSuffix(t testing.TB, s string, sfx string, out ...any)
- func HasPrefix(t testing.TB, s string, pfx string, out ...any)
- func HasSuffix(t testing.TB, s string, sfx string, out ...any)
- func Nil(t testing.TB, v any, out ...any)
- func NotContains[T comparable, S StringOrSet[T]](t testing.TB, s S, lf T, out ...any)
- func NotContainsFunc[A, B any, S Set[A]](t testing.TB, s S, lf B, cmp func(A, B) bool, out ...any)
- func NotEmpty[T any](t testing.TB, v T, out ...any)
- func NotEqual[T any](t testing.TB, a, b T, out ...any)
- func NotEqualFunc[A, B any](t testing.TB, a A, b B, cmp func(A, B) bool, out ...any)
- func NotError(t testing.TB, got, nwant error, out ...any)
- func NotNil(t testing.TB, v any, out ...any)
- func NotPanics(t testing.TB, fn func(), out ...any)
- func NotZero[T any](t testing.TB, v T, out ...any)
- func PanicIs(t testing.TB, fn func(), exp any, out ...any)
- func Panics(t testing.TB, fn func(), out ...any)
- func Smaller[T cmp.Ordered](t testing.TB, a, b T)
- func True(t testing.TB, got bool, out ...any)
- func Zero[T any](t testing.TB, v T, out ...any)
- type Set
- type StringOrSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable, S StringOrSet[T]](t testing.TB, s S, lf T, out ...any)
func ContainsFunc ¶
func NotContains ¶
func NotContains[T comparable, S StringOrSet[T]](t testing.TB, s S, lf T, out ...any)
func NotContainsFunc ¶
func NotEqualFunc ¶
Types ¶
type StringOrSet ¶
type StringOrSet[T comparable] interface { string | Set[T] }
Click to show internal directories.
Click to hide internal directories.