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

Method testSize

src/test/java/org/mapdb/BTreeSet3Test.java:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 * size changes when elements added and removed
115 */
116 public void testSize() {
117 NavigableSet q = populatedSet(SIZE);
118 for (int i = 0; i < SIZE; ++i) {
119 assertEquals(SIZE-i, q.size());
120 q.pollFirst();
121 }
122 for (int i = 0; i < SIZE; ++i) {
123 assertEquals(i, q.size());
124 q.add(new Integer(i));
125 }
126 }
127
128 /*
129 * 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