LCOV - code coverage report
Current view: top level - src/macho - builder.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 88.9 % 9 8
Test Date: 2026-04-12:00:00:00 Functions: 66.7 % 3 2

            Line data    Source code
       1              : use lief_ffi as ffi;
       2              : 
       3              : /// Structure used to configure the [`crate::macho::Binary::write_with_config`] operation
       4            0 : #[derive(Debug)]
       5              : pub struct Config {
       6              :     /// Rebuild the `__LINKEDIT` segment
       7              :     pub linkedit: bool,
       8              : }
       9              : 
      10              : impl Default for Config {
      11           13 :     fn default() -> Config {
      12           13 :         Config { linkedit: true }
      13           13 :     }
      14              : }
      15              : 
      16              : impl Config {
      17              :     #[doc(hidden)]
      18           13 :     pub fn to_ffi(&self) -> ffi::MachO_Binary_write_config_t {
      19           13 :         ffi::MachO_Binary_write_config_t {
      20           13 :             linkedit: self.linkedit,
      21           13 :         }
      22           13 :     }
      23              : }
        

Generated by: LCOV version 2.1-1