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

Method getRole

ZezeJava/ZezeJavaTest/src/Zezex/TestGameTimer.java:367–374  ·  view source on GitHub ↗
(ClientGame.App app)

Source from the content-addressed store, hash-verified

365 }
366
367 private static BRole getRole(ClientGame.App app) {
368 var get = new GetRoleList();
369 get.SendForWait(app.ClientService.GetSocket(), 10_000).await();
370 Assert.assertEquals(0, get.getResultCode());
371 if (get.Result.getRoleList().isEmpty())
372 return null;
373 return get.Result.getRoleList().get(0);
374 }
375
376 private static void sleep(long gap, int times) {
377 try {

Callers 2

testRoleTimer1Method · 0.95
testRoleTimer2Method · 0.95

Calls 6

awaitMethod · 0.65
isEmptyMethod · 0.65
getMethod · 0.65
SendForWaitMethod · 0.45
GetSocketMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected