| 3 | #include "coding/endianness.hpp" |
| 4 | |
| 5 | UNIT_TEST(Endianness1Byte) |
| 6 | { |
| 7 | TEST_EQUAL(uint8_t(0), ReverseByteOrder<uint8_t>(0), ()); |
| 8 | TEST_EQUAL(uint8_t(17), ReverseByteOrder<uint8_t>(17), ()); |
| 9 | TEST_EQUAL(uint8_t(255), ReverseByteOrder<uint8_t>(255), ()); |
| 10 | |
| 11 | TEST_EQUAL(uint8_t(0), ReverseByteOrder<uint8_t>(0), ()); |
| 12 | TEST_EQUAL(uint8_t(17), ReverseByteOrder<uint8_t>(17), ()); |
| 13 | TEST_EQUAL(uint8_t(255), ReverseByteOrder<uint8_t>(255), ()); |
| 14 | } |
| 15 | |
| 16 | UNIT_TEST(Endianness12Bytes) |
| 17 | { |
nothing calls this directly
no test coverage detected