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

Method testUnknownVariantValue

tests/objectinstancetest.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 static void testUnknownVariantValue()
98 {
99 CustomType t;
100
101 ObjectInstance oi(QVariant::fromValue(t));
102 QCOMPARE(oi.type(), ObjectInstance::QtVariant);
103 QCOMPARE(oi.typeName(), QByteArray("CustomType"));
104 }
105
106 static void testUnknownVariantPointer()
107 {

Callers

nothing calls this directly

Calls 2

typeMethod · 0.45
typeNameMethod · 0.45

Tested by

no test coverage detected