| 11 | using namespace coding; |
| 12 | |
| 13 | UNIT_TEST(ReverseMapper_Smoke) |
| 14 | { |
| 15 | uint64_t data = 0x0123456789abcdef; |
| 16 | uint64_t rdata = 0x0; |
| 17 | TEST_EQUAL(8, ReverseMap(rdata, reinterpret_cast<uint8_t *>(&data), "uint64_t"), ()); |
| 18 | |
| 19 | // Test that reversed uint64_t was read. |
| 20 | TEST_EQUAL(0xefcdab8967452301, rdata, ()); |
| 21 | |
| 22 | // Test that underlying buffer was modified. |
| 23 | TEST_EQUAL(0xefcdab8967452301, data, ()); |
| 24 | } |
| 25 | |
| 26 | UNIT_TEST(Freeze_Smoke) |
| 27 | { |
nothing calls this directly
no test coverage detected