*: remove more references to /x32 and /x64

This commit is contained in:
Willi Ballenthin
2022-04-05 10:41:03 -06:00
parent ecabd557a7
commit aee61b35e4
3 changed files with 0 additions and 10 deletions

View File

@@ -581,10 +581,6 @@ class CapaExplorerDataModel(QtCore.QAbstractItemModel):
"mnemonic", "mnemonic",
"number", "number",
"offset", "offset",
"number/x32",
"number/x64",
"offset/x32",
"offset/x64",
): ):
# display instruction preview # display instruction preview
return CapaExplorerInstructionViewItem(parent, display, location) return CapaExplorerInstructionViewItem(parent, display, location)

View File

@@ -9,14 +9,10 @@ import capa.render.result_document
def test_render_number(): def test_render_number():
assert str(capa.features.insn.Number(1)) == "number(0x1)" assert str(capa.features.insn.Number(1)) == "number(0x1)"
assert str(capa.features.insn.Number(1, bitness=capa.features.common.BITNESS_X32)) == "number/x32(0x1)"
assert str(capa.features.insn.Number(1, bitness=capa.features.common.BITNESS_X64)) == "number/x64(0x1)"
def test_render_offset(): def test_render_offset():
assert str(capa.features.insn.Offset(1)) == "offset(0x1)" assert str(capa.features.insn.Offset(1)) == "offset(0x1)"
assert str(capa.features.insn.Offset(1, bitness=capa.features.common.BITNESS_X32)) == "offset/x32(0x1)"
assert str(capa.features.insn.Offset(1, bitness=capa.features.common.BITNESS_X64)) == "offset/x64(0x1)"
def test_render_meta_attack(): def test_render_meta_attack():

View File

@@ -108,8 +108,6 @@ def test_rule_descriptions():
- description: and description - description: and description
- and: - and:
- description: and description - description: and description
- offset/x64: 0x50 = offset/x64 description
- offset/x64: 0x30 = offset/x64 description
""" """
) )
r = capa.rules.Rule.from_yaml(rule) r = capa.rules.Rule.from_yaml(rule)