Documentation ¶
Overview ¶
Collection of comparison functions used in testing
Index ¶
- func OkEqualBool(label string, a, b bool, t *testing.T)
- func OkEqualByteSlices(t *testing.T, found, expected []byte)
- func OkEqualInt(label string, a, b int, t *testing.T)
- func OkEqualIntSlices(t *testing.T, found, expected []int)
- func OkEqualInterface(label string, a, b interface{}, t *testing.T)
- func OkEqualString(label, a, b string, t *testing.T)
- func OkEqualStringSlices(t *testing.T, found, expected []string)
- func OkIsNil(label string, val interface{}, t *testing.T)
- func OkIsNotNil(label string, val interface{}, t *testing.T)
- func OkMatchesString(label, val, regex string, t *testing.T)
- func OkNotEmptyString(label, a string, t *testing.T)
- func SkipOnDemand(envVar string, t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OkEqualByteSlices ¶
Compares two byte slices
func OkEqualIntSlices ¶
Compares two integer slices
func OkEqualInterface ¶ added in v1.32.0
Compares two empty interfaces
func OkEqualStringSlices ¶
Compares two string slices
func OkIsNotNil ¶
func OkMatchesString ¶
Checks that a string matches a given regular expression
func OkNotEmptyString ¶ added in v1.28.0
Checks whether a string is not empty
func SkipOnDemand ¶ added in v1.19.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.