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

Method testRemoveAll

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

Source from the content-addressed store, hash-verified

361 * removeAll(c) removes only those elements of c and reports true if changed
362 */
363 public void testRemoveAll() {
364 for (int i = 1; i < SIZE; ++i) {
365 NavigableSet q = populatedSet(SIZE);
366 NavigableSet p = populatedSet(i);
367 assertTrue(q.removeAll(p));
368 assertEquals(SIZE-i, q.size());
369 for (int j = 0; j < i; ++j) {
370 Integer I = (Integer)(p.pollFirst());
371 assertFalse(q.contains(I));
372 }
373 }
374 }
375
376 /*
377 * 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