MCPcopy Create free account
hub / github.com/e2wugui/zeze / run

Method run

ZezeJava/ZezeJavaTest/src/Infinite/CoverHistory.java:225–242  ·  view source on GitHub ↗
(BValue value)

Source from the content-addressed store, hash-verified

223 }
224
225 @Override
226 public void run(BValue value) {
227 var set = value.getSet10();
228 var forceRemove = set.size() >= 3;
229 if (forceRemove) {
230 randRemove(set);
231 } else {
232 switch (getRandom().nextInt(2)) {
233 case 0: // insert
234 set.add(getRandom().nextInt());
235 break;
236
237 case 1: // remove
238 randRemove(set);
239 break;
240 }
241 }
242 }
243 }
244
245 public static class Map11 implements Job {

Callers

nothing calls this directly

Calls 5

randRemoveMethod · 0.95
getRandomMethod · 0.80
sizeMethod · 0.65
addMethod · 0.65
nextIntMethod · 0.45

Tested by

no test coverage detected