ToHTTPClient converts to http.Client
()
| 136 | |
| 137 | // ToHTTPClient converts to http.Client |
| 138 | func (m *MockHTTPClient) ToHTTPClient() *http.Client { |
| 139 | return &http.Client{ |
| 140 | Transport: m, |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // RoundTrip implements http.RoundTripper interface |
| 145 | func (m *MockHTTPClient) RoundTrip(req *http.Request) (*http.Response, error) { |
no outgoing calls
no test coverage detected