MCPcopy Create free account
hub / github.com/cortexproject/cortex / WithExpectedErrs

Method WithExpectedErrs

pkg/util/testutil/objstore.go:95–101  ·  view source on GitHub ↗
(expectedFunc objstore.IsOpFailureExpectedFunc)

Source from the content-addressed store, hash-verified

93}
94
95func (m *MockBucketFailure) WithExpectedErrs(expectedFunc objstore.IsOpFailureExpectedFunc) objstore.Bucket {
96 if ibkt, ok := m.Bucket.(objstore.InstrumentedBucket); ok {
97 return &MockBucketFailure{Bucket: ibkt.WithExpectedErrs(expectedFunc), DeleteFailures: m.DeleteFailures, GetFailures: m.GetFailures}
98 }
99
100 return m
101}
102
103func (m *MockBucketFailure) ReaderWithExpectedErrs(expectedFunc objstore.IsOpFailureExpectedFunc) objstore.BucketReader {
104 if ibkt, ok := m.Bucket.(objstore.InstrumentedBucket); ok {

Callers 3

ReadUserIndexFunction · 0.45
ReadTenantDeletionMarkFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected