(t *testing.T, cache cache.Cache, keys []string, bufs [][]byte)
| 60 | } |
| 61 | |
| 62 | func testCacheMultiple(t *testing.T, cache cache.Cache, keys []string, bufs [][]byte) { |
| 63 | // test getting them all |
| 64 | found, foundBufs, missingKeys := cache.Fetch(context.Background(), keys) |
| 65 | require.Len(t, found, len(keys)) |
| 66 | require.Len(t, foundBufs, len(keys)) |
| 67 | require.Len(t, missingKeys, 0) |
| 68 | require.Equal(t, bufs, foundBufs) |
| 69 | } |
| 70 | |
| 71 | func testCacheMiss(t *testing.T, cache cache.Cache) { |
| 72 | for i := 0; i < 100; i++ { |
no test coverage detected