Documentation
¶
Index ¶
- func AssertEqual[T comparable](value, expected T, t *testing.T)
- func AssertEqualSlice[T comparable](value, expected []T, t *testing.T)
- func AssertFalse(value bool, t *testing.T)
- func AssertNil[T comparable](value *T, t *testing.T)
- func AssertNotEqual[T comparable](value, expected T, t *testing.T)
- func AssertNotEqualSlice[T comparable](value, expected []T, t *testing.T)
- func AssertNotNil[T comparable](value *T, t *testing.T)
- func AssertTrue(value bool, t *testing.T)
- func Filler[T any](f T) T
- func GreaterThan[T constraints.Ordered](a, b T) bool
- func Hash[A comparable](a A) uintptr
- func LessThan[T constraints.Ordered](a, b T) bool
- func Max[T constraints.Ordered](elements ...T) (maxima T)
- func Min[T constraints.Ordered](elements ...T) (minima T)
- func MinMax[T constraints.Ordered](elements ...T) (minima, maxima T)
- func SortNumerics[N Numeric](numbers []N)
- type Numeric
- type Predicate
- type Transform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertEqual[T comparable](value, expected T, t *testing.T)
func AssertEqualSlice ¶
func AssertEqualSlice[T comparable](value, expected []T, t *testing.T)
func AssertFalse ¶
func AssertNil ¶
func AssertNil[T comparable](value *T, t *testing.T)
func AssertNotEqual ¶
func AssertNotEqual[T comparable](value, expected T, t *testing.T)
func AssertNotEqualSlice ¶
func AssertNotEqualSlice[T comparable](value, expected []T, t *testing.T)
func AssertNotNil ¶
func AssertNotNil[T comparable](value *T, t *testing.T)
func AssertTrue ¶
func GreaterThan ¶
func GreaterThan[T constraints.Ordered](a, b T) bool
func Hash ¶
func Hash[A comparable](a A) uintptr
func LessThan ¶
func LessThan[T constraints.Ordered](a, b T) bool
func Max ¶
func Max[T constraints.Ordered](elements ...T) (maxima T)
func Min ¶
func Min[T constraints.Ordered](elements ...T) (minima T)
func MinMax ¶
func MinMax[T constraints.Ordered](elements ...T) (minima, maxima T)
func SortNumerics ¶
func SortNumerics[N Numeric](numbers []N)
Types ¶
type Numeric ¶
type Numeric interface { constraints.Float | constraints.Integer }
Click to show internal directories.
Click to hide internal directories.