MockS3Client is mock client for testing S3 registry store
| 120 | |
| 121 | // MockS3Client is mock client for testing S3 registry store |
| 122 | type MockS3Client struct { |
| 123 | GetObjectFn func(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) |
| 124 | DeleteObjectFn func(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) |
| 125 | } |
| 126 | |
| 127 | func (m *MockS3Client) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) { |
| 128 | if m.GetObjectFn != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected