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

Function mkGenericChunk

pkg/querier/batch/chunk_test.go:49–52  ·  view source on GitHub ↗
(t require.TestingT, from model.Time, points int, enc promchunk.Encoding)

Source from the content-addressed store, hash-verified

47}
48
49func mkGenericChunk(t require.TestingT, from model.Time, points int, enc promchunk.Encoding) GenericChunk {
50 ck := util.GenerateChunk(t, step, from, points, enc)
51 return NewGenericChunk(int64(ck.From), int64(ck.Through), ck.NewIterator)
52}
53
54func testIter(t require.TestingT, points int, iter chunkenc.Iterator, enc promchunk.Encoding) {
55 histograms := histogram_util.GenerateTestHistograms(0, 1000, points)

Callers 6

TestChunkIterFunction · 0.85
TestNonOverlappingIterFunction · 0.85
TestMergeIterFunction · 0.85
BenchmarkMergeIteratorFunction · 0.85
TestMergeHarderFunction · 0.85

Calls 2

GenerateChunkFunction · 0.92
NewGenericChunkFunction · 0.85

Tested by

no test coverage detected