LCOV - code coverage report
Current view: top level - src/assembly/aarch64 - instruction.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 11 0
Test Date: 2024-11-30: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 crate::assembly;
       5              : use super::Opcode;
       6              : 
       7              : /// This structure represents an AArch64 instruction
       8              : pub struct Instruction {
       9              :     ptr: cxx::UniquePtr<ffi::asm_aarch64_Instruction>,
      10              : }
      11              : 
      12              : impl FromFFI<ffi::asm_aarch64_Instruction> for Instruction {
      13            0 :     fn from_ffi(ptr: cxx::UniquePtr<ffi::asm_aarch64_Instruction>) -> Self {
      14            0 :         Self {
      15            0 :             ptr,
      16            0 :         }
      17            0 :     }
      18              : }
      19              : 
      20              : impl assembly::Instruction for Instruction {
      21              :     #[doc(hidden)]
      22            0 :     fn as_generic(&self) -> &ffi::asm_Instruction {
      23            0 :         self.ptr.as_ref().unwrap().as_ref()
      24            0 :     }
      25              : }
      26              : 
      27              : impl Instruction {
      28              :     /// The instruction opcode as defined in LLVM
      29            0 :     pub fn opcode(&self) -> Opcode {
      30            0 :         Opcode::from(self.ptr.opcode())
      31            0 :     }
      32              : }
        

Generated by: LCOV version 2.1-1