Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponseBody ¶
CheckResponseBody is a utility function to check the response body
func CheckResponseCode ¶
CheckResponseCode is a utility function to check the response code of the response
func ExecuteRequest ¶
func ExecuteRequest(req *http.Request, handler http.HandlerFunc) *httptest.ResponseRecorder
ExecuteRequest creates a new ResponseRecorder then executes the request by calling ServeHTTP in the controller after which the controller writes the response to the response recorder which we can then inspect.
func GetHTTPClient ¶
GetHTTPClient returns a pre-configured HTTP client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.