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

Method testToArray2

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

Source from the content-addressed store, hash-verified

412 * toArray(a) contains all elements in sorted order
413 */
414 public void testToArray2() {
415 NavigableSet<Integer> q = populatedSet(SIZE);
416 Integer[] ints = new Integer[SIZE];
417 Integer[] array = q.toArray(ints);
418 assertSame(ints, array);
419 for (int i = 0; i < ints.length; i++)
420 assertEquals(ints[i], q.pollFirst());
421 }
422
423 /*
424 * 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