OpenCoverage

qqmlglobal.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlglobal.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 <private/qqmlglobal_p.h>-
41-
42#include <QtQml/qqmlengine.h>-
43#include <QtCore/qvariant.h>-
44#include <QtCore/qstringlist.h>-
45#include <QtCore/qdebug.h>-
46#include <QtCore/QCoreApplication>-
47-
48QT_BEGIN_NAMESPACE-
49-
50QQmlValueTypeProvider::QQmlValueTypeProvider()-
51 : next(nullptr)-
52{-
53}
executed 594 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
594
54-
55QQmlValueTypeProvider::~QQmlValueTypeProvider()-
56{-
57 QQml_removeValueTypeProvider(this);-
58}
executed 594 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
594
59-
60const QMetaObject *QQmlValueTypeProvider::metaObjectForMetaType(int type)-
61{-
62 QQmlValueTypeProvider *p = this;-
63 do {-
64 if (const QMetaObject *mo = p->getMetaObjectForMetaType(type))
const QMetaObj...MetaType(type)Description
TRUEevaluated 12919 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
FALSEevaluated 669352 times by 130 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
12919-669352
65 return mo;
executed 12919 times by 36 tests: return mo;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
12919
66 } while ((p = p->next));
executed 669352 times by 130 tests: end of block
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
(p = p->next)Description
TRUEevaluated 334605 times by 123 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 334747 times by 130 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
334605-669352
67-
68 return nullptr;
executed 334747 times by 130 tests: return nullptr;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
334747
69}-
70-
71bool QQmlValueTypeProvider::initValueType(int type, QVariant& dst)-
72{-
73 QQmlValueTypeProvider *p = this;-
74 do {-
75 if (p->init(type, dst))
p->init(type, dst)Description
TRUEevaluated 282 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEnever evaluated
0-282
76 return true;
executed 282 times by 12 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
282
77 } while ((p = p->next));
never executed: end of block
(p = p->next)Description
TRUEnever evaluated
FALSEnever evaluated
0
78-
79 return false;
never executed: return false;
0
80}-
81-
82QVariant QQmlValueTypeProvider::createValueType(int type, int argc, const void *argv[])-
83{-
84 QVariant v;-
85-
86 QQmlValueTypeProvider *p = this;-
87 do {-
88 if (p->create(type, argc, argv, &v))
p->create(type...rgc, argv, &v)Description
TRUEevaluated 288 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickworkerscript
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
8-288
89 return v;
executed 288 times by 6 tests: return v;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickworkerscript
288
90 } while ((p = p->next));
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
(p = p->next)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
0-8
91-
92 return QVariant();
executed 8 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlvaluetypes
8
93}-
94-
95bool QQmlValueTypeProvider::createValueFromString(int type, const QString &s, void *data, size_t n)-
96{-
97 Q_ASSERT(data);-
98-
99 QQmlValueTypeProvider *p = this;-
100 do {-
101 if (p->createFromString(type, s, data, n))
p->createFromS...e, s, data, n)Description
TRUEnever evaluated
FALSEnever evaluated
0
102 return true;
never executed: return true;
0
103 } while ((p = p->next));
never executed: end of block
(p = p->next)Description
TRUEnever evaluated
FALSEnever evaluated
0
104-
105 return false;
never executed: return false;
0
106}-
107-
108bool QQmlValueTypeProvider::createStringFromValue(int type, const void *data, QString *s)-
109{-
110 Q_ASSERT(data);-
111 Q_ASSERT(s);-
112-
113 QQmlValueTypeProvider *p = this;-
114 do {-
115 if (p->createStringFrom(type, data, s))
p->createStrin...type, data, s)Description
TRUEnever evaluated
FALSEnever evaluated
0
116 return true;
never executed: return true;
0
117 } while ((p = p->next));
never executed: end of block
(p = p->next)Description
TRUEnever evaluated
FALSEnever evaluated
0
118-
119 return false;
never executed: return false;
0
120}-
121-
122QVariant QQmlValueTypeProvider::createVariantFromString(const QString &s)-
123{-
124 QVariant v;-
125-
126 QQmlValueTypeProvider *p = this;-
127 do {-
128 if (p->variantFromString(s, &v))
p->variantFromString(s, &v)Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 40 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
6-40
129 return v;
executed 6 times by 2 tests: return v;
Executed by:
  • tst_examples
  • tst_qquickanimations
6
130 } while ((p = p->next));
executed 40 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
(p = p->next)Description
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20-40
131-
132 // Return a variant containing the string itself-
133 return QVariant(s);
executed 20 times by 5 tests: return QVariant(s);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
134}-
135-
136QVariant QQmlValueTypeProvider::createVariantFromString(int type, const QString &s, bool *ok)-
137{-
138 QVariant v;-
139-
140 QQmlValueTypeProvider *p = this;-
141 do {-
142 if (p->variantFromString(type, s, &v)) {
p->variantFrom...g(type, s, &v)Description
TRUEevaluated 80762 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
FALSEevaluated 84 times by 7 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
84-80762
143 if (ok) *ok = true;
executed 80762 times by 27 tests: *ok = true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
okDescription
TRUEevaluated 80762 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
FALSEnever evaluated
0-80762
144 return v;
executed 80762 times by 27 tests: return v;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
80762
145 }-
146 } while ((p = p->next));
executed 84 times by 7 tests: end of block
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
(p = p->next)Description
TRUEevaluated 40 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEevaluated 44 times by 7 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
40-84
147-
148 if (ok) *ok = false;
executed 44 times by 7 tests: *ok = false;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
okDescription
TRUEevaluated 44 times by 7 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEnever evaluated
0-44
149 return QVariant();
executed 44 times by 7 tests: return QVariant();
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
44
150}-
151-
152QVariant QQmlValueTypeProvider::createVariantFromJsObject(int type, QQmlV4Handle obj, QV4::ExecutionEngine *e, bool *ok)-
153{-
154 QVariant v;-
155-
156 QQmlValueTypeProvider *p = this;-
157 do {-
158 if (p->variantFromJsObject(type, obj, e, &v)) {
p->variantFrom...e, obj, e, &v)Description
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlqt
12-72
159 if (ok) *ok = true;
executed 72 times by 3 tests: *ok = true;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
okDescription
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
0-72
160 return v;
executed 72 times by 3 tests: return v;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
72
161 }-
162 } while ((p = p->next));
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlqt
(p = p->next)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlqt
6-12
163-
164 if (ok) *ok = false;
executed 6 times by 1 test: *ok = false;
Executed by:
  • tst_qqmlqt
okDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEnever evaluated
0-6
165 return QVariant();
executed 6 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlqt
6
166}-
167-
168bool QQmlValueTypeProvider::equalValueType(int type, const void *lhs, const QVariant& rhs)-
169{-
170 Q_ASSERT(lhs);-
171-
172 QQmlValueTypeProvider *p = this;-
173 do {-
174 if (p->equal(type, lhs, rhs))
p->equal(type, lhs, rhs)Description
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
FALSEevaluated 1112 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
16-1112
175 return true;
executed 16 times by 4 tests: return true;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
16
176 } while ((p = p->next));
executed 1112 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
(p = p->next)Description
TRUEevaluated 654 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 458 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
458-1112
177-
178 return false;
executed 458 times by 11 tests: return false;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
458
179}-
180-
181bool QQmlValueTypeProvider::storeValueType(int type, const void *src, void *dst, size_t dstSize)-
182{-
183 Q_ASSERT(src);-
184 Q_ASSERT(dst);-
185-
186 QQmlValueTypeProvider *p = this;-
187 do {-
188 if (p->store(type, src, dst, dstSize))
p->store(type,... dst, dstSize)Description
TRUEevaluated 27769 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
FALSEnever evaluated
0-27769
189 return true;
executed 27769 times by 82 tests: return true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
27769
190 } while ((p = p->next));
never executed: end of block
(p = p->next)Description
TRUEnever evaluated
FALSEnever evaluated
0
191-
192 return false;
never executed: return false;
0
193}-
194-
195bool QQmlValueTypeProvider::readValueType(const QVariant& src, void *dst, int dstType)-
196{-
197 Q_ASSERT(dst);-
198-
199 QQmlValueTypeProvider *p = this;-
200 do {-
201 if (p->read(src, dst, dstType))
p->read(src, dst, dstType)Description
TRUEevaluated 1116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEnever evaluated
0-1116
202 return true;
executed 1116 times by 12 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
1116
203 } while ((p = p->next));
never executed: end of block
(p = p->next)Description
TRUEnever evaluated
FALSEnever evaluated
0
204-
205 return false;
never executed: return false;
0
206}-
207-
208bool QQmlValueTypeProvider::writeValueType(int type, const void *src, QVariant& dst)-
209{-
210 Q_ASSERT(src);-
211-
212 QQmlValueTypeProvider *p = this;-
213 do {-
214 if (p->write(type, src, dst))
p->write(type, src, dst)Description
TRUEevaluated 458 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 40 times by 4 tests
Evaluated by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
40-458
215 return true;
executed 458 times by 11 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
458
216 } while ((p = p->next));
executed 40 times by 4 tests: end of block
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
(p = p->next)Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
16-40
217-
218 return false;
executed 16 times by 4 tests: return false;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
16
219}-
220-
221const
executed 334747 times by 130 tests: return nullptr;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
QMetaObject *QQmlValueTypeProvider::getMetaObjectForMetaType(int) { return nullptr; }
executed 334747 times by 130 tests: return nullptr;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
334747
222bool QQmlValueTypeProvider::init(int, QVariant&) { return false; }
never executed: return false;
0
223bool QQmlValueTypeProvider::create(int, int, const void *[], QVariant *) { return false; }
executed 8 times by 1 test: return false;
Executed by:
  • tst_qqmlvaluetypes
