MCPcopy
hub / github.com/RoaringBitmap/roaring / TestContainerReverseIterator

Function TestContainerReverseIterator

container_test.go:201–213  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func TestContainerReverseIterator(t *testing.T) {
202 content := []uint16{1, 3, 5, 7, 9}
203 c := makeContainer(content)
204 si := c.getReverseIterator()
205 i := 4
206
207 for si.hasNext() {
208 assert.Equal(t, content[i], si.next())
209 i--
210 }
211
212 assert.Equal(t, -1, i)
213}
214
215func TestRoaringContainer(t *testing.T) {
216 t.Run("countTrailingZeros", func(t *testing.T) {

Callers

nothing calls this directly

Calls 4

makeContainerFunction · 0.85
getReverseIteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…