LCOV - code coverage report
Current view: top level - src/pdb/types - bitfield.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 9 0
Test Date: 2024-11-30: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 std::marker::PhantomData;
       5              : use crate::pdb::types::PdbType;
       6              : 
       7              : /// This structure wraps a `LF_BITFIELD` PDB type
       8              : pub struct BitField<'a> {
       9              :     ptr: cxx::UniquePtr<ffi::PDB_types_BitField>,
      10              :     _owner: PhantomData<&'a ()>,
      11              : }
      12              : 
      13              : impl FromFFI<ffi::PDB_types_BitField> for BitField<'_> {
      14            0 :     fn from_ffi(cmd: cxx::UniquePtr<ffi::PDB_types_BitField>) -> Self {
      15            0 :         Self {
      16            0 :             ptr: cmd,
      17            0 :             _owner: PhantomData,
      18            0 :         }
      19            0 :     }
      20              : }
      21              : 
      22              : impl BitField<'_> {
      23              : }
      24              : 
      25              : impl PdbType for BitField<'_> {
      26            0 :     fn get_base(&self) -> &ffi::PDB_Type {
      27            0 :         self.ptr.as_ref().unwrap().as_ref()
      28            0 :     }
      29              : }
        

Generated by: LCOV version 2.1-1