(t *testing.T, c container)
| 53 | } |
| 54 | |
| 55 | func testContainerIteratorPeekNext(t *testing.T, c container) { |
| 56 | testSize := 5000 |
| 57 | for i := 0; i < testSize; i++ { |
| 58 | c.iadd(uint16(i)) |
| 59 | } |
| 60 | |
| 61 | i := c.getShortIterator() |
| 62 | assert.True(t, i.hasNext()) |
| 63 | |
| 64 | for i.hasNext() { |
| 65 | assert.Equal(t, i.peekNext(), i.next()) |
| 66 | testSize-- |
| 67 | } |
| 68 | |
| 69 | assert.Equal(t, 0, testSize) |
| 70 | } |
| 71 | |
| 72 | func testContainerIteratorAdvance(t *testing.T, con container) { |
| 73 | values := []uint16{1, 2, 15, 16, 31, 32, 33, 9999} |
no test coverage detected
searching dependent graphs…