8
224bool QQmlValueTypeProvider::createFromString(int, const QString &, void *, size_t) { return false; }
never executed: return false;
0
225bool QQmlValueTypeProvider::createStringFrom(int, const void *, QString *) { return false; }
never executed: return false;
0
226bool QQmlValueTypeProvider::variantFromString(const QString &, QVariant *) { return false; }
executed 20 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
227bool QQmlValueTypeProvider::variantFromString(int, const QString &, QVariant *) { return false; }
executed 44 times by 7 tests: return false;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
44
228bool QQmlValueTypeProvider::variantFromJsObject(int, QQmlV4Handle, QV4::ExecutionEngine *, QVariant *) { return false; }
executed 6 times by 1 test: return false;
Executed by:
  • tst_qqmlqt
6
229bool QQmlValueTypeProvider::equal(int, const void *, const QVariant&) { return false; }
executed 654 times by 11 tests: return false;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
654
230bool QQmlValueTypeProvider::store(int, const void *, void *, size_t) { return false; }
never executed: return false;
0
231bool QQmlValueTypeProvider::read(const QVariant&, void *, int) { return false; }
never executed: return false;
0
232bool QQmlValueTypeProvider::write(int, const void *, QVariant&) { return false; }
executed 24 times by 4 tests: return false;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
24
233-
234Q_GLOBAL_STATIC(QQmlValueTypeProvider, nullValueTypeProvider)
executed 304 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
executed 304 times by 139 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
executed 708 times by 139 tests: return &holder.value;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 304 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
0-708
235static QQmlValueTypeProvider *valueTypeProvider = nullptr;-
236-
237static QQmlValueTypeProvider **getValueTypeProvider(void)-
238{-
239 if (valueTypeProvider == nullptr) {
valueTypeProvider == nullptrDescription
TRUEevaluated 304 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 272 times by 124 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
272-304
240 valueTypeProvider = nullValueTypeProvider;-
241 }
executed 304 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
304
242-
243 return &valueTypeProvider;
executed 576 times by 139 tests: return &valueTypeProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
576
244}-
245-
246Q_QML_PRIVATE_EXPORT void QQml_addValueTypeProvider(QQmlValueTypeProvider *newProvider)-
247{-
248 static QQmlValueTypeProvider **providerPtr = getValueTypeProvider();-
249 newProvider->next = *providerPtr;-
250 *providerPtr = newProvider;-
251}
executed 376 times by 132 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
376
252-
253Q_QML_PRIVATE_EXPORT void QQml_removeValueTypeProvider(QQmlValueTypeProvider *oldProvider)-
254{-
255 if (oldProvider == nullValueTypeProvider) {
oldProvider ==...ueTypeProviderDescription
TRUEevaluated 304 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 378 times by 132 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
304-378
256 // don't remove the null provider-
257 // we get here when the QtQml library is being unloaded-
258 return;
executed 304 times by 139 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
304
259 }-
260-
261 // the only entry with next = 0 is the null provider-
262 Q_ASSERT(oldProvider->next);-
263-
264 QQmlValueTypeProvider *prev = valueTypeProvider;-
265 if (prev == oldProvider) {
prev == oldProviderDescription
TRUEevaluated 376 times by 132 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmldiskcache
2-376
266 valueTypeProvider = oldProvider->next;-
267 return;
executed 376 times by 132 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
376
268 }-
269-
270 // singly-linked list removal-
271 for ( ; prev; prev = prev->next) {
prevDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmldiskcache
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmldiskcache
2
272 if (prev->next != oldProvider)
prev->next != oldProviderDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmldiskcache
FALSEnever evaluated
0-2
273 continue; // this is not the provider you're looking for
executed 2 times by 1 test: continue;
Executed by:
  • tst_qmldiskcache
2
274 prev->next = oldProvider->next;-
275 return;
never executed: return;
0
276 }-
277-
278 qWarning("QQml_removeValueTypeProvider: was asked to remove provider %p but it was not found", oldProvider);-
279}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qmldiskcache
2
280-
281Q_AUTOTEST_EXPORT QQmlValueTypeProvider *QQml_valueTypeProvider(void)-
282{-
283 static QQmlValueTypeProvider **providerPtr = getValueTypeProvider();-
284 return *providerPtr;
executed 458987 times by 131 tests: return *providerPtr;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
458987
285}-
286-
287QQmlColorProvider::~QQmlColorProvider() {}-
288QVariant QQmlColorProvider::colorFromString(const QString &, bool *ok) { if (ok) *ok = false; return QVariant(); }
never executed: *ok = false;
never executed: return QVariant();
okDescription
TRUEnever evaluated
FALSEnever evaluated
0
289unsigned QQmlColorProvider::rgbaFromString(const QString &, bool *ok) { if (ok) *ok = false; return 0; }
never executed: *ok = false;
never executed: return 0;
okDescription
TRUEnever evaluated
FALSEnever evaluated
0
290QVariant QQmlColorProvider::fromRgbF(double, double, double, double) { return QVariant(); }
executed 8 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlvaluetypes
8
291QVariant QQmlColorProvider::fromHslF(double, double, double, double) { return QVariant(); }
never executed: return QVariant();
0
292QVariant QQmlColorProvider::fromHsvF(double, double, double, double) { return QVariant(); }
never executed: return QVariant();
0
293QVariant QQmlColorProvider::lighter(const QVariant &, qreal) { return QVariant(); }
never executed: return QVariant();
0
294QVariant QQmlColorProvider::darker(const QVariant &, qreal) { return QVariant(); }
never executed: return QVariant();
0
295QVariant QQmlColorProvider::tint(const QVariant &, const QVariant &) { return QVariant(); }
never executed: return QVariant();
0
296-
297static QQmlColorProvider *colorProvider = nullptr;-
298-
299Q_QML_PRIVATE_EXPORT QQmlColorProvider *QQml_setColorProvider(QQmlColorProvider *newProvider)-
300{-
301 QQmlColorProvider *old = colorProvider;-
302 colorProvider = newProvider;-
303 return old;
executed 462 times by 132 tests: return old;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
462
304}-
305-
306static QQmlColorProvider **getColorProvider(void)-
307{-
308 if (colorProvider == nullptr) {
colorProvider == nullptrDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlglobal
  • tst_qqmlvaluetypes
FALSEevaluated 166 times by 83 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • ...
4-166
309 qWarning() << "Warning: QQml_colorProvider: no color provider has been set!";-
310 static QQmlColorProvider nullColorProvider;-
311 colorProvider = &nullColorProvider;-
312 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlglobal
  • tst_qqmlvaluetypes
4
313-
314 return &colorProvider;
executed 170 times by 85 tests: return &colorProvider;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlglobal
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • ...
170
315}-
316-
317Q_AUTOTEST_EXPORT QQmlColorProvider *QQml_colorProvider(void)-
318{-
319 static QQmlColorProvider **providerPtr = getColorProvider();-
320 return *providerPtr;
executed 38965 times by 85 tests: return *providerPtr;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlglobal
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • ...
38965
321}-
322-
323-
324QQmlGuiProvider::~QQmlGuiProvider() {}-
325QObject *QQmlGuiProvider::application(QObject *) { return new QQmlApplication(); }
executed 4 times by 1 test: return new QQmlApplication();
Executed by:
  • tst_qqmlapplicationengine
4
326QStringList QQmlGuiProvider::fontFamilies() { return QStringList(); }
never executed: return QStringList();
0
327bool QQmlGuiProvider::openUrlExternally(QUrl &) { return false; }
never executed: return false;
0
328-
329QObject *QQmlGuiProvider::inputMethod()-
330{-
331 // We don't have any input method code by default-
332 QObject *o = new QObject();-
333 o->setObjectName(QStringLiteral("No inputMethod available"));
never executed: return qstring_literal_temp;
0
334 QQmlEngine::setObjectOwnership(o, QQmlEngine::JavaScriptOwnership);-
335 return o;
never executed: return o;
0
336}-
337-
338QObject *QQmlGuiProvider::styleHints()-
339{-
340 QObject *o = new QObject();-
341 o->setObjectName(QStringLiteral("No styleHints available"));
never executed: return qstring_literal_temp;
0
342 QQmlEngine::setObjectOwnership(o, QQmlEngine::JavaScriptOwnership);-
343 return o;
never executed: return o;
0
344}-
345-
346QString QQmlGuiProvider::pluginName() const { return QString(); }
never executed: return QString();
0
347-
348static QQmlGuiProvider *guiProvider = nullptr;-
349-
350Q_QML_PRIVATE_EXPORT QQmlGuiProvider *QQml_setGuiProvider(QQmlGuiProvider *newProvider)-
351{-
352 QQmlGuiProvider *old = guiProvider;-
353 guiProvider = newProvider;-
354 return old;
executed 462 times by 132 tests: return old;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
462
355}-
356-
357static QQmlGuiProvider **getGuiProvider(void)-
358{-
359 if (guiProvider == nullptr) {
guiProvider == nullptrDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlglobal
FALSEevaluated 12 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickscreen
6-12
360 static QQmlGuiProvider nullGuiProvider; //Still provides an application with no GUI support-
361 guiProvider = &nullGuiProvider;-
362 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlglobal
6
363-
364 return &guiProvider;
executed 18 times by 8 tests: return &guiProvider;
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlglobal
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickscreen
18
365}-
366-
367Q_AUTOTEST_EXPORT QQmlGuiProvider *QQml_guiProvider(void)-
368{-
369 static QQmlGuiProvider **providerPtr = getGuiProvider();-
370 return *providerPtr;
executed 74 times by 8 tests: return *providerPtr;
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlglobal
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickscreen
74
371}-
372-
373//Docs in qqmlengine.cpp-
374QQmlApplication::QQmlApplication(QObject *parent)-
375 : QObject(*(new QQmlApplicationPrivate),parent)-
376{-
377 connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()),-
378 this, SIGNAL(aboutToQuit()));-
379 connect(QCoreApplication::instance(), SIGNAL(applicationNameChanged()),-
380 this, SIGNAL(nameChanged()));-
381 connect(QCoreApplication::instance(), SIGNAL(applicationVersionChanged()),-
382 this, SIGNAL(versionChanged()));-
383 connect(QCoreApplication::instance(), SIGNAL(organizationNameChanged()),-
384 this, SIGNAL(organizationChanged()));-
385 connect(QCoreApplication::instance(), SIGNAL(organizationDomainChanged()),-
386 this, SIGNAL(domainChanged()));-
387}
executed 16 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qquickapplication
  • tst_qquickscreen
