MCPcopy Index your code
hub / github.com/jankotek/mapdb / testSize

Method testSize

src/test/java/org/mapdb/BTreeSet2Test.java:151–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 * size changes when elements added and removed
150 */
151 public void testSize() {
152 NavigableSet q = populatedSet(SIZE);
153 for (int i = 0; i < SIZE; ++i) {
154 assertEquals(SIZE-i, q.size());
155 q.pollFirst();
156 }
157 for (int i = 0; i < SIZE; ++i) {
158 assertEquals(i, q.size());
159 q.add(new Integer(i));
160 }
161 }
162
163 /*
164 * add(null) throws NPE

Callers

nothing calls this directly

Calls 4

populatedSetMethod · 0.95
pollFirstMethod · 0.80
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected