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

Function TestIntersects1

roaring_test.go:924–938  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

922}
923
924func TestIntersects1(t *testing.T) {
925 bm := NewBitmap()
926 bm.Add(1)
927 bm.AddRange(21, 26)
928 bm2 := NewBitmap()
929 bm2.Add(25)
930
931 assert.True(t, bm2.Intersects(bm))
932
933 bm.Remove(25)
934 assert.Equal(t, false, bm2.Intersects(bm))
935
936 bm.AddRange(1, 100000)
937 assert.True(t, bm2.Intersects(bm))
938}
939
940func TestIntersectsWithInterval(t *testing.T) {
941 bm := NewBitmap()

Callers

nothing calls this directly

Calls 5

AddMethod · 0.95
AddRangeMethod · 0.95
IntersectsMethod · 0.95
RemoveMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…