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

Function equalsBitSet

roaring_test.go:2604–2617  ·  view source on GitHub ↗
(a *bitset.BitSet, b *Bitmap)

Source from the content-addressed store, hash-verified

2602}
2603
2604func equalsBitSet(a *bitset.BitSet, b *Bitmap) bool {
2605 for i, e := a.NextSet(0); e; i, e = a.NextSet(i + 1) {
2606 if !b.ContainsInt(int(i)) {
2607 return false
2608 }
2609 }
2610 i := b.Iterator()
2611 for i.HasNext() {
2612 if !a.Test(uint(i.Next())) {
2613 return false
2614 }
2615 }
2616 return true
2617}
2618
2619func equalsArray(a []int, b *Bitmap) bool {
2620 if uint64(len(a)) != b.GetCardinality() {

Callers 8

TestBitmapExtraCOWFunction · 0.70
TestBitmapCOWFunction · 0.70
rTestCOWFunction · 0.70
TestFlipBigACOWFunction · 0.70
TestBitmapExtraFunction · 0.70
TestBitmapFunction · 0.70
rTestFunction · 0.70
TestFlipBigAFunction · 0.70

Calls 4

HasNextMethod · 0.65
NextMethod · 0.65
ContainsIntMethod · 0.45
IteratorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…