(t *testing.T)
| 309 | } |
| 310 | |
| 311 | func TestBitmapContainerIAndNot(t *testing.T) { |
| 312 | var bc container |
| 313 | bc = newBitmapContainer() |
| 314 | for i := 0; i < arrayDefaultMaxSize; i++ { |
| 315 | bc.iadd(uint16(i * 3)) |
| 316 | } |
| 317 | bc.iadd(math.MaxUint16) |
| 318 | |
| 319 | var rc container |
| 320 | rc = newRunContainer16Range(0, 1) |
| 321 | for i := 0; i < arrayDefaultMaxSize-3; i++ { |
| 322 | rc = rc.iaddRange(i*3, i*3+1) |
| 323 | } |
| 324 | rc.iaddRange(math.MaxUint16-3, math.MaxUint16+1) |
| 325 | |
| 326 | bc = bc.iandNot(rc) |
| 327 | |
| 328 | require.ElementsMatch(t, []uint16{12279, 12282, 12285}, bc.(*arrayContainer).content) |
| 329 | require.Equal(t, 3, bc.getCardinality()) |
| 330 | } |
| 331 | |
| 332 | func TestPreviousNexts(t *testing.T) { |
| 333 | bc := newBitmapContainer() |
nothing calls this directly
no test coverage detected
searching dependent graphs…