(t *testing.T)
| 572 | } |
| 573 | |
| 574 | func TestReverseIteratorCount(t *testing.T) { |
| 575 | array := []int{2, 63, 64, 65, 4095, 4096, 4097, 4159, 4160, 4161, 5000, 20000, 66666} |
| 576 | for _, testSize := range array { |
| 577 | b := New() |
| 578 | for i := uint32(0); i < uint32(testSize); i++ { |
| 579 | b.Add(i) |
| 580 | } |
| 581 | it := b.ReverseIterator() |
| 582 | count := 0 |
| 583 | for it.HasNext() { |
| 584 | it.Next() |
| 585 | count++ |
| 586 | } |
| 587 | |
| 588 | assert.Equal(t, testSize, count) |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | func TestRoaringIntervalCheck(t *testing.T) { |
| 593 | r := BitmapOf(1, 2, 3, 1000) |
nothing calls this directly
no test coverage detected
searching dependent graphs…