Documentation
¶
Index ¶
- func ArrayEquals[T constraints.Ordered](t *testing.T, expected, actual []T)
- func Contains[T comparable](t *testing.T, arr []T, val T)
- func Equals[T comparable](t *testing.T, expected, actual T)
- func MapEquals[M ~map[K]V, K, V comparable](t *testing.T, expected, actual M)
- func NotEquals[T comparable](t *testing.T, expected, actual T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayEquals ¶
func ArrayEquals[T constraints.Ordered](t *testing.T, expected, actual []T)
ArrayEquals tests whether two slices are equal as determined by their having identical lengths and, once sorted, identical elements at each index.
func Contains ¶
func Contains[T comparable](t *testing.T, arr []T, val T)
Contains asserts that a given array contains an expected value.
func Equals ¶
func Equals[T comparable](t *testing.T, expected, actual T)
Equals tests whether two comparable values are equal.
func MapEquals ¶
func MapEquals[M ~map[K]V, K, V comparable](t *testing.T, expected, actual M)
MapEquals tests whether two maps of comparable types are equal as determined by their having equal lengths, identical key sets, and identical values for each key in those sets.
func NotEquals ¶
func NotEquals[T comparable](t *testing.T, expected, actual T)
Equals tests whether two comparable values are not equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.