Overrides the http.Client with the provided fakeClient.
(fc *testutils.FakeHTTPClient)
| 145 | |
| 146 | // Overrides the http.Client with the provided fakeClient. |
| 147 | func overrideHTTPClient(fc *testutils.FakeHTTPClient) func() { |
| 148 | origMakeHTTPDoer := makeHTTPDoer |
| 149 | makeHTTPDoer = func(_ *x509.CertPool) httpDoer { return fc } |
| 150 | return func() { makeHTTPDoer = origMakeHTTPDoer } |
| 151 | } |
| 152 | |
| 153 | // Overrides the subject token read to return a const which we can compare in |
| 154 | // our tests. |
no outgoing calls
no test coverage detected