LCOV - code coverage report
Current view: top level - src - debug_location.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 7 0
Test Date: 2024-10-27:00:00:00 Functions: 0.0 % 5 0

            Line data    Source code
       1              : use lief_ffi as ffi;
       2              : 
       3              : use crate::common::FromFFI;
       4              : 
       5            0 : #[derive(Debug, Clone, PartialEq, Eq, Hash)]
       6              : /// This structure represents a location in the different debug formats (DWARF/PDB)
       7              : pub struct DebugLocation {
       8              :     /// Line number
       9              :     pub line: u64,
      10              : 
      11              :     /// Filename or filepath
      12              :     pub file: String,
      13              : }
      14              : 
      15              : impl FromFFI<ffi::DebugLocation> for DebugLocation {
      16            0 :     fn from_ffi(ptr: cxx::UniquePtr<ffi::DebugLocation>) -> Self {
      17            0 :         DebugLocation {
      18            0 :             line: ptr.line(),
      19            0 :             file: ptr.file().to_string(),
      20            0 :         }
      21            0 :     }
      22              : }
        

Generated by: LCOV version 2.1-1