MockGCSClient is mock client for testing GCS registry store
| 140 | |
| 141 | // MockGCSClient is mock client for testing GCS registry store |
| 142 | type MockGCSClient struct { |
| 143 | GetObjectFn func(ctx context.Context, bucket string, object string) (io.ReadCloser, error) |
| 144 | DeleteObjectFn func(ctx context.Context, bucket string, object string) error |
| 145 | } |
| 146 | |
| 147 | func (m *MockGCSClient) GetObject(ctx context.Context, bucket string, object string) (io.ReadCloser, error) { |
| 148 | if m.GetObjectFn != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected