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

Function test_class

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

Source from the content-addressed store, hash-verified

59
60# ## Test class Cs
61def test_class():
62 for (arch, mode, code, comment) in all_tests:
63 print("*" * 16)
64 print("Platform: %s" % comment)
65 print("Code: %s" % code.hex(' '))
66 print("Disasm:")
67
68 try:
69 md = Cs(arch, mode)
70 md.detail = True
71 for insn in md.disasm(code, 0xffff):
72 print_insn_detail(insn)
73 print()
74 print("0x%x:\n" % (insn.address + insn.size))
75 except CsError as e:
76 print("ERROR: %s" % e)
77
78
79if __name__ == '__main__':

Callers 1

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