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

Method testToArray

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

Source from the content-addressed store, hash-verified

449 * toArray contains all elements in sorted order
450 */
451 public void testToArray() {
452 NavigableSet q = populatedSet(SIZE);
453 Object[] o = q.toArray();
454 for (int i = 0; i < o.length; i++)
455 assertEquals(o[i], q.pollFirst());
456 }
457
458 /*
459 * 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