GCC Code Coverage Report


Directory: ./
File: Fw/Com/ComPacket.cpp
Date: 2026-10-14 21:15:02
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 66730 ComPacket::ComPacket() : m_type(ComPacketType::FW_PACKET_UNKNOWN) {}
13
14 139220 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 78862 SerializeStatus ComPacket::deserializeBase(SerialBufferBase& buffer) {
21 78862 FwPacketDescriptorType serVal;
22
1/1
✓ Branch 7 taken 67262 times.
78890 SerializeStatus stat = buffer.deserializeTo(serVal);
23
2/2
✓ Branch 0 taken 99 times.
✓ Branch 1 taken 67163 times.
67262 if (FW_SERIALIZE_OK == stat) {
24 99 this->m_type = static_cast<ComPacketType>(serVal);
25 }
26 67262 return stat;
27 }
28
29 } /* namespace Fw */
30