Documentation
¶
Index ¶
- func ArraysEqual[T comparable](t *testing.T, actual, expected []T)
- func Contains[T comparable](t *testing.T, arr []T, val T)
- func DoesNotContain[T comparable](t *testing.T, arr []T, val T)
- func Equal[T comparable](t *testing.T, actual, expected T)
- func IsNil(t *testing.T, val interface{})
- func NotEqual[T comparable](t *testing.T, actual, expected T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArraysEqual ¶
func ArraysEqual[T comparable](t *testing.T, actual, expected []T)
ArraysEqual asserts that two arrays of the same comparable type are of the same length, contenst, and order.
func Contains ¶
func Contains[T comparable](t *testing.T, arr []T, val T)
Contains asserts that a given array contains an expected value.
func DoesNotContain ¶
func DoesNotContain[T comparable](t *testing.T, arr []T, val T)
DoesNotContain asserts that a given array does not contain a certain value.
func Equal ¶
func Equal[T comparable](t *testing.T, actual, expected T)
Equal asserts that two comparable values are equal via the `!=` operator.
func NotEqual ¶
func NotEqual[T comparable](t *testing.T, actual, expected T)
NotEqual asserts that two comparable values are not equal via the `!=` operator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.