LCOV - code coverage report
Current view:
top level
-
src/elf
- binary.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
lief.lcov
Lines:
39.0 %
538
210
Test Date:
2026-04-12:00:00:00
Functions:
30.5 %
174
53
Function Name
Hit count
Lines
<lief::elf::binary::Binary>::add_section
0
0.0 % (0 / 12)
<lief::elf::binary::Binary as lief::generic::Binary>::as_pin_mut_generic
0
0.0 % (0 / 10)
<lief::elf::binary::Binary>::remove_dynamic_entry_if::<_>::{closure#0}
0
0.0 % (0 / 10)
<lief::elf::binary::PhdrReloc as core::convert::From<u32>>::from
0
0.0 % (0 / 9)
<u32 as core::convert::From<lief::elf::binary::PhdrReloc>>::from
0
0.0 % (0 / 9)
<lief::elf::binary::Binary>::add_dynamic_entry
0
0.0 % (0 / 8)
<lief::elf::binary::Binary>::parse_with_config::<_>
0
0.0 % (0 / 8)
<lief::common::Iterator<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary, lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary_it_symbols> as core::iter::traits::iterator::Iterator>::next::{closure#0}
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::add_exported_function
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::add_segment
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::dynsym_idx
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::export_symbol_by_name
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::extend_segment
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::remove_dynamic_entry_if::<_>
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::set_overlay
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::symtab_idx
0
0.0 % (0 / 7)
<lief::elf::binary::SecInsertPos as core::convert::From<u32>>::from
0
0.0 % (0 / 7)
<u32 as core::convert::From<lief::elf::binary::SecInsertPos>>::from
0
0.0 % (0 / 7)
<lief::elf::binary::Binary>::remove_dynamic_entries_by_tag
0
0.0 % (0 / 6)
<lief::elf::binary::Binary>::section_idx
0
0.0 % (0 / 6)
<lief::elf::binary::Binary>::section_idx_by_name
0
0.0 % (0 / 6)
<lief::elf::binary::ElfClass>::from_value
0
0.0 % (0 / 6)
<lief::elf::binary::Binary>::patch_pltgot
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::remove_dynamic_symbol
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::remove_segment
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::remove_symtab_symbol
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::remove_version_requirement
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::set_interpreter::<_>
0
0.0 % (0 / 5)
<lief::elf::binary::Binary>::strings
0
0.0 % (0 / 4)
<lief::elf::binary::Binary as lief::common::AsFFI<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary>>::as_ffi
0
0.0 % (0 / 3)
<lief::elf::binary::Binary as lief::common::AsFFI<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary>>::as_mut_ffi
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::add_dynamic_relocation
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::add_dynamic_symbol
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::add_note
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::add_pltgot_relocation
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::add_symtab_symbol
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::dtor_functions
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::dynamic_entry_by_tag
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::eof_offset
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::export_symbol
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::extend_section
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::find_version_requirement
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#3}::{closure#0}
0
57.1 % (4 / 7)
::get_int_from_virtual_address::<_>::{closure#3}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#3}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#3}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#3}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#3}::{closure#0}
0
<lief::elf::binary::Binary>::has_dynamic_entry_tag
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_dynamic_symbol
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_library
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_note_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_section
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_section_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_section_with_offset
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_section_with_va
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_segment_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::has_symtab_symbol
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::is_targeting_android
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::last_offset_section
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::last_offset_segment
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::next_virtual_address
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::note_by_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::overlay
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::relocate_phdr_table
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::remove_dynamic_entry::<_>
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::remove_library
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::remove_note
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::remove_section
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::remove_segments_by_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::section_by_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::segment_by_type
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::strings::{closure#0}
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::strip
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::symbols
0
0.0 % (0 / 3)
<lief::elf::binary::Binary>::parse::<_>
2
85.7 % (6 / 7)
::parse::<_>
0
::parse::<&str>
2
<lief::elf::binary::ElfClass as core::fmt::Debug>::fmt
0
0.0 % (0 / 1)
::clone
0
::eq
0
::fmt
0
::hash::<_>
0
<lief::elf::binary::PhdrReloc as core::fmt::Debug>::fmt
0
0.0 % (0 / 1)
::clone
0
::eq
0
::fmt
0
::hash::<_>
0
<lief::elf::binary::SecInsertPos as core::fmt::Debug>::fmt
0
0.0 % (0 / 1)
::clone
0
::eq
0
::fmt
0
::hash::<_>
0
<lief::common::Iterator<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary, lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary_it_symbols_version> as core::iter::traits::iterator::Iterator>::next::{closure#0}
1
100.0 % (7 / 7)
<lief::common::Iterator<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary, lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary_it_symbols_version_definition> as core::iter::traits::iterator::Iterator>::next::{closure#0}
1
100.0 % (7 / 7)
<lief::common::Iterator<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary, lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary_it_symbols_version_requirement> as core::iter::traits::iterator::Iterator>::next::{closure#0}
1
100.0 % (7 / 7)
<lief::elf::binary::Binary as core::fmt::Debug>::fmt
1
100.0 % (5 / 5)
<lief::elf::binary::Binary as lief::common::FromFFI<lief_ffi::autocxx_ffi::bindgen::root::ELF_Binary>>::from_ffi
1
100.0 % (3 / 3)
<lief::elf::binary::Binary as lief::generic::Binary>::as_generic
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::add_library
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::content_from_virtual_address
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::dynamic_entries
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::dynamic_relocations
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::dynamic_symbol_by_name
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::dynamic_symbols
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::exported_symbols
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::functions
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>
4
100.0 % (12 / 12)
::get_int_from_virtual_address::<_>
0
::get_int_from_virtual_address::
1
::get_int_from_virtual_address::
1
::get_int_from_virtual_address::
1
::get_int_from_virtual_address::
1
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#0}
1
100.0 % (1 / 1)
::get_int_from_virtual_address::<_>::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}
1
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#0}::{closure#0}
0
100.0 % (9 / 9)
::get_int_from_virtual_address::<_>::{closure#0}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#0}::{closure#0}
0
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#1}
1
100.0 % (1 / 1)
::get_int_from_virtual_address::<_>::{closure#1}
0
::get_int_from_virtual_address::
::{closure#1}
0
::get_int_from_virtual_address::
::{closure#1}
0
::get_int_from_virtual_address::
::{closure#1}
0
::get_int_from_virtual_address::
::{closure#1}
1
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#1}::{closure#0}
0
100.0 % (9 / 9)
::get_int_from_virtual_address::<_>::{closure#1}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#1}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#1}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#1}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#1}::{closure#0}
0
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#2}
1
100.0 % (1 / 1)
::get_int_from_virtual_address::<_>::{closure#2}
0
::get_int_from_virtual_address::
::{closure#2}
0
::get_int_from_virtual_address::
::{closure#2}
0
::get_int_from_virtual_address::
::{closure#2}
0
::get_int_from_virtual_address::
::{closure#2}
1
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#2}::{closure#0}
0
100.0 % (9 / 9)
::get_int_from_virtual_address::<_>::{closure#2}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#2}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#2}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#2}::{closure#0}
0
::get_int_from_virtual_address::
::{closure#2}::{closure#0}
0
<lief::elf::binary::Binary>::get_int_from_virtual_address::<_>::{closure#3}
1
100.0 % (1 / 1)
::get_int_from_virtual_address::<_>::{closure#3}
0
::get_int_from_virtual_address::
::{closure#3}
0
::get_int_from_virtual_address::
::{closure#3}
0
::get_int_from_virtual_address::
::{closure#3}
0
::get_int_from_virtual_address::
::{closure#3}
1
<lief::elf::binary::Binary>::get_library
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::get_relocated_dynamic_array
1
100.0 % (7 / 7)
<lief::elf::binary::Binary>::gnu_hash
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::header
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::imported_symbols
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::interpreter
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::notes
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::object_relocations
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::pltgot_relocations
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::relocation_by_addr
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::relocation_for_symbol
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::relocations
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::section_by_name
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::section_from_offset
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::section_from_virtual_address
1
100.0 % (7 / 7)
<lief::elf::binary::Binary>::sections
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::segment_from_offset
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::segment_from_virtual_address
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::segments
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::symbols_version
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::symbols_version_definition
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::symbols_version_requirement
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::symtab_symbol_by_name
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::symtab_symbols
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::sysv_hash
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::virtual_address_to_offset
1
100.0 % (1 / 1)
<lief::elf::binary::Binary>::virtual_address_to_offset::{closure#0}
1
100.0 % (2 / 2)
<lief::elf::binary::Binary>::virtual_size
1
100.0 % (3 / 3)
<lief::elf::binary::Binary>::write::<_>
1
100.0 % (6 / 6)
::write::<_>
0
::write::<&std::path::Path>
1
<lief::elf::binary::Binary>::write_with_config::<_>
1
100.0 % (6 / 6)
::write_with_config::<_>
0
::write_with_config::<&std::path::Path>
1
Generated by:
LCOV version 2.1-1