OpenCoverage

qqmlvaluetypewrapper.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlvaluetypewrapper.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5extern const QLoggingCategory &lcBindingRemoval();-
6-
7const QV4::VTable QV4::QQmlValueTypeWrapper::static_vtbl = { (std::is_same<QV4::QQmlValueTypeWrapper::SuperClass, Object>::value) ? nullptr : &QV4::QQmlValueTypeWrapper::SuperClass::static_vtbl, (sizeof(QV4::QQmlValueTypeWrapper::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(QV4::QQmlValueTypeWrapper::Data) + (QV4::QQmlValueTypeWrapper::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(QV4::QQmlValueTypeWrapper::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), QV4::QQmlValueTypeWrapper::IsExecutionContext, QV4::QQmlValueTypeWrapper::IsString, QV4::QQmlValueTypeWrapper::IsObject, QV4::QQmlValueTypeWrapper::IsFunctionObject, QV4::QQmlValueTypeWrapper::IsErrorObject, QV4::QQmlValueTypeWrapper::IsArrayData, QV4::QQmlValueTypeWrapper::IsStringOrSymbol, QV4::QQmlValueTypeWrapper::MyType, { 0, 0, 0, 0 }, "QV4::QQmlValueTypeWrapper", QV4::QQmlValueTypeWrapper::virtualDestroy, QV4::QQmlValueTypeWrapper::Data::markObjects, QV4::QQmlValueTypeWrapper::virtualIsEqualTo, QV4::QQmlValueTypeWrapper::virtualGet, QV4::QQmlValueTypeWrapper::virtualPut, QV4::QQmlValueTypeWrapper::virtualDeleteProperty, QV4::QQmlValueTypeWrapper::virtualHasProperty, QV4::QQmlValueTypeWrapper::virtualGetOwnProperty, QV4::QQmlValueTypeWrapper::virtualDefineOwnProperty, QV4::QQmlValueTypeWrapper::virtualIsExtensible, QV4::QQmlValueTypeWrapper::virtualPreventExtensions, QV4::QQmlValueTypeWrapper::virtualGetPrototypeOf, QV4::QQmlValueTypeWrapper::virtualSetPrototypeOf, QV4::QQmlValueTypeWrapper::virtualGetLength, QV4::QQmlValueTypeWrapper::virtualAdvanceIterator, QV4::QQmlValueTypeWrapper::virtualInstanceOf, QV4::QQmlValueTypeWrapper::virtualCall, QV4::QQmlValueTypeWrapper::virtualCallAsConstructor, };-
8-
9namespace QV4 {-
10namespace Heap {-
11-
12struct QQmlValueTypeReference : QQmlValueTypeWrapper-
13{-
14 void init() {-
15 QQmlValueTypeWrapper::init();-
16 object.init();-
17 }
executed 5148 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
5148
18 void destroy() {-
19 object.destroy();-
20 QQmlValueTypeWrapper::destroy();-
21 }
executed 5144 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
5144
22 QQmlQPointer<QObject> object;-
23 int property;-
24};-
25-
26}-
27-
28struct QQmlValueTypeReference : public QQmlValueTypeWrapper-
29{-
30 private: QQmlValueTypeReference() = delete; QQmlValueTypeReference(const QQmlValueTypeReference &) = delete; QQmlValueTypeReference &operator=(const QQmlValueTypeReference &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 369666 times by 41 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
typedef QV4::Heap::QQmlValueTypeReference Data; typedef QQmlValueTypeWrapper SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 385110 times by 44 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
&static_vtbl;
executed 385110 times by 44 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QQmlValueTypeReference *d_unchecked() const { return
executed 91094 times by 32 tests: return static_cast<QV4::Heap::QQmlValueTypeReference *>(m());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
static_cast<QV4::Heap::QQmlValueTypeReference *>(m());
executed 91094 times by 32 tests: return static_cast<QV4::Heap::QQmlValueTypeReference *>(m());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
} QV4::Heap::QQmlValueTypeReference *d() const { QV4::Heap::QQmlValueTypeReference *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 85946 times by 32 tests: return dptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
dptr;
executed 85946 times by 32 tests: return dptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::QQmlValueTypeReference >::value), "std::is_trivial< QV4::Heap::QQmlValueTypeReference >::value");
0-385110
31 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 5144 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
5144
32-
33 bool readReferenceValue() const;-
34};-
35-
36}-
37-
38const QV4::VTable QV4::QQmlValueTypeReference::static_vtbl = { (std::is_same<QV4::QQmlValueTypeReference::SuperClass, Object>::value) ? nullptr : &QV4::QQmlValueTypeReference::SuperClass::static_vtbl, (sizeof(QV4::QQmlValueTypeReference::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(QV4::QQmlValueTypeReference::Data) + (QV4::QQmlValueTypeReference::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(QV4::QQmlValueTypeReference::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), QV4::QQmlValueTypeReference::IsExecutionContext, QV4::QQmlValueTypeReference::IsString, QV4::QQmlValueTypeReference::IsObject, QV4::QQmlValueTypeReference::IsFunctionObject, QV4::QQmlValueTypeReference::IsErrorObject, QV4::QQmlValueTypeReference::IsArrayData, QV4::QQmlValueTypeReference::IsStringOrSymbol, QV4::QQmlValueTypeReference::MyType, { 0, 0, 0, 0 }, "QV4::QQmlValueTypeReference", QV4::QQmlValueTypeReference::virtualDestroy, QV4::QQmlValueTypeReference::Data::markObjects, QV4::QQmlValueTypeReference::virtualIsEqualTo, QV4::QQmlValueTypeReference::virtualGet, QV4::QQmlValueTypeReference::virtualPut, QV4::QQmlValueTypeReference::virtualDeleteProperty, QV4::QQmlValueTypeReference::virtualHasProperty, QV4::QQmlValueTypeReference::virtualGetOwnProperty, QV4::QQmlValueTypeReference::virtualDefineOwnProperty, QV4::QQmlValueTypeReference::virtualIsExtensible, QV4::QQmlValueTypeReference::virtualPreventExtensions, QV4::QQmlValueTypeReference::virtualGetPrototypeOf, QV4::QQmlValueTypeReference::virtualSetPrototypeOf, QV4::QQmlValueTypeReference::virtualGetLength, QV4::QQmlValueTypeReference::virtualAdvanceIterator, QV4::QQmlValueTypeReference::virtualInstanceOf, QV4::QQmlValueTypeReference::virtualCall, QV4::QQmlValueTypeReference::virtualCallAsConstructor, };-
39-
40using namespace QV4;-
41-
42void Heap::QQmlValueTypeWrapper::destroy()-
43{-
44 if (gadgetPtr
gadgetPtrDescription
TRUEevaluated 368572 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • ...
FALSEevaluated 422 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
) {
422-368572
45 valueType->metaType.destruct(gadgetPtr);-
46 ::operator delete(gadgetPtr);-
47 }
executed 368572 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • ...
368572
48 if (_propertyCache
_propertyCacheDescription
TRUEevaluated 368992 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
2-368992
49 _propertyCache->release();
executed 368992 times by 43 tests: _propertyCache->release();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • ...
368992
50 Object::destroy();-
51}
executed 368994 times by 43 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • ...
368994
52-
53void Heap::QQmlValueTypeWrapper::setValue(const QVariant &value) const-
54{-
55 ((valueType->typeId == value.userType()) ? static_cast<void>(0) : qt_assert("valueType->typeId == value.userType()", __FILE__, 108));-
56 if (gadgetPtr
gadgetPtrDescription
TRUEevaluated 88 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 364080 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
)
88-364080
57 valueType->metaType.destruct(gadgetPtr);
executed 88 times by 3 tests: valueType->metaType.destruct(gadgetPtr);
Executed by:
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
88
58 if (!gadgetPtr
!gadgetPtrDescription
TRUEevaluated 364080 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
FALSEevaluated 88 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
)
88-364080
59 gadgetPtr = ::operator new(valueType->metaType.sizeOf());
executed 364080 times by 29 tests: gadgetPtr = ::operator new(valueType->metaType.sizeOf());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
364080
60 valueType->metaType.construct(gadgetPtr, value.constData());-
61}
executed 364168 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
364168
62-
63QVariant Heap::QQmlValueTypeWrapper::toVariant() const-
64{-
65 ((gadgetPtr) ? static_cast<void>(0) : qt_assert("gadgetPtr", __FILE__, 118));-
66 return
executed 358802 times by 24 tests: return QVariant(valueType->typeId, gadgetPtr);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
QVariant(valueType->typeId, gadgetPtr);
executed 358802 times by 24 tests: return QVariant(valueType->typeId, gadgetPtr);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
358802
67}-
68-
69-
70bool QQmlValueTypeReference::readReferenceValue() const-
71{-
72 if (!d()->object
!d()->objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 5276 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
)
2-5276
73 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
2
74-
75-
76 QMetaProperty writebackProperty = d()->object->metaObject()->property(d()->property);-
77 if (writebackProperty.userType() == QMetaType::QVariant
writebackPrope...Type::QVariantDescription
TRUEevaluated 320 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 4956 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
) {
320-4956
78-
79 QVariant variantReferenceValue;-
80-
81 void *a[] = { &variantReferenceValue, nullptr };-
82 QMetaObject::metacall(d()->object, QMetaObject::ReadProperty, d()->property, a);-
83-
84 int variantReferenceType = variantReferenceValue.userType();-
85 if (variantReferenceType != typeId()
variantReferen...pe != typeId()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 312 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
) {
8-312
86-
87-
88-
89-
90 if (QQmlValueTypeFactory::isValueType(variantReferenceType)
QQmlValueTypeF...ReferenceType)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEnever evaluated
) {
0-8
91 QQmlPropertyCache *cache = nullptr;-
92 if (const
const QMetaObj...ReferenceType)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
QMetaObject *mo = QQmlValueTypeFactory::metaObjectForMetaType(variantReferenceType)
const QMetaObj...ReferenceType)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
2-6
93 cache = QJSEnginePrivate::get(engine())->cache(mo);
executed 6 times by 1 test: cache = QJSEnginePrivate::get(engine())->cache(mo);
Executed by:
  • tst_qqmlvaluetypes
6
94 if (d()->gadgetPtr
d()->gadgetPtrDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
) {
2-6
95 d()->valueType->metaType.destruct(d()->gadgetPtr);-
96 ::operator delete(d()->gadgetPtr);-
97 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
6
98 d()->gadgetPtr =nullptr;-
99 d()->setPropertyCache(cache);-
100 d()->valueType = QQmlValueTypeFactory::valueType(variantReferenceType);-
101 if (!cache
!cacheDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
2-6
102 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
2
103 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
else {
6
104 return
never executed: return false;
false;
never executed: return false;
0
105 }-
106 }-
107 d()->setValue(variantReferenceValue);-
108 }
executed 318 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
else {
318
109 if (!d()->gadgetPtr
!d()->gadgetPtrDescription
TRUEevaluated 4498 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
FALSEevaluated 458 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
) {
458-4498
110 d()->gadgetPtr = ::operator new(d()->valueType->metaType.sizeOf());-
111 d()->valueType->metaType.construct(d()->gadgetPtr, nullptr);-
112 }
executed 4498 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
4498
113-
114 void *args[] = { d()->gadgetPtr, nullptr };-
115 QMetaObject::metacall(d()->object, QMetaObject::ReadProperty, d()->property, args);-
116 }
executed 4956 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
4956
117 return
executed 5274 times by 29 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
true;
executed 5274 times by 29 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • ...
5274
118}-
119-
120void QQmlValueTypeWrapper::initProto(ExecutionEngine *v4)-
121{-
122 if (v4->valueTypeWrapperPrototype()->d_unchecked()
v4->valueTypeW...>d_unchecked()Description
TRUEevaluated 368370 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
FALSEevaluated 628 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
)
628-368370
123 return;
executed 368370 times by 35 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
368370
124-
125 Scope scope(v4);-
126 ScopedObject o(scope, v4->newObject());-
127 o->defineDefaultProperty(v4->id_toString(), method_toString, 1);-
128 v4->jsObjects[QV4::ExecutionEngine::ValueTypeProto] = o->d();-
129}
executed 628 times by 44 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
628
130-
131ReturnedValue QQmlValueTypeWrapper::create(ExecutionEngine *engine, QObject *object, int property, const QMetaObject *metaObject, int typeId)-
132{-
133 Scope scope(engine);-
134 initProto(engine);-
135-
136 Scoped<QQmlValueTypeReference> r(scope, engine->memoryManager->allocate<QQmlValueTypeReference>());-
137 r->d()->object = object;-
138 r->d()->property = property;-
139 r->d()->setPropertyCache(QJSEnginePrivate::get(engine)->cache(metaObject));-
140 r->d()->valueType = QQmlValueTypeFactory::valueType(typeId);-
141 r->d()->gadgetPtr = nullptr;-
142 return
executed 5148 times by 32 tests: return r->asReturnedValue();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
r->asReturnedValue();
executed 5148 times by 32 tests: return r->asReturnedValue();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
5148
143}-
144-
145ReturnedValue QQmlValueTypeWrapper::create(ExecutionEngine *engine, const QVariant &value, const QMetaObject *metaObject, int typeId)-
146{-
147 Scope scope(engine);-
148 initProto(engine);-
149-
150 Scoped<QQmlValueTypeWrapper> r(scope, engine->memoryManager->allocate<QQmlValueTypeWrapper>());-
151 r->d()->setPropertyCache(QJSEnginePrivate::get(engine)->cache(metaObject));-
152 r->d()->valueType = QQmlValueTypeFactory::valueType(typeId);-
153 r->d()->gadgetPtr = nullptr;-
154 r->d()->setValue(value);-
155 return
executed 363850 times by 29 tests: return r->asReturnedValue();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
r->asReturnedValue();
executed 363850 times by 29 tests: return r->asReturnedValue();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • ...
363850
156}-
157-
158QVariant QQmlValueTypeWrapper::toVariant() const-
159{-
160 if (const
const QQmlValu...peReference>()Description
TRUEevaluated 834 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickpincharea
  • tst_qquickstates
FALSEevaluated 179230 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEevaluated 834 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickpincharea
  • tst_qquickstates
FALSEevaluated 179230 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
)
834-179230
161 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEevaluated 834 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickpincharea
  • tst_qquickstates
)
0-834
162 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
163 return
executed 180064 times by 24 tests: return d()->toVariant();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
d()->toVariant();
executed 180064 times by 24 tests: return d()->toVariant();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_scenegraph
  • tst_sharedimage
180064
164}-
165-
166bool QQmlValueTypeWrapper::toGadget(void *data) const-
167{-
168 if (const
const QQmlValu...peReference>()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
0-2
169 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
170 return
never executed: return false;
false;
never executed: return false;
0
171 const int typeId = d()->valueType->typeId;-
172 QMetaType::destruct(typeId, data);-
173 QMetaType::construct(typeId, data, d()->gadgetPtr);-
174 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypes
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypes
2
175}-
176-
177bool QQmlValueTypeWrapper::virtualIsEqualTo(Managed *m, Managed *other)-
178{-
179 ((m && m->as<QQmlValueTypeWrapper>() && other) ? static_cast<void>(0) : qt_assert("m && m->as<QQmlValueTypeWrapper>() && other", __FILE__, 232));-
180 QV4::QQmlValueTypeWrapper *lv = static_cast<QQmlValueTypeWrapper *>(m);-
181-
182 if (QV4::VariantObject *rv = other->as<VariantObject>()
QV4::VariantOb...riantObject>()Description
TRUEnever evaluated
FALSEevaluated 178734 times by 10 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
)
0-178734
183 return
never executed: return lv->isEqual(rv->d()->data());
lv->isEqual(rv->d()->data());
never executed: return lv->isEqual(rv->d()->data());
0
184-
185 if (QV4::QQmlValueTypeWrapper *v = other->as<QQmlValueTypeWrapper>()
QV4::QQmlValue...TypeWrapper>()Description
TRUEevaluated 178726 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
)
8-178726
186 return
executed 178726 times by 9 tests: return lv->isEqual(v->toVariant());
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
lv->isEqual(v->toVariant());
executed 178726 times by 9 tests: return lv->isEqual(v->toVariant());
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
178726
187-
188 return
executed 8 times by 2 tests: return false;
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
false;
executed 8 times by 2 tests: return false;
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
8
189}-
190-
191PropertyAttributes QQmlValueTypeWrapper::virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p)-
192{-
193 if (id.isString()
id.isString()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
FALSEnever evaluated
) {
0-14
194 Scope scope(m);-
195 ScopedString n(scope, id.asStringOrSymbol());-
196 const QQmlValueTypeWrapper *r = static_cast<const QQmlValueTypeWrapper *>(m);-
197 QQmlPropertyData *result = r->d()->propertyCache()->property(n.getPointer(), nullptr, nullptr);-
198 return
executed 14 times by 2 tests: return result ? Attr_Data : Attr_Invalid;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
result ? Attr_Data : Attr_Invalid;
executed 14 times by 2 tests: return result ? Attr_Data : Attr_Invalid;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
14
199 }-
200-
201 return
never executed: return QV4::Object::virtualGetOwnProperty(m, id, p);
QV4::Object::virtualGetOwnProperty(m, id, p);
never executed: return QV4::Object::virtualGetOwnProperty(m, id, p);
0
202}-
203-
204void QQmlValueTypeWrapper::virtualAdvanceIterator(Managed *m, ObjectIterator *it, Value *name, uint *index, Property *p, PropertyAttributes *attributes)-
205{-
206 name->setM(nullptr);-
207 *index = -
208 (0x7fffffff * 2U + 1U)-
209 ;-
210-
211 QQmlValueTypeWrapper *that = static_cast<QQmlValueTypeWrapper*>(m);-
212-
213 if (QQmlValueTypeReference *ref = that->as<QQmlValueTypeReference>()
QQmlValueTypeR...peReference>()Description
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
) {
0-14
214 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
215 return;
never executed: return;
0
216 }
never executed: end of block
0
217-
218 if (that->d()->propertyCache()
that->d()->propertyCache()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
FALSEnever evaluated
) {
0-14
219 const QMetaObject *mo = that->d()->propertyCache()->createMetaObject();-
220 const int propertyCount = mo->propertyCount();-
221 if (it->arrayIndex < static_cast<uint>(propertyCount)
it->arrayIndex...propertyCount)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
) {
4-10
222 Scope scope(that->engine());-
223 ScopedString propName(scope, that->engine()->newString(QString::fromUtf8(mo->property(it->arrayIndex).name())));-
224 name->setM(propName->d());-
225 ++it->arrayIndex;-
226 *attributes = QV4::Attr_Data;-
227 p->value = that->QV4::Object::get(propName);-
228 return;
executed 10 times by 2 tests: return;
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
10
229 }-
230 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
4
231 QV4::Object::virtualAdvanceIterator(m, it, name, index, p, attributes);-
232}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
4
233-
234bool QQmlValueTypeWrapper::isEqual(const QVariant& value) const-
235{-
236 if (const
const QQmlValu...peReference>()Description
TRUEevaluated 444 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickloader
FALSEevaluated 178282 times by 5 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEevaluated 444 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickloader
FALSEevaluated 178282 times by 5 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
)
444-178282
237 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEevaluated 444 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickloader
)
0-444
238 return
never executed: return false;
false;
never executed: return false;
0
239 return
executed 178726 times by 9 tests: return (value == d()->toVariant());
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
(value == d()->toVariant());
executed 178726 times by 9 tests: return (value == d()->toVariant());
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
178726
240}-
241-
242int QQmlValueTypeWrapper::typeId() const-
243{-
244 return
executed 322 times by 4 tests: return d()->valueType->typeId;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
d()->valueType->typeId;
executed 322 times by 4 tests: return d()->valueType->typeId;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
322
245}-
246-
247bool QQmlValueTypeWrapper::write(QObject *target, int propertyIndex) const-
248{-
249 bool destructGadgetOnExit = false;-
250 void *gadget = 0;-
251 if (const
const QQmlValu...peReference>()Description
TRUEevaluated 328 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 2142 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_scenegraph
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEevaluated 328 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 2142 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_scenegraph
) {
328-2142
252 if (!d()->gadgetPtr
!d()->gadgetPtrDescription
TRUEevaluated 328 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
FALSEnever evaluated
) {
0-328
253 gadget = static_cast<void*>(-
254 __builtin_alloca (-
255 d()->valueType->metaType.sizeOf()-
256 )-
257 );-
258 d()->gadgetPtr = gadget;-
259 d()->valueType->metaType.construct(d()->gadgetPtr, nullptr);-
260 destructGadgetOnExit = true;-
261 }
executed 328 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
328
262 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEevaluated 328 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
)
0-328
263 return
never executed: return false;
false;
never executed: return false;
0
264 }
executed 328 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
328
265-
266 int flags = 0;-
267 int status = -1;-
268 void *a[] = { d()->gadgetPtr, nullptr, &status, &flags };-
269 QMetaObject::metacall(target, QMetaObject::WriteProperty, propertyIndex, a);-
270-
271 if (destructGadgetOnExit
destructGadgetOnExitDescription
TRUEevaluated 328 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 2142 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_scenegraph
) {
328-2142
272 d()->valueType->metaType.destruct(d()->gadgetPtr);-
273 d()->gadgetPtr = nullptr;-
274 }
executed 328 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
328
275 return
executed 2470 times by 24 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
true;
executed 2470 times by 24 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
2470
276}-
277-
278ReturnedValue QQmlValueTypeWrapper::method_toString(const FunctionObject *b, const Value *thisObject, const Value *, int)-
279{-
280 const Object *o = thisObject->as<Object>();-
281 if (!o
!oDescription
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
)
0-22
282 return
never executed: return b->engine()->throwTypeError();
b->engine()->throwTypeError();
never executed: return b->engine()->throwTypeError();
0
283 const QQmlValueTypeWrapper *w = o->as<QQmlValueTypeWrapper>();-
284 if (!w
!wDescription
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
)
0-22
285 return
never executed: return b->engine()->throwTypeError();
b->engine()->throwTypeError();
never executed: return b->engine()->throwTypeError();
0
286-
287 if (const
const QQmlValu...peReference>()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
QQmlValueTypeReference *ref = w->as<QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
4-18
288 if (!ref->readReferenceValue()
!ref->readReferenceValue()Description
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
)
0-18
289 return
never executed: return QV4::Encode::undefined();
QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
290-
291 QString result;-
292-
293 QString convertResult;-
294 convertResult.~QString();-
295 if (QMetaType::convert(w->d()->gadgetPtr, w->d()->valueType->typeId, &convertResult, QMetaType::QString)
QMetaType::con...Type::QString)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
) {
2-20
296 result = convertResult;-
297 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
else {
2
298 result += QString::fromUtf8(QMetaType::typeName(w->d()->valueType->typeId))-
299 + QLatin1Char('(');-
300 const QMetaObject *mo = w->d()->propertyCache()->metaObject();-
301 const int propCount = mo->propertyCount();-
302 for (int i = 0; i < propCount
i < propCountDescription
TRUEevaluated 144 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
; ++i) {
20-144
303 if (mo->property(i).isDesignable()
mo->property(i).isDesignable()Description
TRUEevaluated 128 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
) {
16-128
304 QVariant value = mo->property(i).readOnGadget(w->d()->gadgetPtr);-
305 if (i > 0
i > 0Description
TRUEevaluated 110 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
)
18-110
306 result += QLatin1String(", ");
executed 110 times by 2 tests: result += QLatin1String(", ");
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
110
307 result += value.toString();-
308 }
executed 128 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
128
309 }
executed 144 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
144
310 result += QLatin1Char(')');-
311 }
executed 20 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
20
312 return
executed 22 times by 2 tests: return Encode(b->engine()->newString(result));
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
Encode(b->engine()->newString(result));
executed 22 times by 2 tests: return Encode(b->engine()->newString(result));
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
22
313}-
314-
315ReturnedValue QQmlValueTypeWrapper::virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty)-
316{-
317 ((m->as<QQmlValueTypeWrapper>()) ? static_cast<void>(0) : qt_assert("m->as<QQmlValueTypeWrapper>()", __FILE__, 364));-
318-
319 if (!id.isString()
!id.isString()Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 8280 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
40-8280
320 return
executed 40 times by 3 tests: return Object::virtualGet(m, id, receiver, hasProperty);
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
Object::virtualGet(m, id, receiver, hasProperty);
executed 40 times by 3 tests: return Object::virtualGet(m, id, receiver, hasProperty);
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
40
321-
322 const QQmlValueTypeWrapper *r = static_cast<const QQmlValueTypeWrapper *>(m);-
323 QV4::ExecutionEngine *v4 = r->engine();-
324 Scope scope(v4);-
325 ScopedString name(scope, id.asStringOrSymbol());-
326-
327-
328 if (const
const QQmlValu...peReference>()Description
TRUEevaluated 3582 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktaphandler
  • tst_qquicktextinput
FALSEevaluated 4698 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquickworkerscript
QQmlValueTypeReference *reference = r->as<QQmlValueTypeReference>()
const QQmlValu...peReference>()Description
TRUEevaluated 3582 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktaphandler
  • tst_qquicktextinput
FALSEevaluated 4698 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquickworkerscript
) {
3582-4698
329 if (!reference->readReferenceValue()
!reference->re...ferenceValue()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 3580 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktaphandler
  • tst_qquicktextinput
)
2-3580
330 return
executed 2 times by 1 test: return Primitive::undefinedValue().asReturnedValue();
Executed by:
  • tst_qqmlvaluetypes
Primitive::undefinedValue().asReturnedValue();
executed 2 times by 1 test: return Primitive::undefinedValue().asReturnedValue();
Executed by:
  • tst_qqmlvaluetypes
2
331 }
executed 3580 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktaphandler
  • tst_qquicktextinput
3580
332-
333 QQmlPropertyData *result = r->d()->propertyCache()->property(name.getPointer(), nullptr, nullptr);-
334 if (!result
!resultDescription
TRUEevaluated 74 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 8204 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
74-8204
335 return
executed 74 times by 4 tests: return Object::virtualGet(m, id, receiver, hasProperty);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
Object::virtualGet(m, id, receiver, hasProperty);
executed 74 times by 4 tests: return Object::virtualGet(m, id, receiver, hasProperty);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
74
336-
337 if (hasProperty
hasPropertyDescription
TRUEnever evaluated
FALSEevaluated 8204 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-8204
338 *
never executed: *hasProperty = true;
hasProperty = true;
never executed: *hasProperty = true;
0
339-
340 if (result->isFunction()
result->isFunction()Description
TRUEevaluated 344 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 7860 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
344-7860
341-
342 return
executed 344 times by 5 tests: return QV4::QObjectMethod::create(v4->rootContext(), r, result->coreIndex());
Executed by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
QV4::QObjectMethod::create(v4->rootContext(), r, result->coreIndex());
executed 344 times by 5 tests: return QV4::QObjectMethod::create(v4->rootContext(), r, result->coreIndex());
Executed by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
344
343 const QMetaObject *metaObject = r->d()->propertyCache()->metaObject();-
344-
345 int index = result->coreIndex();-
346 QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(QMetaObject::ReadProperty, &metaObject, &index);-
347-
348 void *gadget = r->d()->gadgetPtr;-
349-
350-
351 if (result->propType() == QMetaType::QReal
result->propTy...etaType::QRealDescription
TRUEevaluated 5296 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquickworkerscript
FALSEevaluated 2564 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquicktaphandler
  • tst_qquicktextinput
) { qreal v; void *args[] = { &v, 0 }; metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args); return
executed 5296 times by 13 tests: return QV4::Encode(qreal(v));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquickworkerscript
QV4::Encode(qreal(v));
executed 5296 times by 13 tests: return QV4::Encode(qreal(v));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquickworkerscript
};
2564-5296
352 if (result->propType() == QMetaType::Int
result->propTy...QMetaType::IntDescription
TRUEevaluated 326 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickmousearea
  • tst_qquicktextinput
FALSEevaluated 2238 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
|| result->isEnum()
result->isEnum()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 2236 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
) { int v; void *args[] = { &v, 0 }; metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args); return
executed 328 times by 9 tests: return QV4::Encode(int(v));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickmousearea
  • tst_qquicktextinput
QV4::Encode(int(v));
executed 328 times by 9 tests: return QV4::Encode(int(v));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickmousearea
  • tst_qquicktextinput
};
2-2238
353 if (result->propType() == QMetaType::Int
result->propTy...QMetaType::IntDescription
TRUEnever evaluated
FALSEevaluated 2236 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
) { int v; void *args[] = { &v, 0 }; metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args); return
never executed: return QV4::Encode(int(v));
QV4::Encode(int(v));
never executed: return QV4::Encode(int(v));
};
0-2236
354 if (result->propType() == QMetaType::QString
result->propTy...aType::QStringDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 2218 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
) { QString v; void *args[] = { &v, 0 }; metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args); return
executed 18 times by 2 tests: return QV4::Encode(v4->newString(v));
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QV4::Encode(v4->newString(v));
executed 18 times by 2 tests: return QV4::Encode(v4->newString(v));
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
};
18-2218
355 if (result->propType() == QMetaType::Bool
result->propTy...MetaType::BoolDescription
TRUEevaluated 98 times by 3 tests
Evaluated by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 2120 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
) { bool v; void *args[] = { &v, 0 }; metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args); return
executed 98 times by 3 tests: return QV4::Encode(bool(v));
Executed by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QV4::Encode(bool(v));
executed 98 times by 3 tests: return QV4::Encode(bool(v));
Executed by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
};
98-2120
356-
357 QVariant v;-
358 void *args[] = { nullptr, nullptr };-
359 if (result->propType() == QMetaType::QVariant
result->propTy...Type::QVariantDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 2118 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
) {
2-2118
360 args[0] = &v;-
361 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
else {
2
362 v = QVariant(result->propType(), static_cast<void *>(nullptr));-
363 args[0] = v.data();-
364 }
executed 2118 times by 5 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
2118
365 metaObject->d.static_metacall(reinterpret_cast<QObject*>(gadget), QMetaObject::ReadProperty, index, args);-
366 return
executed 2120 times by 5 tests: return v4->fromVariant(v);
Executed by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
v4->fromVariant(v);
executed 2120 times by 5 tests: return v4->fromVariant(v);
Executed by:
  • tst_flickableinterop
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquicktaphandler
2120
367-
368}-
369-
370bool QQmlValueTypeWrapper::virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver)-
371{-
372 if (!id.isString()
!id.isString()Description
TRUEnever evaluated
FALSEevaluated 88 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
)
0-88
373 return
never executed: return Object::virtualPut(m, id, value, receiver);
Object::virtualPut(m, id, value, receiver);
never executed: return Object::virtualPut(m, id, value, receiver);
0
374-
375 ((m->as<QQmlValueTypeWrapper>()) ? static_cast<void>(0) : qt_assert("m->as<QQmlValueTypeWrapper>()", __FILE__, 431));-
376 ExecutionEngine *v4 = static_cast<QQmlValueTypeWrapper *>(m)->engine();-
377 Scope scope(v4);-
378 if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEevaluated 88 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
)
0-88
379 return
never executed: return false;
false;
never executed: return false;
0
380-
381 Scoped<QQmlValueTypeWrapper> r(scope, static_cast<QQmlValueTypeWrapper *>(m));-
382 Scoped<QQmlValueTypeReference> reference(scope, m->d());-
383-
384 int writeBackPropertyType = -1;-
385-
386 if (reference
referenceDescription
TRUEevaluated 74 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
) {
14-74
387 QMetaProperty writebackProperty = reference->d()->object->metaObject()->property(reference->d()->property);-
388-
389 if (!writebackProperty.isWritable()
!writebackProp...y.isWritable()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 72 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
|| !reference->readReferenceValue()
!reference->re...ferenceValue()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 70 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
)
2-72
390 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
4
391-
392 writeBackPropertyType = writebackProperty.userType();-
393 }
executed 70 times by 6 tests: end of block
Executed by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
70
394-
395 ScopedString name(scope, id.asStringOrSymbol());-
396-
397 const QMetaObject *metaObject = r->d()->propertyCache()->metaObject();-
398 const QQmlPropertyData *pd = r->d()->propertyCache()->property(name.getPointer(), nullptr, nullptr);-
399 if (!pd
!pdDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 82 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
)
2-82
400 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
2
401-
402 if (reference
referenceDescription
TRUEevaluated 68 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
) {
14-68
403 QV4::ScopedFunctionObject f(scope, value);-
404 const QQmlQPointer<QObject> &referenceObject = reference->d()->object;-
405 const int referencePropertyIndex = reference->d()->property;-
406-
407 if (f
fDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 60 times by 5 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
) {
8-60
408 if (!f->isBinding()
!f->isBinding()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
) {
2-6
409-
410 QString error = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot assign JavaScript function to value-type property")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot assign JavaScript function to value-type property" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
411 ScopedString e(scope, v4->newString(error));-
412 v4->throwError(e);-
413 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
2
414 }-
415-
416 QQmlContextData *context = v4->callingQmlContext();-
417-
418 QQmlPropertyData cacheData;-
419 cacheData.setWritable(true);-
420 cacheData.setPropType(writeBackPropertyType);-
421 cacheData.setCoreIndex(referencePropertyIndex);-
422-
423 QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, (const Value &)f);-
424-
425 QV4::ScopedFunctionObject f(scope, bindingFunction->bindingFunction());-
426 QV4::ScopedContext ctx(scope, f->scope());-
427 QQmlBinding *newBinding = QQmlBinding::create(&cacheData, f->function(), referenceObject, context, ctx);-
428 newBinding->setSourceLocation(bindingFunction->currentLocation());-
429 if (f->isBoundFunction()
f->isBoundFunction()Description
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
)
0-6
430 newBinding->setBoundFunction(static_cast<QV4::BoundFunction *>(f.getPointer()));
never executed: newBinding->setBoundFunction(static_cast<QV4::BoundFunction *>(f.getPointer()));
0
431 newBinding->setSourceLocation(bindingFunction->currentLocation());-
432 newBinding->setTarget(referenceObject, cacheData, pd);-
433 QQmlPropertyPrivate::setBinding(newBinding);-
434 return
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
true;
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
6
435 } else {-
436 if (__builtin_expect(!!(lcBindingRemoval().isInfoEnabled()), false)
__builtin_expe...led()), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 58 times by 4 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
) {
2-58
437 if (auto binding = QQmlPropertyPrivate::binding(referenceObject, QQmlPropertyIndex(referencePropertyIndex, pd->coreIndex()))
auto binding =...>coreIndex()))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEnever evaluated
) {
0-2
438 ((!binding->isValueTypeProxy()) ? static_cast<void>(0) : qt_assert("!binding->isValueTypeProxy()", __FILE__, 494));-
439 const auto qmlBinding = static_cast<const QQmlBinding*>(binding);-
440 const auto stackFrame = v4->currentStackFrame;-
441 for (bool qt_category_enabled = lcBindingRemoval().isInfoEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
; qt_category_enabled = false) QMessageLogger(
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
4422
4432
4442
4452
446 __FILE__
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
447 ,
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
4482
4492
4502
4512
452 502
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
453 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObject()->property(referencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber())
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
4542
4552
4562
4572
458 ;
executed 2 times by 1 test: QMessageLogger( __FILE__ , 502 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s which was initially bound at %s by setting \"%s\" at %s:%d", referenceObject->metaObject()->className(), referenceObject->metaObje...ferencePropertyIndex).name(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData(), metaObject->property(pd->coreIndex()).name(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber()) ;
Executed by:
  • tst_qqmlbinding
2
459 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlbinding
2
460 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlbinding
2
461 QQmlPropertyPrivate::removeBinding(referenceObject, QQmlPropertyIndex(referencePropertyIndex, pd->coreIndex()));-
462 }
executed 60 times by 5 tests: end of block
Executed by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
60
463 }-
464-
465 QMetaProperty property = metaObject->property(pd->coreIndex());-
466 ((property.isValid()) ? static_cast<void>(0) : qt_assert("property.isValid()", __FILE__, 510));-
467-
468 QVariant v = v4->toVariant(value, property.userType());-
469-
470 if (property.isEnumType()
property.isEnumType()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
FALSEevaluated 70 times by 5 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
&& (
(QMetaType::Ty...taType::DoubleDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
QMetaType::Type)v.type() == QMetaType::Double
(QMetaType::Ty...taType::DoubleDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
)
0-70
471 v = v.toInt();
never executed: v = v.toInt();
0
472-
473 void *gadget = r->d()->gadgetPtr;-
474 property.writeOnGadget(gadget, v);-
475-
476-
477 if (reference
referenceDescription
TRUEevaluated 60 times by 5 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
) {
14-60
478 if (writeBackPropertyType == QMetaType::QVariant
writeBackPrope...Type::QVariantDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 48 times by 5 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
) {
12-48
479 QVariant variantReferenceValue = r->d()->toVariant();-
480-
481 int flags = 0;-
482 int status = -1;-
483 void *a[] = { &variantReferenceValue, nullptr, &status, &flags };-
484 QMetaObject::metacall(reference->d()->object, QMetaObject::WriteProperty, reference->d()->property, a);-
485-
486 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
else {
12
487 int flags = 0;-
488 int status = -1;-
489 void *a[] = { r->d()->gadgetPtr, nullptr, &status, &flags };-
490 QMetaObject::metacall(reference->d()->object, QMetaObject::WriteProperty, reference->d()->property, a);-
491 }
executed 48 times by 5 tests: end of block
Executed by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
48
492 }-
493-
494 return
executed 74 times by 5 tests: return true;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
true;
executed 74 times by 5 tests: return true;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdrag
74
495}-
496-
497-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0