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

Method testRemoveAll

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

Source from the content-addressed store, hash-verified

314 * removeAll(c) removes only those elements of c and reports true if changed
315 */
316 public void testRemoveAll() {
317 for (int i = 1; i < SIZE; ++i) {
318 NavigableSet q = populatedSet(SIZE);
319 NavigableSet p = populatedSet(i);
320 assertTrue(q.removeAll(p));
321 assertEquals(SIZE-i, q.size());
322 for (int j = 0; j < i; ++j) {
323 Integer I = (Integer)(p.pollFirst());
324 assertFalse(q.contains(I));
325 }
326 }
327 }
328
329 /*
330 * lower returns preceding element

Callers

nothing calls this directly

Calls 5

populatedSetMethod · 0.95
pollFirstMethod · 0.80
removeAllMethod · 0.45
sizeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected