| 58 | } |
| 59 | |
| 60 | type failAfterNCallsHttpClient struct { |
| 61 | mock.Mock |
| 62 | mu sync.Mutex |
| 63 | FailOnCallN int |
| 64 | FailOnAllSubsequentCalls bool |
| 65 | NumCalls int |
| 66 | } |
| 67 | |
| 68 | func (m *failAfterNCallsHttpClient) Get(url string) (*http.Response, error) { |
| 69 | m.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected