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

Function checkString

Libs/Widgets/Testing/Cpp/ctkErrorLogModelTestHelper.cpp:134–143  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

132
133//-----------------------------------------------------------------------------
134QString checkString(int line, const char* valueName, QString current, QString expected)
135{
136 if (current != expected)
137 {
138 QString errorMsg("Line %1 - Expected %2: %3 - Current %4: %5\n");
139 return errorMsg.arg(line).arg(valueName).
140 arg(static_cast<QString>(expected)).arg(valueName).arg(static_cast<QString>(current));
141 }
142 return QString();
143}
144
145//-----------------------------------------------------------------------------
146void processEvents(int durationInMSecs)

Callers 1

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected