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

Method testToArray

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

Source from the content-addressed store, hash-verified

402 * toArray contains all elements in sorted order
403 */
404 public void testToArray() {
405 NavigableSet q = populatedSet(SIZE);
406 Object[] o = q.toArray();
407 for (int i = 0; i < o.length; i++)
408 assertEquals(o[i], q.pollFirst());
409 }
410
411 /*
412 * toArray(a) contains all elements in sorted order

Callers

nothing calls this directly

Calls 3

populatedSetMethod · 0.95
pollFirstMethod · 0.80
toArrayMethod · 0.45

Tested by

no test coverage detected