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

Method testPollFirst

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

Source from the content-addressed store, hash-verified

259 * pollFirst succeeds unless empty
260 */
261 public void testPollFirst() {
262 NavigableSet q = populatedSet(SIZE);
263 for (int i = 0; i < SIZE; ++i) {
264 assertEquals(i, q.pollFirst());
265 }
266 assertNull(q.pollFirst());
267 }
268
269 /*
270 * pollLast succeeds unless empty

Callers

nothing calls this directly

Calls 2

populatedSetMethod · 0.95
pollFirstMethod · 0.80

Tested by

no test coverage detected