16
388-
389QQmlApplication::QQmlApplication(QQmlApplicationPrivate &dd, QObject *parent)-
390 : QObject(dd, parent)-
391{-
392 connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()),-
393 this, SIGNAL(aboutToQuit()));-
394 connect(QCoreApplication::instance(), SIGNAL(applicationNameChanged()),-
395 this, SIGNAL(nameChanged()));-
396 connect(QCoreApplication::instance(), SIGNAL(applicationVersionChanged()),-
397 this, SIGNAL(versionChanged()));-
398 connect(QCoreApplication::instance(), SIGNAL(organizationNameChanged()),-
399 this, SIGNAL(organizationChanged()));-
400 connect(QCoreApplication::instance(), SIGNAL(organizationDomainChanged()),-
401 this, SIGNAL(domainChanged()));-
402}
never executed: end of block
0
403-
404QStringList QQmlApplication::args()-
405{-
406 Q_D(QQmlApplication);-
407 if (!d->argsInit) {
!d->argsInitDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
4-6
408 d->argsInit = true;-
409 d->args = QCoreApplication::arguments();-
410 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
4
411 return d->args;
executed 10 times by 2 tests: return d->args;
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
10
412}-
413-
414QString QQmlApplication::name() const-
415{-
416 return QCoreApplication::instance()->applicationName();
executed 8 times by 1 test: return QCoreApplication::instance()->applicationName();
Executed by:
  • tst_qqmlapplicationengine
8
417}-
418-
419QString QQmlApplication::version() const-
420{-
421 return QCoreApplication::instance()->applicationVersion();
executed 8 times by 1 test: return QCoreApplication::instance()->applicationVersion();
Executed by:
  • tst_qqmlapplicationengine
8
422}-
423-
424QString QQmlApplication::organization() const-
425{-
426 return QCoreApplication::instance()->organizationName();
executed 8 times by 1 test: return QCoreApplication::instance()->organizationName();
Executed by:
  • tst_qqmlapplicationengine
8
427}-
428-
429QString QQmlApplication::domain() const-
430{-
431 return QCoreApplication::instance()->organizationDomain();
executed 8 times by 1 test: return QCoreApplication::instance()->organizationDomain();
Executed by:
  • tst_qqmlapplicationengine
8
432}-
433-
434void QQmlApplication::setName(const QString &arg)-
435{-
436 QCoreApplication::instance()->setApplicationName(arg);-
437}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
2
438-
439void QQmlApplication::setVersion(const QString &arg)-
440{-
441 QCoreApplication::instance()->setApplicationVersion(arg);-
442}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
2
443-
444void QQmlApplication::setOrganization(const QString &arg)-
445{-
446 QCoreApplication::instance()->setOrganizationName(arg);-
447}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
2
448-
449void QQmlApplication::setDomain(const QString &arg)-
450{-
451 QCoreApplication::instance()->setOrganizationDomain(arg);-
452}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
2
453-
454QT_END_NAMESPACE-
455-
456#include "moc_qqmlglobal_p.cpp"-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0