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

Function TestFlip64OffCOW

roaring64/roaring64cow_test.go:131–140  ·  view source on GitHub ↗

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

(t *testing.T)

Source from the content-addressed store, hash-verified

129
130// https://github.com/RoaringBitmap/roaring/issues/64
131func TestFlip64OffCOW(t *testing.T) {
132 bm := New()
133 bm.SetCopyOnWrite(true)
134
135 bm.AddInt(10)
136 bm.Flip(uint64(11), uint64(12))
137 i := bm.Iterator()
138
139 assert.False(t, i.Next() != 10 || i.Next() != 11 || i.HasNext())
140}
141
142func TestStringerCOW(t *testing.T) {
143 v := NewBitmap()

Callers

nothing calls this directly

Calls 7

NewFunction · 0.70
NextMethod · 0.65
HasNextMethod · 0.65
SetCopyOnWriteMethod · 0.45
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…