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

Function TestCodeConverter

src/twtest/codeconvert_t.cpp:51–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49void TestDbToMb();
50
51void TestCodeConverter()
52{
53 cDebug d("TestCodeConverter()");
54
55#if 0 //( !(HAVE_ICONV_H) && WCHAR_REP_IS_UCS2 )
56
57 //
58 // check that rep is really UCS2
59 //
60 TEST( LowASCIILooksLikeUCS2InWchart() );
61#endif
62
63 d.TraceDetail("Testing multi byte to double byte conversion.\n");
64 TestMbToDb();
65 d.TraceDetail("TestMbToDb() done.\n");
66
67 // Took out this test as it currently throws and exception.
68 // We expect not to be able to convert every UCS2 to a multi-byte char.
69 d.TraceDetail("Testing double byte to multi byte conversion.\n");
70 TestDbToMb();
71}
72
73// first last identify the lhs string
74// x identifies the start of the second string

Callers

nothing calls this directly

Calls 4

TestMbToDbFunction · 0.85
TestDbToMbFunction · 0.85
TraceDetailMethod · 0.60

Tested by

no test coverage detected