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

Function TestFifoCache

pkg/chunk/cache/cache_test.go:114–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

112}
113
114func TestFifoCache(t *testing.T) {
115 cache := cache.NewFifoCache("test", cache.FifoCacheConfig{MaxSizeItems: 1e3, Validity: 1 * time.Hour},
116 nil, log.NewNopLogger())
117 testCache(t, cache)
118}
119
120func TestSnappyCache(t *testing.T) {
121 cache := cache.NewSnappy(cache.NewMockCache(), log.NewNopLogger())

Callers

nothing calls this directly

Calls 1

testCacheFunction · 0.85

Tested by

no test coverage detected