(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func TestChunkIter(t *testing.T) { |
| 23 | t.Parallel() |
| 24 | forEncodings(t, func(t *testing.T, enc promchunk.Encoding) { |
| 25 | chunk := mkGenericChunk(t, 0, 100, enc) |
| 26 | iter := &chunkIterator{} |
| 27 | |
| 28 | iter.reset(chunk) |
| 29 | testIter(t, 100, newIteratorAdapter(iter), enc) |
| 30 | |
| 31 | iter.reset(chunk) |
| 32 | testSeek(t, 100, newIteratorAdapter(iter), enc) |
| 33 | }) |
| 34 | } |
| 35 | |
| 36 | func forEncodings(t *testing.T, f func(t *testing.T, enc promchunk.Encoding)) { |
| 37 | for _, enc := range []promchunk.Encoding{ |
nothing calls this directly
no test coverage detected