MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / TestFromBitSet

Function TestFromBitSet

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

Source from the content-addressed store, hash-verified

3327}
3328
3329func TestFromBitSet(t *testing.T) {
3330 testDense(func(name string, rb *Bitmap) {
3331 t.Run(fmt.Sprintf("%s", name), func(t *testing.T) {
3332 dense := rb.ToBitSet()
3333 cp := FromBitSet(dense)
3334 assert.True(t, rb.Equals(cp))
3335 })
3336 })
3337}
3338
3339func TestRoaringArrayValidation(t *testing.T) {
3340 a := newRoaringArray()

Callers

nothing calls this directly

Calls 4

testDenseFunction · 0.85
FromBitSetFunction · 0.85
ToBitSetMethod · 0.80
EqualsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…