(t *testing.T)
| 3203 | } |
| 3204 | |
| 3205 | func TestIterateCompressed(t *testing.T) { |
| 3206 | rb := NewBitmap() |
| 3207 | |
| 3208 | for i := 0; i < 300; i++ { |
| 3209 | rb.Add(uint32(i)) |
| 3210 | } |
| 3211 | |
| 3212 | rb.RunOptimize() |
| 3213 | |
| 3214 | var values []uint32 |
| 3215 | rb.Iterate(func(x uint32) bool { |
| 3216 | values = append(values, x) |
| 3217 | return true |
| 3218 | }) |
| 3219 | |
| 3220 | assert.Equal(t, rb.ToArray(), values) |
| 3221 | } |
| 3222 | |
| 3223 | func TestIterateLargeValues(t *testing.T) { |
| 3224 | rb := NewBitmap() |
nothing calls this directly
no test coverage detected
searching dependent graphs…