LCOV - code coverage report
Current view: top level - src/pdb/types - array.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 9 0
Test Date: 2024-10-27: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_ARRAY` PDB type
       8              : pub struct Array<'a> {
       9              :     ptr: cxx::UniquePtr<ffi::PDB_types_Array>,
      10              :     _owner: PhantomData<&'a ()>,
      11              : }
      12              : 
      13              : impl FromFFI<ffi::PDB_types_Array> for Array<'_> {
      14            0 :     fn from_ffi(cmd: cxx::UniquePtr<ffi::PDB_types_Array>) -> Self {
      15            0 :         Self {
      16            0 :             ptr: cmd,
      17            0 :             _owner: PhantomData,
      18            0 :         }
      19            0 :     }
      20              : }
      21              : 
      22              : impl Array<'_> {
      23              : }
      24              : 
      25              : impl PdbType for Array<'_> {
      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