4 "github.com/stretchr/testify/mock"
8 // TestRoundTripper DEPRECATED USE net/http/httptest
9 type TestRoundTripper struct {
13 // RoundTrip DEPRECATED USE net/http/httptest
14 func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
16 return args.Get(0).(*http.Response), args.Error(1)