Documentation ¶
Index ¶
- func AssertEqual(t *testing.T, expected, actual interface{})
- func AssertFalse(t *testing.T, actual bool)
- func AssertInMap(t *testing.T, m interface{}, key interface{})
- func AssertIsError(t *testing.T, err error)
- func AssertIsNil(t *testing.T, actual interface{})
- func AssertIsNotError(t *testing.T, err error)
- func AssertIsNotNil(t *testing.T, actual interface{})
- func AssertMatchRegex(t *testing.T, value string, regex interface{})
- func AssertNotEqual(t *testing.T, unexpected, actual interface{})
- func AssertNotMatchRegex(t *testing.T, value string, regex interface{})
- func AssertPanic(t *testing.T, fn func())
- func AssertPanicMatches(t *testing.T, fn func(), matches string)
- func AssertTrue(t *testing.T, actual bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual validates that val1 is equal to val2 and throws an error with line number
func AssertFalse ¶ added in v1.0.2
func AssertInMap ¶ added in v1.0.2
func AssertIsError ¶ added in v1.0.3
func AssertIsNil ¶ added in v1.0.1
func AssertIsNotError ¶ added in v1.0.3
func AssertIsNotNil ¶ added in v1.0.1
func AssertMatchRegex ¶
AssertMatchRegex validates that value matches the regex, either string or *regex and throws an error with line number
func AssertNotEqual ¶
AssertNotEqual validates that val1 is not equal val2 and throws an error with line number
func AssertNotMatchRegex ¶
AssertNotMatchRegex validates that value matches the regex, either string or *regex and throws an error with line number
func AssertPanic ¶ added in v1.0.4
AssertPanic validates that the function should panic
func AssertPanicMatches ¶
AssertPanicMatches validates that the panic output of running fn matches the supplied string
func AssertTrue ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.