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

Method test_hook_java

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

Source from the content-addressed store, hash-verified

354 self.assertEqual(result, -1)
355
356 def test_hook_java(self):
357 self.lib.renef_hook_java.return_value = 0
358 result = self.session.hook_java(
359 "com/example/Main", "test", "()V",
360 on_enter="print('called')"
361 )
362 self.assertEqual(result, 0)
363
364 def test_unhook(self):
365 self.lib.renef_unhook.return_value = 0

Callers

nothing calls this directly

Calls 1

hook_javaMethod · 0.80

Tested by

no test coverage detected