GCC Code Coverage Report


Directory: Ref/BlockDriver/
File: BlockDriver.cpp
Date: 2026-09-23 22:13:26
Exec Total Coverage
Lines: 8 11 72.7%
Functions: 4 5 80.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 #include <Fw/FPrimeBasicTypes.hpp>
2 #include <Fw/Types/Assert.hpp>
3 #include <Ref/BlockDriver/BlockDriver.hpp>
4
5 namespace Ref {
6
7 1 BlockDriver::BlockDriver(const char* compName) : BlockDriverComponentBase(compName), m_cycles(0) {}
8
9 2 BlockDriver::~BlockDriver() {}
10
11 ✗ void BlockDriver::BufferIn_handler(FwIndexType portNum, Drv::DataBuffer& buffer) {
12 // just a pass-through
13 ✗ this->BufferOut_out(0, buffer);
14 ✗ }
15
16 61 void BlockDriver::Sched_handler(FwIndexType portNum, U32 context) {
17
2/2
✓ Branch 1 taken 61 times.
✓ Branch 4 taken 61 times.
61 this->tlmWrite_BD_Cycles(this->m_cycles++);
18 61 }
19
20 61 void BlockDriver::PingIn_handler(const FwIndexType portNum, U32 key) {
21 // call ping output port
22 61 this->PingOut_out(0, key);
23 61 }
24
25 } // namespace Ref
26