2025-07-28 14:04:19 +00:00
|
|
|
import pelfy._main as _main
|
2025-04-16 08:16:30 +00:00
|
|
|
|
2025-05-22 14:49:51 +00:00
|
|
|
|
2025-05-22 08:11:54 +00:00
|
|
|
def test_readme_example() -> None:
|
2025-07-28 14:04:19 +00:00
|
|
|
elf = _main.open_elf_file('tests/obj/test-c-riscv64-linux-gnu-gcc-12-O3.o')
|
2025-04-16 08:16:30 +00:00
|
|
|
|
|
|
|
assert ' description ' in elf.sections.to_markdown()
|
|
|
|
assert ' stb ' in elf.functions.to_markdown()
|
2025-05-22 14:49:51 +00:00
|
|
|
assert ' symbol name ' in elf.symbols['read_float'].relocations.to_markdown()
|