| 19 | namespace ValdiTest { |
| 20 | |
| 21 | TEST(HexUtils, canConvertHexToString) { |
| 22 | std::array<Byte, 2> bytes = {244, 45}; |
| 23 | |
| 24 | auto result = bytesToHexString(bytes.data(), bytes.size()); |
| 25 | |
| 26 | ASSERT_EQ("f42d", result); |
| 27 | } |
| 28 | |
| 29 | TEST(HexUtils, insertPaddingWhenConvertingToString) { |
| 30 | std::array<Byte, 4> bytes = {244, 0, 45, 5}; |
nothing calls this directly
no test coverage detected