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

Method main

ZezeJava/ZezeJavaTest/src/Infinite/TwoTestBug.java:6–34  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

4
5public class TwoTestBug {
6 public static void main(String[] args) throws Exception {
7 int i = 0;
8 try {
9 for (; ; i++) {
10 Simulate.logger.fatal("----------- CBasicSimpleAddConcurrent {} -----------", i);
11 var test1 = new CBasicSimpleAddConcurrent();
12 try {
13 test1.testBenchmark();
14 } catch (Throwable ex) { // print stacktrace.
15 Simulate.logger.fatal("CBasicSimpleAddConcurrent", ex);
16 }
17 Simulate.logger.fatal("----------- Simulate {} -----------", i);
18 Tasks.clearAllCounters();
19 var simulate = new Simulate();
20 simulate.Infinite = false;
21 simulate.Before();
22 try {
23 simulate.testMain();
24 } catch (Throwable e) { // print stacktrace. rethrow
25 Simulate.logger.fatal("main exception:", e);
26 throw e;
27 } finally {
28 simulate.After();
29 }
30 }
31 } finally {
32 Simulate.logger.fatal("----------- End {} -----------", i);
33 }
34 }
35}

Callers

nothing calls this directly

Calls 5

testBenchmarkMethod · 0.95
clearAllCountersMethod · 0.95
BeforeMethod · 0.95
testMainMethod · 0.95
AfterMethod · 0.95

Tested by

no test coverage detected