MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testPropertyType

Method testPropertyType

tests/qmetaobjectvalidatortest.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 static void testPropertyType()
84 {
85 for (int i = staticMetaObject.propertyOffset(); i < staticMetaObject.propertyCount(); ++i) {
86 const auto property = staticMetaObject.property(i);
87 if (strstr(property.name(), "fail") == property.name())
88 QVERIFY(QMetaObjectValidator::checkProperty(&staticMetaObject, property) == QMetaObjectValidatorResult::NoIssue);
89 else
90 QVERIFY((QMetaObjectValidator::checkProperty(&staticMetaObject, property) & QMetaObjectValidatorResult::UnknownPropertyType) == 0);
91 }
92 }
93
94 static void testObject()
95 {

Callers

nothing calls this directly

Calls 3

propertyCountMethod · 0.80
propertyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected