MCPcopy Create free account
hub / github.com/commontk/CTK / TestCheckString

Function TestCheckString

Libs/Core/Testing/Cpp/ctkCoreTestingUtilitiesTest.cpp:102–115  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

100
101//----------------------------------------------------------------------------
102bool TestCheckString()
103{
104 const char* foo = "foo";
105 const char* bar = "bar";
106 if (!CheckString(__LINE__, "TestCheckString", 0, 0)
107 ||!CheckString(__LINE__, "TestCheckString", foo, foo)
108 || CheckString(__LINE__, "TestCheckString Expected Failure", foo, bar)
109 || CheckString(__LINE__, "TestCheckString Expected Failure", foo, 0))
110 {
111 qWarning() << "Line " << __LINE__ << " - TestCheckString failed";
112 return false;
113 }
114 return true;
115}
116
117//----------------------------------------------------------------------------
118bool TestCheckStringList()

Callers 1

Calls 1

CheckStringFunction · 0.85

Tested by

no test coverage detected