(t *testing.T)
| 3296 | } |
| 3297 | |
| 3298 | func 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 | |
| 3310 | func TestFromDense(t *testing.T) { |
| 3311 | testDense(func(name string, rb *Bitmap) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…