| 41 | var _ pipeline.RoundTripper = &mockRoundTripper{} |
| 42 | |
| 43 | type mockRoundTripper struct { |
| 44 | err error |
| 45 | statusCode int |
| 46 | statusMessage string |
| 47 | once sync.Once |
| 48 | |
| 49 | responseFn func() proto.Message |
| 50 | } |
| 51 | |
| 52 | func (s *mockRoundTripper) RoundTrip(_ pipeline.Request) (*http.Response, error) { |
| 53 | // only return errors once, then do a good response to make sure that the combiner is handling the error correctly |
nothing calls this directly
no outgoing calls
no test coverage detected