MCPcopy Create free account
hub / github.com/lief-project/LIEF / test_wrong_obj

Function test_wrong_obj

tests/api/test_python.py:14–19  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

12
13
14def test_wrong_obj(capsys):
15 class Empty:
16 pass
17 _ = lief.parse(Empty())
18 captured = capsys.readouterr()
19 assert "LIEF parser interface does not support this Python object: test_python.Empty" in captured.err
20
21def test_pathlib():
22 lspath = Path(get_sample('ELF/ELF64_x86-64_binary_ls.bin'))

Callers

nothing calls this directly

Calls 2

EmptyClass · 0.85
parseMethod · 0.45

Tested by

no test coverage detected