MCPcopy Create free account
hub / github.com/Vector35/debugger / run_once

Method run_once

test/debugger_test.py:57–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 bv = load(fpath)
56
57 def run_once():
58 dbg = DebuggerController(bv)
59 dbg.cmd_line = 'foobar'
60 self.assertNotIn(dbg.launch_and_wait(), [DebugStopReason.ProcessExited, DebugStopReason.InternalError])
61
62 # continue execution to the entry point, and check the stop reason
63 reason = dbg.step_into_and_wait()
64 self.assertEqual(reason, DebugStopReason.SingleStep)
65 reason = dbg.step_into_and_wait()
66 self.assertEqual(reason, DebugStopReason.SingleStep)
67 reason = dbg.step_into_and_wait()
68 self.assertEqual(reason, DebugStopReason.SingleStep)
69 # go until executing done
70 reason = dbg.go_and_wait()
71 self.assertEqual(reason, DebugStopReason.ProcessExited)
72
73 # Do the same thing for 10 times
74 n = 10

Callers

nothing calls this directly

Calls 4

launch_and_waitMethod · 0.95
step_into_and_waitMethod · 0.95
go_and_waitMethod · 0.95
DebuggerControllerClass · 0.90

Tested by

no test coverage detected