MCPcopy Create free account
hub / github.com/Ahmeth4n/renef / test_trace_single

Method test_trace_single

bindings/python/tests/test_api.py:175–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 self.syscall = Syscall(self.mock)
174
175 def test_trace_single(self):
176 self.mock.set_eval_response(True, "Tracing openat\n")
177 ok, out, err = self.syscall.trace("openat")
178 self.assertTrue(ok)
179 lua = self.mock.eval_calls[-1]
180 self.assertIn('Syscall.trace("openat")', lua)
181
182 def test_trace_multiple(self):
183 self.mock.set_eval_response(True, "Tracing 3 syscalls\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
traceMethod · 0.80

Tested by

no test coverage detected