Deprecated: Use net/http/httptest instead.
type TestResponseWriter struct { // StatusCode is the last int written by the call to WriteHeader(int) StatusCode int // Output is a string containing the written bytes using the Write([]byte) func. Output string // contains filtered or unexported fields }
func (rw *TestResponseWriter) Header() http.Header
Deprecated: Use net/http/httptest instead.
func (rw *TestResponseWriter) Write(bytes []byte) (int, error)
Deprecated: Use net/http/httptest instead.
func (rw *TestResponseWriter) WriteHeader(i int)
Deprecated: Use net/http/httptest instead.
Deprecated: Use net/http/httptest instead.
type TestRoundTripper struct { mock.Mock }
func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)
Deprecated: Use net/http/httptest instead.