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
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
940-51023
1083 if (ddata && ddata->ownContext) {
ddataDescription
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
FALSEnever evaluated
0-940
1084 Q_ASSERT(ddata->ownContext == ddata->context);-
1085 ddata->ownContext->emitDestruction();-
1086 ddata->ownContext = nullptr;-
1087 ddata->context = nullptr;-
1088 }
executed 312 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlqt
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
312
1089 // This object is notionally destroyed now-
1090 ddata->isQueuedForDeletion = true;-
1091 if (lastCall)
lastCallDescription
TRUEevaluated 604 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
FALSEevaluated 336 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquickrepeater
336-604
1092 delete h->object();
executed 604 times by 13 tests: delete h->object();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
604
1093 else-
1094 h->object()->deleteLater();
executed 336 times by 9 tests: h->object()->deleteLater();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquickrepeater
336
1095 } else {-
1096 // If the object is C++-owned, we still have to release the weak reference we have-
1097 // to it.-
1098 ddata->jsWrapper.clear();-
1099 if (lastCall && ddata->propertyCache) {
lastCallDescription
TRUEevaluated 59418 times by 55 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
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
ddata->propertyCacheDescription
TRUEevaluated 58010 times by 55 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
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
FALSEevaluated 1408 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
54-59418
1100 ddata->propertyCache->release();-
1101 ddata->propertyCache = nullptr;-
1102 }
executed 58010 times by 55 tests: end of block
Executed 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
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
58010
1103 }
executed 59472 times by 55 tests: end of block
Executed 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
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
59472
1104 }-
1105 }
executed 60412 times by 58 tests: end of block
Executed 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
  • ...
60412
1106-
1107 h->~Data();-
1108}
executed 535996 times by 141 tests: end of block
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
  • ...
535996
1109-
1110-
1111DEFINE_OBJECT_VTABLE(QObjectWrapper);-
1112-
1113namespace {-
1114-
1115template<typename A, typename B, typename C, typename D, typename E,-
1116 typename F, typename G, typename H>-
1117class MaxSizeOf8 {-
1118 template<typename Z, typename X>-
1119 struct SMax {-
1120 char dummy[sizeof(Z) > sizeof(X) ? sizeof(Z) : sizeof(X)];-
1121 };-
1122public:-
1123 static const size_t Size = sizeof(SMax<A, SMax<B, SMax<C, SMax<D, SMax<E, SMax<F, SMax<G, H> > > > > > >);-
1124};-
1125-
1126struct CallArgument {-
1127 inline CallArgument();-
1128 inline ~CallArgument();-
1129 inline void *dataPtr();-
1130-
1131 inline void initAsType(int type);-
1132 inline void fromValue(int type, ExecutionEngine *, const QV4::Value &);-
1133 inline ReturnedValue toValue(ExecutionEngine *);-
1134-
1135private:-
1136 CallArgument(const CallArgument &);-
1137-
1138 inline void cleanup();-
1139-
1140 template <class T, class M>-
1141 void fromContainerValue(const QV4::Object *object, int type, M CallArgument::*member, bool &queryEngine);-
1142-
1143 union {-
1144 float floatValue;-
1145 double doubleValue;-
1146 quint32 intValue;-
1147 bool boolValue;-
1148 QObject *qobjectPtr;-
1149 std::vector<int> *stdVectorIntPtr;-
1150 std::vector<qreal> *stdVectorRealPtr;-
1151 std::vector<bool> *stdVectorBoolPtr;-
1152 std::vector<QString> *stdVectorQStringPtr;-
1153 std::vector<QUrl> *stdVectorQUrlPtr;-
1154 std::vector<QModelIndex> *stdVectorQModelIndexPtr;-
1155-
1156 char allocData[MaxSizeOf8<QVariant,-
1157 QString,-
1158 QList<QObject *>,-
1159 QJSValue,-
1160 QQmlV4Handle,-
1161 QJsonArray,-
1162 QJsonObject,-
1163 QJsonValue>::Size];-
1164 qint64 q_for_alignment;-
1165 };-
1166-
1167 // Pointers to allocData-
1168 union {-
1169 QString *qstringPtr;-
1170 QByteArray *qbyteArrayPtr;-
1171 QVariant *qvariantPtr;-
1172 QList<QObject *> *qlistPtr;-
1173 QJSValue *qjsValuePtr;-
1174 QQmlV4Handle *handlePtr;-
1175 QJsonArray *jsonArrayPtr;-
1176 QJsonObject *jsonObjectPtr;-
1177 QJsonValue *jsonValuePtr;-
1178 };-
1179-
1180 int type;-
1181};-
1182}-
1183-
1184static QV4::ReturnedValue CallMethod(const QQmlObjectOrGadget &object, int index, int returnType, int argCount,-
1185 int *argTypes, QV4::ExecutionEngine *engine, QV4::CallData *callArgs,-
1186 QMetaObject::Call callType = QMetaObject::InvokeMetaMethod)-
1187{-
1188 if (argCount > 0) {
argCount > 0Description
TRUEevaluated 44605 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 7075 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfocusscope
  • tst_qquickgridview
  • ...
7075-44605
1189 // Convert all arguments.-
1190 QVarLengthArray<CallArgument, 9> args(argCount + 1);-
1191 args[0].initAsType(returnType);-
1192 for (int ii = 0; ii < argCount; ++ii)
ii < argCountDescription
TRUEevaluated 66024 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 44605 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
44605-66024
1193 args[ii + 1].fromValue(argTypes[ii], engine, callArgs->args[ii]);
executed 66024 times by 29 tests: args[ii + 1].fromValue(argTypes[ii], engine, callArgs->args[ii]);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
66024
1194 QVarLengthArray<void *, 9> argData(args.count());-
1195 for (int ii = 0; ii < args.count(); ++ii)
ii < args.count()Description
TRUEevaluated 110629 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 44605 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
44605-110629
1196 argData[ii] = args[ii].dataPtr();
executed 110629 times by 29 tests: argData[ii] = args[ii].dataPtr();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
110629
1197-
1198 object.metacall(callType, index, argData.data());-
1199-
1200 return args[0].toValue(engine);
executed 44605 times by 29 tests: return args[0].toValue(engine);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
44605
1201-
1202 } else if (returnType != QMetaType::Void) {
returnType != QMetaType::VoidDescription
TRUEevaluated 4398 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
FALSEevaluated 2677 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickrepeater
  • ...
2677-4398
1203-
1204 CallArgument arg;-
1205 arg.initAsType(returnType);-
1206-
1207 void *args[] = { arg.dataPtr() };-
1208-
1209 object.metacall(callType, index, args);-
1210-
1211 return arg.toValue(engine);
executed 4398 times by 16 tests: return arg.toValue(engine);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
4398
1212-
1213 } else {-
1214-
1215 void *args[] = { nullptr };-
1216 object.metacall(callType, index, args);-
1217 return Encode::undefined();
executed 2677 times by 32 tests: return Encode::undefined();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickrepeater
  • ...
2677
1218-
1219 }-
1220}-
1221-
1222/*-
1223 Returns the match score for converting \a actual to be of type \a conversionType. A-
1224 zero score means "perfect match" whereas a higher score is worse.-
1225-
1226 The conversion table is copied out of the \l QScript::callQtMethod() function.-
1227*/-
1228static int MatchScore(const QV4::Value &actual, int conversionType)-
1229{-
1230 if (actual.isNumber()) {
actual.isNumber()Description
TRUEevaluated 286 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEevaluated 1270 times by 7 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
286-1270
1231 switch (conversionType) {-
1232 case QMetaType::Double:
executed 26 times by 2 tests: case QMetaType::Double:
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
26
1233 return 0;
executed 26 times by 2 tests: return 0;
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
26
1234 case QMetaType::Float:
never executed: case QMetaType::Float:
0
1235 return 1;
never executed: return 1;
0
1236 case QMetaType::LongLong:
never executed: case QMetaType::LongLong:
0
1237 case QMetaType::ULongLong:
never executed: case QMetaType::ULongLong:
0
1238 return 2;
never executed: return 2;
0
1239 case QMetaType::Long:
never executed: case QMetaType::Long:
0
1240 case QMetaType::ULong:
never executed: case QMetaType::ULong:
0
1241 return 3;
never executed: return 3;
0
1242 case QMetaType::Int:
executed 236 times by 6 tests: case QMetaType::Int:
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquicklayouts
  • tst_qquickpathview
236
1243 case QMetaType::UInt:
never executed: case QMetaType::UInt:
0
1244 return 4;
executed 236 times by 6 tests: return 4;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquicklayouts
  • tst_qquickpathview
236
1245 case QMetaType::Short:
never executed: case QMetaType::Short:
0
1246 case QMetaType::UShort:
never executed: case QMetaType::UShort:
0
1247 return 5;
never executed: return 5;
0
1248 break;
dead code: break;
-
1249 case QMetaType::Char:
never executed: case QMetaType::Char:
0
1250 case QMetaType::UChar:
never executed: case QMetaType::UChar:
0
1251 return 6;
never executed: return 6;
0
1252 case QMetaType::QJsonValue:
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_qqmlecmascript
4
1253 return 5;
executed 4 times by 1 test: return 5;
Executed by:
  • tst_qqmlecmascript
4
1254 default:
executed 20 times by 2 tests: default:
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
20
1255 return 10;
executed 20 times by 2 tests: return 10;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
20
1256 }-
1257 } else if (actual.isString()) {
actual.isString()Description
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 1204 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
66-1204
1258 switch (conversionType) {-
1259 case QMetaType::QString:
executed 42 times by 2 tests: case QMetaType::QString:
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
42
1260 return 0;
executed 42 times by 2 tests: return 0;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
42
1261 case QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_qqmlecmascript
2
1262 return 5;
executed 2 times by 1 test: return 5;
Executed by:
  • tst_qqmlecmascript
2
1263 default:
executed 22 times by 2 tests: default:
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
22
1264 return 10;
executed 22 times by 2 tests: return 10;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
22
1265 }-
1266 } else if (actual.isBoolean()) {
actual.isBoolean()Description
TRUEnever evaluated
FALSEevaluated 1204 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
0-1204
1267 switch (conversionType) {-
1268 case QMetaType::Bool:
never executed: case QMetaType::Bool:
0
1269 return 0;
never executed: return 0;
0
1270 case QMetaType::QJsonValue:
never executed: case QMetaType::QJsonValue:
0
1271 return 5;
never executed: return 5;
0
1272 default:
never executed: default:
0
1273 return 10;
never executed: return 10;
0
1274 }-
1275 } else if (actual.as<DateObject>()) {
actual.as<DateObject>()Description
TRUEnever evaluated
FALSEevaluated 1204 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
0-1204
1276 switch (conversionType) {-
1277 case QMetaType::QDateTime:
never executed: case QMetaType::QDateTime:
0
1278 return 0;
never executed: return 0;
0
1279 case QMetaType::QDate:
never executed: case QMetaType::QDate:
0
1280 return 1;
never executed: return 1;
0
1281 case QMetaType::QTime:
never executed: case QMetaType::QTime:
0
1282 return 2;
never executed: return 2;
0
1283 default:
never executed: default:
0
1284 return 10;
never executed: return 10;
0
1285 }-
1286 } else if (actual.as<QV4::RegExpObject>()) {
actual.as<QV4::RegExpObject>()Description
TRUEnever evaluated
FALSEevaluated 1204 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
0-1204
1287 switch (conversionType) {-
1288 case QMetaType::QRegExp:
never executed: case QMetaType::QRegExp:
0
1289 return 0;
never executed: return 0;
0
1290 default:
never executed: default:
0
1291 return 10;
never executed: return 10;
0
1292 }-
1293 } else if (actual.as<ArrayBuffer>()) {
actual.as<ArrayBuffer>()Description
TRUEnever evaluated
FALSEevaluated 1204 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
0-1204
1294 switch (conversionType) {-
1295 case QMetaType::QByteArray:
never executed: case QMetaType::QByteArray:
0
1296 return 0;
never executed: return 0;
0
1297 default:
never executed: default:
0
1298 return 10;
never executed: return 10;
0
1299 }-
1300 } else if (actual.as<ArrayObject>()) {
actual.as<ArrayObject>()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 1194 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
10-1194
1301 switch (conversionType) {-
1302 case QMetaType::QJsonArray:
executed 2 times by 1 test: case QMetaType::QJsonArray:
Executed by:
  • tst_qqmlecmascript
2
1303 return 3;
executed 2 times by 1 test: return 3;
Executed by:
  • tst_qqmlecmascript
2
1304 case QMetaType::QStringList:
never executed: case QMetaType::QStringList:
0
1305 case QMetaType::QVariantList:
never executed: case QMetaType::QVariantList:
0
1306 return 5;
never executed: return 5;
0
1307 case QMetaType::QVector4D:
never executed: case QMetaType::QVector4D:
0
1308 case QMetaType::QMatrix4x4:
never executed: case QMetaType::QMatrix4x4:
0
1309 return 6;
never executed: return 6;
0
1310 case QMetaType::QVector3D:
never executed: case QMetaType::QVector3D:
0
1311 return 7;
never executed: return 7;
0
1312 default:
executed 8 times by 1 test: default:
Executed by:
  • tst_qqmlecmascript
8
1313 return 10;
executed 8 times by 1 test: return 10;
Executed by:
  • tst_qqmlecmascript
8
1314 }-
1315 } else if (actual.isNull()) {
actual.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 1192 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
2-1192
1316 switch (conversionType) {-
1317 case QMetaType::Nullptr:
never executed: case QMetaType::Nullptr:
0
1318 case QMetaType::VoidStar:
never executed: case QMetaType::VoidStar:
0
1319 case QMetaType::QObjectStar:
never executed: case QMetaType::QObjectStar:
0
1320 case QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_qqmlecmascript
2
1321 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qqmlecmascript
2
1322 default: {
never executed: default:
0
1323 const char *typeName = QMetaType::typeName(conversionType);-
1324 if (typeName && typeName[strlen(typeName) - 1] == '*')
typeNameDescription
TRUEnever evaluated
FALSEnever evaluated
typeName[strle...e) - 1] == '*'Description
TRUEnever evaluated
FALSEnever evaluated
0
1325 return 0;
never executed: return 0;
0
1326 else-
1327 return 10;
never executed: return 10;
0
1328 }-
1329 }-
1330 } else if (const QV4::Object *obj = actual.as<QV4::Object>()) {
const QV4::Obj...QV4::Object>()Description
TRUEevaluated 1182 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-1182
1331 if (obj->as<QV4::VariantObject>()) {
obj->as<QV4::VariantObject>()Description
TRUEnever evaluated
FALSEevaluated 1182 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
0-1182
1332 if (conversionType == qMetaTypeId<QVariant>())
conversionType...Id<QVariant>()Description
TRUEnever evaluated
FALSEnever evaluated
0
1333 return 0;
never executed: return 0;
0
1334 if (obj->engine()->toVariant(actual, -1).userType() == conversionType)
obj->engine()-...conversionTypeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1335 return 0;
never executed: return 0;
0
1336 else-
1337 return 10;
never executed: return 10;
0
1338 }-
1339-
1340 if (obj->as<QObjectWrapper>()) {
obj->as<QObjectWrapper>()Description
TRUEevaluated 1018 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitemparticle
  • tst_qquicklayouts
FALSEevaluated 164 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
164-1018
1341 switch (conversionType) {-
1342 case QMetaType::QObjectStar:
executed 2 times by 1 test: case QMetaType::QObjectStar:
Executed by:
  • tst_qqmlecmascript
2
1343 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qqmlecmascript
2
1344 default:
executed 1016 times by 2 tests: default:
Executed by:
  • tst_qquickitemparticle
  • tst_qquicklayouts
1016
1345 return 10;
executed 1016 times by 2 tests: return 10;
Executed by:
  • tst_qquickitemparticle
  • tst_qquicklayouts
1016
1346 }-
1347 }-
1348-
1349 if (obj->as<QV4::QQmlValueTypeWrapper>()) {
obj->as<QV4::Q...TypeWrapper>()Description
TRUEevaluated 150 times by 3 tests
Evaluated by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
14-150
1350 if (obj->engine()->toVariant(actual, -1).userType() == conversionType)
obj->engine()-...conversionTypeDescription
TRUEevaluated 104 times by 3 tests
Evaluated by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
46-104
1351 return 0;
executed 104 times by 3 tests: return 0;
Executed by:
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
104
1352 return 10;
executed 46 times by 2 tests: return 10;
Executed by:
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
46
1353 } else if (conversionType == QMetaType::QJsonObject) {
conversionType...e::QJsonObjectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-12
1354 return 5;
executed 2 times by 1 test: return 5;
Executed by:
  • tst_qqmlecmascript
2
1355 } else if (conversionType == qMetaTypeId<QJSValue>()) {
conversionType...Id<QJSValue>()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-10
1356 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qqmlecmascript
2
1357 } else {-
1358 return 10;
executed 10 times by 1 test: return 10;
Executed by:
  • tst_qqmlecmascript
10
1359 }-
1360-
1361 } else {-
1362 return 10;
executed 10 times by 1 test: return 10;
Executed by:
  • tst_qqmlecmascript
10
1363 }-
1364}-
1365-
1366static inline int QMetaObject_methods(const QMetaObject *metaObject)-
1367{-
1368 struct Private-
1369 {-
1370 int revision;-
1371 int className;-
1372 int classInfoCount, classInfoData;-
1373 int methodCount, methodData;-
1374 };-
1375-
1376 return reinterpret_cast<const Private *>(metaObject->d.data)->methodCount;
never executed: return reinterpret_cast<const Private *>(metaObject->d.data)->methodCount;
0
1377}-
1378-
1379/*-
1380Returns the next related method, if one, or 0.-
1381*/-
1382static const QQmlPropertyData * RelatedMethod(const QQmlObjectOrGadget &object,-
1383 const QQmlPropertyData *current,-
1384 QQmlPropertyData &dummy,-
1385 const QQmlPropertyCache *propertyCache)-
1386{-
1387 if (!current->isOverload())
!current->isOverload()Description
TRUEevaluated 1046 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEevaluated 1248 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
1046-1248
1388 return nullptr;
executed 1046 times by 8 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
1046
1389-
1390 Q_ASSERT(!current->overrideIndexIsProperty());-
1391-
1392 if (propertyCache) {
propertyCacheDescription
TRUEevaluated 1248 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEnever evaluated
0-1248
1393 return propertyCache->method(current->overrideIndex());
executed 1248 times by 12 tests: return propertyCache->method(current->overrideIndex());
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
1248
1394 } else {-
1395 const QMetaObject *mo = object.metaObject();-
1396 int methodOffset = mo->methodCount() - QMetaObject_methods(mo);-
1397-
1398 while (methodOffset > current->overrideIndex()) {
methodOffset >...verrideIndex()Description
TRUEnever evaluated
FALSEnever evaluated
0
1399 mo = mo->superClass();-
1400 methodOffset -= QMetaObject_methods(mo);-
1401 }
never executed: end of block
0
1402-
1403 // If we've been called before with the same override index, then-
1404 // we can't go any further...-
1405 if (&dummy == current && dummy.coreIndex() == current->overrideIndex())
&dummy == currentDescription
TRUEnever evaluated
FALSEnever evaluated
dummy.coreInde...verrideIndex()Description
TRUEnever evaluated
FALSEnever evaluated
0
1406 return nullptr;
never executed: return nullptr;
0
1407-
1408 QMetaMethod method = mo->method(current->overrideIndex());-
1409 dummy.load(method);-
1410-
1411 // Look for overloaded methods-
1412 QByteArray methodName = method.name();-
1413 for (int ii = current->overrideIndex() - 1; ii >= methodOffset; --ii) {
ii >= methodOffsetDescription
TRUEnever evaluated
FALSEnever evaluated
0
1414 if (methodName == mo->method(ii).name()) {
methodName == ...hod(ii).name()Description
TRUEnever evaluated
FALSEnever evaluated
0
1415 dummy.setOverload(true);-
1416 dummy.setOverrideIndexIsProperty(0);-
1417 dummy.setOverrideIndex(ii);-
1418 return &dummy;
never executed: return &dummy;
0
1419 }-
1420 }
never executed: end of block
0
1421-
1422 return &dummy;
never executed: return &dummy;
0
1423 }-
1424}-
1425-
1426static QV4::ReturnedValue CallPrecise(const QQmlObjectOrGadget &object, const QQmlPropertyData &data,-
1427 QV4::ExecutionEngine *engine, QV4::CallData *callArgs,-
1428 QMetaObject::Call callType = QMetaObject::InvokeMetaMethod)-
1429{-
1430 QByteArray unknownTypeError;-
1431-
1432 int returnType = object.methodReturnType(data, &unknownTypeError);-
1433-
1434 if (returnType == QMetaType::UnknownType) {
returnType == ...e::UnknownTypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 51686 times by 49 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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • ...
2-51686
1435 return engine->throwError(QLatin1String("Unknown method return type: ")
executed 2 times by 1 test: return engine->throwError(QLatin1String("Unknown method return type: ") + QLatin1String(unknownTypeError));
Executed by:
  • tst_qqmlecmascript
2
1436 + QLatin1String(unknownTypeError));
executed 2 times by 1 test: return engine->throwError(QLatin1String("Unknown method return type: ") + QLatin1String(unknownTypeError));
Executed by:
  • tst_qqmlecmascript
2
1437 }-
1438-
1439 if (data.hasArguments()) {
data.hasArguments()Description
TRUEevaluated 44611 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 7075 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfocusscope
  • tst_qquickgridview
  • ...
7075-44611
1440-
1441 int *args = nullptr;-
1442 QQmlMetaObject::ArgTypeStorage storage;-
1443-
1444 if (data.isConstructor())
data.isConstructor()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 44605 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
6-44605
1445 args = static_cast<const QQmlStaticMetaObject&>(object).constructorParameterTypes(
executed 6 times by 1 test: args = static_cast<const QQmlStaticMetaObject&>(object).constructorParameterTypes( data.coreIndex(), &storage, &unknownTypeError);
Executed by:
  • tst_qjsengine
6
1446 data.coreIndex(), &storage, &unknownTypeError);
executed 6 times by 1 test: args = static_cast<const QQmlStaticMetaObject&>(object).constructorParameterTypes( data.coreIndex(), &storage, &unknownTypeError);
Executed by:
  • tst_qjsengine
6
1447 else-
1448 args = object.methodParameterTypes(data.coreIndex(), &storage, &unknownTypeError);
executed 44605 times by 29 tests: args = object.methodParameterTypes(data.coreIndex(), &storage, &unknownTypeError);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
44605
1449-
1450 if (!args) {
!argsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 44609 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
2-44609
1451 return engine->throwError(QLatin1String("Unknown method parameter type: ")
executed 2 times by 1 test: return engine->throwError(QLatin1String("Unknown method parameter type: ") + QLatin1String(unknownTypeError));
Executed by:
  • tst_qqmlecmascript
2
1452 + QLatin1String(unknownTypeError));
executed 2 times by 1 test: return engine->throwError(QLatin1String("Unknown method parameter type: ") + QLatin1String(unknownTypeError));
Executed by:
  • tst_qqmlecmascript
2
1453 }-
1454-
1455 if (args[0] > callArgs->argc()) {
args[0] > callArgs->argc()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 44605 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
4-44605
1456 QString error = QLatin1String("Insufficient arguments");-
1457 return engine->throwError(error);
executed 4 times by 1 test: return engine->throwError(error);
Executed by:
  • tst_qqmlecmascript
4
1458 }-
1459-
1460 return CallMethod(object, data.coreIndex(), returnType, args[0], args + 1, engine, callArgs, callType);
executed 44605 times by 29 tests: return CallMethod(object, data.coreIndex(), returnType, args[0], args + 1, engine, callArgs, callType);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
44605
1461-
1462 } else {-
1463-
1464 return CallMethod(object, data.coreIndex(), returnType, 0, nullptr, engine, callArgs, callType);
executed 7075 times by 40 tests: return CallMethod(object, data.coreIndex(), returnType, 0, nullptr, engine, callArgs, callType);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfocusscope
  • tst_qquickgridview
  • ...
7075
1465-
1466 }-
1467}-
1468-
1469/*-
1470Resolve the overloaded method to call. The algorithm works conceptually like this:-
1471 1. Resolve the set of overloads it is *possible* to call.-
1472 Impossible overloads include those that have too many parameters or have parameters-
1473 of unknown type.-
1474 2. Filter the set of overloads to only contain those with the closest number of-
1475 parameters.-
1476 For example, if we are called with 3 parameters and there are 2 overloads that-
1477 take 2 parameters and one that takes 3, eliminate the 2 parameter overloads.-
1478 3. Find the best remaining overload based on its match score.-
1479 If two or more overloads have the same match score, call the last one. The match-
1480 score is constructed by adding the matchScore() result for each of the parameters.-
1481*/-
1482static QV4::ReturnedValue CallOverloaded(const QQmlObjectOrGadget &object, const QQmlPropertyData &data,-
1483 QV4::ExecutionEngine *engine, QV4::CallData *callArgs, const QQmlPropertyCache *propertyCache,-
1484 QMetaObject::Call callType = QMetaObject::InvokeMetaMethod)-
1485{-
1486 int argumentCount = callArgs->argc();-
1487-
1488 QQmlPropertyData best;-
1489 int bestParameterScore = INT_MAX;-
1490 int bestMatchScore = INT_MAX;-
1491-
1492 QQmlPropertyData dummy;-
1493 const QQmlPropertyData *attempt = &data;-
1494-
1495 QV4::Scope scope(engine);-
1496 QV4::ScopedValue v(scope);-
1497-
1498 do {-
1499 QQmlMetaObject::ArgTypeStorage storage;-
1500 int methodArgumentCount = 0;-
1501 int *methodArgTypes = nullptr;-
1502 if (attempt->hasArguments()) {
attempt->hasArguments()Description
TRUEevaluated 2358 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEevaluated 3724 times by 9 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
2358-3724
1503 int *args = object.methodParameterTypes(attempt->coreIndex(), &storage, nullptr);-
1504 if (!args) // Must be an unknown argument
!argsDescription
TRUEnever evaluated
FALSEevaluated 2358 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
0-2358
1505 continue;
never executed: continue;
0
1506-
1507 methodArgumentCount = args[0];-
1508 methodArgTypes = args + 1;-
1509 }
executed 2358 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
2358
1510-
1511 if (methodArgumentCount > argumentCount)
methodArgument... argumentCountDescription
TRUEevaluated 1016 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquickpathview
FALSEevaluated 5066 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
1016-5066
1512 continue; // We don't have sufficient arguments to call this method
executed 1016 times by 9 tests: continue;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquickpathview
1016
1513-
1514 int methodParameterScore = argumentCount - methodArgumentCount;-
1515 if (methodParameterScore > bestParameterScore)
methodParamete...ParameterScoreDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
FALSEevaluated 5052 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
14-5052
1516 continue; // We already have a better option
executed 14 times by 3 tests: continue;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
14
1517-
1518 int methodMatchScore = 0;-
1519 for (int ii = 0; ii < methodArgumentCount; ++ii)
ii < methodArgumentCountDescription
TRUEevaluated 1540 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEevaluated 5052 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
1540-5052
1520 methodMatchScore += MatchScore((v = callArgs->args[ii]), methodArgTypes[ii]);
executed 1540 times by 9 tests: methodMatchScore += MatchScore((v = callArgs->args[ii]), methodArgTypes[ii]);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
1540
1521-
1522 if (bestParameterScore > methodParameterScore || bestMatchScore > methodMatchScore) {
bestParameterS...ParameterScoreDescription
TRUEevaluated 4952 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
FALSEevaluated 100 times by 4 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
bestMatchScore...thodMatchScoreDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
40-4952
1523 best = *attempt;-
1524 bestParameterScore = methodParameterScore;-
1525 bestMatchScore = methodMatchScore;-
1526 }
executed 4992 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
4992
1527-
1528 if (bestParameterScore == 0 && bestMatchScore == 0)
bestParameterScore == 0Description
TRUEevaluated 4930 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
FALSEevaluated 122 times by 6 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquicklayouts
bestMatchScore == 0Description
TRUEevaluated 3800 times by 12 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 1130 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
122-4930
1529 break; // We can't get better than that
executed 3800 times by 12 tests: break;
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
3800
1530-
1531 } while ((attempt = RelatedMethod(object, attempt, dummy, propertyCache)) != nullptr);
executed 1252 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
(attempt = Rel...e)) != nullptrDescription
TRUEevaluated 1238 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
FALSEevaluated 1044 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
1044-1252
1532-
1533 if (best.isValid()) {
best.isValid()Description
TRUEevaluated 4842 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-4842
1534 return CallPrecise(object, best, engine, callArgs, callType);
executed 4842 times by 15 tests: return CallPrecise(object, best, engine, callArgs, callType);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
4842
1535 } else {-
1536 QString error = QLatin1String("Unable to determine callable overload. Candidates are:");-
1537 const QQmlPropertyData *candidate = &data;-
1538 while (candidate) {
candidateDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-12
1539 error += QLatin1String("\n ") +-
1540 QString::fromUtf8(object.metaObject()->method(candidate->coreIndex())-
1541 .methodSignature());-
1542 candidate = RelatedMethod(object, candidate, dummy, propertyCache);-
1543 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
1544-
1545 return engine->throwError(error);
executed 2 times by 1 test: return engine->throwError(error);
Executed by:
  • tst_qqmlecmascript
2
1546 }-
1547}-
1548-
1549CallArgument::CallArgument()-
1550: type(QVariant::Invalid)-
1551{-
1552}
executed 115027 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
115027
1553-
1554CallArgument::~CallArgument()-
1555{-
1556 cleanup();-
1557}
executed 115027 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
115027
1558-
1559void CallArgument::cleanup()-
1560{-
1561 if (type == QMetaType::QString) {
type == QMetaType::QStringDescription
TRUEevaluated 24670 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
FALSEevaluated 90357 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
24670-90357
1562 qstringPtr->~QString();-
1563 } else if (type == QMetaType::QByteArray) {
executed 24670 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
type == QMetaType::QByteArrayDescription
TRUEnever evaluated
FALSEevaluated 90357 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
0-90357
1564 qbyteArrayPtr->~QByteArray();-
1565 } else if (type == -1 || type == QMetaType::QVariant) {
never executed: end of block
type == -1Description
TRUEevaluated 4099 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_quicktestmainwithsetup
FALSEevaluated 86258 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
type == QMetaType::QVariantDescription
TRUEevaluated 3138 times by 8 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 83120 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
0-86258
1566 qvariantPtr->~QVariant();-
1567 } else if (type == qMetaTypeId<QJSValue>()) {
executed 7237 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
type == qMetaT...Id<QJSValue>()Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquicklayouts
FALSEevaluated 83064 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
56-83064
1568 qjsValuePtr->~QJSValue();-
1569 } else if (type == qMetaTypeId<QList<QObject *> >()) {
executed 56 times by 3 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquicklayouts
type == qMetaT...QObject *> >()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 83060 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
4-83060
1570 qlistPtr->~QList<QObject *>();-
1571 } else if (type == QMetaType::QJsonArray) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
type == QMetaType::QJsonArrayDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 83056 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
4-83056
1572 jsonArrayPtr->~QJsonArray();-
1573 } else if (type == QMetaType::QJsonObject) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
type == QMetaType::QJsonObjectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 83052 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
4-83052
1574 jsonObjectPtr->~QJsonObject();-
1575 } else if (type == QMetaType::QJsonValue) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
type == QMetaType::QJsonValueDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 83034 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
4-83034
1576 jsonValuePtr->~QJsonValue();-
1577 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
18
1578}
executed 115027 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
115027
1579-
1580void *CallArgument::dataPtr()-
1581{-
1582 if (type == -1)
type == -1Description
TRUEevaluated 4099 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_quicktestmainwithsetup
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
4099-110928
1583 return qvariantPtr->data();
executed 4099 times by 15 tests: return qvariantPtr->data();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_quicktestmainwithsetup
4099
1584 else if (type == qMetaTypeId<std::vector<int>>())
type == qMetaT...vector<int>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1585 return stdVectorIntPtr;
never executed: return stdVectorIntPtr;
0
1586 else if (type == qMetaTypeId<std::vector<qreal>>())
type == qMetaT...ctor<qreal>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1587 return stdVectorRealPtr;
never executed: return stdVectorRealPtr;
0
1588 else if (type == qMetaTypeId<std::vector<bool>>())
type == qMetaT...ector<bool>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1589 return stdVectorBoolPtr;
never executed: return stdVectorBoolPtr;
0
1590 else if (type == qMetaTypeId<std::vector<QString>>())
type == qMetaT...or<QString>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1591 return stdVectorQStringPtr;
never executed: return stdVectorQStringPtr;
0
1592 else if (type == qMetaTypeId<std::vector<QUrl>>())
type == qMetaT...ector<QUrl>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1593 return stdVectorQUrlPtr;
never executed: return stdVectorQUrlPtr;
0
1594 else if (type == qMetaTypeId<std::vector<QModelIndex>>())
type == qMetaT...ModelIndex>>()Description
TRUEnever evaluated
FALSEevaluated 110928 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-110928
1595 return stdVectorQModelIndexPtr;
never executed: return stdVectorQModelIndexPtr;
0
1596 else if (type != 0)
type != 0Description
TRUEevaluated 97474 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
FALSEevaluated 13454 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
13454-97474
1597 return (void *)&allocData;
executed 97474 times by 32 tests: return (void *)&allocData;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
97474
1598 return nullptr;
executed 13454 times by 22 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
13454
1599}-
1600-
1601void CallArgument::initAsType(int callType)-
1602{-
1603 if (type != 0) { cleanup(); type = 0; }
never executed: end of block
type != 0Description
TRUEnever evaluated
FALSEevaluated 49003 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
0-49003
1604 if (callType == QMetaType::UnknownType || callType == QMetaType::Void) return;
executed 13454 times by 22 tests: return;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
callType == QM...e::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 49003 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
callType == QMetaType::VoidDescription
TRUEevaluated 13454 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
FALSEevaluated 35549 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
0-49003
1605-
1606 if (callType == qMetaTypeId<QJSValue>()) {
callType == qM...Id<QJSValue>()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 35541 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
8-35541
1607 qjsValuePtr = new (&allocData) QJSValue();-
1608 type = callType;-
1609 } else if (callType == QMetaType::Int ||
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
callType == QMetaType::IntDescription
TRUEevaluated 2032 times by 7 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
FALSEevaluated 33509 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
8-33509
1610 callType == QMetaType::UInt ||
callType == QMetaType::UIntDescription
TRUEnever evaluated
FALSEevaluated 33509 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
0-33509
1611 callType == QMetaType::Bool ||
callType == QMetaType::BoolDescription
TRUEevaluated 2066 times by 8 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 31443 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
2066-31443
1612 callType == QMetaType::Double ||
callType == QMetaType::DoubleDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 31413 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
30-31413
1613 callType == QMetaType::Float) {
callType == QMetaType::FloatDescription
TRUEnever evaluated
FALSEevaluated 31413 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
0-31413
1614 type = callType;-
1615 } else if (callType == QMetaType::QObjectStar) {
executed 4128 times by 11 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
callType == QM...e::QObjectStarDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 31383 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
30-31383
1616 qobjectPtr = nullptr;-
1617 type = callType;-
1618 } else if (callType == QMetaType::QString) {
executed 30 times by 2 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
callType == QMetaType::QStringDescription
TRUEevaluated 214 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 31169 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
30-31169
1619 qstringPtr = new (&allocData) QString();-
1620 type = callType;-
1621 } else if (callType == QMetaType::QVariant) {
executed 214 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
callType == QM...Type::QVariantDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 31157 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
12-31157
1622 type = callType;-
1623 qvariantPtr = new (&allocData) QVariant();-
1624 } else if (callType == qMetaTypeId<QList<QObject *> >()) {
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
callType == qM...QObject *> >()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 31153 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
4-31153
1625 type = callType;-
1626 qlistPtr = new (&allocData) QList<QObject *>();-
1627 } else if (callType == qMetaTypeId<QQmlV4Handle>()) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == qM...QmlV4Handle>()Description
TRUEevaluated 30154 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
FALSEevaluated 999 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
4-30154
1628 type = callType;-
1629 handlePtr = new (&allocData) QQmlV4Handle;-
1630 } else if (callType == QMetaType::QJsonArray) {
executed 30154 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
callType == QM...pe::QJsonArrayDescription
TRUEnever evaluated
FALSEevaluated 999 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
0-30154
1631 type = callType;-
1632 jsonArrayPtr = new (&allocData) QJsonArray();-
1633 } else if (callType == QMetaType::QJsonObject) {
never executed: end of block
callType == QM...e::QJsonObjectDescription
TRUEnever evaluated
FALSEevaluated 999 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
0-999
1634 type = callType;-
1635 jsonObjectPtr = new (&allocData) QJsonObject();-
1636 } else if (callType == QMetaType::QJsonValue) {
never executed: end of block
callType == QM...pe::QJsonValueDescription
TRUEnever evaluated
FALSEevaluated 999 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
0-999
1637 type = callType;-
1638 jsonValuePtr = new (&allocData) QJsonValue();-
1639 } else {
never executed: end of block
0
1640 type = -1;-
1641 qvariantPtr = new (&allocData) QVariant(callType, (void *)nullptr);-
1642 }
executed 999 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
999
1643}-
1644-
1645#if QT_CONFIG(qml_sequence_object)-
1646template <class T, class M>-
1647void CallArgument::fromContainerValue(const QV4::Object *object, int callType, M CallArgument::*member, bool &queryEngine)-
1648{-
1649 if (object && object->isListType()) {
objectDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
object->isListType()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-16
1650 T* ptr = static_cast<T*>(QV4::SequencePrototype::getRawContainerPtr(object, callType));-
1651 if (ptr) {
ptrDescription
TRUEnever evaluated
FALSEnever evaluated
0
1652 (this->*member) = ptr;-
1653 type = callType;-
1654 queryEngine = false;-
1655 }
never executed: end of block
0
1656 }
never executed: end of block
0
1657}
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
16
1658#endif-
1659-
1660void CallArgument::fromValue(int callType, QV4::ExecutionEngine *engine, const QV4::Value &value)-
1661{-
1662 if (type != 0) {
type != 0Description
TRUEnever evaluated
FALSEevaluated 66024 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
0-66024
1663 cleanup();-
1664 type = 0;-
1665 }
never executed: end of block
0
1666-
1667 QV4::Scope scope(engine);-
1668-
1669 bool queryEngine = false;-
1670 if (callType == qMetaTypeId<QJSValue>()) {
callType == qM...Id<QJSValue>()Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquicklayouts
FALSEevaluated 65976 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
48-65976
1671 qjsValuePtr = new (&allocData) QJSValue(scope.engine, value.asReturnedValue());-
1672 type = qMetaTypeId<QJSValue>();-
1673 } else if (callType == QMetaType::Int) {
executed 48 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquicklayouts
callType == QMetaType::IntDescription
TRUEevaluated 32012 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 33964 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
48-33964
1674 intValue = quint32(value.toInt32());-
1675 type = callType;-
1676 } else if (callType == QMetaType::UInt) {
executed 32012 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
callType == QMetaType::UIntDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitem2
FALSEevaluated 33962 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
2-33962
1677 intValue = quint32(value.toUInt32());-
1678 type = callType;-
1679 } else if (callType == QMetaType::Bool) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickitem2
callType == QMetaType::BoolDescription
TRUEevaluated 1834 times by 3 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 32128 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
2-32128
1680 boolValue = value.toBoolean();-
1681 type = callType;-
1682 } else if (callType == QMetaType::Double) {
executed 1834 times by 3 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
callType == QMetaType::DoubleDescription
TRUEevaluated 1060 times by 7 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 31068 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
1060-31068
1683 doubleValue = double(value.toNumber());-
1684 type = callType;-
1685 } else if (callType == QMetaType::Float) {
executed 1060 times by 7 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
callType == QMetaType::FloatDescription
TRUEnever evaluated
FALSEevaluated 31068 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
0-31068
1686 floatValue = float(value.toNumber());-
1687 type = callType;-
1688 } else if (callType == QMetaType::QString) {
never executed: end of block
callType == QMetaType::QStringDescription
TRUEevaluated 24456 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
FALSEevaluated 6612 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
0-24456
1689 if (value.isNull() || value.isUndefined())
value.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 24454 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
value.isUndefined()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 24452 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
2-24454
1690 qstringPtr = new (&allocData) QString();
executed 4 times by 1 test: qstringPtr = new (&allocData) QString();
Executed by:
  • tst_qqmlecmascript
4
1691 else-
1692 qstringPtr = new (&allocData) QString(value.toQStringNoThrow());
executed 24452 times by 15 tests: qstringPtr = new (&allocData) QString(value.toQStringNoThrow());
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
24452
1693 type = callType;-
1694 } else if (callType == QMetaType::QObjectStar) {
executed 24456 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspritesequence
  • tst_quicktestmainwithsetup
callType == QM...e::QObjectStarDescription
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 6558 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
54-24456
1695 qobjectPtr = nullptr;-
1696 if (const QV4::QObjectWrapper *qobjectWrapper = value.as<QV4::QObjectWrapper>())
const QV4::QOb...jectWrapper>()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-44
1697 qobjectPtr = qobjectWrapper->object();
executed 44 times by 1 test: qobjectPtr = qobjectWrapper->object();
Executed by:
  • tst_qqmlecmascript
44
1698 else if (const QV4::QQmlTypeWrapper *qmlTypeWrapper = value.as<QV4::QQmlTypeWrapper>())
const QV4::QQm...TypeWrapper>()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-8
1699 queryEngine = qmlTypeWrapper->isSingleton();
executed 2 times by 1 test: queryEngine = qmlTypeWrapper->isSingleton();
Executed by:
  • tst_qqmlecmascript
2
1700 type = callType;-
1701 } else if (callType == qMetaTypeId<QVariant>()) {
executed 54 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == qM...Id<QVariant>()Description
TRUEevaluated 3126 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 3432 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
54-3432
1702 qvariantPtr = new (&allocData) QVariant(scope.engine->toVariant(value, -1));-
1703 type = callType;-
1704 } else if (callType == qMetaTypeId<QList<QObject*> >()) {
executed 3126 times by 6 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
callType == qM...<QObject*> >()Description
TRUEnever evaluated
FALSEevaluated 3432 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3432
1705 qlistPtr = new (&allocData) QList<QObject *>();-
1706 QV4::ScopedArrayObject array(scope, value);-
1707 if (array) {
arrayDescription
TRUEnever evaluated
FALSEnever evaluated
0
1708 Scoped<QV4::QObjectWrapper> qobjectWrapper(scope);-
1709-
1710 uint length = array->getLength();-
1711 for (uint ii = 0; ii < length; ++ii) {
ii < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
0
1712 QObject *o = nullptr;-
1713 qobjectWrapper = array->get(ii);-
1714 if (!!qobjectWrapper)
!!qobjectWrapperDescription
TRUEnever evaluated
FALSEnever evaluated
0
1715 o = qobjectWrapper->object();
never executed: o = qobjectWrapper->object();
0
1716 qlistPtr->append(o);-
1717 }
never executed: end of block
0
1718 } else {
never executed: end of block
0
1719 QObject *o = nullptr;-
1720 if (const QV4::QObjectWrapper *qobjectWrapper = value.as<QV4::QObjectWrapper>())
const QV4::QOb...jectWrapper>()Description
TRUEnever evaluated
FALSEnever evaluated
0
1721 o = qobjectWrapper->object();
never executed: o = qobjectWrapper->object();
0
1722 qlistPtr->append(o);-
1723 }
never executed: end of block
0
1724 type = callType;-
1725 } else if (callType == qMetaTypeId<QQmlV4Handle>()) {
never executed: end of block
callType == qM...QmlV4Handle>()Description
TRUEevaluated 308 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
FALSEevaluated 3124 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3124
1726 handlePtr = new (&allocData) QQmlV4Handle(value.asReturnedValue());-
1727 type = callType;-
1728 } else if (callType == QMetaType::QJsonArray) {
executed 308 times by 2 tests: end of block
Executed by:
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
callType == QM...pe::QJsonArrayDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3120 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
4-3120
1729 QV4::ScopedArrayObject a(scope, value);-
1730 jsonArrayPtr = new (&allocData) QJsonArray(QV4::JsonObject::toJsonArray(a));-
1731 type = callType;-
1732 } else if (callType == QMetaType::QJsonObject) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == QM...e::QJsonObjectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3116 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
4-3116
1733 QV4::ScopedObject o(scope, value);-
1734 jsonObjectPtr = new (&allocData) QJsonObject(QV4::JsonObject::toJsonObject(o));-
1735 type = callType;-
1736 } else if (callType == QMetaType::QJsonValue) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == QM...pe::QJsonValueDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3098 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
4-3098
1737 jsonValuePtr = new (&allocData) QJsonValue(QV4::JsonObject::toJsonValue(value));-
1738 type = callType;-
1739 } else if (callType == QMetaType::Void) {
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == QMetaType::VoidDescription
TRUEnever evaluated
FALSEevaluated 3098 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3098
1740 *qvariantPtr = QVariant();-
1741#if QT_CONFIG(qml_sequence_object)-
1742 } else if (callType == qMetaTypeId<std::vector<int>>()
never executed: end of block
callType == qM...vector<int>>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3090 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3090
1743 || callType == qMetaTypeId<std::vector<qreal>>()
callType == qM...ctor<qreal>>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3082 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
8-3082
1744 || callType == qMetaTypeId<std::vector<bool>>()
callType == qM...ector<bool>>()Description
TRUEnever evaluated
FALSEevaluated 3082 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3082
1745 || callType == qMetaTypeId<std::vector<QString>>()
callType == qM...or<QString>>()Description
TRUEnever evaluated
FALSEevaluated 3082 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3082
1746 || callType == qMetaTypeId<std::vector<QUrl>>()
callType == qM...ector<QUrl>>()Description
TRUEnever evaluated
FALSEevaluated 3082 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3082
1747 || callType == qMetaTypeId<std::vector<QModelIndex>>()) {
callType == qM...ModelIndex>>()Description
TRUEnever evaluated
FALSEevaluated 3082 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
0-3082
1748 queryEngine = true;-
1749 const QV4::Object* object = value.as<QV4::Object>();-
1750 if (callType == qMetaTypeId<std::vector<int>>()) {
callType == qM...vector<int>>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
8
1751 stdVectorIntPtr = nullptr;-
1752 fromContainerValue<std::vector<int>>(object, callType, &CallArgument::stdVectorIntPtr, queryEngine);-
1753 } else if (callType == qMetaTypeId<std::vector<qreal>>()) {
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == qM...ctor<qreal>>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-8
1754 stdVectorRealPtr = nullptr;-
1755 fromContainerValue<std::vector<qreal>>(object, callType, &CallArgument::stdVectorRealPtr, queryEngine);-
1756 } else if (callType == qMetaTypeId<std::vector<bool>>()) {
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
callType == qM...ector<bool>>()Description
TRUEnever evaluated
FALSEnever evaluated
0-8
1757 stdVectorBoolPtr = nullptr;-
1758 fromContainerValue<std::vector<bool>>(object, callType, &CallArgument::stdVectorBoolPtr, queryEngine);-
1759 } else if (callType == qMetaTypeId<std::vector<QString>>()) {
never executed: end of block
callType == qM...or<QString>>()Description
TRUEnever evaluated
FALSEnever evaluated
0
1760 stdVectorQStringPtr = nullptr;-
1761 fromContainerValue<std::vector<QString>>(object, callType, &CallArgument::stdVectorQStringPtr, queryEngine);-
1762 } else if (callType == qMetaTypeId<std::vector<QUrl>>()) {
never executed: end of block
callType == qM...ector<QUrl>>()Description
TRUEnever evaluated
FALSEnever evaluated
0
1763 stdVectorQUrlPtr = nullptr;-
1764 fromContainerValue<std::vector<QUrl>>(object, callType, &CallArgument::stdVectorQUrlPtr, queryEngine);-
1765 } else if (callType == qMetaTypeId<std::vector<QModelIndex>>()) {
never executed: end of block
callType == qM...ModelIndex>>()Description
TRUEnever evaluated
FALSEnever evaluated
0
1766 stdVectorQModelIndexPtr = nullptr;-
1767 fromContainerValue<std::vector<QModelIndex>>(object, callType, &CallArgument::stdVectorQModelIndexPtr, queryEngine);-
1768 }
never executed: end of block
0
1769#endif-
1770 } else {
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
16
1771 queryEngine = true;-
1772 }
executed 3082 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
3082
1773-
1774 if (queryEngine) {
queryEngineDescription
TRUEevaluated 3100 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 62924 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • ...
3100-62924
1775 qvariantPtr = new (&allocData) QVariant();-
1776 type = -1;-
1777-
1778 QQmlEnginePrivate *ep = engine->qmlEngine() ? QQmlEnginePrivate::get(engine->qmlEngine()) : nullptr;
engine->qmlEngine()Description
TRUEevaluated 3100 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEnever evaluated
0-3100
1779 QVariant v = scope.engine->toVariant(value, callType);-
1780-
1781 if (v.userType() == callType) {
v.userType() == callTypeDescription
TRUEevaluated 270 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquickitem
FALSEevaluated 2830 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
270-2830
1782 *qvariantPtr = v;-
1783 } else if (v.canConvert(callType)) {
executed 270 times by 6 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflickable
  • tst_qquickitem
v.canConvert(callType)Description
TRUEevaluated 2816 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
14-2816
1784 *qvariantPtr = v;-
1785 qvariantPtr->convert(callType);-
1786 } else {
executed 2816 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
2816
1787 QQmlMetaObject mo = ep ? ep->rawMetaObjectForType(callType) : QQmlMetaObject();
epDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEnever evaluated
0-14
1788 if (!mo.isNull()) {
!mo.isNull()Description
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
0-14
1789 QObject *obj = ep->toQObject(v);-
1790-
1791 if (obj != nullptr && !QQmlMetaObject::canConvert(obj, mo))
obj != nullptrDescription
TRUEnever evaluated
FALSEnever evaluated
!QQmlMetaObjec...nvert(obj, mo)Description
TRUEnever evaluated
FALSEnever evaluated
0
1792 obj = nullptr;
never executed: obj = nullptr;
0
1793-
1794 *qvariantPtr = QVariant(callType, &obj);-
1795 } else {
never executed: end of block
0
1796 *qvariantPtr = QVariant(callType, (void *)nullptr);-
1797 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
14
1798 }-
1799 }-
1800}
executed 66024 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
66024
1801-
1802QV4::ReturnedValue CallArgument::toValue(QV4::ExecutionEngine *engine)-
1803{-
1804 QV4::Scope scope(engine);-
1805-
1806 if (type == qMetaTypeId<QJSValue>()) {
type == qMetaT...Id<QJSValue>()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 48995 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
8-48995
1807 return QJSValuePrivate::convertedToValue(scope.engine, *qjsValuePtr);
executed 8 times by 2 tests: return QJSValuePrivate::convertedToValue(scope.engine, *qjsValuePtr);
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
8
1808 } else if (type == QMetaType::Int) {
type == QMetaType::IntDescription
TRUEevaluated 2032 times by 7 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
FALSEevaluated 46963 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
2032-46963
1809 return QV4::Encode(int(intValue));
executed 2032 times by 7 tests: return QV4::Encode(int(intValue));
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
2032
1810 } else if (type == QMetaType::UInt) {
type == QMetaType::UIntDescription
TRUEnever evaluated
FALSEevaluated 46963 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
0-46963
1811 return QV4::Encode((uint)intValue);
never executed: return QV4::Encode((uint)intValue);
0
1812 } else if (type == QMetaType::Bool) {
type == QMetaType::BoolDescription
TRUEevaluated 2066 times by 8 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
FALSEevaluated 44897 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
2066-44897
1813 return QV4::Encode(boolValue);
executed 2066 times by 8 tests: return QV4::Encode(boolValue);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
2066
1814 } else if (type == QMetaType::Double) {
type == QMetaType::DoubleDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 44867 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
30-44867
1815 return QV4::Encode(doubleValue);
executed 30 times by 2 tests: return QV4::Encode(doubleValue);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
30
1816 } else if (type == QMetaType::Float) {
type == QMetaType::FloatDescription
TRUEnever evaluated
FALSEevaluated 44867 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
0-44867
1817 return QV4::Encode(floatValue);
never executed: return QV4::Encode(floatValue);
0
1818 } else if (type == QMetaType::QString) {
type == QMetaType::QStringDescription
TRUEevaluated 214 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 44653 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
214-44653
1819 return QV4::Encode(engine->newString(*qstringPtr));
executed 214 times by 8 tests: return QV4::Encode(engine->newString(*qstringPtr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
214
1820 } else if (type == QMetaType::QByteArray) {
type == QMetaType::QByteArrayDescription
TRUEnever evaluated
FALSEevaluated 44653 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
0-44653
1821 return QV4::Encode(engine->newArrayBuffer(*qbyteArrayPtr));
never executed: return QV4::Encode(engine->newArrayBuffer(*qbyteArrayPtr));
0
1822 } else if (type == QMetaType::QObjectStar) {
type == QMetaType::QObjectStarDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 44623 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
30-44623
1823 QObject *object = qobjectPtr;-
1824 if (object)
objectDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEnever evaluated
0-30
1825 QQmlData::get(object, true)->setImplicitDestructible();
executed 30 times by 2 tests: QQmlData::get(object, true)->setImplicitDestructible();
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
30
1826 return QV4::QObjectWrapper::wrap(scope.engine, object);
executed 30 times by 2 tests: return QV4::QObjectWrapper::wrap(scope.engine, object);
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
30
1827 } else if (type == qMetaTypeId<QList<QObject *> >()) {
type == qMetaT...QObject *> >()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 44619 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
4-44619
1828 // XXX Can this be made more by using Array as a prototype and implementing-
1829 // directly against QList<QObject*>?-
1830 QList<QObject *> &list = *qlistPtr;-
1831 QV4::ScopedArrayObject array(scope, scope.engine->newArrayObject());-
1832 array->arrayReserve(list.count());-
1833 QV4::ScopedValue v(scope);-
1834 for (int ii = 0; ii < list.count(); ++ii)
ii < list.count()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
4-8
1835 array->arrayPut(ii, (v = QV4::QObjectWrapper::wrap(scope.engine, list.at(ii))));
executed 8 times by 1 test: array->arrayPut(ii, (v = QV4::QObjectWrapper::wrap(scope.engine, list.at(ii))));
Executed by:
  • tst_qqmlecmascript
8
1836 array->setArrayLengthUnchecked(list.count());-
1837 return array.asReturnedValue();
executed 4 times by 1 test: return array.asReturnedValue();
Executed by:
  • tst_qqmlecmascript
4
1838 } else if (type == qMetaTypeId<QQmlV4Handle>()) {
type == qMetaT...QmlV4Handle>()Description
TRUEevaluated 30154 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
FALSEevaluated 14465 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
14465-30154
1839 return *handlePtr;
executed 30154 times by 13 tests: return *handlePtr;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
30154
1840 } else if (type == QMetaType::QJsonArray) {
type == QMetaType::QJsonArrayDescription
TRUEnever evaluated
FALSEevaluated 14465 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
0-14465
1841 return QV4::JsonObject::fromJsonArray(scope.engine, *jsonArrayPtr);
never executed: return QV4::JsonObject::fromJsonArray(scope.engine, *jsonArrayPtr);
0
1842 } else if (type == QMetaType::QJsonObject) {
type == QMetaType::QJsonObjectDescription
TRUEnever evaluated
FALSEevaluated 14465 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
0-14465
1843 return QV4::JsonObject::fromJsonObject(scope.engine, *jsonObjectPtr);
never executed: return QV4::JsonObject::fromJsonObject(scope.engine, *jsonObjectPtr);
0
1844 } else if (type == QMetaType::QJsonValue) {
type == QMetaType::QJsonValueDescription
TRUEnever evaluated
FALSEevaluated 14465 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
0-14465
1845 return QV4::JsonObject::fromJsonValue(scope.engine, *jsonValuePtr);
never executed: return QV4::JsonObject::fromJsonValue(scope.engine, *jsonValuePtr);
0
1846 } else if (type == -1 || type == qMetaTypeId<QVariant>()) {
type == -1Description
TRUEevaluated 999 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
FALSEevaluated 13466 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
type == qMetaT...Id<QVariant>()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 13454 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
12-13466
1847 QVariant value = *qvariantPtr;-
1848 QV4::ScopedValue rv(scope, scope.engine->fromVariant(value));-
1849 QV4::Scoped<QV4::QObjectWrapper> qobjectWrapper(scope, rv);-
1850 if (!!qobjectWrapper) {
!!qobjectWrapperDescription
TRUEevaluated 621 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
FALSEevaluated 390 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
390-621
1851 if (QObject *object = qobjectWrapper->object())
QObject *objec...pper->object()Description
TRUEevaluated 621 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
FALSEnever evaluated
0-621
1852 QQmlData::get(object, true)->setImplicitDestructible();
executed 621 times by 4 tests: QQmlData::get(object, true)->setImplicitDestructible();
Executed by:
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
621
1853 }
executed 621 times by 4 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
621
1854 return rv->asReturnedValue();
executed 1011 times by 11 tests: return rv->asReturnedValue();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1011
1855 } else {-
1856 return QV4::Encode::undefined();
executed 13454 times by 22 tests: return QV4::Encode::undefined();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickvisualdatamodel
  • tst_testfiltering
13454
1857 }-
1858}-
1859-
1860ReturnedValue QObjectMethod::create(ExecutionContext *scope, QObject *object, int index)-
1861{-
1862 Scope valueScope(scope);-
1863 Scoped<QObjectMethod> method(valueScope, valueScope.engine->memoryManager->allocate<QObjectMethod>(scope));-
1864 method->d()->setObject(object);-
1865-
1866 if (QQmlData *ddata = QQmlData::get(object))
QQmlData *ddat...a::get(object)Description
TRUEevaluated 67816 times by 62 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
FALSEnever evaluated
0-67816
1867 method->d()->setPropertyCache(ddata->propertyCache);
executed 67816 times by 62 tests: method->d()->setPropertyCache(ddata->propertyCache);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
67816
1868-
1869 method->d()->index = index;-
1870 return method.asReturnedValue();
executed 67816 times by 62 tests: return method.asReturnedValue();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
67816
1871}-
1872-
1873ReturnedValue QObjectMethod::create(ExecutionContext *scope, const QQmlValueTypeWrapper *valueType, int index)-
1874{-
1875 Scope valueScope(scope);-
1876 Scoped<QObjectMethod> method(valueScope, valueScope.engine->memoryManager->allocate<QObjectMethod>(scope));-
1877 method->d()->setPropertyCache(valueType->d()->propertyCache());-
1878 method->d()->index = index;-
1879 method->d()->valueTypeWrapper.set(valueScope.engine, valueType->d());-
1880 return method.asReturnedValue();
executed 344 times by 5 tests: return method.asReturnedValue();
Executed by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
344
1881}-
1882-
1883void Heap::QObjectMethod::init(QV4::ExecutionContext *scope)-
1884{-
1885 Heap::FunctionObject::init(scope);-
1886}
executed 68160 times by 62 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
68160
1887-
1888const QMetaObject *Heap::QObjectMethod::metaObject()-
1889{-
1890 if (propertyCache())-
1891 return propertyCache()->createMetaObject();-
1892 return object()->metaObject();-
1893}-
1894-
1895QV4::ReturnedValue QObjectMethod::method_toString(QV4::ExecutionEngine *engine) const-
1896{-
1897 QString result;-
1898 if (const QMetaObject *metaObject = d()->metaObject()) {
const QMetaObj...->metaObject()Description
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEnever evaluated
0-108
1899-
1900 result += QString::fromUtf8(metaObject->className()) +-
1901 QLatin1String("(0x") + QString::number((quintptr)d()->object(),16);-
1902-
1903 if (d()->object()) {
d()->object()Description
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEnever evaluated
0-108
1904 QString objectName = d()->object()->objectName();-
1905 if (!objectName.isEmpty())
!objectName.isEmpty()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEevaluated 90 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
18-90
1906 result += QLatin1String(", \"") + objectName + QLatin1Char('\"');
executed 18 times by 2 tests: result += QLatin1String(", \"") + objectName + QLatin1Char('\"');
Executed by:
  • tst_qqmlecmascript
  • tst_qquickdraghandler
18
1907 }
executed 108 times by 4 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
108
1908-
1909 result += QLatin1Char(')');-
1910 } else {
executed 108 times by 4 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
108
1911 result = QLatin1String("null");-
1912 }
never executed: end of block
0
1913-
1914 return engine->newString(result)->asReturnedValue();
executed 108 times by 4 tests: return engine->newString(result)->asReturnedValue();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
108
1915}-
1916-
1917QV4::ReturnedValue QObjectMethod::method_destroy(QV4::ExecutionEngine *engine, const Value *args, int argc) const-
1918{-
1919 if (!d()->object())
!d()->object()Description
TRUEnever evaluated
FALSEevaluated 246 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
0-246
1920 return Encode::undefined();
never executed: return Encode::undefined();
0
1921 if (QQmlData::keepAliveDuringGarbageCollection(d()->object()))
QQmlData::keep...d()->object())Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 236 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
10-236
1922 return engine->throwError(QStringLiteral("Invalid attempt to destroy() an indestructible object"));
executed 10 times by 1 test: return engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Invalid attempt to destroy() an indestructible object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid attempt to destroy() an indestructible object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_qqmlecmascript
executed 10 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qqmlecmascript
10
1923-
1924 int delay = 0;-
1925 if (argc > 0)
argc > 0Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
FALSEevaluated 230 times by 11 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
6-230
1926 delay = args[0].toUInt32();
executed 6 times by 2 tests: delay = args[0].toUInt32();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
6
1927-
1928 if (delay > 0)
delay > 0Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
FALSEevaluated 230 times by 11 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
6-230
1929 QTimer::singleShot(delay, d()->object(), SLOT(deleteLater()));
executed 6 times by 2 tests: QTimer::singleShot(delay, d()->object(), qFlagLocation("1""deleteLater()" "\0" __FILE__ ":" "1929"));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
6
1930 else-
1931 d()->object()->deleteLater();
executed 230 times by 11 tests: d()->object()->deleteLater();
Executed by:
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
230
1932-
1933 return Encode::undefined();
executed 236 times by 12 tests: return Encode::undefined();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
236
1934}-
1935-
1936ReturnedValue QObjectMethod::virtualCall(const FunctionObject *m, const Value *thisObject, const Value *argv, int argc)-
1937{-
1938 const QObjectMethod *This = static_cast<const QObjectMethod*>(m);-
1939 return This->callInternal(thisObject, argv, argc);
executed 64330 times by 60 tests: return This->callInternal(thisObject, argv, argc);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
64330
1940}-
1941-
1942ReturnedValue QObjectMethod::callInternal(const Value *thisObject, const Value *argv, int argc) const-
1943{-
1944 ExecutionEngine *v4 = engine();-
1945 if (d()->index == DestroyMethod)
d()->index == DestroyMethodDescription
TRUEevaluated 246 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
FALSEevaluated 64084 times by 56 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_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
246-64084
1946 return method_destroy(v4, argv, argc);
executed 246 times by 12 tests: return method_destroy(v4, argv, argc);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickcustomparticle
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
246
1947 else if (d()->index == ToStringMethod)
d()->index == ToStringMethodDescription
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
FALSEevaluated 63976 times by 54 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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
108-63976
1948 return method_toString(v4);
executed 108 times by 4 tests: return method_toString(v4);
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickdraghandler
108
1949-
1950 QQmlObjectOrGadget object(d()->object());-
1951 if (!d()->object()) {
!d()->object()Description
TRUEevaluated 344 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 63632 times by 54 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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
344-63632
1952 if (!d()->valueTypeWrapper)
!d()->valueTypeWrapperDescription
TRUEnever evaluated
FALSEevaluated 344 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
0-344
1953 return Encode::undefined();
never executed: return Encode::undefined();
0
1954-
1955 object = QQmlObjectOrGadget(d()->propertyCache(), d()->valueTypeWrapper->gadgetPtr);-
1956 }
executed 344 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlitemmodels
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
344
1957-
1958 QQmlPropertyData method;-
1959-
1960 if (d()->propertyCache()) {
d()->propertyCache()Description
TRUEevaluated 61124 times by 53 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
FALSEevaluated 2852 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
2852-61124
1961 QQmlPropertyData *data = d()->propertyCache()->method(d()->index);-
1962 if (!data)
!dataDescription
TRUEnever evaluated
FALSEevaluated 61124 times by 53 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
0-61124
1963 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
1964 method = *data;-
1965 } else {
executed 61124 times by 53 tests: end of block
Executed 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
61124
1966 const QMetaObject *mo = d()->object()->metaObject();-
1967 const QMetaMethod moMethod = mo->method(d()->index);-
1968 method.load(moMethod);-
1969-
1970 if (method.coreIndex() == -1)
method.coreIndex() == -1Description
TRUEnever evaluated
FALSEevaluated 2852 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
0-2852
1971 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
1972-
1973 // Look for overloaded methods-
1974 QByteArray methodName = moMethod.name();-
1975 const int methodOffset = mo->methodOffset();-
1976 for (int ii = d()->index - 1; ii >= methodOffset; --ii) {
ii >= methodOffsetDescription
TRUEevaluated 12876 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
FALSEevaluated 2852 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
2852-12876
1977 if (methodName == mo->method(ii).name()) {
methodName == ...hod(ii).name()Description
TRUEnever evaluated
FALSEevaluated 12876 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
0-12876
1978 method.setOverload(true);-
1979 method.setOverrideIndexIsProperty(0);-
1980 method.setOverrideIndex(ii);-
1981 break;
never executed: break;
0
1982 }-
1983 }
executed 12876 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
12876
1984 }
executed 2852 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
2852
1985-
1986 Scope scope(v4);-
1987 JSCallData cData(scope, argc, argv, thisObject);-
1988 CallData *callData = cData.callData();-
1989-
1990 if (method.isV4Function()) {
method.isV4Function()Description
TRUEevaluated 12294 times by 31 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 51682 times by 49 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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • ...
12294-51682
1991 QV4::ScopedValue rv(scope, QV4::Primitive::undefinedValue());-
1992 QQmlV4Function func(callData, rv, v4);-
1993 QQmlV4Function *funcptr = &func;-
1994-
1995 void *args[] = { nullptr, &funcptr };-
1996 object.metacall(QMetaObject::InvokeMetaMethod, method.coreIndex(), args);-
1997-
1998 return rv->asReturnedValue();
executed 12294 times by 31 tests: return rv->asReturnedValue();
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
  • ...
12294
1999 }-
2000-
2001 if (!method.isOverload()) {
!method.isOverload()Description
TRUEevaluated 46838 times by 47 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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • ...
FALSEevaluated 4844 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
4844-46838
2002 return CallPrecise(object, method, v4, callData);
executed 46838 times by 47 tests: return CallPrecise(object, method, v4, callData);
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_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • ...
46838
2003 } else {-
2004 return CallOverloaded(object, method, v4, callData, d()->propertyCache());
executed 4844 times by 15 tests: return CallOverloaded(object, method, v4, callData, d()->propertyCache());
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
4844
2005 }-
2006}-
2007-
2008DEFINE_OBJECT_VTABLE(QObjectMethod);-
2009-
2010-
2011void Heap::QMetaObjectWrapper::init(const QMetaObject *metaObject)-
2012{-
2013 FunctionObject::init();-
2014 this->metaObject = metaObject;-
2015 constructors = nullptr;-
2016 constructorCount = 0;-
2017}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qjsengine
6
2018-
2019void Heap::QMetaObjectWrapper::destroy()-
2020{-
2021 delete[] constructors;-
2022}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qjsengine
6
2023-
2024void Heap::QMetaObjectWrapper::ensureConstructorsCache() {-
2025-
2026 const int count = metaObject->constructorCount();-
2027 if (constructorCount != count) {
constructorCount != countDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
2-6
2028 delete[] constructors;-
2029 constructorCount = count;-
2030 if (count == 0) {
count == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
0-2
2031 constructors = nullptr;-
2032 return;
never executed: return;
0
2033 }-
2034 constructors = new QQmlPropertyData[count];-
2035-
2036 for (int i = 0; i < count; ++i) {
i < countDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
2-8
2037 QMetaMethod method = metaObject->constructor(i);-
2038 QQmlPropertyData &d = constructors[i];-
2039 d.load(method);-
2040 d.setCoreIndex(i);-
2041 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qjsengine
8
2042 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qjsengine
2
2043}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qjsengine
8
2044-
2045-
2046ReturnedValue QMetaObjectWrapper::create(ExecutionEngine *engine, const QMetaObject* metaObject) {-
2047-
2048 QV4::Scope scope(engine);-
2049 Scoped<QMetaObjectWrapper> mo(scope, engine->memoryManager->allocate<QV4::QMetaObjectWrapper>(metaObject)->asReturnedValue());-
2050 mo->init(engine);-
2051 return mo->asReturnedValue();
executed 6 times by 1 test: return mo->asReturnedValue();
Executed by:
  • tst_qjsengine
6
2052}-
2053-
2054void QMetaObjectWrapper::init(ExecutionEngine *) {-
2055 const QMetaObject & mo = *d()->metaObject;-
2056-
2057 for (int i = 0; i < mo.enumeratorCount(); i++) {
i < mo.enumeratorCount()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
6-12
2058 QMetaEnum Enum = mo.enumerator(i);-
2059 for (int k = 0; k < Enum.keyCount(); k++) {
k < Enum.keyCount()Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qjsengine
12-36
2060 const char* key = Enum.key(k);-
2061 const int value = Enum.value(k);-
2062 defineReadonlyProperty(QLatin1String(key), Primitive::fromInt32(value));-
2063 }
executed 36 times by 1 test: end of block
Executed by:
  • tst_qjsengine
36
2064 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qjsengine
12
2065}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qjsengine
6
2066-
2067ReturnedValue QMetaObjectWrapper::virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *)-
2068{-
2069 const QMetaObjectWrapper *This = static_cast<const QMetaObjectWrapper*>(f);-
2070 return This->constructInternal(argv, argc);
executed 8 times by 1 test: return This->constructInternal(argv, argc);
Executed by:
  • tst_qjsengine
8
2071}-
2072-
2073ReturnedValue QMetaObjectWrapper::constructInternal(const Value *argv, int argc) const-
2074{-
2075-
2076 d()->ensureConstructorsCache();-
2077-
2078 ExecutionEngine *v4 = engine();-
2079 const QMetaObject* mo = d()->metaObject;-
2080 if (d()->constructorCount == 0) {
d()->constructorCount == 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
0-8
2081 return v4->throwTypeError(QLatin1String(mo->className())
never executed: return v4->throwTypeError(QLatin1String(mo->className()) + QLatin1String(" has no invokable constructor"));
0
2082 + QLatin1String(" has no invokable constructor"));
never executed: return v4->throwTypeError(QLatin1String(mo->className()) + QLatin1String(" has no invokable constructor"));
0
2083 }-
2084-
2085 Scope scope(v4);-
2086 Scoped<QObjectWrapper> object(scope);-
2087 JSCallData cData(scope, argc, argv);-
2088 CallData *callData = cData.callData();-
2089-
2090 if (d()->constructorCount == 1) {
d()->constructorCount == 1Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
0-8
2091 object = callConstructor(d()->constructors[0], v4, callData);-
2092 }
never executed: end of block
0
2093 else {-
2094 object = callOverloadedConstructor(v4, callData);-
2095 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qjsengine
8
2096 Scoped<QMetaObjectWrapper> metaObject(scope, this);-
2097 object->defineDefaultProperty(v4->id_constructor(), metaObject);-
2098 object->setPrototypeOf(const_cast<QMetaObjectWrapper*>(this));-
2099 return object.asReturnedValue();
executed 8 times by 1 test: return object.asReturnedValue();
Executed by:
  • tst_qjsengine
8
2100-
2101}-
2102-
2103ReturnedValue QMetaObjectWrapper::callConstructor(const QQmlPropertyData &data, QV4::ExecutionEngine *engine, QV4::CallData *callArgs) const {-
2104-
2105 const QMetaObject* mo = d()->metaObject;-
2106 const QQmlStaticMetaObject object(mo);-
2107 return CallPrecise(object, data, engine, callArgs, QMetaObject::CreateInstance);
never executed: return CallPrecise(object, data, engine, callArgs, QMetaObject::CreateInstance);
0
2108}-
2109-
2110-
2111ReturnedValue QMetaObjectWrapper::callOverloadedConstructor(QV4::ExecutionEngine *engine, QV4::CallData *callArgs) const {-
2112 const int numberOfConstructors = d()->constructorCount;-
2113 const int argumentCount = callArgs->argc();-
2114 const QQmlStaticMetaObject object(d()->metaObject);-
2115-
2116 QQmlPropertyData best;-
2117 int bestParameterScore = INT_MAX;-
2118 int bestMatchScore = INT_MAX;-
2119-
2120 QV4::Scope scope(engine);-
2121 QV4::ScopedValue v(scope);-
2122-
2123 for (int i = 0; i < numberOfConstructors; i++) {
i < numberOfConstructorsDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
4-24
2124 const QQmlPropertyData & attempt = d()->constructors[i];-
2125 QQmlMetaObject::ArgTypeStorage storage;-
2126 int methodArgumentCount = 0;-
2127 int *methodArgTypes = nullptr;-
2128 if (attempt.hasArguments()) {
attempt.hasArguments()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
8-16
2129 int *args = object.constructorParameterTypes(attempt.coreIndex(), &storage, nullptr);-
2130 if (!args) // Must be an unknown argument
!argsDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qjsengine
0-16
2131 continue;
never executed: continue;
0
2132-
2133 methodArgumentCount = args[0];-
2134 methodArgTypes = args + 1;-
2135 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qjsengine
16
2136-
2137 if (methodArgumentCount > argumentCount)
methodArgument... argumentCountDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qjsengine
2-22
2138 continue; // We don't have sufficient arguments to call this method
executed 2 times by 1 test: continue;
Executed by:
  • tst_qjsengine
2
2139-
2140 int methodParameterScore = argumentCount - methodArgumentCount;-
2141 if (methodParameterScore > bestParameterScore)
methodParamete...ParameterScoreDescription
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qjsengine
0-22
2142 continue; // We already have a better option
never executed: continue;
0
2143-
2144 int methodMatchScore = 0;-
2145 for (int ii = 0; ii < methodArgumentCount; ++ii)
ii < methodArgumentCountDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qjsengine
16-22
2146 methodMatchScore += MatchScore((v = callArgs->args[ii]), methodArgTypes[ii]);
executed 16 times by 1 test: methodMatchScore += MatchScore((v = callArgs->args[ii]), methodArgTypes[ii]);
Executed by:
  • tst_qjsengine
16
2147-
2148 if (bestParameterScore > methodParameterScore || bestMatchScore > methodMatchScore) {
bestParameterS...ParameterScoreDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
bestMatchScore...thodMatchScoreDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
2-16
2149 best = attempt;-
2150 bestParameterScore = methodParameterScore;-
2151 bestMatchScore = methodMatchScore;-
2152 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qjsengine
20
2153-
2154 if (bestParameterScore == 0 && bestMatchScore == 0)
bestParameterScore == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qjsengine
bestMatchScore == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
4-12
2155 break; // We can't get better than that
executed 4 times by 1 test: break;
Executed by:
  • tst_qjsengine
4
2156 };
executed 18 times by 1 test: end of block
Executed by:
  • tst_qjsengine
18
2157-
2158 if (best.isValid()) {
best.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEnever evaluated
0-8
2159 return CallPrecise(object, best, engine, callArgs, QMetaObject::CreateInstance);
executed 8 times by 1 test: return CallPrecise(object, best, engine, callArgs, QMetaObject::CreateInstance);
Executed by:
  • tst_qjsengine
8
2160 } else {-
2161 QString error = QLatin1String("Unable to determine callable overload. Candidates are:");-
2162 for (int i = 0; i < numberOfConstructors; i++) {
i < numberOfConstructorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2163 const QQmlPropertyData & candidate = d()->constructors[i];-
2164 error += QLatin1String("\n ") +-
2165 QString::fromUtf8(d()->metaObject->constructor(candidate.coreIndex())-
2166 .methodSignature());-
2167 }
never executed: end of block
0
2168-
2169 return engine->throwError(error);
never executed: return engine->throwError(error);
0
2170 }-
2171}-
2172-
2173bool QMetaObjectWrapper::virtualIsEqualTo(Managed *a, Managed *b)-
2174{-
2175 Q_ASSERT(a->as<QMetaObjectWrapper>());-
2176 QMetaObjectWrapper *aMetaObject = a->as<QMetaObjectWrapper>();-
2177 QMetaObjectWrapper *bMetaObject = b->as<QMetaObjectWrapper>();-
2178 if (!bMetaObject)
!bMetaObjectDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
0-2
2179 return true;
never executed: return true;
0
2180 return aMetaObject->metaObject() == bMetaObject->metaObject();
executed 2 times by 1 test: return aMetaObject->metaObject() == bMetaObject->metaObject();
Executed by:
  • tst_qjsengine
2
2181}-
2182-
2183DEFINE_OBJECT_VTABLE(QMetaObjectWrapper);-
2184-
2185-
2186-
2187-
2188void Heap::QmlSignalHandler::init(QObject *object, int signalIndex)-
2189{-
2190 Object::init();-
2191 this->signalIndex = signalIndex;-
2192 setObject(object);-
2193}
executed 14 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
14
2194-
2195DEFINE_OBJECT_VTABLE(QmlSignalHandler);-
2196-
2197void QmlSignalHandler::initProto(ExecutionEngine *engine)-
2198{-
2199 if (engine->signalHandlerPrototype()->d_unchecked())
engine->signal...>d_unchecked()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
6-8
2200 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
8
2201-
2202 Scope scope(engine);-
2203 ScopedObject o(scope, engine->newObject());-
2204 QV4::ScopedString connect(scope, engine->newIdentifier(QStringLiteral("connect")));
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qqmlecmascript
6
2205 QV4::ScopedString disconnect(scope, engine->newIdentifier(QStringLiteral("disconnect")));
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qqmlecmascript
6
2206 o->put(connect, QV4::ScopedValue(scope, engine->functionPrototype()->get(connect)));-
2207 o->put(disconnect, QV4::ScopedValue(scope, engine->functionPrototype()->get(disconnect)));-
2208-
2209 engine->jsObjects[QV4::ExecutionEngine::SignalHandlerProto] = o->d();-
2210}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
6
2211-
2212void MultiplyWrappedQObjectMap::insert(QObject *key, Heap::Object *value)-
2213{-
2214 QV4::WeakValue v;-
2215 v.set(value->internalClass->engine, value);-
2216 QHash<QObject*, QV4::WeakValue>::insert(key, v);-
2217 connect(key, SIGNAL(destroyed(QObject*)), this, SLOT(removeDestroyedObject(QObject*)));-
2218}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qjsengine
  • tst_qqmlecmascript
4
2219-
2220-
2221-
2222MultiplyWrappedQObjectMap::Iterator MultiplyWrappedQObjectMap::erase(MultiplyWrappedQObjectMap::Iterator it)-
2223{-
2224 disconnect(it.key(), SIGNAL(destroyed(QObject*)), this, SLOT(removeDestroyedObject(QObject*)));-
2225 return QHash<QObject*, QV4::WeakValue>::erase(it);
never executed: return QHash<QObject*, QV4::WeakValue>::erase(it);
0
2226}-
2227-
2228void MultiplyWrappedQObjectMap::remove(QObject *key)-
2229{-
2230 Iterator it = find(key);-
2231 if (it == end())
it == end()Description
TRUEnever evaluated
FALSEnever evaluated
0
2232 return;
never executed: return;
0
2233 erase(it);-
2234}
never executed: end of block
0
2235-
2236void MultiplyWrappedQObjectMap::mark(QObject *key, MarkStack *markStack)-
2237{-
2238 Iterator it = find(key);-
2239 if (it == end())
it == end()Description
TRUEnever evaluated
FALSEnever evaluated
0
2240 return;
never executed: return;
0
2241 it->markOnce(markStack);-
2242}
never executed: end of block
0
2243-
2244void MultiplyWrappedQObjectMap::removeDestroyedObject(QObject *object)-
2245{-
2246 QHash<QObject*, QV4::WeakValue>::remove(object);-
2247}
never executed: end of block
0
2248-
2249QT_END_NAMESPACE-
2250-
2251#include "moc_qv4qobjectwrapper_p.cpp"-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0