GetCapacity implements blob.Volume.
(ctx context.Context)
| 41 | |
| 42 | // GetCapacity implements blob.Volume. |
| 43 | func (s *FaultyStorage) GetCapacity(ctx context.Context) (blob.Capacity, error) { |
| 44 | if ok, err := s.GetNextFault(ctx, MethodGetCapacity); ok { |
| 45 | return blob.Capacity{}, err |
| 46 | } |
| 47 | |
| 48 | return s.base.GetCapacity(ctx) |
| 49 | } |
| 50 | |
| 51 | // GetBlob implements blob.Storage. |
| 52 | func (s *FaultyStorage) GetBlob(ctx context.Context, id blob.ID, offset, length int64, output blob.OutputBuffer) error { |
nothing calls this directly
no test coverage detected