| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | extern const QLoggingCategory &lcBindingRemoval(); | - |
| 6 | | - |
| 7 | const 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 | | - |
| 9 | namespace QV4 { | - |
| 10 | namespace Heap { | - |
| 11 | | - |
| 12 | struct QQmlValueTypeReference : QQmlValueTypeWrapper | - |
| 13 | { | - |
| 14 | void init() { | - |
| 15 | QQmlValueTypeWrapper::init(); | - |
| 16 | object.init(); | - |
| 17 | }executed 5148 times by 32 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 28 | struct 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 blockExecuted 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() { returnexecuted 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 { returnexecuted 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(); returnexecuted 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 blockExecuted 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 | | - |
| 38 | const 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 | | - |
| 40 | using namespace QV4; | - |
| 41 | | - |
| 42 | void Heap::QQmlValueTypeWrapper::destroy() | - |
| 43 | { | - |
| 44 | if (gadgetPtr| TRUE | evaluated 368572 times by 37 testsEvaluated 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
- ...
| | FALSE | evaluated 422 times by 14 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 368992 times by 43 testsEvaluated 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
- ...
| | FALSE | evaluated 2 times by 1 test |
) | 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 blockExecuted 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 | | - |
| 53 | void 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| TRUE | evaluated 88 times by 3 testsEvaluated by:- tst_examples
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 364080 times by 29 testsEvaluated 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| TRUE | evaluated 364080 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 88 times by 3 testsEvaluated 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 blockExecuted 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 | | - |
| 63 | QVariant Heap::QQmlValueTypeWrapper::toVariant() const | - |
| 64 | { | - |
| 65 | ((gadgetPtr) ? static_cast<void>(0) : qt_assert("gadgetPtr", __FILE__, 118)); | - |
| 66 | returnexecuted 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 | | - |
| 70 | bool QQmlValueTypeReference::readReferenceValue() const | - |
| 71 | { | - |
| 72 | if (!d()->object| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 5276 times by 29 testsEvaluated 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 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
| 74 | | - |
| 75 | | - |
| 76 | QMetaProperty writebackProperty = d()->object->metaObject()->property(d()->property); | - |
| 77 | if (writebackProperty.userType() == QMetaType::QVariant| TRUE | evaluated 320 times by 4 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 4956 times by 29 testsEvaluated 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()| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 312 times by 4 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
|
) { | 8-312 |
| 86 | | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | if (QQmlValueTypeFactory::isValueType(variantReferenceType)| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-8 |
| 91 | QQmlPropertyCache *cache = nullptr; | - |
| 92 | if (const| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
QMetaObject *mo = QQmlValueTypeFactory::metaObjectForMetaType(variantReferenceType)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-6 |
| 93 | cache = QJSEnginePrivate::get(engine())->cache(mo);executed 6 times by 1 test: cache = QJSEnginePrivate::get(engine())->cache(mo); | 6 |
| 94 | if (d()->gadgetPtr| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-6 |
| 95 | d()->valueType->metaType.destruct(d()->gadgetPtr); | - |
| 96 | ::operator delete(d()->gadgetPtr); | - |
| 97 | }executed 6 times by 1 test: end of block | 6 |
| 98 | d()->gadgetPtr =nullptr; | - |
| 99 | d()->setPropertyCache(cache); | - |
| 100 | d()->valueType = QQmlValueTypeFactory::valueType(variantReferenceType); | - |
| 101 | if (!cache| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 2-6 |
| 102 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
| 103 | }executed 6 times by 1 test: end of block 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 blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
else { | 318 |
| 109 | if (!d()->gadgetPtr| TRUE | evaluated 4498 times by 24 testsEvaluated 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
| | FALSE | evaluated 458 times by 11 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | returnexecuted 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 | | - |
| 120 | void QQmlValueTypeWrapper::initProto(ExecutionEngine *v4) | - |
| 121 | { | - |
| 122 | if (v4->valueTypeWrapperPrototype()->d_unchecked()| TRUE | evaluated 368370 times by 35 testsEvaluated 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
- ...
| | FALSE | evaluated 628 times by 44 testsEvaluated 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 blockExecuted 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 | | - |
| 131 | ReturnedValue 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 | returnexecuted 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 | | - |
| 145 | ReturnedValue 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 | returnexecuted 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 | | - |
| 158 | QVariant QQmlValueTypeWrapper::toVariant() const | - |
| 159 | { | - |
| 160 | if (const| TRUE | evaluated 834 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmllistmodel
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquickpincharea
- tst_qquickstates
| | FALSE | evaluated 179230 times by 18 testsEvaluated 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>()| TRUE | evaluated 834 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmllistmodel
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquickpincharea
- tst_qquickstates
| | FALSE | evaluated 179230 times by 18 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 834 times by 10 testsEvaluated 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 | returnexecuted 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 | | - |
| 166 | bool QQmlValueTypeWrapper::toGadget(void *data) const | - |
| 167 | { | - |
| 168 | if (const| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 169 | if (!ref->readReferenceValue()| TRUE | never evaluated | | FALSE | never 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 | returnexecuted 2 times by 1 test: return true; true;executed 2 times by 1 test: return true; | 2 |
| 175 | } | - |
| 176 | | - |
| 177 | bool 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>()| TRUE | never evaluated | | FALSE | evaluated 178734 times by 10 testsEvaluated 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>()| TRUE | evaluated 178726 times by 9 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlqt
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
| | FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
|
) | 8-178726 |
| 186 | returnexecuted 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 | returnexecuted 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 | | - |
| 191 | PropertyAttributes QQmlValueTypeWrapper::virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p) | - |
| 192 | { | - |
| 193 | if (id.isString()| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanimationcontroller
| | FALSE | never 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 | returnexecuted 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 | | - |
| 204 | void 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>()| TRUE | never evaluated | | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickworkerscript
|
) { | 0-14 |
| 214 | if (!ref->readReferenceValue()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 215 | return; never executed: return; | 0 |
| 216 | } never executed: end of block | 0 |
| 217 | | - |
| 218 | if (that->d()->propertyCache()| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickworkerscript
| | FALSE | never 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)| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickworkerscript
| | FALSE | evaluated 4 times by 2 testsEvaluated 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 blockExecuted 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 blockExecuted by:- tst_qqmlvaluetypes
- tst_qquickworkerscript
| 4 |
| 233 | | - |
| 234 | bool QQmlValueTypeWrapper::isEqual(const QVariant& value) const | - |
| 235 | { | - |
| 236 | if (const| TRUE | evaluated 444 times by 6 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlqt
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickloader
| | FALSE | evaluated 178282 times by 5 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
|
QQmlValueTypeReference *ref = as<const QQmlValueTypeReference>()| TRUE | evaluated 444 times by 6 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlqt
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickloader
| | FALSE | evaluated 178282 times by 5 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
|
) | 444-178282 |
| 237 | if (!ref->readReferenceValue()| TRUE | never evaluated | | FALSE | evaluated 444 times by 6 testsEvaluated 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 | returnexecuted 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 | | - |
| 242 | int QQmlValueTypeWrapper::typeId() const | - |
| 243 | { | - |
| 244 | returnexecuted 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 | | - |
| 247 | bool QQmlValueTypeWrapper::write(QObject *target, int propertyIndex) const | - |
| 248 | { | - |
| 249 | bool destructGadgetOnExit = false; | - |
| 250 | void *gadget = 0; | - |
| 251 | if (const| TRUE | evaluated 328 times by 10 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickloader
- tst_qquickstates
- tst_scenegraph
| | FALSE | evaluated 2142 times by 19 testsEvaluated 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>()| TRUE | evaluated 328 times by 10 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickloader
- tst_qquickstates
- tst_scenegraph
| | FALSE | evaluated 2142 times by 19 testsEvaluated 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| TRUE | evaluated 328 times by 10 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickloader
- tst_qquickstates
- tst_scenegraph
| | FALSE | never 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 blockExecuted 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()| TRUE | never evaluated | | FALSE | evaluated 328 times by 10 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 328 times by 10 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickloader
- tst_qquickstates
- tst_scenegraph
| | FALSE | evaluated 2142 times by 19 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickloader
- tst_qquickstates
- tst_scenegraph
| 328 |
| 275 | returnexecuted 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 | | - |
| 278 | ReturnedValue QQmlValueTypeWrapper::method_toString(const FunctionObject *b, const Value *thisObject, const Value *, int) | - |
| 279 | { | - |
| 280 | const Object *o = thisObject->as<Object>(); | - |
| 281 | if (!o| TRUE | never evaluated | | FALSE | evaluated 22 times by 2 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 22 times by 2 testsEvaluated 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| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 4 times by 1 test |
QQmlValueTypeReference *ref = w->as<QQmlValueTypeReference>()| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 4 times by 1 test |
) | 4-18 |
| 288 | if (!ref->readReferenceValue()| TRUE | never evaluated | | FALSE | evaluated 18 times by 2 testsEvaluated 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)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
|
) { | 2-20 |
| 296 | result = convertResult; | - |
| 297 | }executed 2 times by 1 test: end of block 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| TRUE | evaluated 144 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
|
; ++i) { | 20-144 |
| 303 | if (mo->property(i).isDesignable()| TRUE | evaluated 128 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 16 times by 1 test |
) { | 16-128 |
| 304 | QVariant value = mo->property(i).readOnGadget(w->d()->gadgetPtr); | - |
| 305 | if (i > 0| TRUE | evaluated 110 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 18 times by 2 testsEvaluated 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 blockExecuted by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| 128 |
| 309 | }executed 144 times by 2 tests: end of blockExecuted by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| 144 |
| 310 | result += QLatin1Char(')'); | - |
| 311 | }executed 20 times by 2 tests: end of blockExecuted by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| 20 |
| 312 | returnexecuted 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 | | - |
| 315 | ReturnedValue 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()| TRUE | evaluated 40 times by 3 testsEvaluated by:- tst_examples
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
| | FALSE | evaluated 8280 times by 20 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 3582 times by 16 testsEvaluated 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
| | FALSE | evaluated 4698 times by 12 testsEvaluated 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>()| TRUE | evaluated 3582 times by 16 testsEvaluated 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
| | FALSE | evaluated 4698 times by 12 testsEvaluated 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()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3580 times by 16 testsEvaluated 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 | returnexecuted 2 times by 1 test: return Primitive::undefinedValue().asReturnedValue(); Primitive::undefinedValue().asReturnedValue();executed 2 times by 1 test: return Primitive::undefinedValue().asReturnedValue(); | 2 |
| 331 | }executed 3580 times by 16 tests: end of blockExecuted 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| TRUE | evaluated 74 times by 4 testsEvaluated by:- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
| | FALSE | evaluated 8204 times by 20 testsEvaluated 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 | returnexecuted 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| TRUE | never evaluated | | FALSE | evaluated 8204 times by 20 testsEvaluated 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()| TRUE | evaluated 344 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlitemmodels
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
| | FALSE | evaluated 7860 times by 19 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 5296 times by 13 testsEvaluated 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
| | FALSE | evaluated 2564 times by 12 testsEvaluated 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); returnexecuted 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| TRUE | evaluated 326 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlitemmodels
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimatedimage
- tst_qquickmousearea
- tst_qquicktextinput
| | FALSE | evaluated 2238 times by 6 testsEvaluated by:- tst_flickableinterop
- tst_qqmlitemmodels
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickdraghandler
- tst_qquicktaphandler
|
|| result->isEnum()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2236 times by 6 testsEvaluated 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); returnexecuted 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| TRUE | never evaluated | | FALSE | evaluated 2236 times by 6 testsEvaluated 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); returnnever 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| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 2218 times by 6 testsEvaluated 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); returnexecuted 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| TRUE | evaluated 98 times by 3 testsEvaluated by:- tst_qqmlitemmodels
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 2120 times by 5 testsEvaluated 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); returnexecuted 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2118 times by 5 testsEvaluated 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 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 blockExecuted 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 | returnexecuted 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 | | - |
| 370 | bool QQmlValueTypeWrapper::virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver) | - |
| 371 | { | - |
| 372 | if (!id.isString()| TRUE | never evaluated | | FALSE | evaluated 88 times by 6 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 88 times by 6 testsEvaluated 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| TRUE | evaluated 74 times by 6 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
| | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
|
) { | 14-74 |
| 387 | QMetaProperty writebackProperty = reference->d()->object->metaObject()->property(reference->d()->property); | - |
| 388 | | - |
| 389 | if (!writebackProperty.isWritable()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 72 times by 6 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
|| !reference->readReferenceValue()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 70 times by 6 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
) | 2-72 |
| 390 | returnexecuted 4 times by 1 test: return false; false;executed 4 times by 1 test: return false; | 4 |
| 391 | | - |
| 392 | writeBackPropertyType = writebackProperty.userType(); | - |
| 393 | }executed 70 times by 6 tests: end of blockExecuted 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 82 times by 6 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
) | 2-82 |
| 400 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
| 401 | | - |
| 402 | if (reference| TRUE | evaluated 68 times by 6 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
| | FALSE | evaluated 14 times by 2 testsEvaluated 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| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlecmascript
- tst_qqmlvaluetypes
| | FALSE | evaluated 60 times by 5 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
) { | 8-60 |
| 408 | if (!f->isBinding()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 6 times by 2 testsEvaluated 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 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 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()| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated 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 | returnexecuted 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)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 58 times by 4 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
) { | 2-58 |
| 437 | if (auto binding = QQmlPropertyPrivate::binding(referenceObject, QQmlPropertyIndex(referencePropertyIndex, pd->coreIndex()))| TRUE | evaluated 2 times by 1 test | | FALSE | never 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; 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()) ; | 2 |
| 442 | | 2 |
| 443 | | 2 |
| 444 | | 2 |
| 445 | | 2 |
| 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()) ; | 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()) ; | 2 |
| 448 | | 2 |
| 449 | | 2 |
| 450 | | 2 |
| 451 | | 2 |
| 452 | 502executed 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()) ; | 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()) ; | 2 |
| 454 | | 2 |
| 455 | | 2 |
| 456 | | 2 |
| 457 | | 2 |
| 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()) ; | 2 |
| 459 | }executed 2 times by 1 test: end of block | 2 |
| 460 | }executed 2 times by 1 test: end of block | 2 |
| 461 | QQmlPropertyPrivate::removeBinding(referenceObject, QQmlPropertyIndex(referencePropertyIndex, pd->coreIndex())); | - |
| 462 | }executed 60 times by 5 tests: end of blockExecuted 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()| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickbehaviors
| | FALSE | evaluated 70 times by 5 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
|
&& (| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickbehaviors
|
QMetaType::Type)v.type() == QMetaType::Double| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated 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| TRUE | evaluated 60 times by 5 testsEvaluated by:- tst_qqmlbinding
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
| | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
|
) { | 14-60 |
| 478 | if (writeBackPropertyType == QMetaType::QVariant| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
| | FALSE | evaluated 48 times by 5 testsEvaluated 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 blockExecuted 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 blockExecuted by:- tst_qqmlbinding
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquickdrag
| 48 |
| 492 | } | - |
| 493 | | - |
| 494 | returnexecuted 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 | | - |
| | |