MCPcopy
hub / github.com/kopia/kopia / GetCapacity

Method GetCapacity

internal/blobtesting/faulty.go:43–49  ·  view source on GitHub ↗

GetCapacity implements blob.Volume.

(ctx context.Context)

Source from the content-addressed store, hash-verified

41
42// GetCapacity implements blob.Volume.
43func (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.
52func (s *FaultyStorage) GetBlob(ctx context.Context, id blob.ID, offset, length int64, output blob.OutputBuffer) error {

Callers

nothing calls this directly

Calls 2

GetNextFaultMethod · 0.80
GetCapacityMethod · 0.65

Tested by

no test coverage detected