MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestTieredSimple

Function TestTieredSimple

pkg/chunk/cache/tiered_test.go:12–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestTieredSimple(t *testing.T) {
13 for i := 1; i < 10; i++ {
14 caches := []cache.Cache{}
15 for j := 0; j <= i; j++ {
16 caches = append(caches, cache.NewMockCache())
17 }
18 cache := cache.NewTiered(caches)
19 testCache(t, cache)
20 }
21}
22
23func TestTiered(t *testing.T) {
24 level1, level2 := cache.NewMockCache(), cache.NewMockCache()

Callers

nothing calls this directly

Calls 1

testCacheFunction · 0.85

Tested by

no test coverage detected