(url string)
| 17 | } |
| 18 | |
| 19 | func (m *mockHttpClient) Get(url string) (*http.Response, error) { |
| 20 | m.On("OnGetSuccess").Return() |
| 21 | m.MethodCalled("OnGetSuccess") |
| 22 | |
| 23 | var compressed []byte |
| 24 | compressed = snappy.Encode(compressed, data.SigstoreBundleRaw) |
| 25 | return &http.Response{ |
| 26 | StatusCode: 200, |
| 27 | Body: io.NopCloser(bytes.NewReader(compressed)), |
| 28 | }, nil |
| 29 | } |
| 30 | |
| 31 | type invalidBundleClient struct { |
| 32 | mock.Mock |
nothing calls this directly
no outgoing calls
no test coverage detected