GCC Code Coverage Report


Directory: ./
File: Fw/Com/ComPacket.cpp
Date: 2026-09-03 21:13:48
Exec Total Coverage
Lines: 10 10 100.0%
Functions: 4 4 100.0%
Branches: 4 5 80.0%

Line Branch Exec Source
1 /*
2 * ComPacket.cpp
3 *
4 * Created on: May 24, 2014
5 * Author: Timothy Canham
6 */
7
8 #include <Fw/Com/ComPacket.hpp>
9
10 namespace Fw {
11
12 92 ComPacket::ComPacket() : m_type(ComPacketType::FW_PACKET_UNKNOWN) {}
13
14 184 ComPacket::~ComPacket() {}
15
16 31 SerializeStatus ComPacket::serializeBase(SerialBufferBase& buffer) const {
17
1/2
✗ Branch 9 not taken.
✓ Branch 10 taken 31 times.
31 return buffer.serializeFrom(static_cast<FwPacketDescriptorType>(this->m_type));
18 }
19
20 75 SerializeStatus ComPacket::deserializeBase(SerialBufferBase& buffer) {
21 75 FwPacketDescriptorType serVal;
22
1/1
✓ Branch 7 taken 75 times.
75 SerializeStatus stat = buffer.deserializeTo(serVal);
23
2/2
✓ Branch 0 taken 72 times.
✓ Branch 1 taken 3 times.
75 if (FW_SERIALIZE_OK == stat) {
24 72 this->m_type = static_cast<ComPacketType>(serVal);
25 }
26 75 return stat;
27 }
28
29 } /* namespace Fw */
30