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

Method test_hook

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

Source from the content-addressed store, hash-verified

344 self.assertEqual(err, "Session closed")
345
346 def test_hook(self):
347 self.lib.renef_hook.return_value = 0
348 result = self.session.hook("libc.so", 0x1234, on_enter="print(args[0])")
349 self.assertEqual(result, 0)
350
351 def test_hook_closed(self):
352 self.session._handle = None

Callers

nothing calls this directly

Calls 1

hookMethod · 0.80

Tested by

no test coverage detected