GCC Code Coverage Report


Directory: Fw/FilePacket/
File: GTest/PathName.cpp
Date: 2026-09-03 21:14:53
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 4 9 44.4%

Line Branch Exec Source
1 // ======================================================================
2 // \title Fw/FilePacket/GTest/PathName.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 2 void FilePackets::PathName ::compare(const FilePacket::PathName& expected, const FilePacket::PathName& actual) {
21
3/8
✓ Branch 10 taken 2 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 2 times.
✗ Branch 19 not taken.
✗ Branch 25 not taken.
✗ Branch 29 not taken.
✓ Branch 36 taken 2 times.
✗ Branch 37 not taken.
2 ASSERT_EQ(expected.getLength(), actual.getLength());
22 2 Bytes expectedPath(reinterpret_cast<const U8*>(expected.getValue()), expected.getLength());
23 2 Bytes actualPath(reinterpret_cast<const U8*>(actual.getValue()), actual.getLength());
24
1/1
✓ Branch 1 taken 2 times.
2 Bytes::compare(expectedPath, actualPath);
25 }
26
27 } // namespace GTest
28
29 } // namespace Fw
30