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

Method testSequentialContainer

tests/propertyadaptortest.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void testSequentialContainer()
153 {
154 auto v = QList<int>() << 2 << 3 << 5 << 12;
155 auto adaptor = PropertyAdaptorFactory::create(ObjectInstance(QVariant::fromValue(v)), this);
156
157 QVERIFY(adaptor);
158 QCOMPARE(adaptor->count(), 4);
159 verifyPropertyData(adaptor);
160 testProperty(adaptor, "0", "int", "QList<int>", PropertyData::Readable);
161 testProperty(adaptor, "3", "int", "QList<int>", PropertyData::Readable);
162 QVERIFY(!adaptor->canAddProperty());
163 }
164
165 void testAssociativeContainer()
166 {

Callers

nothing calls this directly

Calls 3

ObjectInstanceClass · 0.50
countMethod · 0.45
canAddPropertyMethod · 0.45

Tested by

no test coverage detected