GCC Code Coverage Report


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

Line Branch Exec Source
1 // ======================================================================
2 // \title Fw/FilePacket/GTest/Header.cpp
3 // \author bocchino
4 // \brief Test utilities for file packet headers
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
15 namespace Fw {
16
17 namespace GTest {
18
19 5 void FilePackets::Header ::compare(const FilePacket::Header& expected, const FilePacket::Header& actual) {
20
3/8
✓ Branch 10 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 5 times.
✗ Branch 19 not taken.
✗ Branch 25 not taken.
✗ Branch 29 not taken.
✓ Branch 36 taken 5 times.
✗ Branch 37 not taken.
5 ASSERT_EQ(expected.getType(), actual.getType());
21
3/8
✓ Branch 10 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 5 times.
✗ Branch 19 not taken.
✗ Branch 25 not taken.
✗ Branch 29 not taken.
✓ Branch 36 taken 5 times.
✗ Branch 37 not taken.
5 ASSERT_EQ(expected.getSequenceIndex(), actual.getSequenceIndex());
22 }
23
24 } // namespace GTest
25
26 } // namespace Fw
27