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

Method testContains

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

Source from the content-addressed store, hash-verified

255 * contains(x) reports true when elements added but not yet removed
256 */
257 public void testContains() {
258 NavigableSet q = populatedSet(SIZE);
259 for (int i = 0; i < SIZE; ++i) {
260 assertTrue(q.contains(new Integer(i)));
261 q.pollFirst();
262 assertFalse(q.contains(new Integer(i)));
263 }
264 }
265
266 /*
267 * 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