GCC Code Coverage Report


Directory: ./
File: Svc/PassThroughRouter/PassThroughRouter.cpp
Date: 2026-09-03 21:13:48
Exec Total Coverage
Lines: 9 9 100.0%
Functions: 4 4 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 // ======================================================================
2 // \title PassThroughRouter.cpp
3 // \author kessler
4 // \brief cpp file for PassThroughRouter component implementation class
5 // ======================================================================
6
7 #include "Svc/PassThroughRouter/PassThroughRouter.hpp"
8
9 namespace Svc {
10
11 // ----------------------------------------------------------------------
12 // Component construction and destruction
13 // ----------------------------------------------------------------------
14
15 2 PassThroughRouter::PassThroughRouter(const char* const compName) : PassThroughRouterComponentBase(compName) {}
16
17 4 PassThroughRouter::~PassThroughRouter() {}
18
19 // ----------------------------------------------------------------------
20 // Handler implementations for typed input ports
21 // ----------------------------------------------------------------------
22
23 1 void PassThroughRouter::allPacketsReturnIn_handler(FwIndexType portNum, Fw::Buffer& fwBuffer) {
24
1/1
✓ Branch 2 taken 1 times.
1 ComCfg::FrameContext context = {}; // default context used to satisfy dataReturnOut port interface
25
1/1
✓ Branch 5 taken 1 times.
1 this->dataReturnOut_out(0, fwBuffer, context);
26 2 }
27
28 1 void PassThroughRouter::dataIn_handler(FwIndexType portNum,
29 Fw::Buffer& packetBuffer,
30 const ComCfg::FrameContext& context) {
31 // allPacketsOut must always be connected. Users needing a null-router should write one explicitly.
32 1 this->allPacketsOut_out(0, packetBuffer);
33 1 }
34
35 } // namespace Svc
36