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

Function TestRoaringBitmapAddMany

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

Source from the content-addressed store, hash-verified

692}
693
694func TestRoaringBitmapAddMany(t *testing.T) {
695 array := []uint32{5580, 33722, 44031, 57276, 83097}
696 bmp := NewBitmap()
697 bmp.AddMany(array)
698
699 assert.EqualValues(t, len(array), bmp.GetCardinality())
700}
701
702func testAddOffset(t *testing.T, arr []uint32, offset int64) {
703 expected := make([]uint32, 0, len(arr))

Callers

nothing calls this directly

Calls 3

AddManyMethod · 0.95
GetCardinalityMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…