Documentation ¶
Index ¶
- func ContextWithMockTag(parent context.Context) context.Context
- func IsMock(c context.Context) bool
- func NewRequestAndResponse(method, path string) (engine.Request, engine.Response)
- func NewStdRequest(method, path string) *http.Request
- func NewStdResponse() http.ResponseWriter
- func Request(method, path string, handler engine.Handler, reqRewrite ...func(*http.Request)) *httptest.ResponseRecorder
- func WrapRequest(req *http.Request) engine.Request
- func WrapResponse(req *http.Request, rw http.ResponseWriter) engine.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithMockTag ¶ added in v1.7.10
func NewRequestAndResponse ¶ added in v1.5.0
func NewStdRequest ¶ added in v1.5.0
func NewStdResponse ¶ added in v1.5.0
func NewStdResponse() http.ResponseWriter
func Request ¶
func Request(method, path string, handler engine.Handler, reqRewrite ...func(*http.Request)) *httptest.ResponseRecorder
Request testing
func WrapResponse ¶ added in v1.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.