GCC Code Coverage Report


Directory: ./
File: Fw/Com/ComPacket.cpp
Date: 2026-11-03 21:15:54
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 77242 ComPacket::ComPacket() : m_type(ComPacketType::FW_PACKET_UNKNOWN) {}
13
14 149996 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 78224 SerializeStatus ComPacket::deserializeBase(SerialBufferBase& buffer) {
21 78224 FwPacketDescriptorType serVal;
22
1/1
✓ Branch 7 taken 75552 times.
78264 SerializeStatus stat = buffer.deserializeTo(serVal);
23
2/2
✓ Branch 0 taken 99 times.
✓ Branch 1 taken 75453 times.
75552 if (FW_SERIALIZE_OK == stat) {
24 99 this->m_type = static_cast<ComPacketType>(serVal);
25 }
26 75552 return stat;
27 }
28
29 } /* namespace Fw */
30