| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title Fw/FilePacket/GTest/EndPacket.cpp | ||
| 3 | // \author bocchino | ||
| 4 | // \brief Test utilities for data 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 <CFDP/Checksum/GTest/Checksums.hpp> | ||
| 14 | #include <Fw/FilePacket/GTest/FilePackets.hpp> | ||
| 15 | #include <Fw/Types/GTest/Bytes.hpp> | ||
| 16 | |||
| 17 | namespace Fw { | ||
| 18 | |||
| 19 | namespace GTest { | ||
| 20 | |||
| 21 | 1 | void FilePackets::EndPacket ::compare(const FilePacket::EndPacket& expected, const FilePacket::EndPacket& actual) { | |
| 22 |
1/1✓ Branch 5 taken 1 times.
|
1 | FilePackets::Header::compare(expected.asHeader(), actual.asHeader()); |
| 23 |
1/1✓ Branch 2 taken 1 times.
|
1 | CFDP::Checksum expectedChecksum; |
| 24 |
1/1✓ Branch 2 taken 1 times.
|
1 | CFDP::Checksum actualChecksum; |
| 25 |
1/1✓ Branch 2 taken 1 times.
|
1 | expected.getChecksum(expectedChecksum); |
| 26 |
1/1✓ Branch 2 taken 1 times.
|
1 | actual.getChecksum(actualChecksum); |
| 27 |
1/1✓ Branch 1 taken 1 times.
|
1 | CFDP::GTest::Checksums::compare(expectedChecksum, actualChecksum); |
| 28 | 2 | } | |
| 29 | |||
| 30 | } // namespace GTest | ||
| 31 | |||
| 32 | } // namespace Fw | ||
| 33 |