LCOV - code coverage report
Current view: top level - extras/test/unit/tests - ModuleFixture.cpp (source / functions) Hit Total Coverage
Test: lcov.info Lines: 14 14 100.0 %
Date: 2026-02-22 10:42:45 Functions: 2 2 100.0 %

          Line data    Source code
       1             : #include <boost/test/unit_test.hpp>
       2             : 
       3             : #include "ModuleFixture.hpp"
       4             : 
       5           5 : ModuleFixture::ModuleFixture() { 
       6           5 :   BOOST_TEST_MESSAGE("--- Module fixture setup ---"); 
       7           5 :   hal = new TestHal();
       8           5 :   radioHardware = new EmulatedRadio();
       9           5 :   hal->connectRadio(radioHardware);
      10             : 
      11           5 :   mod = new Module(hal, EMULATED_RADIO_NSS_PIN, EMULATED_RADIO_IRQ_PIN, EMULATED_RADIO_RST_PIN, EMULATED_RADIO_GPIO_PIN);
      12           5 :   mod->init();
      13           5 : }
      14             : 
      15           5 : ModuleFixture::~ModuleFixture() { 
      16           5 :   BOOST_TEST_MESSAGE("--- Module fixture teardown ---");
      17           5 :   mod->term();
      18           5 :   delete mod;
      19           5 :   delete hal;
      20           5 : }

Generated by: LCOV version 1.14