recordingRetriever captures call count and arguments so tests can verify each tier's retriever is invoked exactly once with the expected hints.
| 12 | // recordingRetriever captures call count and arguments so tests can verify each tier's retriever |
| 13 | // is invoked exactly once with the expected hints. |
| 14 | type recordingRetriever struct { |
| 15 | key []byte |
| 16 | err error |
| 17 | |
| 18 | calls int |
| 19 | gotHints Hints |
| 20 | } |
| 21 | |
| 22 | func (r *recordingRetriever) RetrieveKey(hints Hints) ([]byte, error) { |
| 23 | r.calls++ |
nothing calls this directly
no outgoing calls
no test coverage detected