GCC Code Coverage Report


Directory: Svc/Ccsds/ClearTextEncryptor/
File: ClearTextEncryptor.cpp
Date: 2026-09-23 21:13:19
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 ClearTextEncryptor.cpp
3 // \author lestarch-autobot
4 // \brief cpp file for ClearTextEncryptor component implementation class
5 // ======================================================================
6
7 #include "Svc/Ccsds/ClearTextEncryptor/ClearTextEncryptor.hpp"
8
9 namespace Svc {
10
11 namespace Ccsds {
12
13 // ----------------------------------------------------------------------
14 // Component construction and destruction
15 // ----------------------------------------------------------------------
16
17 2 ClearTextEncryptor ::ClearTextEncryptor(const char* const compName) : ClearTextEncryptorComponentBase(compName) {}
18
19 4 ClearTextEncryptor ::~ClearTextEncryptor() {}
20
21 // ----------------------------------------------------------------------
22 // Handler implementations for typed input ports
23 // ----------------------------------------------------------------------
24
25 1 void ClearTextEncryptor ::encryptIn_handler(FwIndexType portNum,
26 U16 securityAssociationIndex,
27 Fw::Buffer& data,
28 const ComCfg::FrameContext& context) {
29 // Make the absence of security visible: a flight configuration must never route traffic here
30 1 this->log_WARNING_HI_NullCipherInUse(securityAssociationIndex);
31
2/2
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
1 this->encryptOut_out(0, Svc::Ccsds::SdlsStatus::SUCCESS, data, context);
32 1 }
33
34 1 void ClearTextEncryptor ::encryptReturnIn_handler(FwIndexType portNum,
35 Fw::Buffer& data,
36 const ComCfg::FrameContext& context) {
37 1 this->bufferReturnOut_out(0, data, context);
38 1 }
39
40 } // namespace Ccsds
41
42 } // namespace Svc
43