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

Function TestFlip64Off

roaring_test.go:842–849  ·  view source on GitHub ↗

https://github.com/RoaringBitmap/roaring/issues/64

(t *testing.T)

Source from the content-addressed store, hash-verified

840
841// https://github.com/RoaringBitmap/roaring/issues/64
842func TestFlip64Off(t *testing.T) {
843 bm := New()
844 bm.AddInt(10)
845 bm.Flip(11, 12)
846 i := bm.Iterator()
847
848 assert.False(t, i.Next() != 10 || i.Next() != 11 || i.HasNext())
849}
850
851func TestStringer(t *testing.T) {
852 v := NewBitmap()

Callers

nothing calls this directly

Calls 6

NewFunction · 0.70
NextMethod · 0.65
HasNextMethod · 0.65
AddIntMethod · 0.45
FlipMethod · 0.45
IteratorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…