MCPcopy Create free account
hub / github.com/capstone-engine/capstone / test_class

Function test_class

bindings/python/tests/test_tricore.py:45–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44# ## Test class Cs
45def test_class():
46 for (arch, mode, code, comment) in all_tests:
47 print("*" * 16)
48 print("Platform: %s" % comment)
49 print("Code: %s" % code.hex(' '))
50 print("Disasm:")
51
52 try:
53 md = Cs(arch, mode)
54 md.detail = True
55 for insn in md.disasm(code, 0x1000):
56 print_insn_detail(insn)
57 print()
58 print("0x%x:\n" % (insn.address + insn.size))
59 except CsError as e:
60 print("ERROR: %s" % e)
61
62
63if __name__ == '__main__':

Callers 1

test_tricore.pyFile · 0.70

Calls 4

disasmMethod · 0.95
CsClass · 0.85
print_insn_detailFunction · 0.70
hexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…