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

Function test_class

bindings/python/tests/test_sh.py:76–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75# ## Test class Cs
76def test_class():
77
78 for (arch, mode, code, comment) in all_tests:
79 print("*" * 16)
80 print("Platform: %s" %comment)
81 print("Code: %s" % code.hex(' '))
82 print("Disasm:")
83
84 try:
85 md = Cs(arch, mode)
86 md.detail = True
87 for insn in md.disasm(code, 0x80000000):
88 print_insn_detail(insn)
89 print()
90 print("0x%x:" % (insn.address + insn.size))
91 except CsError as e:
92 print("ERROR: %s" %e)
93
94
95if __name__ == '__main__':

Callers 1

test_sh.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…