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

Function makeMockChunkStore

pkg/querier/chunk_store_queryable_test.go:21–24  ·  view source on GitHub ↗
(t require.TestingT, numChunks int, enc encoding.Encoding)

Source from the content-addressed store, hash-verified

19}
20
21func makeMockChunkStore(t require.TestingT, numChunks int, enc encoding.Encoding) (mockChunkStore, model.Time) {
22 chks, from := makeMockChunks(t, numChunks, enc, 0)
23 return mockChunkStore{chks}, from
24}
25
26func makeMockChunks(t require.TestingT, numChunks int, enc encoding.Encoding, from model.Time, additionalLabels ...labels.Label) ([]chunk.Chunk, model.Time) {
27 var (

Callers 3

TestQuerierFunction · 0.85
TestQuerierMetricFunction · 0.85

Calls 1

makeMockChunksFunction · 0.85

Tested by

no test coverage detected