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

Method testClear

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

Source from the content-addressed store, hash-verified

267 * clear removes all elements
268 */
269 public void testClear() {
270 NavigableSet q = populatedSet(SIZE);
271 q.clear();
272 assertTrue(q.isEmpty());
273 assertEquals(0, q.size());
274 q.add(new Integer(1));
275 assertFalse(q.isEmpty());
276 q.clear();
277 assertTrue(q.isEmpty());
278 }
279
280 /*
281 * 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