(url string)
| 33 | } |
| 34 | |
| 35 | func (m *invalidBundleClient) Get(url string) (*http.Response, error) { |
| 36 | m.On("OnGetInvalidBundle").Return() |
| 37 | m.MethodCalled("OnGetInvalidBundle") |
| 38 | |
| 39 | var compressed []byte |
| 40 | compressed = snappy.Encode(compressed, []byte("invalid bundle bytes")) |
| 41 | return &http.Response{ |
| 42 | StatusCode: 200, |
| 43 | Body: io.NopCloser(bytes.NewReader(compressed)), |
| 44 | }, nil |
| 45 | } |
| 46 | |
| 47 | type reqFailHttpClient struct { |
| 48 | mock.Mock |
nothing calls this directly
no outgoing calls
no test coverage detected