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

Function TestToDense

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

Source from the content-addressed store, hash-verified

3296}
3297
3298func TestToDense(t *testing.T) {
3299 testDense(func(name string, rb *Bitmap) {
3300 t.Run(name, func(t *testing.T) {
3301 bm := bitset.From(rb.ToDense())
3302 assert.EqualValues(t, rb.GetCardinality(), uint64(bm.Count()))
3303 rb.Iterate(func(x uint32) bool {
3304 return assert.True(t, bm.Test(uint(x)), "value %d should be set", x)
3305 })
3306 })
3307 })
3308}
3309
3310func TestFromDense(t *testing.T) {
3311 testDense(func(name string, rb *Bitmap) {

Callers

nothing calls this directly

Calls 4

testDenseFunction · 0.85
ToDenseMethod · 0.80
IterateMethod · 0.80
GetCardinalityMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…