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

Method test_step_into

test/debugger_test.py:154–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 dbg.quit_and_wait()
153
154 def test_step_into(self):
155 fpath = name_to_fpath('helloworld', self.arch)
156 bv = load(fpath)
157 dbg = DebuggerController(bv)
158 dbg.cmd_line = 'foobar'
159 self.assertNotIn(dbg.launch_and_wait(), [DebugStopReason.ProcessExited, DebugStopReason.InternalError])
160 reason = dbg.step_into_and_wait()
161 self.assertEqual(reason, DebugStopReason.SingleStep)
162 reason = dbg.step_into_and_wait()
163 self.assertEqual(reason, DebugStopReason.SingleStep)
164 reason = dbg.go_and_wait()
165 self.assertEqual(reason, DebugStopReason.ProcessExited)
166
167 def test_breakpoint(self):
168 fpath = name_to_fpath('helloworld', self.arch)

Callers

nothing calls this directly

Calls 5

launch_and_waitMethod · 0.95
step_into_and_waitMethod · 0.95
go_and_waitMethod · 0.95
DebuggerControllerClass · 0.90
name_to_fpathFunction · 0.85

Tested by

no test coverage detected