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

Function TestRoaringIntervalCheck

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

Source from the content-addressed store, hash-verified

590}
591
592func TestRoaringIntervalCheck(t *testing.T) {
593 r := BitmapOf(1, 2, 3, 1000)
594 rangeb := New()
595 rangeb.AddRange(10, 1000+1)
596
597 assert.True(t, r.Intersects(rangeb))
598
599 rangeb2 := New()
600 rangeb2.AddRange(10, 1000)
601
602 assert.False(t, r.Intersects(rangeb2))
603}
604
605func TestRoaringRangeEnd(t *testing.T) {
606 r := New()

Callers

nothing calls this directly

Calls 4

BitmapOfFunction · 0.70
NewFunction · 0.70
AddRangeMethod · 0.45
IntersectsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…