(t *testing.T, cache cache.Cache)
| 69 | } |
| 70 | |
| 71 | func testCacheMiss(t *testing.T, cache cache.Cache) { |
| 72 | for i := 0; i < 100; i++ { |
| 73 | key := strconv.Itoa(rand.Int()) // arbitrary key which should fail: no chunk key is a single integer |
| 74 | found, bufs, missing := cache.Fetch(context.Background(), []string{key}) |
| 75 | require.Empty(t, found) |
| 76 | require.Empty(t, bufs) |
| 77 | require.Len(t, missing, 1) |
| 78 | } |
| 79 | } |
no test coverage detected