LCOV - code coverage report
Current view: top level - src/pdb/types - simple.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 class represents a primitive types (int, float, ...) which are
       8              : /// also named *simple* types in the PDB format.
       9              : pub struct Simple<'a> {
      10              :     ptr: cxx::UniquePtr<ffi::PDB_types_Simple>,
      11              :     _owner: PhantomData<&'a ()>,
      12              : }
      13              : 
      14              : impl FromFFI<ffi::PDB_types_Simple> for Simple<'_> {
      15            0 :     fn from_ffi(cmd: cxx::UniquePtr<ffi::PDB_types_Simple>) -> Self {
      16            0 :         Self {
      17            0 :             ptr: cmd,
      18            0 :             _owner: PhantomData,
      19            0 :         }
      20            0 :     }
      21              : }
      22              : 
      23              : impl Simple<'_> {
      24              : }
      25              : 
      26              : impl PdbType for Simple<'_> {
      27            0 :     fn get_base(&self) -> &ffi::PDB_Type {
      28            0 :         self.ptr.as_ref().unwrap().as_ref()
      29            0 :     }
      30              : }
        

Generated by: LCOV version 2.1-1