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

Method testPoll

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

Source from the content-addressed store, hash-verified

223 * poll succeeds unless empty
224 */
225 public void testPoll() {
226 NavigableSet q = populatedSet(SIZE);
227 for (int i = 0; i < SIZE; ++i) {
228 assertEquals(i, q.pollFirst());
229 }
230 assertNull(q.pollFirst());
231 }
232
233 /*
234 * remove(x) removes x and returns true if present

Callers

nothing calls this directly

Calls 2

populatedSetMethod · 0.95
pollFirstMethod · 0.80

Tested by

no test coverage detected