LCOV - code coverage report
Current view: top level - src/pdb/types - union.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 12 0
Test Date: 2024-10-27:00:00:00 Functions: 0.0 % 3 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              : use crate::pdb::types::classlike::ClassLike;
       7              : 
       8              : /// This structure wraps a `LF_UNION` PDB type
       9              : pub struct Union<'a> {
      10              :     ptr: cxx::UniquePtr<ffi::PDB_types_Union>,
      11              :     _owner: PhantomData<&'a ()>,
      12              : }
      13              : 
      14              : impl FromFFI<ffi::PDB_types_Union> for Union<'_> {
      15            0 :     fn from_ffi(cmd: cxx::UniquePtr<ffi::PDB_types_Union>) -> Self {
      16            0 :         Self {
      17            0 :             ptr: cmd,
      18            0 :             _owner: PhantomData,
      19            0 :         }
      20            0 :     }
      21              : }
      22              : 
      23              : impl Union<'_> {
      24              : }
      25              : 
      26              : impl PdbType for Union<'_> {
      27            0 :     fn get_base(&self) -> &ffi::PDB_Type {
      28            0 :         self.ptr.as_ref().unwrap().as_ref().as_ref()
      29            0 :     }
      30              : }
      31              : 
      32              : impl ClassLike for Union<'_> {
      33            0 :     fn get_classlike(&self) -> &ffi::PDB_types_ClassLike {
      34            0 :         self.ptr.as_ref().unwrap().as_ref()
      35            0 :     }
      36              : }
        

Generated by: LCOV version 2.1-1