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

Function TestNonOverlappingIter

pkg/querier/batch/non_overlapping_test.go:11–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestNonOverlappingIter(t *testing.T) {
12 t.Parallel()
13 forEncodings(t, func(t *testing.T, enc encoding.Encoding) {
14 cs := []GenericChunk(nil)
15 for i := range int64(100) {
16 cs = append(cs, mkGenericChunk(t, model.TimeFromUnix(i*10), 10, enc))
17 }
18 testIter(t, 10*100, newIteratorAdapter(newNonOverlappingIterator(cs)), enc)
19 testSeek(t, 10*100, newIteratorAdapter(newNonOverlappingIterator(cs)), enc)
20 })
21}
22
23func TestNonOverlappingIterSparse(t *testing.T) {
24 t.Parallel()

Callers

nothing calls this directly

Calls 6

forEncodingsFunction · 0.85
mkGenericChunkFunction · 0.85
testIterFunction · 0.85
newIteratorAdapterFunction · 0.85
testSeekFunction · 0.85

Tested by

no test coverage detected