mirror of https://github.com/Nonannet/pelfy.git
8 lines
318 B
Python
8 lines
318 B
Python
import pelfy
|
|
|
|
def test_readme_example() -> None:
|
|
elf = pelfy.open_elf_file('tests/obj/test-c-riscv64-linux-gnu-gcc-12-O3.o')
|
|
|
|
assert ' description ' in elf.sections.to_markdown()
|
|
assert ' stb ' in elf.functions.to_markdown()
|
|
assert ' symbol name ' in elf.symbols['read_float'].relocations.to_markdown() |