(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestBackground(t *testing.T) { |
| 10 | c := cache.NewBackground("mock", cache.BackgroundConfig{ |
| 11 | WriteBackGoroutines: 1, |
| 12 | WriteBackBuffer: 100, |
| 13 | }, cache.NewMockCache(), nil) |
| 14 | |
| 15 | keys, chunks := fillCache(t, c) |
| 16 | cache.Flush(c) |
| 17 | |
| 18 | testCacheSingle(t, c, keys, chunks) |
| 19 | testCacheMultiple(t, c, keys, chunks) |
| 20 | testCacheMiss(t, c) |
| 21 | } |
nothing calls this directly
no test coverage detected