package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Mar 9, 2025
License: MIT, MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
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{})
func AssertContains(t *testing.T, s, substr string, message ...interface{})
AssertContains asserts an argument contains a given substring.
func AssertEmpty(t *testing.T, arg interface{}, message ...interface{})
AssertEmpty asserts an argument is empty.
func AssertEqual(t *testing.T, expected, actual interface{}, message ...interface{})
AssertEqual asserts two arguments are equal.
func AssertFalse(t *testing.T, arg bool, message ...interface{})
AssertFalse asserts an argument is false.
func AssertInDelta(t *testing.T, from, to, delta float64, message ...interface{})
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 AssertLen(t *testing.T, arg interface{}, length int, message ...interface{})
AssertLen asserts an argument has a given length.
func AssertNil(t *testing.T, actual interface{})
AssertNil asserts an argument is nil.
func AssertNotContains(t *testing.T, s, substr string, message ...interface{})
AssertNotContains asserts an argument does not contain a given substring.
func AssertNotEmpty(t *testing.T, arg interface{}, message ...interface{})
AssertNotEmpty asserts an argument is not empty.
func AssertNotEqual(t *testing.T, expected, actual interface{}, message ...interface{})
AssertNotEqual asserts two arguments are not equal.
func AssertNotNil(t *testing.T, actual interface{}, message ...interface{})
AssertNotNil asserts an argument is not nil.
func AssertNotZero(t *testing.T, actual interface{}, message ...interface{})
AssertNotZero asserts an argument is not zero.
func AssertTrue(t *testing.T, arg bool, message ...interface{})
AssertTrue asserts an argument is true.
func AssertZero(t *testing.T, actual interface{}, message ...interface{})
AssertZero asserts an argument is zero.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.