GCC Code Coverage Report


Directory: Fw/FilePacket/
File: GTest/StartPacket.cpp
Date: 2026-09-03 21:14:53
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 3 8 37.5%

Line Branch Exec Source
1 // ======================================================================
2 // \title Fw/FilePacket/GTest/StartPacket.cpp
3 // \author bocchino
4 // \brief Test utilities for start file packets
5 //
6 // \copyright
7 // Copyright (C) 2016, California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12
13 #include <Fw/FilePacket/GTest/FilePackets.hpp>
14 #include <Fw/Types/GTest/Bytes.hpp>
15
16 namespace Fw {
17
18 namespace GTest {
19
20 1 void FilePackets::StartPacket ::compare(const FilePacket::StartPacket& expected,
21 const FilePacket::StartPacket& actual) {
22 1 FilePackets::Header::compare(expected.asHeader(), actual.asHeader());
23
3/8
✓ Branch 10 taken 1 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 19 not taken.
✗ Branch 25 not taken.
✗ Branch 29 not taken.
✓ Branch 36 taken 1 times.
✗ Branch 37 not taken.
1 ASSERT_EQ(expected.getFileSize(), actual.getFileSize());
24 1 PathName::compare(expected.getSourcePath(), actual.getSourcePath());
25 1 PathName::compare(expected.getDestinationPath(), actual.getDestinationPath());
26 }
27
28 } // namespace GTest
29
30 } // namespace Fw
31