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

Method testContains

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

Source from the content-addressed store, hash-verified

302 * contains(x) reports true when elements added but not yet removed
303 */
304 public void testContains() {
305 NavigableSet q = populatedSet(SIZE);
306 for (int i = 0; i < SIZE; ++i) {
307 assertTrue(q.contains(new Integer(i)));
308 q.pollFirst();
309 assertFalse(q.contains(new Integer(i)));
310 }
311 }
312
313 /*
314 * clear removes all elements

Callers

nothing calls this directly

Calls 3

populatedSetMethod · 0.95
pollFirstMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected