MCPcopy Create free account
hub / github.com/ReadyTalk/avian / depopulate

Method depopulate

test/ConcurrentHashMapTest.java:159–165  ·  view source on GitHub ↗
(ConcurrentMap<Integer, Object> map, int base)

Source from the content-addressed store, hash-verified

157 }
158
159 private static void depopulate(ConcurrentMap<Integer, Object> map, int base)
160 {
161 for (int i = base, j = base + Range; i < j; ++i) {
162 expect(map.containsKey(i));
163 expect(map.remove(i) != null);
164 }
165 }
166}

Callers 1

runMethod · 0.95

Calls 3

expectMethod · 0.95
containsKeyMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected