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

Method testContainsAll

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

Source from the content-addressed store, hash-verified

281 * containsAll(c) is true when c contains a subset of elements
282 */
283 public void testContainsAll() {
284 NavigableSet q = populatedSet(SIZE);
285 NavigableSet p = set0();
286 for (int i = 0; i < SIZE; ++i) {
287 assertTrue(q.containsAll(p));
288 assertFalse(p.containsAll(q));
289 p.add(new Integer(i));
290 }
291 assertTrue(p.containsAll(q));
292 }
293
294 /*
295 * retainAll(c) retains only those elements of c and reports true if changed

Callers

nothing calls this directly

Calls 4

populatedSetMethod · 0.95
set0Method · 0.95
containsAllMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected