MCPcopy
hub / github.com/grafana/dskit / InstrumentedMockCache

Struct InstrumentedMockCache

cache/mock.go:135–140  ·  cache/mock.go::InstrumentedMockCache

InstrumentedMockCache is a mocked cache implementation which also tracks the number of times its functions are called.

Source from the content-addressed store, hash-verified

133// InstrumentedMockCache is a mocked cache implementation which also tracks the number
134// of times its functions are called.
135type InstrumentedMockCache struct {
136 cache *MockCache
137 storeCount atomic.Int32
138 fetchCount atomic.Int32
139 deleteCount atomic.Int32
140}
141
142// NewInstrumentedMockCache makes a new InstrumentedMockCache.
143func NewInstrumentedMockCache() *InstrumentedMockCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected