OpenCoverage

qv4qobjectwrapper.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qv4qobjectwrapper_p.h"-
41-
42#include <private/qqmlpropertycache_p.h>-
43#include <private/qqmlengine_p.h>-
44#include <private/qqmlvmemetaobject_p.h>-
45#include <private/qqmlbinding_p.h>-
46#include <private/qjsvalue_p.h>-
47#include <private/qqmlexpression_p.h>-
48#include <private/qqmlglobal_p.h>-
49#include <private/qqmltypewrapper_p.h>-
50#include <private/qqmlvaluetypewrapper_p.h>-
51#include <private/qqmllistwrapper_p.h>-
52#include <private/qqmlbuiltinfunctions_p.h>-
53#include <private/qv8engine_p.h>-
54-
55#include <private/qv4arraybuffer_p.h>-
56#include <private/qv4functionobject_p.h>-
57#include <private/qv4runtime_p.h>-
58#include <private/qv4variantobject_p.h>-
59-
60#if QT_CONFIG(qml_sequence_object)-
61#include <private/qv4sequenceobject_p.h>-
62#endif-
63-
64#include <private/qv4objectproto_p.h>-
65#include <private/qv4jsonobject_p.h>-
66#include <private/qv4regexpobject_p.h>-
67#include <private/qv4dateobject_p.h>-
68#include <private/qv4scopedvalue_p.h>-
69#include <private/qv4jscall_p.h>-
70#include <private/qv4mm_p.h>-
71#include <private/qqmlscriptstring_p.h>-
72#include <private/qv4compileddata_p.h>-
73-
74#include <QtQml/qjsvalue.h>-
75#include <QtCore/qjsonarray.h>-
76#include <QtCore/qjsonobject.h>-
77#include <QtCore/qjsonvalue.h>-
78#include <QtCore/qvarlengtharray.h>-
79#include <QtCore/qtimer.h>-
80#include <QtCore/qatomic.h>-
81#include <QtCore/qmetaobject.h>-
82#include <QtCore/qabstractitemmodel.h>-
83#include <QtCore/qloggingcategory.h>-
84-
85#include <vector>-
86QT_BEGIN_NAMESPACE-
87-
88Q_LOGGING_CATEGORY(lcBindingRemoval, "qt.qml.binding.removal", QtWarningMsg)
executed 45783 times by 77 tests: return category;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
45783
89-
90// The code in this file does not violate strict aliasing, but GCC thinks it does-
91// so turn off the warnings for us to have a clean build-
92QT_WARNING_DISABLE_GCC("-Wstrict-aliasing")-
93-
94using namespace QV4;-
95-
96QPair<QObject *, int> QObjectMethod::extractQtMethod(const QV4::FunctionObject *function)-
97{-
98 QV4::ExecutionEngine *v4 = function->engine();-
99 if (v4) {
v4Description
TRUEevaluated 956 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEnever evaluated
0-956
100 QV4::Scope scope(v4);-
101 QV4::Scoped<QObjectMethod> method(scope, function->as<QObjectMethod>());-
102 if (method)
methodDescription
TRUEevaluated 586 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEevaluated 370 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
370-586
103 return qMakePair(method->object(), method->methodIndex());
executed 586 times by 5 tests: return qMakePair(method->object(), method->methodIndex());
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
586
104 }
executed 370 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
370
105-
106 return qMakePair((QObject *)nullptr, -1);
executed 370 times by 3 tests: return qMakePair((QObject *)nullptr, -1);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
370
107}-
108-
109static QPair<QObject *, int> extractQtSignal(const QV4::Value &value)-
110{-
111 if (value.isObject()) {
value.isObject()Description
TRUEevaluated 90 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEnever evaluated
0-90
112 QV4::ExecutionEngine *v4 = value.as<QV4::Object>()->engine();-
113 QV4::Scope scope(v4);-
114 QV4::ScopedFunctionObject function(scope, value);-
115 if (function)
functionDescription
TRUEevaluated 80 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-80
116 return QObjectMethod::extractQtMethod(function);
executed 80 times by 5 tests: return QObjectMethod::extractQtMethod(function);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
80
117-
118 QV4::Scoped<QV4::QmlSignalHandler> handler(scope, value);-
119 if (handler)
handlerDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-10
120 return qMakePair(handler->object(), handler->signalIndex());
executed 10 times by 1 test: return qMakePair(handler->object(), handler->signalIndex());
Executed by:
  • tst_qqmlecmascript
10
121 }
never executed: end of block
0
122-
123 return qMakePair((QObject *)nullptr, -1);
never executed: return qMakePair((QObject *)nullptr, -1);
0
124}-
125-
126static QV4::ReturnedValue loadProperty(QV4::ExecutionEngine *v4, QObject *object,-
127 const QQmlPropertyData &property)-
128{-
129 Q_ASSERT(!property.isFunction());-
130 QV4::Scope scope(v4);-
131-
132 if (property.isQObject()) {
property.isQObject()Description
TRUEevaluated 192354 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • ...
FALSEevaluated 2579062 times by 89 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
192354-2579062
133 QObject *rv = nullptr;-
134 property.readProperty(object, &rv);-
135 return QV4::QObjectWrapper::wrap(v4, rv);
executed 192354 times by 92 tests: return QV4::QObjectWrapper::wrap(v4, rv);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • ...
192354
136 } else if (property.isQList()) {
property.isQList()Description
TRUEevaluated 15802 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 2563260 times by 89 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
15802-2563260
137 return QmlListWrapper::create(v4, object, property.coreIndex(), property.propType());
executed 15802 times by 22 tests: return QmlListWrapper::create(v4, object, property.coreIndex(), property.propType());
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
15802
138 } else if (property.propType() == QMetaType::QReal) {
property.propT...etaType::QRealDescription
TRUEevaluated 764324 times by 49 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • ...
FALSEevaluated 1798936 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
764324-1798936
139 qreal v = 0;-
140 property.readProperty(object, &v);-
141 return QV4::Encode(v);
executed 764324 times by 49 tests: return QV4::Encode(v);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • ...
764324
142 } else if (property.propType() == QMetaType::Int || property.isEnum()) {
property.propT...QMetaType::IntDescription
TRUEevaluated 1339103 times by 59 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • ...
FALSEevaluated 459833 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • ...
property.isEnum()Description
TRUEevaluated 50 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicklayouts
FALSEevaluated 459783 times by 78 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • ...
50-1339103
143 int v = 0;-
144 property.readProperty(object, &v);-
145 return QV4::Encode(v);
executed 1339153 times by 59 tests: return QV4::Encode(v);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • ...
1339153
146 } else if (property.propType() == QMetaType::Bool) {
property.propT...MetaType::BoolDescription
TRUEevaluated 106249 times by 50 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
FALSEevaluated 353534 times by 71 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • ...
106249-353534
147 bool v = false;-
148 property.readProperty(object, &v);-
149 return QV4::Encode(v);
executed 106249 times by 50 tests: return QV4::Encode(v);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
106249
150 } else if (property.propType() == QMetaType::QString) {
property.propT...aType::QStringDescription
TRUEevaluated 68757 times by 44 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfontloader
  • ...
FALSEevaluated 284777 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
68757-284777
151 QString v;-
152 property.readProperty(object, &v);-
153 return v4->newString(v)->asReturnedValue();
executed 68757 times by 44 tests: return v4->newString(v)->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfontloader
  • ...
68757
154 } else if (property.propType() == QMetaType::UInt) {
property.propT...MetaType::UIntDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEevaluated 284773 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
4-284773
155 uint v = 0;-
156 property.readProperty(object, &v);-
157 return QV4::Encode(v);
executed 4 times by 2 tests: return QV4::Encode(v);
Executed by:
  • tst_qqmlecmascript
  • tst_qquickitem2
4
158 } else if (property.propType() == QMetaType::Float) {
property.propT...etaType::FloatDescription
TRUEnever evaluated
FALSEevaluated 284773 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
0-284773
159 float v = 0;-
160 property.readProperty(object, &v);-
161 return QV4::Encode(v);
never executed: return QV4::Encode(v);
0
162 } else if (property.propType() == QMetaType::Double) {
property.propT...taType::DoubleDescription
TRUEnever evaluated
FALSEevaluated 284773 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
0-284773
163 double v = 0;-
164 property.readProperty(object, &v);-
165 return QV4::Encode(v);
never executed: return QV4::Encode(v);
0
166 } else if (property.isV4Handle()) {
property.isV4Handle()Description
TRUEnever evaluated
FALSEevaluated 284773 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
0-284773
167 QQmlV4Handle handle;-
168 property.readProperty(object, &handle);-
169 return handle;
never executed: return handle;
0
170 } else if (property.propType() == qMetaTypeId<QJSValue>()) {
property.propT...Id<QJSValue>()Description
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquicktext
FALSEevaluated 284689 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
84-284689
171 QJSValue v;-
172 property.readProperty(object, &v);-
173 return QJSValuePrivate::convertedToValue(v4, v);
executed 84 times by 2 tests: return QJSValuePrivate::convertedToValue(v4, v);
Executed by:
  • tst_qqmlecmascript
  • tst_qquicktext
84
174 } else if (property.isQVariant()) {
property.isQVariant()Description
TRUEevaluated 263165 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickshortcut
  • ...
FALSEevaluated 21524 times by 54 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
21524-263165
175 QVariant v;-
176 property.readProperty(object, &v);-
177-
178 if (QQmlValueTypeFactory::isValueType(v.userType())) {
QQmlValueTypeF...(v.userType())Description
TRUEevaluated 258717 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 4448 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
4448-258717
179 if (const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType(v.userType()))
const QMetaObj...(v.userType())Description
TRUEevaluated 246 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 258471 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
246-258471
180 return QV4::QQmlValueTypeWrapper::create(v4, object, property.coreIndex(), valueTypeMetaObject, v.userType()); // VariantReference value-type.
executed 246 times by 4 tests: return QV4::QQmlValueTypeWrapper::create(v4, object, property.coreIndex(), valueTypeMetaObject, v.userType());
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
246
181 }
executed 258471 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
258471
182-
183 return scope.engine->fromVariant(v);
executed 262919 times by 30 tests: return scope.engine->fromVariant(v);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickshortcut
  • tst_qquicktext
  • ...
262919
184 } else if (QQmlValueTypeFactory::isValueType(property.propType())) {
QQmlValueTypeF...ty.propType())Description
TRUEevaluated 5560 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
FALSEevaluated 15964 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
5560-15964
185 if (const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType(property.propType()))
const QMetaObj...ty.propType())Description
TRUEevaluated 4902 times by 32 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_qquicklayouts
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 658 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
658-4902
186 return QV4::QQmlValueTypeWrapper::create(v4, object, property.coreIndex(), valueTypeMetaObject, property.propType());
executed 4902 times by 32 tests: return QV4::QQmlValueTypeWrapper::create(v4, object, property.coreIndex(), valueTypeMetaObject, property.propType());
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
  • ...
