MCPcopy Create free account
hub / github.com/dynjs/dynjs / TestRunner

Method TestRunner

src/test/java/org/dynjs/TestRunner.java:46–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 private final DynJS dynjs;
45
46 public TestRunner() {
47 Config config = new Config(TestRunner.class.getClassLoader());
48 config.setCompileMode(Config.CompileMode.OFF);
49 this.executor = Executors.newSingleThreadScheduledExecutor( new ThreadFactory() {
50 @Override
51 public Thread newThread(Runnable r) {
52 Thread t = new Thread(r);
53 t.setDaemon(false);
54 return t;
55 }
56 });
57 //config.setArgv(new String[]{ SCRIPT});
58 this.dynjs = new DynJS(config);
59 setupTimers();
60 setupConsole();
61 }
62
63 public void increment() {
64 counter.incrementAndGet();

Callers

nothing calls this directly

Calls 4

setCompileModeMethod · 0.95
setupTimersMethod · 0.95
setupConsoleMethod · 0.95
getClassLoaderMethod · 0.65

Tested by

no test coverage detected