Documentation ¶
Index ¶
- func Body(t *testing.T, got *http.Response, want string)
- func BodyEmpty(t *testing.T, got *http.Response)
- func DoRequest(t *testing.T, handler http.Handler, method, path string, headers http.Header, ...) *http.Response
- func Error(t *testing.T, got error, want error)
- func Header(t *testing.T, resp *http.Response, key, val string)
- func StatusCode(t *testing.T, got *http.Response, want int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoRequest ¶
func DoRequest(t *testing.T, handler http.Handler, method, path string, headers http.Header, body io.Reader) *http.Response
DoRequest records a client request for debug/test use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.