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

Function test_class

bindings/python/tests/test_mips.py:50–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

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