MCPcopy Create free account
hub / github.com/jankotek/mapdb / testEmptyIterator

Method testEmptyIterator

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

Source from the content-addressed store, hash-verified

438 * iterator of empty set has no elements
439 */
440 public void testEmptyIterator() {
441 NavigableSet q = set0();
442 int i = 0;
443 Iterator it = q.iterator();
444 while (it.hasNext()) {
445 assertTrue(q.contains(it.next()));
446 ++i;
447 }
448 assertEquals(0, i);
449 }
450
451 /*
452 * iterator.remove removes current element

Callers

nothing calls this directly

Calls 4

set0Method · 0.95
nextMethod · 0.80
iteratorMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected