Documentation ¶
Index ¶
- func AssertNoErrors(t *testing.T, errs []error)
- func CallerInfo() string
- func Fail(t *testing.T, failureMessage string, msgAndArgs ...interface{}) bool
- func JSONStringEquals(t *testing.T, actual string, expected string, msgAndArgs ...interface{}) bool
- func RemoveWhitespace(body string) string
- func SliceContains(t *testing.T, actual []string, expected Lines, msgAndArgs ...interface{}) bool
- func SliceDoesNotContain(t *testing.T, actual []string, expected Lines, msgAndArgs ...interface{}) bool
- type Line
- type Lines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoErrors ¶
Takes a slice of errors and asserts that there were none provided When failing, appends error messages together on newlines and provides a count of how many errors were passed in
func CallerInfo ¶
func CallerInfo() string
CallerInfo returns a string containing the file and line number of the assert call that failed.
func JSONStringEquals ¶
func RemoveWhitespace ¶
func SliceContains ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.