package
0.0.0-20210708194148-39e06cabe440
Repository: https://github.com/saharsh-samples/go-mux-mysql-starter.git
Documentation: pkg.go.dev

# Functions

Delete request expecting JSON response.
DeleteWithoutBody does DELETE request only expecting status code.
Get request expecting JSON response.
GetWithoutBody does GET request only expecting status code.
NewMockRoutesAgent with test friendly features.
Post
Post request with JSON body expecting JSON response.
Put request with JSON body expecting JSON response.
StartTestServer with specified routes.
StartTestServerWithMiddleWare with specified middlewares and routes.
StopTestServer gracefully.
StringifyHandlerFunc for comparisons in testing.

# Structs

MockResponseWriter is a test friendly implementation of http.ResponseWriter.

# Interfaces

MockRoutesAgent mocks base.RoutesAgent and adds test friendly features.
RouteVerifier is used to verify proper configuration of HTTP routes.
RouteVerifierFactory creates RouteVerifier instances.

# Type aliases

HandlerFuncRegistrationOverride function type.