(t *testing.T)
| 98 | } |
| 99 | |
| 100 | func TestArrayContainerMassiveSetAndGet(t *testing.T) { |
| 101 | v := container(newArrayContainer()) |
| 102 | |
| 103 | for j := 0; j <= arrayDefaultMaxSize; j++ { |
| 104 | v = v.iaddReturnMinimized(uint16(j)) |
| 105 | assert.Equal(t, 1+j, v.getCardinality()) |
| 106 | |
| 107 | success := true |
| 108 | i := 0 |
| 109 | |
| 110 | for ; i <= arrayDefaultMaxSize && success; i++ { |
| 111 | if i <= j { |
| 112 | success = v.contains(uint16(i)) |
| 113 | } else { |
| 114 | success = !v.contains(uint16(i)) |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | assert.Truef(t, success, "failed at %d iteration", i) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func TestArrayContainerUnsupportedType(t *testing.T) { |
| 123 | a := container(newArrayContainer()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…