Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintJSON ¶
PrintJSON is a debugging test helper that will pretty-print any JSON-marshallable value.
func ResponseEqual ¶
ResponseEqual compares to http.Response objects for equality. Individual field comparisons are enabled by the non-nil checks. For example, if the expected `http.Response.Header` field is `nil`, no comparison with actual `http.Response.Header` takes place. JSON responses are autodetected and the response body payloads will be compared as valid JSON using `assert.JSONEq`.
func SuccessfulJSONResponseEqual ¶
SuccessfulJSONResponseEqual is a shorthand for asserting the JSON body contents for a successful response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.