| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title ASTERIA/Types/GTest/Bytes.cpp | ||
| 3 | // \author bocchino | ||
| 4 | // \brief cpp file for Bytes | ||
| 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/Types/GTest/Bytes.hpp> | ||
| 14 | |||
| 15 | namespace Fw { | ||
| 16 | |||
| 17 | namespace GTest { | ||
| 18 | |||
| 19 | ✗ | void Bytes ::compare(const Bytes& expected, const Bytes& actual) { | |
| 20 | ✗ | ASSERT_EQ(expected.size, actual.size); | |
| 21 | ✗ | for (size_t i = 0; i < expected.size; ++i) { | |
| 22 | ✗ | ASSERT_EQ(expected.bytes[i], actual.bytes[i]) << "At i=" << i << "\n"; | |
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | } // namespace GTest | ||
| 27 | |||
| 28 | } // namespace Fw | ||
| 29 |