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

Method testPollLast

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

Source from the content-addressed store, hash-verified

270 * pollLast succeeds unless empty
271 */
272 public void testPollLast() {
273 NavigableSet q = populatedSet(SIZE);
274 for (int i = SIZE-1; i >= 0; --i) {
275 assertEquals(i, q.pollLast());
276 }
277 assertNull(q.pollFirst());
278 }
279
280 /*
281 * remove(x) removes x and returns true if present

Callers

nothing calls this directly

Calls 3

populatedSetMethod · 0.95
pollLastMethod · 0.80
pollFirstMethod · 0.80

Tested by

no test coverage detected