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

Function checkBoolean

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

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

Source from the content-addressed store, hash-verified

120
121//-----------------------------------------------------------------------------
122QString checkBoolean(int line, const char* valueName, bool current, bool expected)
123{
124 if (current != expected)
125 {
126 QString errorMsg("Line %1 - Expected %2: %3 - Current %4: %5\n");
127 return errorMsg.arg(line).arg(valueName).
128 arg(static_cast<int>(expected)).arg(valueName).arg(static_cast<int>(current));
129 }
130 return QString();
131}
132
133//-----------------------------------------------------------------------------
134QString checkString(int line, const char* valueName, QString current, QString expected)

Callers 1

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected