MockRawReader
| 22 | |
| 23 | // MockRawReader |
| 24 | type MockRawReader struct { |
| 25 | L []string |
| 26 | ListFn func(ctx context.Context, keypath KeyPath) ([]string, error) |
| 27 | ListBlocksFn func(ctx context.Context, tenant string) ([]uuid.UUID, []uuid.UUID, error) |
| 28 | R []byte // read |
| 29 | Range []byte // ReadRange |
| 30 | ReadFn func(ctx context.Context, name string, keypath KeyPath, cacheInfo *CacheInfo) (io.ReadCloser, int64, error) |
| 31 | DeleteResult []string |
| 32 | |
| 33 | BlockIDs []uuid.UUID |
| 34 | CompactedBlockIDs []uuid.UUID |
| 35 | } |
| 36 | |
| 37 | func (m *MockRawReader) List(ctx context.Context, keypath KeyPath) ([]string, error) { |
| 38 | if m.ListFn != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected