Documentation ¶
Index ¶
- func AssertContains(t *testing.T, s, substr string, message ...interface{})
- func AssertEmpty(t *testing.T, arg interface{}, message ...interface{})
- func AssertEqual(t *testing.T, expected, actual interface{}, message ...interface{})
- func AssertFalse(t *testing.T, arg bool, message ...interface{})
- func AssertInDelta(t *testing.T, from, to, delta float64, message ...interface{})
- func AssertLen(t *testing.T, arg interface{}, length int, message ...interface{})
- func AssertNil(t *testing.T, actual interface{})
- func AssertNotContains(t *testing.T, s, substr string, message ...interface{})
- func AssertNotEmpty(t *testing.T, arg interface{}, message ...interface{})
- func AssertNotEqual(t *testing.T, expected, actual interface{}, message ...interface{})
- func AssertNotNil(t *testing.T, actual interface{}, message ...interface{})
- func AssertNotZero(t *testing.T, actual interface{}, message ...interface{})
- func AssertTrue(t *testing.T, arg bool, message ...interface{})
- func AssertZero(t *testing.T, actual interface{}, message ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
AssertContains asserts an argument contains a given substring.
func AssertEmpty ¶
AssertEmpty asserts an argument is empty.
func AssertEqual ¶
AssertEqual asserts two arguments are equal.
func AssertFalse ¶
AssertFalse asserts an argument is false.
func AssertInDelta ¶
AssertInDelta asserts a two arguments are within a delta of eachother.
This delta will be determined absolute, and the delta should always be positive.
func AssertNotContains ¶
AssertNotContains asserts an argument does not contain a given substring.
func AssertNotEmpty ¶
AssertNotEmpty asserts an argument is not empty.
func AssertNotEqual ¶
AssertNotEqual asserts two arguments are not equal.
func AssertNotNil ¶
AssertNotNil asserts an argument is not nil.
func AssertNotZero ¶
AssertNotZero asserts an argument is not zero.
func AssertTrue ¶
AssertTrue asserts an argument is true.
func AssertZero ¶
AssertZero asserts an argument is zero.
Types ¶
This section is empty.