mirror of
https://github.com/mandiant/capa.git
synced 2025-12-22 07:10:29 -08:00
*: remove more references to /x32 and /x64
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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():
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user