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

Function TestRoaringBitmapBitmapOf

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

Source from the content-addressed store, hash-verified

671}
672
673func TestRoaringBitmapBitmapOf(t *testing.T) {
674 array := []uint32{5580, 33722, 44031, 57276, 83097}
675 bmp := BitmapOf(array...)
676
677 assert.EqualValues(t, len(array), bmp.GetCardinality())
678
679 by, _ := bmp.ToBytes()
680
681 assert.EqualValues(t, len(by), bmp.GetSerializedSizeInBytes())
682}
683
684func TestRoaringBitmapAdd(t *testing.T) {
685 array := []uint32{5580, 33722, 44031, 57276, 83097}

Callers

nothing calls this directly

Calls 4

BitmapOfFunction · 0.70
GetCardinalityMethod · 0.45
ToBytesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…