4902
187 } else {
executed 658 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
658
188#if QT_CONFIG(qml_sequence_object)-
189 // see if it's a sequence type-
190 bool succeeded = false;-
191 QV4::ScopedValue retn(scope, QV4::SequencePrototype::newSequence(v4, property.propType(), object, property.coreIndex(), !property.isWritable(), &succeeded));-
192 if (succeeded)
succeededDescription
TRUEevaluated 9930 times by 13 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 6034 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
6034-9930
193 return retn->asReturnedValue();
executed 9930 times by 13 tests: return retn->asReturnedValue();
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
9930
194#endif-
195 }
executed 6034 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
6034
196-
197 if (property.propType() == QMetaType::UnknownType) {
property.propT...e::UnknownTypeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 6688 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
4-6688
198 QMetaProperty p = object->metaObject()->property(property.coreIndex());-
199 qWarning("QMetaProperty::read: Unable to handle unregistered datatype '%s' for property "-
200 "'%s::%s'", p.typeName(), object->metaObject()->className(), p.name());-
201 return QV4::Encode::undefined();
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_qqmlecmascript
4
202 } else {-
203 QVariant v(property.propType(), (void *)nullptr);-
204 property.readProperty(object, v.data());-
205 return scope.engine->fromVariant(v);
executed 6688 times by 38 tests: return scope.engine->fromVariant(v);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
6688
206 }-
207}-
208-
209void QObjectWrapper::initializeBindings(ExecutionEngine *engine)-
210{-
211 engine->functionPrototype()->defineDefaultProperty(QStringLiteral("connect"), method_connect);
executed 11448 times by 151 tests: return qstring_literal_temp;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
11448
212 engine->functionPrototype()->defineDefaultProperty(QStringLiteral("disconnect"), method_disconnect);
executed 11448 times by 151 tests: return qstring_literal_temp;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
11448
213}
executed 11448 times by 151 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
11448
214-
215QQmlPropertyData *QObjectWrapper::findProperty(ExecutionEngine *engine, QQmlContextData *qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local) const-
216{-
217 QObject *o = d()->object();-
218 return findProperty(engine, o, qmlContext, name, revisionMode, local);
executed 5340877 times by 98 tests: return findProperty(engine, o, qmlContext, name, revisionMode, local);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
5340877
219}-
220-
221QQmlPropertyData *QObjectWrapper::findProperty(ExecutionEngine *engine, QObject *o, QQmlContextData *qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local)-
222{-
223 Q_UNUSED(revisionMode);-
224-
225 QQmlData *ddata = QQmlData::get(o, false);-
226 QQmlPropertyData *result = nullptr;-
227 if (ddata && ddata->propertyCache)
ddataDescription
TRUEevaluated 11523717 times by 100 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 91343 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickopenglinfo
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • ...
ddata->propertyCacheDescription
TRUEevaluated 11509246 times by 100 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 14471 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qquickaccessible
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_signalspy
14471-11523717
228 result = ddata->propertyCache->property(name, o, qmlContext);
executed 11509246 times by 100 tests: result = ddata->propertyCache->property(name, o, qmlContext);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
11509246
229 else-
230 result = QQmlPropertyCache::property(engine->jsEngine(), o, name, qmlContext, *local);
executed 105814 times by 31 tests: result = QQmlPropertyCache::property(engine->jsEngine(), o, name, qmlContext, *local);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickopenglinfo
  • tst_qquickpathview
  • ...
105814
231 return result;
executed 11615060 times by 100 tests: return result;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
11615060
232}-
233-
234ReturnedValue QObjectWrapper::getProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property, bool captureRequired)-
235{-
236 QQmlData::flushPendingBinding(object, QQmlPropertyIndex(property->coreIndex()));-
237-
238 if (property->isFunction() && !property->isVarProperty()) {
property->isFunction()Description
TRUEevaluated 178227 times by 62 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
FALSEevaluated 2819785 times by 118 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
!property->isVarProperty()Description
TRUEevaluated 178227 times by 62 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
FALSEnever evaluated
0-2819785
239 if (property->isVMEFunction()) {
property->isVMEFunction()Description
TRUEevaluated 110753 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
FALSEevaluated 67474 times by 56 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
67474-110753
240 QQmlVMEMetaObject *vmemo = QQmlVMEMetaObject::get(object);-
241 Q_ASSERT(vmemo);-
242 return vmemo->vmeMethod(property->coreIndex());
executed 110753 times by 30 tests: return vmemo->vmeMethod(property->coreIndex());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
110753
243 } else if (property->isV4Function()) {
property->isV4Function()Description
TRUEevaluated 12430 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEevaluated 55044 times by 51 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
12430-55044
244 Scope scope(engine);-
245 ScopedContext global(scope, engine->qmlContext());-
246 if (!global)
!globalDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 12428 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • ...
2-12428
247 global = engine->rootContext();
executed 2 times by 1 test: global = engine->rootContext();
Executed by:
  • tst_qjsengine
2
248 return QV4::QObjectMethod::create(global, object, property->coreIndex());
executed 12430 times by 33 tests: return QV4::QObjectMethod::create(global, object, property->coreIndex());
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
12430
249 } else if (property->isSignalHandler()) {
property->isSignalHandler()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 55030 times by 51 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
14-55030
250 QmlSignalHandler::initProto(engine);-
251 return engine->memoryManager->allocate<QV4::QmlSignalHandler>(object, property->coreIndex())->asReturnedValue();
executed 14 times by 1 test: return engine->memoryManager->allocate<QV4::QmlSignalHandler>(object, property->coreIndex())->asReturnedValue();
Executed by:
  • tst_qqmlecmascript
14
252 } else {-
253 ExecutionContext *global = engine->rootContext();-
254 return QV4::QObjectMethod::create(global, object, property->coreIndex());
executed 55030 times by 51 tests: return QV4::QObjectMethod::create(global, object, property->coreIndex());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
55030
255 }-
256 }-
257-
258 QQmlEnginePrivate *ep = engine->qmlEngine() ? QQmlEnginePrivate::get(engine->qmlEngine()) : nullptr;
engine->qmlEngine()Description
TRUEevaluated 2819377 times by 116 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
FALSEevaluated 408 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmllistmodelworkerscript
408-2819377
259-
260 if (captureRequired && ep && ep->propertyCapture && !property->isConstant())
captureRequiredDescription
TRUEevaluated 2818661 times by 118 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 1124 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltimer
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickparticlesystem
  • tst_qquickvisualdatamodel
epDescription
TRUEevaluated 2818253 times by 116 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
FALSEevaluated 408 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmllistmodelworkerscript
ep->propertyCaptureDescription
TRUEevaluated 1219752 times by 110 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 1598501 times by 66 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
!property->isConstant()Description
TRUEevaluated 1197326 times by 110 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 22426 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
408-2818661
261 ep->propertyCapture->captureProperty(object, property->coreIndex(), property->notifyIndex());
executed 1197326 times by 110 tests: ep->propertyCapture->captureProperty(object, property->coreIndex(), property->notifyIndex());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
1197326
262-
263 if (property->isVarProperty()) {
property->isVarProperty()Description
TRUEevaluated 48369 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 2771416 times by 118 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
48369-2771416
264 QQmlVMEMetaObject *vmemo = QQmlVMEMetaObject::get(object);-
265 Q_ASSERT(vmemo);-
266 return vmemo->vmeProperty(property->coreIndex());
executed 48369 times by 22 tests: return vmemo->vmeProperty(property->coreIndex());
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
48369
267 } else {-
268 return loadProperty(engine, object, *property);
executed 2771416 times by 118 tests: return loadProperty(engine, object, *property);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
2771416
269 }-
270}-
271-
272ReturnedValue QObjectWrapper::getQmlProperty(QQmlContextData *qmlContext, String *name, QObjectWrapper::RevisionMode revisionMode,-
273 bool *hasProperty, bool includeImports) const-
274{-
275 if (QQmlData::wasDeleted(d()->object())) {
QQmlData::wasD...d()->object())Description
TRUEnever evaluated
FALSEevaluated 5340963 times by 99 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-5340963
276 if (hasProperty)
hasPropertyDescription
TRUEnever evaluated
FALSEnever evaluated
0
277 *hasProperty = false;
never executed: *hasProperty = false;
0
278 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
279 }-
280-
281 ExecutionEngine *v4 = engine();-
282-
283 if (name->equals(v4->id_destroy()) || name->equals(v4->id_toString())) {
name->equals(v4->id_destroy())Description
TRUEevaluated 244 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
FALSEevaluated 5340719 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
name->equals(v...id_toString())Description
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEevaluated 5340611 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
108-5340719
284 int index = name->equals(v4->id_destroy()) ? QV4::QObjectMethod::DestroyMethod : QV4::QObjectMethod::ToStringMethod;
name->equals(v4->id_destroy())Description
TRUEevaluated 244 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
FALSEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
108-244
285 if (hasProperty)
hasPropertyDescription
TRUEnever evaluated
FALSEevaluated 352 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
0-352
286 *hasProperty = true;
never executed: *hasProperty = true;
0
287 ExecutionContext *global = v4->rootContext();-
288 return QV4::QObjectMethod::create(global, d()->object(), index);
executed 352 times by 14 tests: return QV4::QObjectMethod::create(global, d()->object(), index);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
352
289 }-
290-
291 QQmlPropertyData local;-
292 QQmlPropertyData *result = findProperty(v4, qmlContext, name, revisionMode, &local);-
293-
294 if (!result) {
!resultDescription
TRUEevaluated 4418376 times by 81 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • ...
FALSEevaluated 922235 times by 85 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
922235-4418376
295 if (includeImports && name->startsWithUpper()) {
includeImportsDescription
TRUEevaluated 60060 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4358316 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
name->startsWithUpper()Description
TRUEevaluated 59324 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 736 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
736-4358316
296 // Check for attached properties-
297 if (qmlContext && qmlContext->imports) {
qmlContextDescription
TRUEevaluated 59318 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
6-59318
298 QQmlTypeNameCache::Result r = qmlContext->imports->query(name);-
299-
300 if (hasProperty)
hasPropertyDescription
TRUEnever evaluated
FALSEevaluated 59318 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-59318
301 *hasProperty = true;
never executed: *hasProperty = true;
0
302-
303 if (r.isValid()) {
r.isValid()Description
TRUEevaluated 59310 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
8-59310
304 if (r.scriptIndex != -1) {
r.scriptIndex != -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 59306 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4-59306
305 return QV4::Encode::undefined();
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_qqmlecmascript
4
306 } else if (r.type.isValid()) {
r.type.isValid()Description
TRUEevaluated 59296 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-59296
307 return QQmlTypeWrapper::create(v4, d()->object(),
executed 59296 times by 11 tests: return QQmlTypeWrapper::create(v4, d()->object(), r.type, Heap::QQmlTypeWrapper::ExcludeEnums);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
59296
308 r.type, Heap::QQmlTypeWrapper::ExcludeEnums);
executed 59296 times by 11 tests: return QQmlTypeWrapper::create(v4, d()->object(), r.type, Heap::QQmlTypeWrapper::ExcludeEnums);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
59296
309 } else if (r.importNamespace) {
r.importNamespaceDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-10
310 return QQmlTypeWrapper::create(v4, d()->object(),
executed 10 times by 1 test: return QQmlTypeWrapper::create(v4, d()->object(), qmlContext->imports, r.importNamespace, Heap::QQmlTypeWrapper::ExcludeEnums);
Executed by:
  • tst_qqmlecmascript
10
311 qmlContext->imports, r.importNamespace, Heap::QQmlTypeWrapper::ExcludeEnums);
executed 10 times by 1 test: return QQmlTypeWrapper::create(v4, d()->object(), qmlContext->imports, r.importNamespace, Heap::QQmlTypeWrapper::ExcludeEnums);
Executed by:
  • tst_qqmlecmascript
10
312 }-
313 Q_ASSERT(!"Unreachable");-
314 }
never executed: end of block
0
315 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
8
316 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
14
317 return QV4::Object::virtualGet(this, name->propertyKey(), this, hasProperty);
executed 4359066 times by 81 tests: return QV4::Object::virtualGet(this, name->propertyKey(), this, hasProperty);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • ...
4359066
318 }-
319-
320 QQmlData *ddata = QQmlData::get(d()->object(), false);-
321-
322 if (revisionMode == QV4::QObjectWrapper::CheckRevision && result->hasRevision()) {
revisionMode =...:CheckRevisionDescription
TRUEnever evaluated
FALSEevaluated 922235 times by 85 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
result->hasRevision()Description
TRUEnever evaluated
FALSEnever evaluated
0-922235
323 if (ddata && ddata->propertyCache && !ddata->propertyCache->isAllowedInRevision(result)) {
ddataDescription
TRUEnever evaluated
FALSEnever evaluated
ddata->propertyCacheDescription
TRUEnever evaluated
FALSEnever evaluated
!ddata->proper...vision(result)Description
TRUEnever evaluated
FALSEnever evaluated
0
324 if (hasProperty)
hasPropertyDescription
TRUEnever evaluated
FALSEnever evaluated
0
325 *hasProperty = false;
never executed: *hasProperty = false;
0
326 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
327 }-
328 }
never executed: end of block
0
329-
330 if (hasProperty)
hasPropertyDescription
TRUEevaluated 32 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
FALSEevaluated 922203 times by 85 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
32-922203
331 *hasProperty = true;
executed 32 times by 4 tests: *hasProperty = true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
32
332-
333 return getProperty(v4, d()->object(), result);
executed 922235 times by 85 tests: return getProperty(v4, d()->object(), result);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
922235
334}-
335-
336ReturnedValue QObjectWrapper::getProperty(ExecutionEngine *engine, QObject *object, int propertyIndex, bool captureRequired)-
337{-
338 if (QQmlData::wasDeleted(object))
QQmlData::wasDeleted(object)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlxmlhttprequest
FALSEevaluated 387974 times by 101 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
6-387974
339 return QV4::Encode::null();
executed 6 times by 1 test: return QV4::Encode::null();
Executed by:
  • tst_qqmlxmlhttprequest
6
340 QQmlData *ddata = QQmlData::get(object, /*create*/false);-
341 if (!ddata)
!ddataDescription
TRUEnever evaluated
FALSEevaluated 387974 times by 101 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
0-387974
342 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
343-
344 if (Q_UNLIKELY(!ddata->propertyCache)) {
__builtin_expe...Cache), false)Description
TRUEnever evaluated
FALSEevaluated 387974 times by 101 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
0-387974
345 ddata->propertyCache = QQmlEnginePrivate::get(engine)->cache(object->metaObject());-
346 ddata->propertyCache->addref();-
347 }
never executed: end of block
0
348-
349 QQmlPropertyCache *cache = ddata->propertyCache;-
350 Q_ASSERT(cache);-
351 QQmlPropertyData *property = cache->property(propertyIndex);-
352 Q_ASSERT(property); // We resolved this property earlier, so it better exist!-
353 return getProperty(engine, object, property, captureRequired);
executed 387974 times by 101 tests: return getProperty(engine, object, property, captureRequired);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
387974
354}-
355-
356ReturnedValue QObjectWrapper::getQmlProperty(QV4::ExecutionEngine *engine, QQmlContextData *qmlContext, QObject *object, String *name, QObjectWrapper::RevisionMode revisionMode, bool *hasProperty)-
357{-
358 if (QQmlData::wasDeleted(object)) {
QQmlData::wasDeleted(object)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 6274187 times by 84 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
4-6274187
359 if (hasProperty)
hasPropertyDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEnever evaluated
0-4
360 *hasProperty = false;
executed 4 times by 1 test: *hasProperty = false;
Executed by:
  • tst_qqmlqt
4
361 return QV4::Encode::null();
executed 4 times by 1 test: return QV4::Encode::null();
Executed by:
  • tst_qqmlqt
4
362 }-
363-
364 if (name->equals(engine->id_destroy()) || name->equals(engine->id_toString())) {
name->equals(e...>id_destroy())Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickparticlesystem
FALSEevaluated 6274183 times by 83 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
name->equals(e...id_toString())Description
TRUEnever evaluated
FALSEevaluated 6274183 times by 83 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
0-6274183
365 int index = name->equals(engine->id_destroy()) ? QV4::QObjectMethod::DestroyMethod : QV4::QObjectMethod::ToStringMethod;
name->equals(e...>id_destroy())Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickparticlesystem
FALSEnever evaluated
0-4
366 if (hasProperty)
hasPropertyDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickparticlesystem
FALSEnever evaluated
0-4
367 *hasProperty = true;
executed 4 times by 2 tests: *hasProperty = true;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickparticlesystem
4
368 ExecutionContext *global = engine->rootContext();-
369 return QV4::QObjectMethod::create(global, object, index);
executed 4 times by 2 tests: return QV4::QObjectMethod::create(global, object, index);
Executed by:
  • tst_qqmlecmascript
  • tst_qquickparticlesystem
4
370 }-
371-
372 QQmlData *ddata = QQmlData::get(object, false);-
373 QQmlPropertyData local;-
374 QQmlPropertyData *result = findProperty(engine, object, qmlContext, name, revisionMode, &local);-
375-
376 if (result) {
resultDescription
TRUEevaluated 1682495 times by 68 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
FALSEevaluated 4591688 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
1682495-4591688
377 if (revisionMode == QV4::QObjectWrapper::CheckRevision && result->hasRevision()) {
revisionMode =...:CheckRevisionDescription
TRUEevaluated 1540477 times by 63 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
FALSEevaluated 142018 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickopenglinfo
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • ...
result->hasRevision()Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEevaluated 1540429 times by 63 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
48-1540477
378 if (ddata && ddata->propertyCache && !ddata->propertyCache->isAllowedInRevision(result)) {
ddataDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEnever evaluated
ddata->propertyCacheDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEnever evaluated
!ddata->proper...vision(result)Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
0-48
379 if (hasProperty)
hasPropertyDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-44
380 *hasProperty = false;
executed 44 times by 1 test: *hasProperty = false;
Executed by:
  • tst_qqmlecmascript
44
381 return QV4::Encode::undefined();
executed 44 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_qqmlecmascript
44
382 }-
383 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickitem2
4
384-
385 if (hasProperty)
hasPropertyDescription
TRUEevaluated 1540833 times by 65 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
FALSEevaluated 141618 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickopenglinfo
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_scenegraph
141618-1540833
386 *hasProperty = true;
executed 1540833 times by 65 tests: *hasProperty = true;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
1540833
387-
388 return getProperty(engine, object, result);
executed 1682451 times by 68 tests: return getProperty(engine, object, result);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
1682451
389 } else {-
390 // Check if this object is already wrapped.-
391 if (!ddata || (ddata->jsWrapper.isUndefined() &&
!ddataDescription
TRUEevaluated 2482 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 4589206 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
ddata->jsWrapper.isUndefined()Description
TRUEevaluated 230890 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 4358316 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
2482-4589206
392 (ddata->jsEngineId == 0 || // Nobody owns the QObject
ddata->jsEngineId == 0Description
TRUEevaluated 230890 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
0-230890
393 !ddata->hasTaintedV4Object))) { // Someone else has used the QObject, but it isn't tainted
!ddata->hasTaintedV4ObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0
394-
395 // Not wrapped. Last chance: try query QObjectWrapper's prototype.-
396 // If it can't handle this, then there is no point-
397 // to wrap the QObject just to look at an empty set of JS props.-
398 QV4::Object *proto = QObjectWrapper::defaultPrototype(engine);-
399 return proto->get(name, hasProperty);
executed 233372 times by 19 tests: return proto->get(name, hasProperty);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
233372
400 }-
401 }
executed 4358316 times by 79 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
4358316
402-
403 // If we get here, we must already be wrapped (which implies a ddata).-
404 // There's no point wrapping again, as there wouldn't be any new props.-
405 Q_ASSERT(ddata);-
406-
407 QV4::Scope scope(engine);-
408 QV4::Scoped<QObjectWrapper> wrapper(scope, wrap(engine, object));-
409 if (!wrapper) {
!wrapperDescription
TRUEnever evaluated
FALSEevaluated 4358316 times by 79 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
0-4358316
410 if (hasProperty)
hasPropertyDescription
TRUEnever evaluated
FALSEnever evaluated
0
411 *hasProperty = false;
never executed: *hasProperty = false;
0
412 return QV4::Encode::null();
never executed: return QV4::Encode::null();
0
413 }-
414 return wrapper->getQmlProperty(qmlContext, name, revisionMode, hasProperty);
executed 4358316 times by 79 tests: return wrapper->getQmlProperty(qmlContext, name, revisionMode, hasProperty);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
4358316
415}-
416-
417-
418bool QObjectWrapper::setQmlProperty(ExecutionEngine *engine, QQmlContextData *qmlContext, QObject *object, String *name,-
419 QObjectWrapper::RevisionMode revisionMode, const Value &value)-
420{-
421 if (QQmlData::wasDeleted(object))
QQmlData::wasDeleted(object)Description
TRUEnever evaluated
FALSEevaluated 35750 times by 66 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
0-35750
422 return false;
never executed: return false;
0
423-
424 QQmlPropertyData local;-
425 QQmlPropertyData *result = QQmlPropertyCache::property(engine->jsEngine(), object, name, qmlContext, local);-
426 if (!result)
!resultDescription
TRUEevaluated 1772 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 33978 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
1772-33978
427 return false;
executed 1772 times by 22 tests: return false;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
1772
428-
429 if (revisionMode == QV4::QObjectWrapper::CheckRevision && result->hasRevision()) {
revisionMode =...:CheckRevisionDescription
TRUEevaluated 1338 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 32640 times by 59 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
result->hasRevision()Description
TRUEnever evaluated
FALSEevaluated 1338 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-32640
430 QQmlData *ddata = QQmlData::get(object);-
431 if (ddata && ddata->propertyCache && !ddata->propertyCache->isAllowedInRevision(result))
ddataDescription
TRUEnever evaluated
FALSEnever evaluated
ddata->propertyCacheDescription
TRUEnever evaluated
FALSEnever evaluated
!ddata->proper...vision(result)Description
TRUEnever evaluated
FALSEnever evaluated
0
432 return false;
never executed: return false;
0
433 }
never executed: end of block
0
434-
435 setProperty(engine, object, result, value);-
436 return true;
executed 33978 times by 65 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
33978
437}-
438-
439void QObjectWrapper::setProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property, const Value &value)-
440{-
441 if (!property->isWritable() && !property->isQList()) {
!property->isWritable()Description
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickitem2
  • tst_qquickpathview
FALSEevaluated 45791 times by 78 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
!property->isQList()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickitem2
  • tst_qquickpathview
8-45791
442 QString error = QLatin1String("Cannot assign to read-only property \"") +-
443 property->name(object) + QLatin1Char('\"');-
444 engine->throwTypeError(error);-
445 return;
executed 10 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
10
446 }-
447-
448 QQmlBinding *newBinding = nullptr;-
449 QV4::Scope scope(engine);-
450 QV4::ScopedFunctionObject f(scope, value);-
451 if (f) {
fDescription
TRUEevaluated 88 times by 8 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
FALSEevaluated 45711 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
88-45711
452 if (!f->isBinding()) {
!f->isBinding()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 74 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
14-74
453 if (!property->isVarProperty() && property->propType() != qMetaTypeId<QJSValue>()) {
!property->isVarProperty()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
property->prop...Id<QJSValue>()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-12
454 // assigning a JS function to a non var or QJSValue property or is not allowed.-
455 QString error = QLatin1String("Cannot assign JavaScript function to ");-
456 if (!QMetaType::typeName(property->propType()))
!QMetaType::ty...y->propType())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
2-8
457 error += QLatin1String("[unknown property type]");
executed 2 times by 1 test: error += QLatin1String("[unknown property type]");
Executed by:
  • tst_qqmlecmascript
2
458 else-
459 error += QLatin1String(QMetaType::typeName(property->propType()));
executed 8 times by 2 tests: error += QLatin1String(QMetaType::typeName(property->propType()));
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
8
460 scope.engine->throwError(error);-
461 return;
executed 10 times by 2 tests: return;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
10
462 }-
463 } else {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
464 // binding assignment.-
465 QQmlContextData *callingQmlContext = scope.engine->callingQmlContext();-
466-
467 QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, (const Value &)f);-
468-
469 QV4::ScopedFunctionObject f(scope, bindingFunction->bindingFunction());-
470 QV4::ScopedContext ctx(scope, bindingFunction->scope());-
471 newBinding = QQmlBinding::create(property, f->function(), object, callingQmlContext, ctx);-
472 newBinding->setSourceLocation(bindingFunction->currentLocation());-
473 if (f->isBoundFunction())
f->isBoundFunction()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 70 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
4-70
474 newBinding->setBoundFunction(static_cast<QV4::BoundFunction *>(f.getPointer()));
executed 4 times by 1 test: newBinding->setBoundFunction(static_cast<QV4::BoundFunction *>(f.getPointer()));
Executed by:
  • tst_qqmlecmascript
4
475 newBinding->setTarget(object, *property, nullptr);-
476 }
executed 74 times by 7 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
74
477 }-
478-
479 if (newBinding) {
newBindingDescription
TRUEevaluated 74 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
FALSEevaluated 45715 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
74-45715
480 QQmlPropertyPrivate::setBinding(newBinding);-
481 } else {
executed 74 times by 7 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
74
482 if (Q_UNLIKELY(lcBindingRemoval().isInfoEnabled())) {
__builtin_expe...led()), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 45713 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
2-45713
483 if (auto binding = QQmlPropertyPrivate::binding(object, QQmlPropertyIndex(property->coreIndex()))) {
auto binding =...>coreIndex()))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEnever evaluated
0-2
484 Q_ASSERT(!binding->isValueTypeProxy());-
485 const auto qmlBinding = static_cast<const QQmlBinding*>(binding);-
486 const auto stackFrame = engine->currentStackFrame;-
487 qCInfo(lcBindingRemoval,
executed 2 times by 1 test: QMessageLogger( __FILE__ , 491 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s at %s:%d that was initially bound at %s", object->metaObject()->className(), QtPrivate::asString(property->name(object)).toLocal8Bit().constData(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData()) ;
Executed by:
  • tst_qqmlbinding
qt_category_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
2
488 "Overwriting binding on %s::%s at %s:%d that was initially bound at %s",
executed 2 times by 1 test: QMessageLogger( __FILE__ , 491 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s at %s:%d that was initially bound at %s", object->metaObject()->className(), QtPrivate::asString(property->name(object)).toLocal8Bit().constData(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData()) ;
Executed by:
  • tst_qqmlbinding
2
489 object->metaObject()->className(), qPrintable(property->name(object)),
executed 2 times by 1 test: QMessageLogger( __FILE__ , 491 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s at %s:%d that was initially bound at %s", object->metaObject()->className(), QtPrivate::asString(property->name(object)).toLocal8Bit().constData(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData()) ;
Executed by:
  • tst_qqmlbinding
2
490 qPrintable(stackFrame->source()), stackFrame->lineNumber(),
executed 2 times by 1 test: QMessageLogger( __FILE__ , 491 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s at %s:%d that was initially bound at %s", object->metaObject()->className(), QtPrivate::asString(property->name(object)).toLocal8Bit().constData(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData()) ;
Executed by:
  • tst_qqmlbinding
2
491 qPrintable(qmlBinding->expressionIdentifier()));
executed 2 times by 1 test: QMessageLogger( __FILE__ , 491 , __PRETTY_FUNCTION__, lcBindingRemoval().categoryName()).info("Overwriting binding on %s::%s at %s:%d that was initially bound at %s", object->metaObject()->className(), QtPrivate::asString(property->name(object)).toLocal8Bit().constData(), QtPrivate::asString(stackFrame->source()).toLocal8Bit().constData(), stackFrame->lineNumber(), QtPrivate::asString(qmlBinding->expressionIdentifier()).toLocal8Bit().constData()) ;
Executed by:
  • tst_qqmlbinding
2
492 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlbinding
2
493 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlbinding
2
494 QQmlPropertyPrivate::removeBinding(object, QQmlPropertyIndex(property->coreIndex()));-
495 }
executed 45715 times by 77 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
45715
496-
497 if (!newBinding && property->isVarProperty()) {
!newBindingDescription
TRUEevaluated 45715 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
FALSEevaluated 74 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
property->isVarProperty()Description
TRUEevaluated 2828 times by 17 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 42887 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
74-45715
498 // allow assignment of "special" values (null, undefined, function) to var properties-
499 QQmlVMEMetaObject *vmemo = QQmlVMEMetaObject::get(object);-
500 Q_ASSERT(vmemo);-
501 vmemo->setVMEProperty(property->coreIndex(), value);-
502 return;
executed 2828 times by 17 tests: return;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
2828
503 }-
504-
505#define PROPERTY_STORE(cpptype, value) \-
506 cpptype o = value; \-
507 int status = -1; \-
508 int flags = 0; \-
509 void *argv[] = { &o, 0, &status, &flags }; \-
510 QMetaObject::metacall(object, QMetaObject::WriteProperty, property->coreIndex(), argv);-
511-
512 if (value.isNull() && property->isQObject()) {
value.isNull()Description
TRUEevaluated 114 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdroparea
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
FALSEevaluated 42847 times by 78 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
property->isQObject()Description
TRUEevaluated 40 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickdroparea
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
FALSEevaluated 74 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
40-42847
513 PROPERTY_STORE(QObject*, nullptr);-
514 } else if (value.isUndefined() && property->isResettable()) {
executed 40 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickdroparea
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
value.isUndefined()Description
TRUEevaluated 534 times by 11 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickrectangle
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
FALSEevaluated 42387 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
property->isResettable()Description
TRUEevaluated 30 times by 7 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickdrag
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickrectangle
  • tst_qquickvisualdatamodel
FALSEevaluated 504 times by 5 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdroparea
  • tst_qquickworkerscript
30-42387
515 void *a[] = { nullptr };-
516 QMetaObject::metacall(object, QMetaObject::ResetProperty, property->coreIndex(), a);-
517 } else if (value.isUndefined() && property->propType() == qMetaTypeId<QVariant>()) {
executed 30 times by 7 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickdrag
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickrectangle
  • tst_qquickvisualdatamodel
value.isUndefined()Description
TRUEevaluated 504 times by 5 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdroparea
  • tst_qquickworkerscript
FALSEevaluated 42387 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
property->prop...Id<QVariant>()Description
TRUEevaluated 486 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdroparea
  • tst_qquickworkerscript
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
18-42387
518 PROPERTY_STORE(QVariant, QVariant());-
519 } else if (value.isUndefined() && property->propType() == QMetaType::QJsonValue) {
executed 486 times by 4 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickdroparea
  • tst_qquickworkerscript
value.isUndefined()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 42387 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
property->prop...pe::QJsonValueDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsonbinding
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
2-42387
520 PROPERTY_STORE(QJsonValue, QJsonValue(QJsonValue::Undefined));-
521 } else if (!newBinding && property->propType() == qMetaTypeId<QJSValue>()) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qjsonbinding
!newBindingDescription
TRUEevaluated 42329 times by 76 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
FALSEevaluated 74 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
property->prop...Id<QJSValue>()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 42313 times by 76 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
2-42329
522 PROPERTY_STORE(QJSValue, QJSValue(scope.engine, value.asReturnedValue()));-
523 } else if (value.isUndefined() && property->propType() != qMetaTypeId<QQmlScriptString>()) {
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
value.isUndefined()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 42373 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
property->prop...criptString>()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEnever evaluated
0-42373
524 QString error = QLatin1String("Cannot assign [undefined] to ");-
525 if (!QMetaType::typeName(property->propType()))
!QMetaType::ty...y->propType())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
4-10
526 error += QLatin1String("[unknown property type]");
executed 4 times by 1 test: error += QLatin1String("[unknown property type]");
Executed by:
  • tst_qqmlecmascript
4
527 else-
528 error += QLatin1String(QMetaType::typeName(property->propType()));
executed 10 times by 2 tests: error += QLatin1String(QMetaType::typeName(property->propType()));
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
10
529 scope.engine->throwError(error);-
530 return;
executed 14 times by 2 tests: return;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
14
531 } else if (value.as<FunctionObject>()) {
value.as<FunctionObject>()Description
TRUEevaluated 74 times by 7 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
FALSEevaluated 42299 times by 76 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
74-42299
532 // this is handled by the binding creation above-
533 } else if (property->propType() == QMetaType::Int && value.isNumber()) {
executed 74 times by 7 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickloader
property->prop...QMetaType::IntDescription
TRUEevaluated 16474 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
FALSEevaluated 25825 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • ...
value.isNumber()Description
TRUEevaluated 16466 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
8-25825
534 PROPERTY_STORE(int, value.asDouble());-
535 } else if (property->propType() == QMetaType::QReal && value.isNumber()) {
executed 16466 times by 44 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
property->prop...etaType::QRealDescription
TRUEevaluated 13250 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsettings
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • ...
FALSEevaluated 12583 times by 70 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • ...
value.isNumber()Description
TRUEevaluated 13250 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsettings
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • ...
FALSEnever evaluated
0-16466
536 PROPERTY_STORE(qreal, qreal(value.asDouble()));-
537 } else if (property->propType() == QMetaType::Float && value.isNumber()) {
executed 13250 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsettings
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • ...
property->prop...etaType::FloatDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12581 times by 70 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • ...
value.isNumber()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-13250
538 PROPERTY_STORE(float, float(value.asDouble()));-
539 } else if (property->propType() == QMetaType::Double && value.isNumber()) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
property->prop...taType::DoubleDescription
TRUEnever evaluated
FALSEevaluated 12581 times by 70 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • ...
value.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
0-12581
540 PROPERTY_STORE(double, double(value.asDouble()));-
541 } else if (property->propType() == QMetaType::QString && value.isString()) {
never executed: end of block
property->prop...aType::QStringDescription
TRUEevaluated 3188 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdroparea
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 9393 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
value.isString()Description
TRUEevaluated 3184 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdroparea
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlqt
0-9393
542 PROPERTY_STORE(QString, value.toQStringNoThrow());-
543 } else if (property->isVarProperty()) {
executed 3184 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdroparea
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
property->isVarProperty()Description
TRUEnever evaluated
FALSEevaluated 9397 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
0-9397
544 QQmlVMEMetaObject *vmemo = QQmlVMEMetaObject::get(object);-
545 Q_ASSERT(vmemo);-
546 vmemo->setVMEProperty(property->coreIndex(), value);-
547 } else if (property->propType() == qMetaTypeId<QQmlScriptString>() && (value.isUndefined() || value.isPrimitive())) {
never executed: end of block
property->prop...criptString>()Description
TRUEnever evaluated
FALSEevaluated 9397 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
value.isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
value.isPrimitive()Description
TRUEnever evaluated
FALSEnever evaluated
0-9397
548 QQmlScriptString ss(value.toQStringNoThrow(), nullptr /* context */, object);-
549 if (value.isNumber()) {
value.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
0
550 ss.d->numberValue = value.toNumber();-
551 ss.d->isNumberLiteral = true;-
552 } else if (value.isString()) {
never executed: end of block
value.isString()Description
TRUEnever evaluated
FALSEnever evaluated
0
553 ss.d->script = QV4::CompiledData::Binding::escapedString(ss.d->script);-
554 ss.d->isStringLiteral = true;-
555 }
never executed: end of block
0
556 PROPERTY_STORE(QQmlScriptString, ss);-
557 } else {
never executed: end of block
0
558 QVariant v;-
559 if (property->isQList())
property->isQList()Description
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickitem2
  • tst_qquickpathview
FALSEevaluated 9389 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
8-9389
560 v = scope.engine->toVariant(value, qMetaTypeId<QList<QObject *> >());
executed 8 times by 4 tests: v = scope.engine->toVariant(value, qMetaTypeId<QList<QObject *> >());
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickitem2
  • tst_qquickpathview
8
561 else-
562 v = scope.engine->toVariant(value, property->propType());
executed 9389 times by 65 tests: v = scope.engine->toVariant(value, property->propType());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
9389
563-
564 QQmlContextData *callingQmlContext = scope.engine->callingQmlContext();-
565 if (!QQmlPropertyPrivate::write(object, *property, v, callingQmlContext)) {
!QQmlPropertyP...ingQmlContext)Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 9363 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
34-9363
566 const char *valueType = nullptr;-
567 if (v.userType() == QVariant::Invalid) valueType = "null";
never executed: valueType = "null";
v.userType() =...riant::InvalidDescription
TRUEnever evaluated
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
0-34
568 else valueType = QMetaType::typeName(v.userType());
executed 34 times by 2 tests: valueType = QMetaType::typeName(v.userType());
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
34
569-
570 const char *targetTypeName = QMetaType::typeName(property->propType());-
571 if (!targetTypeName)
!targetTypeNameDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
2-32
572 targetTypeName = "an unregistered type";
executed 2 times by 1 test: targetTypeName = "an unregistered type";
Executed by:
  • tst_qqmlecmascript
2
573-
574 QString error = QLatin1String("Cannot assign ") +-
575 QLatin1String(valueType) +-
576 QLatin1String(" to ") +-
577 QLatin1String(targetTypeName);-
578 scope.engine->throwError(error);-
579 return;
executed 34 times by 2 tests: return;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
34
580 }-
581 }
executed 9363 times by 65 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
9363
582}-
583-
584ReturnedValue QObjectWrapper::wrap_slowPath(ExecutionEngine *engine, QObject *object)-
585{-
586 Q_ASSERT(!QQmlData::wasDeleted(object));-
587-
588 QQmlData *ddata = QQmlData::get(object, true);-
589 if (!ddata)
!ddataDescription
TRUEnever evaluated
FALSEevaluated 535474 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-535474
590 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
591-
592 Scope scope(engine);-
593-
594 if (ddata->jsWrapper.isUndefined() &&
ddata->jsWrapper.isUndefined()Description
TRUEevaluated 535470 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
4-535470
595 (ddata->jsEngineId == engine->m_engineId || // We own the QObject
ddata->jsEngin...ne->m_engineIdDescription
TRUEnever evaluated
FALSEevaluated 535470 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-535470
596 ddata->jsEngineId == 0 || // No one owns the QObject
ddata->jsEngineId == 0Description
TRUEevaluated 535466 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
4-535466
597 !ddata->hasTaintedV4Object)) { // Someone else has used the QObject, but it isn't tainted
!ddata->hasTaintedV4ObjectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEnever evaluated
0-4
598-
599 QV4::ScopedValue rv(scope, create(engine, object));-
600 ddata->jsWrapper.set(scope.engine, rv);-
601 ddata->jsEngineId = engine->m_engineId;-
602 return rv->asReturnedValue();
executed 535470 times by 141 tests: return rv->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
535470
603-
604 } else {-
605 // If this object is tainted, we have to check to see if it is in our-
606 // tainted object list-
607 ScopedObject alternateWrapper(scope, (Object *)nullptr);-
608 if (engine->m_multiplyWrappedQObjects && ddata->hasTaintedV4Object)
engine->m_mult...rappedQObjectsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
ddata->hasTaintedV4ObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0-4
609 alternateWrapper = engine->m_multiplyWrappedQObjects->value(object);
never executed: alternateWrapper = engine->m_multiplyWrappedQObjects->value(object);
0
610-
611 // If our tainted handle doesn't exist or has been collected, and there isn't-
612 // a handle in the ddata, we can assume ownership of the ddata->jsWrapper-
613 if (ddata->jsWrapper.isUndefined() && !alternateWrapper) {
ddata->jsWrapper.isUndefined()Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
!alternateWrapperDescription
TRUEnever evaluated
FALSEnever evaluated
0-4
614 QV4::ScopedValue result(scope, create(engine, object));-
615 ddata->jsWrapper.set(scope.engine, result);-
616 ddata->jsEngineId = engine->m_engineId;-
617 return result->asReturnedValue();
never executed: return result->asReturnedValue();
0
618 }-
619-
620 if (!alternateWrapper) {
!alternateWrapperDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEnever evaluated
0-4
621 alternateWrapper = create(engine, object);-
622 if (!engine->m_multiplyWrappedQObjects)
!engine->m_mul...rappedQObjectsDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEnever evaluated
0-4
623 engine->m_multiplyWrappedQObjects = new MultiplyWrappedQObjectMap;
executed 4 times by 2 tests: engine->m_multiplyWrappedQObjects = new MultiplyWrappedQObjectMap;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
4
624 engine->m_multiplyWrappedQObjects->insert(object, alternateWrapper->d());-
625 ddata->hasTaintedV4Object = true;-
626 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
4
627-
628 return alternateWrapper.asReturnedValue();
executed 4 times by 2 tests: return alternateWrapper.asReturnedValue();
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
4
629 }-
630}-
631-
632void QObjectWrapper::markWrapper(QObject *object, MarkStack *markStack)-
633{-
634 if (QQmlData::wasDeleted(object))
QQmlData::wasDeleted(object)Description
TRUEnever evaluated
FALSEevaluated 79473 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
0-79473
635 return;
never executed: return;
0
636-
637 QQmlData *ddata = QQmlData::get(object);-
638 if (!ddata)
!ddataDescription
TRUEevaluated 1829 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 77644 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
1829-77644
639 return;
executed 1829 times by 6 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1829
640-
641 if (ddata->jsEngineId == markStack->engine->m_engineId)
ddata->jsEngin...ne->m_engineIdDescription
TRUEevaluated 65558 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 12086 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
12086-65558
642 ddata->jsWrapper.markOnce(markStack);
executed 65558 times by 18 tests: ddata->jsWrapper.markOnce(markStack);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
65558
643 else if (markStack->engine->m_multiplyWrappedQObjects && ddata->hasTaintedV4Object)
markStack->eng...rappedQObjectsDescription
TRUEnever evaluated
FALSEevaluated 12086 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
ddata->hasTaintedV4ObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0-12086
644 markStack->engine->m_multiplyWrappedQObjects->mark(object, markStack);
never executed: markStack->engine->m_multiplyWrappedQObjects->mark(object, markStack);
0
645}
executed 77644 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
77644
646-
647void QObjectWrapper::setProperty(ExecutionEngine *engine, int propertyIndex, const Value &value)-
648{-
649 setProperty(engine, d()->object(), propertyIndex, value);-
650}
never executed: end of block
0
651-
652void QObjectWrapper::setProperty(ExecutionEngine *engine, QObject *object, int propertyIndex, const Value &value)-
653{-
654 Q_ASSERT(propertyIndex < 0xffff);-
655 Q_ASSERT(propertyIndex >= 0);-
656-
657 if (QQmlData::wasDeleted(object))
QQmlData::wasDeleted(object)Description
TRUEnever evaluated
FALSEevaluated 11831 times by 57 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
0-11831
658 return;
never executed: return;
0
659 QQmlData *ddata = QQmlData::get(object, /*create*/false);-
660 if (!ddata)
!ddataDescription
TRUEnever evaluated
FALSEevaluated 11831 times by 57 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
0-11831
661 return;
never executed: return;
0
662-
663 QQmlPropertyCache *cache = ddata->propertyCache;-
664 Q_ASSERT(cache);-
665 QQmlPropertyData *property = cache->property(propertyIndex);-
666 Q_ASSERT(property); // We resolved this property earlier, so it better exist!-
667 return setProperty(engine, object, property, value);
executed 11831 times by 57 tests: return setProperty(engine, object, property, value);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
11831
668}-
669-
670bool QObjectWrapper::virtualIsEqualTo(Managed *a, Managed *b)-
671{-
672 Q_ASSERT(a->as<QV4::QObjectWrapper>());-
673 QV4::QObjectWrapper *qobjectWrapper = static_cast<QV4::QObjectWrapper *>(a);-
674 QV4::Object *o = b->as<Object>();-
675 if (o) {
oDescription
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEnever evaluated
0-32
676 if (QV4::QQmlTypeWrapper *qmlTypeWrapper = o->as<QV4::QQmlTypeWrapper>())
QV4::QQmlTypeW...TypeWrapper>()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
6-26
677 return qmlTypeWrapper->toVariant().value<QObject*>() == qobjectWrapper->object();
executed 6 times by 1 test: return qmlTypeWrapper->toVariant().value<QObject*>() == qobjectWrapper->object();
Executed by:
  • tst_qqmlecmascript
6
678 }
executed 26 times by 3 tests: end of block
Executed by:
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
26
679-
680 return false;
executed 26 times by 3 tests: return false;
Executed by:
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
26
681}-
682-
683ReturnedValue QObjectWrapper::create(ExecutionEngine *engine, QObject *object)-
684{-
685 if (QJSEngine *jsEngine = engine->jsEngine()) {
QJSEngine *jsE...ne->jsEngine()Description
TRUEevaluated 534410 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 1064 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
1064-534410
686 if (QQmlPropertyCache *cache = QQmlData::ensurePropertyCache(jsEngine, object)) {
QQmlPropertyCa...ngine, object)Description
TRUEevaluated 533648 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 762 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_signalspy
762-533648
687 ReturnedValue result = QV4::Encode::null();-
688 void *args[] = { &result, &engine };-
689 if (cache->callJSFactoryMethod(object, args))
cache->callJSF...(object, args)Description
TRUEevaluated 449556 times by 126 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • ...
FALSEevaluated 84092 times by 118 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
84092-449556
690 return result;
executed 449556 times by 126 tests: return result;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • ...
449556
691 }
executed 84092 times by 118 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
84092
692 }
executed 84854 times by 118 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
84854
693 return (engine->memoryManager->allocate<QV4::QObjectWrapper>(object))->asReturnedValue();
executed 85918 times by 118 tests: return (engine->memoryManager->allocate<QV4::QObjectWrapper>(object))->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
85918
694}-
695-
696QV4::ReturnedValue QObjectWrapper::virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty)-
697{-
698 if (!id.isString())
!id.isString()Description
TRUEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEevaluated 982617 times by 87 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
52-982617
699 return Object::virtualGet(m, id, receiver, hasProperty);
executed 52 times by 3 tests: return Object::virtualGet(m, id, receiver, hasProperty);
Executed by:
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
52
700-
701 const QObjectWrapper *that = static_cast<const QObjectWrapper*>(m);-
702 Scope scope(that);-
703 ScopedString n(scope, id.asStringOrSymbol());-
704 QQmlContextData *qmlContext = that->engine()->callingQmlContext();-
705 return that->getQmlProperty(qmlContext, n, IgnoreRevision, hasProperty, /*includeImports*/ true);
executed 982617 times by 87 tests: return that->getQmlProperty(qmlContext, n, IgnoreRevision, hasProperty, true);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • ...
982617
706}-
707-
708bool QObjectWrapper::virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver)-
709{-
710 if (!id.isString())
!id.isString()Description
TRUEnever evaluated
FALSEevaluated 31472 times by 59 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
0-31472
711 return Object::virtualPut(m, id, value, receiver);
never executed: return Object::virtualPut(m, id, value, receiver);
0
712-
713 Scope scope(m);-
714 QObjectWrapper *that = static_cast<QObjectWrapper*>(m);-
715 ScopedString name(scope, id.asStringOrSymbol());-
716-
717 if (scope.engine->hasException || QQmlData::wasDeleted(that->d()->object()))
scope.engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 31472 times by 59 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
QQmlData::wasD...d()->object())Description
TRUEnever evaluated
FALSEevaluated 31472 times by 59 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
0-31472
718 return false;
never executed: return false;
0
719-
720 QQmlContextData *qmlContext = scope.engine->callingQmlContext();-
721 if (!setQmlProperty(scope.engine, qmlContext, that->d()->object(), name, QV4::QObjectWrapper::IgnoreRevision, value)) {
!setQmlPropert...vision, value)Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
FALSEevaluated 31460 times by 58 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
12-31460
722 QQmlData *ddata = QQmlData::get(that->d()->object());-
723 // Types created by QML are not extensible at run-time, but for other QObjects we can store them-
724 // as regular JavaScript properties, like on JavaScript objects.-
725 if (ddata && ddata->context) {
ddataDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
FALSEnever evaluated
ddata->contextDescription
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
0-12
726 QString error = QLatin1String("Cannot assign to non-existent property \"") +-
727 name->toQString() + QLatin1Char('\"');-
728 scope.engine->throwError(error);-
729 return false;
executed 10 times by 3 tests: return false;
Executed by:
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
10
730 } else {-
731 return QV4::Object::virtualPut(m, id, value, receiver);
executed 2 times by 1 test: return QV4::Object::virtualPut(m, id, value, receiver);
Executed by:
  • tst_qjsengine
2
732 }-
733 }-
734-
735 return true;
executed 31460 times by 58 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
31460
736}-
737-
738PropertyAttributes QObjectWrapper::virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p)-
739{-
740 if (id.isString()) {
id.isString()Description
TRUEevaluated 266 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
FALSEnever evaluated
0-266
741 QObjectWrapper *that = static_cast<QObjectWrapper*>(m);-
742 const QObject *thatObject = that->d()->object();-
743 if (!QQmlData::wasDeleted(thatObject)) {
!QQmlData::was...ed(thatObject)Description
TRUEevaluated 266 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
FALSEnever evaluated
0-266
744 Scope scope(m);-
745 ScopedString n(scope, id.asStringOrSymbol());-
746 QQmlContextData *qmlContext = scope.engine->callingQmlContext();-
747 QQmlPropertyData local;-
748 if (that->findProperty(scope.engine, qmlContext, n, IgnoreRevision, &local)
that->findProp...ision, &local)Description
TRUEevaluated 32 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
FALSEevaluated 234 times by 5 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
32-234
749 || n->equals(scope.engine->id_destroy()) || n->equals(scope.engine->id_toString())) {
n->equals(scop...>id_destroy())Description
TRUEnever evaluated
FALSEevaluated 234 times by 5 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
n->equals(scop...id_toString())Description
TRUEnever evaluated
FALSEevaluated 234 times by 5 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
0-234
750 if (p) {
pDescription
TRUEevaluated 30 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-30
751 // ### probably not the fastest implementation-
752 bool hasProperty;-
753 p->value = that->getQmlProperty(qmlContext, n, IgnoreRevision, &hasProperty, /*includeImports*/ true);-
754 }
executed 30 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
30
755 return QV4::Attr_Data;
executed 32 times by 4 tests: return QV4::Attr_Data;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
32
756 }-
757 }
executed 234 times by 5 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
234
758 }
executed 234 times by 5 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
234
759-
760 return QV4::Object::virtualGetOwnProperty(m, id, p);
executed 234 times by 5 tests: return QV4::Object::virtualGetOwnProperty(m, id, p);
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
234
761}-
762-
763void QObjectWrapper::virtualAdvanceIterator(Managed *m, ObjectIterator *it, Value *name, uint *index, Property *p, PropertyAttributes *attributes)-
764{-
765 // Used to block access to QObject::destroyed() and QObject::deleteLater() from QML-
766 static const int destroyedIdx1 = QObject::staticMetaObject.indexOfSignal("destroyed(QObject*)");-
767 static const int destroyedIdx2 = QObject::staticMetaObject.indexOfSignal("destroyed()");-
768 static const int deleteLaterIdx = QObject::staticMetaObject.indexOfSlot("deleteLater()");-
769-
770 name->setM(nullptr);-
771 *index = UINT_MAX;-
772-
773 QObjectWrapper *that = static_cast<QObjectWrapper*>(m);-
774-
775 QObject *thatObject = that->d()->object();-
776 if (thatObject && !QQmlData::wasDeleted(thatObject)) {
thatObjectDescription
TRUEevaluated 5392 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
!QQmlData::was...ed(thatObject)Description
TRUEevaluated 5392 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
0-5392
777 const QMetaObject *mo = thatObject->metaObject();-
778 // These indices don't apply to gadgets, so don't block them.-
779 const bool preventDestruction = mo->superClass() || mo == &QObject::staticMetaObject;
mo->superClass()Description
TRUEevaluated 5392 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
mo == &QObject...aticMetaObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0-5392
780 const int propertyCount = mo->propertyCount();-
781 if (it->arrayIndex < static_cast<uint>(propertyCount)) {
it->arrayIndex...propertyCount)Description
TRUEevaluated 1860 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3532 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1860-3532
782 ExecutionEngine *thatEngine = that->engine();-
783 Scope scope(thatEngine);-
784 const QMetaProperty property = mo->property(it->arrayIndex);-
785 ScopedString propName(scope, thatEngine->newString(QString::fromUtf8(property.name())));-
786 name->setM(propName->d());-
787 ++it->arrayIndex;-
788 *attributes = QV4::Attr_Data;-
789-
790 QQmlPropertyData local;-
791 local.load(property);-
792 p->value = that->getProperty(thatEngine, thatObject, &local);-
793 return;
executed 1860 times by 7 tests: return;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1860
794 }-
795 const int methodCount = mo->methodCount();-
796 while (it->arrayIndex < static_cast<uint>(propertyCount + methodCount)) {
it->arrayIndex...+ methodCount)Description
TRUEevaluated 3722 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 40 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
40-3722
797 const int index = it->arrayIndex - propertyCount;-
798 const QMetaMethod method = mo->method(index);-
799 ++it->arrayIndex;-
800 if (method.access() == QMetaMethod::Private || (preventDestruction && (index == deleteLaterIdx || index == destroyedIdx1 || index == destroyedIdx2)))
method.access(...ethod::PrivateDescription
TRUEevaluated 110 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3612 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
preventDestructionDescription
TRUEevaluated 3612 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
index == deleteLaterIdxDescription
TRUEevaluated 40 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3572 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
index == destroyedIdx1Description
TRUEevaluated 40 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3532 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
index == destroyedIdx2Description
TRUEevaluated 40 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3492 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-3612
801 continue;
executed 230 times by 7 tests: continue;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
230
802 ExecutionEngine *thatEngine = that->engine();-
803 Scope scope(thatEngine);-
804 ScopedString methodName(scope, thatEngine->newString(QString::fromUtf8(method.name())));-
805 name->setM(methodName->d());-
806 *attributes = QV4::Attr_Data;-
807-
808 QQmlPropertyData local;-
809 local.load(method);-
810 p->value = that->getProperty(thatEngine, thatObject, &local);-
811 return;
executed 3492 times by 7 tests: return;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
3492
812 }-
813 }
executed 40 times by 7 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
40
814 QV4::Object::virtualAdvanceIterator(m, it, name, index, p, attributes);-
815}
executed 40 times by 7 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
40
816-
817namespace QV4 {-
818-
819struct QObjectSlotDispatcher : public QtPrivate::QSlotObjectBase-
820{-
821 QV4::PersistentValue function;-
822 QV4::PersistentValue thisObject;-
823 int signalIndex;-
824-
825 QObjectSlotDispatcher()-
826 : QtPrivate::QSlotObjectBase(&impl)-
827 , signalIndex(-1)-
828 {}
executed 78 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
78
829-
830 static void impl(int which, QSlotObjectBase *this_, QObject *r, void **metaArgs, bool *ret)-
831 {-
832 switch (which) {-
833 case Destroy: {
executed 78 times by 5 tests: case Destroy:
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
78
834 delete static_cast<QObjectSlotDispatcher*>(this_);-
835 }-
836 break;
executed 78 times by 5 tests: break;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
78
837 case Call: {
executed 70 times by 4 tests: case Call:
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
70
838 QObjectSlotDispatcher *This = static_cast<QObjectSlotDispatcher*>(this_);-
839 QV4::ExecutionEngine *v4 = This->function.engine();-
840 // Might be that we're still connected to a signal that's emitted long-
841 // after the engine died. We don't track connections in a global list, so-
842 // we need this safeguard.-
843 if (!v4)
!v4Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
2-68
844 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qqmlecmascript
2
845-
846 QQmlMetaObject::ArgTypeStorage storage;-
847 int *argsTypes = QQmlMetaObject(r).methodParameterTypes(This->signalIndex, &storage, nullptr);-
848-
849 int argCount = argsTypes ? argsTypes[0]:0;
argsTypesDescription
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
FALSEnever evaluated
0-68
850-
851 QV4::Scope scope(v4);-
852 QV4::ScopedFunctionObject f(scope, This->function.value());-
853-
854 QV4::JSCallData jsCallData(scope, argCount);-
855 *jsCallData->thisObject = This->thisObject.isUndefined() ? v4->globalObject->asReturnedValue() : This->thisObject.value();
This->thisObject.isUndefined()Description
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
16-52
856 for (int ii = 0; ii < argCount; ++ii) {
ii < argCountDescription
TRUEevaluated 188 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
68-188
857 int type = argsTypes[ii + 1];-
858 if (type == qMetaTypeId<QVariant>()) {
type == qMetaT...Id<QVariant>()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 186 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
2-186
859 jsCallData->args[ii] = v4->fromVariant(*((QVariant *)metaArgs[ii + 1]));-
860 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
861 jsCallData->args[ii] = v4->fromVariant(QVariant(type, metaArgs[ii + 1]));-
862 }
executed 186 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
186
863 }-
864-
865 f->call(jsCallData);-
866 if (scope.hasException()) {
scope.hasException()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 58 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
10-58
867 QQmlError error = v4->catchExceptionAsQmlError();-
868 if (error.description().isEmpty()) {
error.description().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
0-10
869 QV4::ScopedString name(scope, f->name());-
870 error.setDescription(QStringLiteral("Unknown exception occurred during evaluation of connected function: %1").arg(name->toQString()));
never executed: return qstring_literal_temp;
0
871 }
never executed: end of block
0
872 if (QQmlEngine *qmlEngine = v4->qmlEngine()) {
QQmlEngine *qm...4->qmlEngine()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
2-8
873 QQmlEnginePrivate::get(qmlEngine)->warning(error);-
874 } else {
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
8
875 QMessageLogger(error.url().toString().toLatin1().constData(),-
876 error.line(), nullptr).warning().noquote()-
877 << error.toString();-
878 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qjsengine
2
879 }-
880 }-
881 break;
executed 68 times by 4 tests: break;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
68
882 case Compare: {
executed 12 times by 1 test: case Compare:
Executed by:
  • tst_qqmlecmascript
12
883 QObjectSlotDispatcher *connection = static_cast<QObjectSlotDispatcher*>(this_);-
884 if (connection->function.isUndefined()) {
connection->fu....isUndefined()Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
885 *ret = false;-
886 return;
never executed: return;
0
887 }-
888-
889 // This is tricky. Normally the metaArgs[0] pointer is a pointer to the _function_-
890 // for the new-style QObject::connect. Here we use the engine pointer as sentinel-
891 // to distinguish those type of QSlotObjectBase connections from our QML connections.-
892 QV4::ExecutionEngine *v4 = reinterpret_cast<QV4::ExecutionEngine*>(metaArgs[0]);-
893 if (v4 != connection->function.engine()) {
v4 != connecti...ction.engine()Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
894 *ret = false;-
895 return;
never executed: return;
0
896 }-
897-
898 QV4::Scope scope(v4);-
899 QV4::ScopedValue function(scope, *reinterpret_cast<QV4::Value*>(metaArgs[1]));-
900 QV4::ScopedValue thisObject(scope, *reinterpret_cast<QV4::Value*>(metaArgs[2]));-
901 QObject *receiverToDisconnect = reinterpret_cast<QObject*>(metaArgs[3]);-
902 int slotIndexToDisconnect = *reinterpret_cast<int*>(metaArgs[4]);-
903-
904 if (slotIndexToDisconnect != -1) {
slotIndexToDisconnect != -1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
905 // This is a QObject function wrapper-
906 if (connection->thisObject.isUndefined() == thisObject->isUndefined() &&
connection->th...>isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
0
907 (connection->thisObject.isUndefined() || RuntimeHelpers::strictEqual(*connection->thisObject.valueRef(), thisObject))) {
connection->th....isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
RuntimeHelpers...), thisObject)Description
TRUEnever evaluated
FALSEnever evaluated
0
908-
909 QV4::ScopedFunctionObject f(scope, connection->function.value());-
910 QPair<QObject *, int> connectedFunctionData = QObjectMethod::extractQtMethod(f);-
911 if (connectedFunctionData.first == receiverToDisconnect &&
connectedFunct...erToDisconnectDescription
TRUEnever evaluated
FALSEnever evaluated
0
912 connectedFunctionData.second == slotIndexToDisconnect) {
connectedFunct...exToDisconnectDescription
TRUEnever evaluated
FALSEnever evaluated
0
913 *ret = true;-
914 return;
never executed: return;
0
915 }-
916 }
never executed: end of block
0
917 } else {
never executed: end of block
0
918 // This is a normal JS function-
919 if (RuntimeHelpers::strictEqual(*connection->function.valueRef(), function) &&
RuntimeHelpers...f(), function)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-10
920 connection->thisObject.isUndefined() == thisObject->isUndefined() &&
connection->th...>isUndefined()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-8
921 (connection->thisObject.isUndefined() || RuntimeHelpers::strictEqual(*connection->thisObject.valueRef(), thisObject))) {
connection->th....isUndefined()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
RuntimeHelpers...), thisObject)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-6
922 *ret = true;-
923 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
8
924 }-
925 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
926-
927 *ret = false;-
928 }-
929 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qqmlecmascript
4
930 case NumOperations:
never executed: case NumOperations:
0
931 break;
never executed: break;
0
932 }-
933 };
executed 152 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
152
934};-
935-
936} // namespace QV4-
937-
938ReturnedValue QObjectWrapper::method_connect(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)-
939{-
940 QV4::Scope scope(b);-
941-
942 if (argc == 0)
argc == 0Description
TRUEnever evaluated
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
0-78
943 THROW_GENERIC_ERROR("Function.prototype.connect: no arguments given");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: no arguments given"));
0
944-
945 QPair<QObject *, int> signalInfo = extractQtSignal(*thisObject);-
946 QObject *signalObject = signalInfo.first;-
947 int signalIndex = signalInfo.second; // in method range, not signal range!-
948-
949 if (signalIndex < 0)
signalIndex < 0Description
TRUEnever evaluated
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
0-78
950 THROW_GENERIC_ERROR("Function.prototype.connect: this object is not a signal");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: this object is not a signal"));
0
951-
952 if (!signalObject)
!signalObjectDescription
TRUEnever evaluated
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
0-78
953 THROW_GENERIC_ERROR("Function.prototype.connect: cannot connect to deleted QObject");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: cannot connect to deleted QObject"));
0
954-
955 if (signalObject->metaObject()->method(signalIndex).methodType() != QMetaMethod::Signal)
signalObject->...Method::SignalDescription
TRUEnever evaluated
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
0-78
956 THROW_GENERIC_ERROR("Function.prototype.connect: this object is not a signal");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: this object is not a signal"));
0
957-
958 QV4::ScopedFunctionObject f(scope);-
959 QV4::ScopedValue object (scope, QV4::Encode::undefined());-
960-
961 if (argc == 1) {
argc == 1Description
TRUEevaluated 68 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-68
962 f = argv[0];-
963 } else if (argc >= 2) {
executed 68 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
argc >= 2Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-68
964 object = argv[0];-
965 f = argv[1];-
966 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
10
967-
968 if (!f)
!fDescription
TRUEnever evaluated
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
0-78
969 THROW_GENERIC_ERROR("Function.prototype.connect: target is not a function");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: target is not a function"));
0
970-
971 if (!object->isUndefined() && !object->isObject())
!object->isUndefined()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 68 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
!object->isObject()Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-68
972 THROW_GENERIC_ERROR("Function.prototype.connect: target this is not an object");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.connect: target this is not an object"));
0
973-
974 QV4::QObjectSlotDispatcher *slot = new QV4::QObjectSlotDispatcher;-
975 slot->signalIndex = signalIndex;-
976-
977 slot->thisObject.set(scope.engine, object);-
978 slot->function.set(scope.engine, f);-
979-
980 if (QQmlData *ddata = QQmlData::get(signalObject)) {
QQmlData *ddat...(signalObject)Description
TRUEevaluated 78 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEnever evaluated
0-78
981 if (QQmlPropertyCache *propertyCache = ddata->propertyCache) {
QQmlPropertyCa...>propertyCacheDescription
TRUEevaluated 74 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_signalspy
4-74
982 QQmlPropertyPrivate::flushSignal(signalObject, propertyCache->methodIndexToSignalIndex(signalIndex));-
983 }
executed 74 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
74
984 }
executed 78 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
78
985 QObjectPrivate::connect(signalObject, signalIndex, slot, Qt::AutoConnection);-
986-
987 RETURN_UNDEFINED();
executed 78 times by 5 tests: return QV4::Encode::undefined();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_signalspy
78
988}-
989-
990ReturnedValue QObjectWrapper::method_disconnect(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)-
991{-
992 QV4::Scope scope(b);-
993-
994 if (argc == 0)
argc == 0Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
995 THROW_GENERIC_ERROR("Function.prototype.disconnect: no arguments given");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: no arguments given"));
0
996-
997 QPair<QObject *, int> signalInfo = extractQtSignal(*thisObject);-
998 QObject *signalObject = signalInfo.first;-
999 int signalIndex = signalInfo.second;-
1000-
1001 if (signalIndex == -1)
signalIndex == -1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
1002 THROW_GENERIC_ERROR("Function.prototype.disconnect: this object is not a signal");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: this object is not a signal"));
0
1003-
1004 if (!signalObject)
!signalObjectDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
1005 THROW_GENERIC_ERROR("Function.prototype.disconnect: cannot disconnect from deleted QObject");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: cannot disconnect from deleted QObject"));
0
1006-
1007 if (signalIndex < 0 || signalObject->metaObject()->method(signalIndex).methodType() != QMetaMethod::Signal)
signalIndex < 0Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
signalObject->...Method::SignalDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
1008 THROW_GENERIC_ERROR("Function.prototype.disconnect: this object is not a signal");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: this object is not a signal"));
0
1009-
1010 QV4::ScopedFunctionObject functionValue(scope);-
1011 QV4::ScopedValue functionThisValue(scope, QV4::Encode::undefined());-
1012-
1013 if (argc == 1) {
argc == 1Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-10
1014 functionValue = argv[0];-
1015 } else if (argc >= 2) {
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
argc >= 2Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-10
1016 functionThisValue = argv[0];-
1017 functionValue = argv[1];-
1018 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
1019-
1020 if (!functionValue)
!functionValueDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
1021 THROW_GENERIC_ERROR("Function.prototype.disconnect: target is not a function");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: target is not a function"));
0
1022-
1023 if (!functionThisValue->isUndefined() && !functionThisValue->isObject())
!functionThisV...>isUndefined()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
!functionThisValue->isObject()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-10
1024 THROW_GENERIC_ERROR("Function.prototype.disconnect: target this is not an object");
never executed: return scope.engine->throwError(QString::fromUtf8("Function.prototype.disconnect: target this is not an object"));
0
1025-
1026 QPair<QObject *, int> functionData = QObjectMethod::extractQtMethod(functionValue);-
1027-
1028 void *a[] = {-
1029 scope.engine,-
1030 functionValue.ptr,-
1031 functionThisValue.ptr,-
1032 functionData.first,-
1033 &functionData.second-
1034 };-
1035-
1036 QObjectPrivate::disconnect(signalObject, signalIndex, reinterpret_cast<void**>(&a));-
1037-
1038 RETURN_UNDEFINED();
executed 12 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_qqmlecmascript
12
1039}-
1040-
1041static void markChildQObjectsRecursively(QObject *parent, QV4::MarkStack *markStack)-
1042{-
1043 const QObjectList &children = parent->children();-
1044 for (int i = 0; i < children.count(); ++i) {
i < children.count()Description
TRUEevaluated 52087 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 109502 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
52087-109502
1045 QObject *child = children.at(i);-
1046 if (!child)
!childDescription
TRUEnever evaluated
FALSEevaluated 52087 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
0-52087
1047 continue;
never executed: continue;
0
1048 QObjectWrapper::markWrapper(child, markStack);-
1049 markChildQObjectsRecursively(child, markStack);-
1050 }
executed 52087 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
52087
1051}
executed 109502 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
109502
1052-
1053void Heap::QObjectWrapper::markObjects(Heap::Base *that, QV4::MarkStack *markStack)-
1054{-
1055 QObjectWrapper *This = static_cast<QObjectWrapper *>(that);-
1056-
1057 if (QObject *o = This->object()) {
QObject *o = This->object()Description
TRUEevaluated 99266 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
16-99266
1058 QQmlVMEMetaObject *vme = QQmlVMEMetaObject::get(o);-
1059 if (vme)
vmeDescription
TRUEevaluated 8371 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 90895 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
8371-90895
1060 vme->mark(markStack);
executed 8371 times by 18 tests: vme->mark(markStack);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
8371
1061-
1062 // Children usually don't need to be marked, the gc keeps them alive.-
1063 // But in the rare case of a "floating" QObject without a parent that-
1064 // _gets_ marked (we've been called here!) then we also need to-
1065 // propagate the marking down to the children recursively.-
1066 if (!o->parent())
!o->parent()Description
TRUEevaluated 57415 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 41851 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
41851-57415
1067 markChildQObjectsRecursively(o, markStack);
executed 57415 times by 21 tests: markChildQObjectsRecursively(o, markStack);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
57415
1068 }
executed 99266 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
99266
1069-
1070 Object::markObjects(that, markStack);-
1071}
executed 99282 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
99282
1072-
1073void QObjectWrapper::destroyObject(bool lastCall)-
1074{-
1075 Heap::QObjectWrapper *h = d();-
1076 if (!h->internalClass)
!h->internalClassDescription
TRUEnever evaluated
FALSEevaluated 535996 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-535996
1077 return; // destroyObject already got called
never executed: return;
0
1078-
1079 if (h->object()) {
h->object()Description
TRUEevaluated 60412 times by 58 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • ...
FALSEevaluated 475584 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
60412-475584
1080 QQmlData *ddata = QQmlData::get(h->object(), false);-
1081 if (ddata) {
ddataDescription
TRUEevaluated 60412 times by 58 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • ...
FALSEnever evaluated
0-60412
1082 if (!h->object()->parent() && !ddata->indestructible) {
!h->object()->parent()Description
TRUEevaluated 51023 times by 56 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • ...
FALSEevaluated 9389 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
!ddata->indestructibleDescription
TRUEevaluated 940 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 50083 times by 53 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap