(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestBitmapNextSet(t *testing.T) { |
| 166 | testSize := 5000 |
| 167 | bc := newBitmapContainer() |
| 168 | |
| 169 | for i := 0; i < testSize; i++ { |
| 170 | bc.iadd(uint16(i)) |
| 171 | } |
| 172 | |
| 173 | m := 0 |
| 174 | |
| 175 | for n := 0; m < testSize; n, m = bc.NextSetBit(uint(n)+1), m+1 { |
| 176 | assert.Equal(t, m, n) |
| 177 | } |
| 178 | |
| 179 | assert.Equal(t, 5000, m) |
| 180 | } |
| 181 | |
| 182 | func TestBitmapPrevSet(t *testing.T) { |
| 183 | testSize := 5000 |
nothing calls this directly
no test coverage detected
searching dependent graphs…