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

Method testToArray2

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

Source from the content-addressed store, hash-verified

459 * toArray(a) contains all elements in sorted order
460 */
461 public void testToArray2() {
462 NavigableSet<Integer> q = populatedSet(SIZE);
463 Integer[] ints = new Integer[SIZE];
464 assertSame(ints, q.toArray(ints));
465 for (int i = 0; i < ints.length; i++)
466 assertEquals(ints[i], q.pollFirst());
467 }
468
469 /*
470 * iterator iterates through all elements

Callers

nothing calls this directly

Calls 3

populatedSetMethod · 0.95
pollFirstMethod · 0.80
toArrayMethod · 0.45

Tested by

no test coverage detected