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

Method testClear

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

Source from the content-addressed store, hash-verified

314 * clear removes all elements
315 */
316 public void testClear() {
317 NavigableSet q = populatedSet(SIZE);
318 q.clear();
319 assertTrue(q.isEmpty());
320 assertEquals(0, q.size());
321 q.add(new Integer(1));
322 assertFalse(q.isEmpty());
323 q.clear();
324 assertTrue(q.isEmpty());
325 }
326
327 /*
328 * containsAll(c) is true when c contains a subset of elements

Callers

nothing calls this directly

Calls 5

populatedSetMethod · 0.95
clearMethod · 0.45
isEmptyMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected