Documentation ¶
Overview ¶
Package assert provides functions to compare actual and expected test values.
Index ¶
- func EmptyString(t *testing.T, actual string)
- func False(t *testing.T, actual bool)
- func Int32sAreEqual(t *testing.T, expected int32, actual int32)
- func Int64sAreEqual(t *testing.T, expected int64, actual int64)
- func IntsAreEqual(t *testing.T, expected int, actual int)
- func Nil(t *testing.T, actual interface{})
- func NilError(t *testing.T, err error)
- func NotNil(t *testing.T, actual interface{})
- func StringContains(t *testing.T, expectedContains string, actual string)
- func StringNotContains(t *testing.T, expectedNotContains string, actual string)
- func StringPrefix(t *testing.T, expectedPrefix string, actual string)
- func StringsAreEqual(t *testing.T, expected string, actual string)
- func True(t *testing.T, actual bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyString ¶
EmptyString compares an actual string value and the empty string for equality.
func Int32sAreEqual ¶
Int32sAreEqual compares an expected int32 value and an actual int32 value for equality.
func Int64sAreEqual ¶
Int64sAreEqual compares an expected int64 value and an actual int64 value for equality.
func IntsAreEqual ¶
IntsAreEqual compares an expected int value and an actual int value for equality.
func StringContains ¶
StringContains compares an expected string and an actual string value for a substring.
func StringNotContains ¶
StringNotContains compares an expected string and an actual string value for a missing substring.
func StringPrefix ¶
StringPrefix compares an expected string value and an actual string value for a prefix match.
func StringsAreEqual ¶
StringsAreEqual compares an expected string value and an actual string value for equality.
Types ¶
This section is empty.