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

Method testContainsAll

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

Source from the content-addressed store, hash-verified

328 * containsAll(c) is true when c contains a subset of elements
329 */
330 public void testContainsAll() {
331 NavigableSet q = populatedSet(SIZE);
332 NavigableSet p = DBMaker.memoryDB().make().treeSet("test").make();
333 for (int i = 0; i < SIZE; ++i) {
334 assertTrue(q.containsAll(p));
335 assertFalse(p.containsAll(q));
336 p.add(new Integer(i));
337 }
338 assertTrue(p.containsAll(q));
339 }
340
341 /*
342 * retainAll(c) retains only those elements of c and reports true if changed

Callers

nothing calls this directly

Calls 3

populatedSetMethod · 0.95
containsAllMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected