MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / oidtest

Function oidtest

resources/oidscripts/test.py:18–46  ·  view source on GitHub ↗

Entry point for the testing mode.

(script_path)

Source from the content-addressed store, hash-verified

16
17
18def oidtest(script_path):
19 """
20 Entry point for the testing mode.
21 """
22
23 dummy_debugger = DummyDebugger()
24
25 window = oidwindow.OpenImageDebuggerWindow(script_path, dummy_debugger)
26 window.initialize_window()
27
28 try:
29 # Wait for window to initialize
30 while not window.is_ready():
31 time.sleep(0.1)
32
33 window.set_available_symbols(dummy_debugger.get_available_symbols())
34
35 for buffer in dummy_debugger.get_available_symbols():
36 window.plot_variable(buffer)
37
38 while window.is_ready():
39 dummy_debugger.run_event_loop()
40 time.sleep(0.1)
41
42 except KeyboardInterrupt:
43 window.terminate()
44 exit(0)
45
46 dummy_debugger.kill()
47
48
49def _gen_color(pos, k, f_a, f_b):

Callers 1

mainFunction · 0.90

Calls 9

initialize_windowMethod · 0.95
is_readyMethod · 0.95
set_available_symbolsMethod · 0.95
get_available_symbolsMethod · 0.95
plot_variableMethod · 0.95
run_event_loopMethod · 0.95
terminateMethod · 0.95
killMethod · 0.95
DummyDebuggerClass · 0.85

Tested by

no test coverage detected