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

Method testIterator

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

Source from the content-addressed store, hash-verified

470 * iterator iterates through all elements
471 */
472 public void testIterator() {
473 NavigableSet q = populatedSet(SIZE);
474 int i = 0;
475 Iterator it = q.iterator();
476 while (it.hasNext()) {
477 assertTrue(q.contains(it.next()));
478 ++i;
479 }
480 assertEquals(i, SIZE);
481 }
482
483 /*
484 * iterator of empty set has no elements

Callers

nothing calls this directly

Calls 4

populatedSetMethod · 0.95
nextMethod · 0.80
iteratorMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected