GCC Code Coverage Report


Directory: /home/runner/work/fprime/fprime/Svc/PassThroughRouter/
File: PassThroughRouter.cpp
Date: 2026-09-03 22:13:49
Exec Total Coverage
Lines: 0 9 0.0%
Functions: 0 4 0.0%
Branches: 0 2 0.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 PassThroughRouter::PassThroughRouter(const char* const compName) : PassThroughRouterComponentBase(compName) {}
16
17 PassThroughRouter::~PassThroughRouter() {}
18
19 // ----------------------------------------------------------------------
20 // Handler implementations for typed input ports
21 // ----------------------------------------------------------------------
22
23 void PassThroughRouter::allPacketsReturnIn_handler(FwIndexType portNum, Fw::Buffer& fwBuffer) {
24 ComCfg::FrameContext context = {}; // default context used to satisfy dataReturnOut port interface
25 this->dataReturnOut_out(0, fwBuffer, context);
26 }
27
28 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 this->allPacketsOut_out(0, packetBuffer);
33 }
34
35 } // namespace Svc
36