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

Method testROMetaObject

tests/propertyadaptortest.cpp:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void testROMetaObject()
116 {
117 PropertyTestObject obj;
118 auto adaptor = PropertyAdaptorFactory::create(ObjectInstance(&obj, "QObject"), this);
119 QVERIFY(adaptor);
120
121 QCOMPARE(adaptor->count(), 4);
122 verifyPropertyData(adaptor);
123 testProperty(adaptor, "parent", "QObject*", "QObject", PropertyData::Readable);
124 testProperty(adaptor, "thread", "QThread*", "QObject", PropertyData::Readable);
125 QVERIFY(!adaptor->canAddProperty());
126 }
127
128 void testRWMetaObject()
129 {

Callers

nothing calls this directly

Calls 3

ObjectInstanceClass · 0.50
countMethod · 0.45
canAddPropertyMethod · 0.45

Tested by

no test coverage detected