Documentation ¶
Index ¶
- func AssertNoErrors(errs []error)
- func AssertPanic(panicValue interface{}, callback func())
- func CallerInfo() string
- func Fail(failureMessage string, msgAndArgs ...interface{}) bool
- func JSONStringEquals(actual string, expected string, msgAndArgs ...interface{}) bool
- func RemoveWhitespace(body string) string
- func SliceContains(actual Line, expected Lines, msgAndArgs ...interface{}) bool
- func SliceDoesNotContain(actual Line, expected Lines, msgAndArgs ...interface{}) bool
- type Line
- type Lines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoErrors ¶
func AssertNoErrors(errs []error)
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 AssertPanic ¶
func AssertPanic(panicValue interface{}, callback func())
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 ¶
func SliceDoesNotContain ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.