MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST

Function TEST

valdi/test/runtime/HexUtils_tests.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace ValdiTest {
20
21TEST(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
29TEST(HexUtils, insertPaddingWhenConvertingToString) {
30 std::array<Byte, 4> bytes = {244, 0, 45, 5};

Callers

nothing calls this directly

Calls 4

bytesToHexStringFunction · 0.85
hexStringToBytesFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected