Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestMiddleware ¶ added in v2.2.11
func TestMiddleware(ctx context.Context, method string, requestMod func(req *http.Request), routerMod func(gRouter gin.IRouter)) *httptest.ResponseRecorder
TestMiddleware is a helper to test a gin middleware routerMod allows you to modify route (i.e. install a middleware, attach a request handler) requestMod allows you to modify the request prior sending it returns a *httptest.ResponseRecorder for assertions
func WithEnvVars ¶
func WithEnvVars(bc func(), envVars ...EnvDecl)
Types ¶
Click to show internal directories.
Click to hide internal directories.