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

Function test_class

bindings/python/tests/test_riscv.py:46–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

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