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

Function TestCheckVariant

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

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

Source from the content-addressed store, hash-verified

133
134//----------------------------------------------------------------------------
135bool TestCheckVariant()
136{
137 QVariant foo = QVariant(4);
138 QVariant bar = QVariant(2);
139 if (!CheckVariant(__LINE__, "TestCheckVariant", QVariant(), QVariant())
140 ||!CheckVariant(__LINE__, "TestCheckVariant", foo, foo)
141 || CheckVariant(__LINE__, "TestCheckVariant Expected Failure", foo, bar))
142 {
143 qWarning() << "Line " << __LINE__ << " - TestCheckVariant failed";
144 return false;
145 }
146 return true;
147}
148

Callers 1

Calls 2

CheckVariantFunction · 0.85
QVariantClass · 0.50

Tested by

no test coverage detected