MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / test_hex_to_string

Function test_hex_to_string

src/twtest/displayencoder_t.cpp:158–162  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// TestHexToString -- locale specific test -- only works in Unicode //////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

156// TestHexToString -- locale specific test -- only works in Unicode
157///////////////////////////////////////////////////////////////////////////
158void test_hex_to_string(const std::string& str, const std::string& expected)
159{
160 std::string observed = cCharEncoderUtil::HexValueToCharString(str);
161 TEST(expected == observed);
162}
163
164void TestHexToString()
165{

Callers 1

TestHexToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected