LCOV - code coverage report
Current view: top level - src/dwarf/editor/types - typedef.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 6 0
Test Date: 2026-04-12:00:00:00 Functions: 0.0 % 2 0

            Line data    Source code
       1              : use lief_ffi as ffi;
       2              : 
       3              : use crate::common::FromFFI;
       4              : use crate::dwarf::editor::types::EditorType;
       5              : 
       6              : /// This structure represents a typedef (`DW_TAG_typedef`).
       7              : pub struct Typedef {
       8              :     ptr: cxx::UniquePtr<ffi::DWARF_editor_TypeDef>,
       9              : }
      10              : 
      11              : impl FromFFI<ffi::DWARF_editor_TypeDef> for Typedef {
      12            0 :     fn from_ffi(cmd: cxx::UniquePtr<ffi::DWARF_editor_TypeDef>) -> Self {
      13            0 :         Self { ptr: cmd }
      14            0 :     }
      15              : }
      16              : 
      17              : impl EditorType for Typedef {
      18            0 :     fn get_base(&self) -> &ffi::DWARF_editor_Type {
      19            0 :         self.ptr.as_ref().unwrap().as_ref()
      20            0 :     }
      21              : }
        

Generated by: LCOV version 2.1-1