headerCapturingInterceptor sets custom headers in PreRoundTrip and records whether PostRoundTrip was called, to verify execution order.
| 191 | // headerCapturingInterceptor sets custom headers in PreRoundTrip and records |
| 192 | // whether PostRoundTrip was called, to verify execution order. |
| 193 | type headerCapturingInterceptor struct { |
| 194 | preCalled bool |
| 195 | postCalled bool |
| 196 | } |
| 197 | |
| 198 | func (h *headerCapturingInterceptor) PreRoundTrip(req *http.Request) func(*http.Response, error) { |
| 199 | h.preCalled = true |
nothing calls this directly
no outgoing calls
no test coverage detected