package
1.2.0
Repository: https://github.com/juju/testing.git
Documentation: pkg.go.dev

# Functions

AssertJSONCall asserts that when the given handler is called with the given parameters, the result is as specified.
AssertJSONResponse asserts that the given response recorder has recorded the given HTTP status, response body and content type.
Do invokes a request on the given handler with the given parameters and returns the resulting HTTP response.
DoRequest is the same as Do except that it returns an httptest.ResponseRecorder instead of an http.Response.

# Structs

DoRequestParams holds parameters for DoRequest.
JSONCallParams holds parameters for AssertJSONCall.
URLRewritingTransport is an http.RoundTripper that can rewrite request URLs.

# Type aliases

BodyAsserter represents a function that can assert the correctness of a JSON reponse.