InstrumentedMockCache is a mocked cache implementation which also tracks the number of times its functions are called.
| 133 | // InstrumentedMockCache is a mocked cache implementation which also tracks the number |
| 134 | // of times its functions are called. |
| 135 | type 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. |
| 143 | func NewInstrumentedMockCache() *InstrumentedMockCache { |
nothing calls this directly
no outgoing calls
no test coverage detected