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

Function test_class

bindings/python/tests/test_arm64.py:123–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122# ## Test class Cs
123def test_class():
124
125 for (arch, mode, code, comment) in all_tests:
126 print("*" * 16)
127 print("Platform: %s" % comment)
128 print("Code: %s" % code.hex(' '))
129 print("Disasm:")
130
131 try:
132 md = Cs(arch, mode)
133 md.detail = True
134 for insn in md.disasm(code, 0x2c):
135 print_insn_detail(insn)
136 print ()
137 print("0x%x:\n" % (insn.address + insn.size))
138 except CsError as e:
139 print("ERROR: %s" % e)
140
141
142if __name__ == '__main__':

Callers 1

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