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

Method testIterator

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

Source from the content-addressed store, hash-verified

424 * iterator iterates through all elements
425 */
426 public void testIterator() {
427 NavigableSet q = populatedSet(SIZE);
428 int i = 0;
429 Iterator it = q.iterator();
430 while (it.hasNext()) {
431 assertTrue(q.contains(it.next()));
432 ++i;
433 }
434 assertEquals(i, SIZE);
435 }
436
437 /*
438 * 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