Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "qqmlcontext.h" | - |
41 | #include "qqmlcontext_p.h" | - |
42 | #include "qqmlcomponentattached_p.h" | - |
43 | | - |
44 | #include "qqmlcomponent_p.h" | - |
45 | #include "qqmlexpression_p.h" | - |
46 | #include "qqmlengine_p.h" | - |
47 | #include "qqmlengine.h" | - |
48 | #include "qqmlinfo.h" | - |
49 | #include "qqmlabstracturlinterceptor.h" | - |
50 | | - |
51 | #include <qjsengine.h> | - |
52 | #include <QtCore/qvarlengtharray.h> | - |
53 | #include <private/qmetaobject_p.h> | - |
54 | #include <QtCore/qdebug.h> | - |
55 | | - |
56 | QT_BEGIN_NAMESPACE | - |
57 | | - |
58 | QQmlContextPrivate::QQmlContextPrivate() | - |
59 | : data(nullptr), notifyIndex(-1) | - |
60 | { | - |
61 | }executed 70442 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 70442 |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
157 | | - |
158 | | - |
159 | QQmlContext::QQmlContext(QQmlEngine *e, bool) | - |
160 | : QObject(*(new QQmlContextPrivate)) | - |
161 | { | - |
162 | Q_D(QQmlContext); | - |
163 | d->data = new QQmlContextData(this); | - |
164 | ++d->data->refCount; | - |
165 | | - |
166 | d->data->engine = e; | - |
167 | }executed 7674 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 7674 |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | QQmlContext::QQmlContext(QQmlEngine *engine, QObject *parent) | - |
174 | : QObject(*(new QQmlContextPrivate), parent) | - |
175 | { | - |
176 | Q_D(QQmlContext); | - |
177 | d->data = new QQmlContextData(this); | - |
178 | ++d->data->refCount; | - |
179 | | - |
180 | d->data->setParent(engine?QQmlContextData::get(engine->rootContext()):nullptr); | - |
181 | }executed 40 times by 5 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qqmlinfo
- tst_qqmlproperty
- tst_qqmlpropertymap
| 40 |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | QQmlContext::QQmlContext(QQmlContext *parentContext, QObject *parent) | - |
188 | : QObject(*(new QQmlContextPrivate), parent) | - |
189 | { | - |
190 | Q_D(QQmlContext); | - |
191 | d->data = new QQmlContextData(this); | - |
192 | ++d->data->refCount; | - |
193 | | - |
194 | d->data->setParent(parentContext?QQmlContextData::get(parentContext):nullptr); | - |
195 | }executed 2360 times by 27 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlmetatype
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickrepeater
- tst_qquickvisualdatamodel
- ...
| 2360 |
196 | | - |
197 | | - |
198 | | - |
199 | | - |
200 | QQmlContext::QQmlContext(QQmlContextData *data) | - |
201 | : QObject(*(new QQmlContextPrivate), nullptr) | - |
202 | { | - |
203 | Q_D(QQmlContext); | - |
204 | d->data = data; | - |
205 | | - |
206 | }executed 60368 times by 66 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- ...
| 60368 |
207 | | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | QQmlContext::~QQmlContext() | - |
216 | { | - |
217 | Q_D(QQmlContext); | - |
218 | | - |
219 | d->data->publicContext = nullptr; | - |
220 | if (!--d->data->refCount)TRUE | evaluated 8976 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| FALSE | evaluated 60520 times by 64 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- ...
|
| 8976-60520 |
221 | d->data->destroy();executed 8976 times by 148 tests: d->data->destroy(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 8976 |
222 | }executed 69496 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 69496 |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | | - |
228 | | - |
229 | | - |
230 | bool QQmlContext::isValid() const | - |
231 | { | - |
232 | Q_D(const QQmlContext); | - |
233 | return d->data && d->data->isValid();executed 195534 times by 55 tests: return d->data && d->data->isValid(); Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- ...
| 195534 |
234 | } | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
239 | | - |
240 | QQmlEngine *QQmlContext::engine() const | - |
241 | { | - |
242 | Q_D(const QQmlContext); | - |
243 | return d->data->engine;executed 158060 times by 45 tests: return d->data->engine; Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- ...
| 158060 |
244 | } | - |
245 | | - |
246 | | - |
247 | | - |
248 | | - |
249 | | - |
250 | QQmlContext *QQmlContext::parentContext() const | - |
251 | { | - |
252 | Q_D(const QQmlContext); | - |
253 | return d->data->parent?d->data->parent->asQQmlContext():nullptr;executed 4592 times by 4 tests: return d->data->parent?d->data->parent->asQQmlContext():nullptr; Executed by:- tst_examples
- tst_qqmlcontext
- tst_qquickgridview
- tst_qquicklistview
| 4592 |
254 | } | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | QObject *QQmlContext::contextObject() const | - |
260 | { | - |
261 | Q_D(const QQmlContext); | - |
262 | return d->data->contextObject;executed 1390 times by 2 tests: return d->data->contextObject; Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| 1390 |
263 | } | - |
264 | | - |
265 | | - |
266 | | - |
267 | | - |
268 | void QQmlContext::setContextObject(QObject *object) | - |
269 | { | - |
270 | Q_D(QQmlContext); | - |
271 | | - |
272 | QQmlContextData *data = d->data; | - |
273 | | - |
274 | if (data->isInternal) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 920 times by 17 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickrepeater
|
| 2-920 |
275 | qWarning("QQmlContext: Cannot set context object for internal context."); | - |
276 | return;executed 2 times by 1 test: return; | 2 |
277 | } | - |
278 | | - |
279 | if (!isValid()) {TRUE | never evaluated | FALSE | evaluated 920 times by 17 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickrepeater
|
| 0-920 |
280 | qWarning("QQmlContext: Cannot set context object on invalid context."); | - |
281 | return; never executed: return; | 0 |
282 | } | - |
283 | | - |
284 | data->contextObject = object; | - |
285 | data->refreshExpressions(); | - |
286 | }executed 920 times by 17 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickrepeater
| 920 |
287 | | - |
288 | | - |
289 | | - |
290 | | - |
291 | void QQmlContext::setContextProperty(const QString &name, const QVariant &value) | - |
292 | { | - |
293 | Q_D(QQmlContext); | - |
294 | if (d->notifyIndex == -1)TRUE | evaluated 1880 times by 34 testsEvaluated by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| FALSE | evaluated 17138 times by 19 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlqt
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickvisualdatamodel
- tst_quicktestmainwithsetup
|
| 1880-17138 |
295 | d->notifyIndex = QMetaObjectPrivate::absoluteSignalCount(&QQmlContext::staticMetaObject);executed 1880 times by 34 tests: d->notifyIndex = QMetaObjectPrivate::absoluteSignalCount(&QQmlContext::staticMetaObject); Executed by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 1880 |
296 | | - |
297 | QQmlContextData *data = d->data; | - |
298 | | - |
299 | if (data->isInternal) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 19014 times by 34 testsEvaluated by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
|
| 4-19014 |
300 | qWarning("QQmlContext: Cannot set property on internal context."); | - |
301 | return;executed 4 times by 1 test: return; | 4 |
302 | } | - |
303 | | - |
304 | if (!isValid()) {TRUE | never evaluated | FALSE | evaluated 19014 times by 34 testsEvaluated by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
|
| 0-19014 |
305 | qWarning("QQmlContext: Cannot set property on invalid context."); | - |
306 | return; never executed: return; | 0 |
307 | } | - |
308 | | - |
309 | QV4::IdentifierHash &properties = data->detachedPropertyNames(); | - |
310 | int idx = properties.value(name); | - |
311 | if (idx == -1) {TRUE | evaluated 5146 times by 34 testsEvaluated by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| FALSE | evaluated 13868 times by 14 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlnotifier
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickrepeater
- tst_qquickvisualdatamodel
|
| 5146-13868 |
312 | properties.add(name, data->idValueCount + d->propertyValues.count()); | - |
313 | d->propertyValues.append(value); | - |
314 | | - |
315 | data->refreshExpressions(); | - |
316 | } else {executed 5146 times by 34 tests: end of block Executed by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 5146 |
317 | d->propertyValues[idx] = value; | - |
318 | QMetaObject::activate(this, d->notifyIndex, idx, nullptr); | - |
319 | }executed 13868 times by 14 tests: end of block Executed by:- tst_examples
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlnotifier
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 13868 |
320 | } | - |
321 | | - |
322 | | - |
323 | | - |
324 | | - |
325 | | - |
326 | | - |
327 | void QQmlContext::setContextProperty(const QString &name, QObject *value) | - |
328 | { | - |
329 | setContextProperty(name, QVariant::fromValue(value)); | - |
330 | }executed 5664 times by 25 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimationcontroller
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_quicktestmainwithsetup
- tst_scenegraph
- tst_testfiltering
| 5664 |
331 | | - |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | | - |
339 | | - |
340 | | - |
341 | | - |
342 | | - |
343 | void QQmlContext::setContextProperties(const QVector<PropertyPair> &properties) | - |
344 | { | - |
345 | Q_D(const QQmlContext); | - |
346 | | - |
347 | QQmlContextData *data = d->data; | - |
348 | | - |
349 | QQmlJavaScriptExpression *expressions = data->expressions; | - |
350 | QQmlContextData *childContexts = data->childContexts; | - |
351 | | - |
352 | data->expressions = nullptr; | - |
353 | data->childContexts = nullptr; | - |
354 | | - |
355 | for (auto property : properties) | - |
356 | setContextProperty(property.name, property.value);executed 10 times by 1 test: setContextProperty(property.name, property.value); | 10 |
357 | | - |
358 | data->expressions = expressions; | - |
359 | data->childContexts = childContexts; | - |
360 | | - |
361 | data->refreshExpressions(); | - |
362 | }executed 2 times by 1 test: end of block | 2 |
363 | | - |
364 | | - |
365 | | - |
366 | | - |
367 | | - |
368 | | - |
369 | | - |
370 | | - |
371 | | - |
372 | | - |
373 | | - |
374 | | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | QVariant QQmlContext::contextProperty(const QString &name) const | - |
381 | { | - |
382 | Q_D(const QQmlContext); | - |
383 | QVariant value; | - |
384 | int idx = -1; | - |
385 | | - |
386 | QQmlContextData *data = d->data; | - |
387 | | - |
388 | const QV4::IdentifierHash &properties = data->propertyNames(); | - |
389 | if (properties.count())TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickrepeater
| FALSE | evaluated 4 times by 1 test |
| 4-12 |
390 | idx = properties.value(name);executed 12 times by 2 tests: idx = properties.value(name); Executed by:- tst_qqmlcontext
- tst_qquickrepeater
| 12 |
391 | | - |
392 | if (idx == -1) {TRUE | evaluated 8 times by 1 test | FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickrepeater
|
| 8 |
393 | if (data->contextObject) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
394 | QObject *obj = data->contextObject; | - |
395 | QQmlPropertyData local; | - |
396 | QQmlPropertyData *property = | - |
397 | QQmlPropertyCache::property(data->engine, obj, name, data, local); | - |
398 | | - |
399 | if (property) value = obj->metaObject()->property(property->coreIndex()).read(obj); never executed: value = obj->metaObject()->property(property->coreIndex()).read(obj); TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
400 | }executed 4 times by 1 test: end of block | 4 |
401 | if (!value.isValid() && parentContext())TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-8 |
402 | value = parentContext()->contextProperty(name);executed 4 times by 1 test: value = parentContext()->contextProperty(name); | 4 |
403 | } else {executed 8 times by 1 test: end of block | 8 |
404 | if (idx >= d->propertyValues.count())TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickrepeater
| FALSE | never evaluated |
| 0-8 |
405 | value = QVariant::fromValue(data->idValues[idx - d->propertyValues.count()].data());executed 8 times by 2 tests: value = QVariant::fromValue(data->idValues[idx - d->propertyValues.count()].data()); Executed by:- tst_qqmlcontext
- tst_qquickrepeater
| 8 |
406 | else | - |
407 | value = d->propertyValues[idx]; never executed: value = d->propertyValues[idx]; | 0 |
408 | } | - |
409 | | - |
410 | return value;executed 16 times by 2 tests: return value; Executed by:- tst_qqmlcontext
- tst_qquickrepeater
| 16 |
411 | } | - |
412 | | - |
413 | | - |
414 | | - |
415 | | - |
416 | | - |
417 | | - |
418 | | - |
419 | | - |
420 | QString QQmlContext::nameForObject(QObject *object) const | - |
421 | { | - |
422 | Q_D(const QQmlContext); | - |
423 | | - |
424 | return d->data->findObjectId(object);executed 12 times by 1 test: return d->data->findObjectId(object); | 12 |
425 | } | - |
426 | | - |
427 | | - |
428 | | - |
429 | | - |
430 | | - |
431 | | - |
432 | | - |
433 | QUrl QQmlContext::resolvedUrl(const QUrl &src) | - |
434 | { | - |
435 | Q_D(QQmlContext); | - |
436 | return d->data->resolvedUrl(src);executed 14 times by 1 test: return d->data->resolvedUrl(src); | 14 |
437 | } | - |
438 | | - |
439 | QUrl QQmlContextData::resolvedUrl(const QUrl &src) | - |
440 | { | - |
441 | QQmlContextData *ctxt = this; | - |
442 | | - |
443 | QUrl resolved; | - |
444 | if (src.isRelative() && !src.isEmpty()) {TRUE | evaluated 756 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | evaluated 14 times by 4 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlqt
- tst_qquickloader
|
TRUE | evaluated 756 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | never evaluated |
| 0-756 |
445 | if (ctxt) {TRUE | evaluated 756 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | never evaluated |
| 0-756 |
446 | while(ctxt) {TRUE | evaluated 762 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlproperty
|
| 8-762 |
447 | if (ctxt->url().isValid())TRUE | evaluated 748 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlproperty
|
| 14-748 |
448 | break;executed 748 times by 22 tests: break; Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| 748 |
449 | else | - |
450 | ctxt = ctxt->parent;executed 14 times by 2 tests: ctxt = ctxt->parent; Executed by:- tst_qqmlcontext
- tst_qqmlproperty
| 14 |
451 | } | - |
452 | | - |
453 | if (ctxt)TRUE | evaluated 748 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlproperty
|
| 8-748 |
454 | resolved = ctxt->url().resolved(src);executed 748 times by 22 tests: resolved = ctxt->url().resolved(src); Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| 748 |
455 | else if (engine)TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlproperty
| FALSE | evaluated 2 times by 1 test |
| 2-6 |
456 | resolved = engine->baseUrl().resolved(src);executed 6 times by 2 tests: resolved = engine->baseUrl().resolved(src); Executed by:- tst_qqmlcontext
- tst_qqmlproperty
| 6 |
457 | }executed 756 times by 22 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| 756 |
458 | } else {executed 756 times by 22 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| 756 |
459 | resolved = src; | - |
460 | }executed 14 times by 4 tests: end of block Executed by:- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlqt
- tst_qquickloader
| 14 |
461 | | - |
462 | if (resolved.isEmpty()) TRUE | evaluated 2 times by 1 test | FALSE | evaluated 768 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
|
| 2-768 |
463 | return resolved;executed 2 times by 1 test: return resolved; | 2 |
464 | | - |
465 | if (engine && engine->urlInterceptor())TRUE | evaluated 765 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| FALSE | evaluated 3 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlxmlhttprequest
|
TRUE | evaluated 4 times by 1 test | FALSE | evaluated 761 times by 22 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
|
| 3-765 |
466 | resolved = engine->urlInterceptor()->intercept(resolved, QQmlAbstractUrlInterceptor::UrlString);executed 4 times by 1 test: resolved = engine->urlInterceptor()->intercept(resolved, QQmlAbstractUrlInterceptor::UrlString); | 4 |
467 | return resolved;executed 768 times by 22 tests: return resolved; Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmllistreference
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickfontloader
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qtqmlmodules
| 768 |
468 | } | - |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | | - |
475 | | - |
476 | | - |
477 | | - |
478 | | - |
479 | void QQmlContext::setBaseUrl(const QUrl &baseUrl) | - |
480 | { | - |
481 | Q_D(QQmlContext); | - |
482 | | - |
483 | d->data->baseUrl = baseUrl; | - |
484 | d->data->baseUrlString = baseUrl.toString(); | - |
485 | }executed 8 times by 1 test: end of block | 8 |
486 | | - |
487 | | - |
488 | | - |
489 | | - |
490 | | - |
491 | QUrl QQmlContext::baseUrl() const | - |
492 | { | - |
493 | Q_D(const QQmlContext); | - |
494 | const QQmlContextData* data = d->data; | - |
495 | while (data && data->url().isEmpty())TRUE | evaluated 4368 times by 13 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qqmltranslation
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 1032 times by 4 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qquicktext
- tst_qquicktextedit
|
TRUE | evaluated 2124 times by 7 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 2244 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
|
| 1032-4368 |
496 | data = data->parent;executed 2124 times by 7 tests: data = data->parent; Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| 2124 |
497 | | - |
498 | if (data)TRUE | evaluated 2244 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 1032 times by 4 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qquicktext
- tst_qquicktextedit
|
| 1032-2244 |
499 | return data->url();executed 2244 times by 12 tests: return data->url(); Executed by:- tst_examples
- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
| 2244 |
500 | else | - |
501 | return QUrl();executed 1032 times by 4 tests: return QUrl(); Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qquicktext
- tst_qquicktextedit
| 1032 |
502 | } | - |
503 | | - |
504 | int QQmlContextPrivate::context_count(QQmlListProperty<QObject> *prop) | - |
505 | { | - |
506 | QQmlContext *context = static_cast<QQmlContext*>(prop->object); | - |
507 | QQmlContextPrivate *d = QQmlContextPrivate::get(context); | - |
508 | int contextProperty = (int)(quintptr)prop->data; | - |
509 | | - |
510 | if (d->propertyValues.at(contextProperty).userType() != qMetaTypeId<QList<QObject*> >()) {TRUE | never evaluated | FALSE | evaluated 1696 times by 2 testsEvaluated by:- tst_qquickrepeater
- tst_qquickvisualdatamodel
|
| 0-1696 |
511 | return 0; never executed: return 0; | 0 |
512 | } else { | - |
513 | return ((const QList<QObject> *)d->propertyValues.at(contextProperty).constData())->count();executed 1696 times by 2 tests: return ((const QList<QObject> *)d->propertyValues.at(contextProperty).constData())->count(); Executed by:- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 1696 |
514 | } | - |
515 | } | - |
516 | | - |
517 | QObject *QQmlContextPrivate::context_at(QQmlListProperty<QObject> *prop, int index) | - |
518 | { | - |
519 | QQmlContext *context = static_cast<QQmlContext*>(prop->object); | - |
520 | QQmlContextPrivate *d = QQmlContextPrivate::get(context); | - |
521 | int contextProperty = (int)(quintptr)prop->data; | - |
522 | | - |
523 | if (d->propertyValues.at(contextProperty).userType() != qMetaTypeId<QList<QObject*> >()) {TRUE | never evaluated | FALSE | evaluated 440 times by 2 testsEvaluated by:- tst_qquickrepeater
- tst_qquickvisualdatamodel
|
| 0-440 |
524 | return nullptr; never executed: return nullptr; | 0 |
525 | } else { | - |
526 | return ((const QList<QObject*> *)d->propertyValues.at(contextProperty).constData())->at(index);executed 440 times by 2 tests: return ((const QList<QObject*> *)d->propertyValues.at(contextProperty).constData())->at(index); Executed by:- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 440 |
527 | } | - |
528 | } | - |
529 | | - |
530 | | - |
531 | QQmlContextData::QQmlContextData() | - |
532 | : QQmlContextData(nullptr) | - |
533 | { | - |
534 | }executed 243429 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 243429 |
535 | | - |
536 | QQmlContextData::QQmlContextData(QQmlContext *ctxt) | - |
537 | : engine(nullptr), isInternal(false), isJSContext(false), | - |
538 | isPragmaLibraryContext(false), unresolvedNames(false), hasEmittedDestruction(false), isRootObjectInCreation(false), | - |
539 | stronglyReferencedByParent(false), publicContext(ctxt), incubator(nullptr), componentObjectIndex(-1), | - |
540 | contextObject(nullptr), nextChild(nullptr), prevChild(nullptr), | - |
541 | expressions(nullptr), contextObjects(nullptr), idValues(nullptr), idValueCount(0), | - |
542 | componentAttached(nullptr) | - |
543 | { | - |
544 | }executed 253503 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 253503 |
545 | | - |
546 | void QQmlContextData::emitDestruction() | - |
547 | { | - |
548 | if (!hasEmittedDestruction) {TRUE | evaluated 253389 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| FALSE | evaluated 582795 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 253389-582795 |
549 | hasEmittedDestruction = true; | - |
550 | | - |
551 | | - |
552 | | - |
553 | if (engine) {TRUE | evaluated 252237 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| FALSE | evaluated 1152 times by 5 testsEvaluated by:- tst_examples
- tst_qmlcachegen
- tst_qqmlecmascript
- tst_qqmllistmodelworkerscript
- tst_qquickworkerscript
|
| 1152-252237 |
554 | while (componentAttached) {TRUE | evaluated 4423 times by 58 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- ...
| FALSE | evaluated 252237 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 4423-252237 |
555 | QQmlComponentAttached *a = componentAttached; | - |
556 | componentAttached = a->next; | - |
557 | if (componentAttached) componentAttached->prev = &componentAttached;executed 18 times by 1 test: componentAttached->prev = &componentAttached; TRUE | evaluated 18 times by 1 test | FALSE | evaluated 4405 times by 58 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- ...
|
| 18-4405 |
558 | | - |
559 | a->next = nullptr; | - |
560 | a->prev = nullptr; | - |
561 | | - |
562 | emit a->destruction(); | - |
563 | }executed 4423 times by 58 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- ...
| 4423 |
564 | | - |
565 | QQmlContextData * child = childContexts; | - |
566 | while (child) {TRUE | evaluated 206110 times by 77 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| FALSE | evaluated 252237 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 206110-252237 |
567 | child->emitDestruction(); | - |
568 | child = child->nextChild; | - |
569 | }executed 206110 times by 77 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| 206110 |
570 | }executed 252237 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 252237 |
571 | }executed 253389 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 253389 |
572 | }executed 836184 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 836184 |
573 | | - |
574 | void QQmlContextData::invalidate() | - |
575 | { | - |
576 | emitDestruction(); | - |
577 | | - |
578 | while (childContexts) {TRUE | evaluated 206090 times by 77 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| FALSE | evaluated 384600 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 206090-384600 |
579 | Q_ASSERT(childContexts != this); | - |
580 | if (childContexts->stronglyReferencedByParent && !--childContexts->refCount)TRUE | evaluated 472 times by 3 testsEvaluated by:- tst_examples
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| FALSE | evaluated 205618 times by 77 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
|
TRUE | evaluated 472 times by 3 testsEvaluated by:- tst_examples
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| FALSE | never evaluated |
| 0-205618 |
581 | childContexts->destroy();executed 472 times by 3 tests: childContexts->destroy(); Executed by:- tst_examples
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 472 |
582 | else | - |
583 | childContexts->invalidate();executed 205618 times by 77 tests: childContexts->invalidate(); Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| 205618 |
584 | } | - |
585 | | - |
586 | if (prevChild) {TRUE | evaluated 244515 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| FALSE | evaluated 140085 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 140085-244515 |
587 | *prevChild = nextChild; | - |
588 | if (nextChild) nextChild->prevChild = prevChild;executed 132120 times by 55 tests: nextChild->prevChild = prevChild; Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- ...
TRUE | evaluated 132120 times by 55 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- ...
| FALSE | evaluated 112395 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
|
| 112395-132120 |
589 | nextChild = nullptr; | - |
590 | prevChild = nullptr; | - |
591 | }executed 244515 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 244515 |
592 | | - |
593 | importedScripts.clear(); | - |
594 | | - |
595 | engine = nullptr; | - |
596 | parent = nullptr; | - |
597 | }executed 384600 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 384600 |
598 | | - |
599 | void QQmlContextData::clearContextRecursively() | - |
600 | { | - |
601 | clearContext(); | - |
602 | | - |
603 | for (auto ctxIt = childContexts; ctxIt; ctxIt = ctxIt->nextChild)TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
| FALSE | evaluated 211 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
|
| 13-211 |
604 | ctxIt->clearContextRecursively();executed 13 times by 2 tests: ctxIt->clearContextRecursively(); Executed by:- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
| 13 |
605 | }executed 211 times by 12 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
| 211 |
606 | | - |
607 | void QQmlContextData::clearContext() | - |
608 | { | - |
609 | emitDestruction(); | - |
610 | | - |
611 | QQmlJavaScriptExpression *expression = expressions; | - |
612 | while (expression) {TRUE | evaluated 111137 times by 19 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquickvisualdatamodel
| FALSE | evaluated 232015 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 111137-232015 |
613 | QQmlJavaScriptExpression *nextExpression = expression->m_nextExpression; | - |
614 | | - |
615 | expression->m_prevExpression = nullptr; | - |
616 | expression->m_nextExpression = nullptr; | - |
617 | | - |
618 | expression->setContext(nullptr); | - |
619 | | - |
620 | expression = nextExpression; | - |
621 | }executed 111137 times by 19 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquickvisualdatamodel
| 111137 |
622 | expressions = nullptr; | - |
623 | }executed 232015 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 232015 |
624 | | - |
625 | void QQmlContextData::destroy() | - |
626 | { | - |
627 | Q_ASSERT(refCount == 0); | - |
628 | linkedContext = nullptr; | - |
629 | | - |
630 | | - |
631 | ++refCount; | - |
632 | if (engine)TRUE | evaluated 9537 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| FALSE | evaluated 199999 times by 134 testsEvaluated 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_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- ...
|
| 9537-199999 |
633 | invalidate();executed 9537 times by 148 tests: invalidate(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 9537 |
634 | | - |
635 | Q_ASSERT(refCount == 1); | - |
636 | clearContext(); | - |
637 | Q_ASSERT(refCount == 1); | - |
638 | | - |
639 | while (contextObjects) {TRUE | evaluated 29711 times by 80 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| FALSE | evaluated 209536 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 29711-209536 |
640 | QQmlData *co = contextObjects; | - |
641 | contextObjects = contextObjects->nextContextObject; | - |
642 | | - |
643 | co->context = nullptr; | - |
644 | co->outerContext = nullptr; | - |
645 | co->nextContextObject = nullptr; | - |
646 | co->prevContextObject = nullptr; | - |
647 | }executed 29711 times by 80 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| 29711 |
648 | Q_ASSERT(refCount == 1); | - |
649 | | - |
650 | QQmlGuardedContextData *contextGuard = contextGuards; | - |
651 | while (contextGuard) {TRUE | evaluated 6195 times by 106 testsEvaluated by:- 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_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmltranslation
- ...
| FALSE | evaluated 209536 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 6195-209536 |
652 | QQmlGuardedContextData *next = contextGuard->m_next; | - |
653 | contextGuard->m_next = nullptr; | - |
654 | contextGuard->m_prev = nullptr; | - |
655 | contextGuard->m_contextData = nullptr; | - |
656 | contextGuard = next; | - |
657 | }executed 6195 times by 106 tests: end of block Executed by:- 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_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmoduleplugin
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmltranslation
- ...
| 6195 |
658 | contextGuards = nullptr; | - |
659 | Q_ASSERT(refCount == 1); | - |
660 | | - |
661 | delete [] idValues; | - |
662 | idValues = nullptr; | - |
663 | | - |
664 | Q_ASSERT(refCount == 1); | - |
665 | if (publicContext) {TRUE | evaluated 59444 times by 63 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- ...
| FALSE | evaluated 150092 times by 148 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
|
| 59444-150092 |
666 | | - |
667 | ++refCount; | - |
668 | delete publicContext; | - |
669 | }executed 59444 times by 63 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- ...
| 59444 |
670 | | - |
671 | Q_ASSERT(refCount == 1); | - |
672 | --refCount; | - |
673 | Q_ASSERT(refCount == 0); | - |
674 | | - |
675 | delete this; | - |
676 | }executed 209536 times by 148 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- ...
| 209536 |
677 | | - |
678 | void QQmlContextData::setParent(QQmlContextData *p, bool stronglyReferencedByParent) | - |
679 | { | - |
680 | if (p == parent)TRUE | never evaluated | FALSE | evaluated 244617 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
|
| 0-244617 |
681 | return; never executed: return; | 0 |
682 | if (p) {TRUE | evaluated 244617 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| FALSE | never evaluated |
| 0-244617 |
683 | Q_ASSERT(!parent); | - |
684 | parent = p; | - |
685 | this->stronglyReferencedByParent = stronglyReferencedByParent; | - |
686 | if (stronglyReferencedByParent)TRUE | evaluated 472 times by 3 testsEvaluated by:- tst_examples
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| FALSE | evaluated 244145 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
|
| 472-244145 |
687 | ++refCount; executed 472 times by 3 tests: ++refCount; Executed by:- tst_examples
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 472 |
688 | engine = p->engine; | - |
689 | nextChild = p->childContexts; | - |
690 | if (nextChild) nextChild->prevChild = &nextChild;executed 135259 times by 64 tests: nextChild->prevChild = &nextChild; Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmlstatemachine
- tst_qqmltypeloader
- ...
TRUE | evaluated 135259 times by 64 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmlstatemachine
- tst_qqmltypeloader
- ...
| FALSE | evaluated 109358 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
|
| 109358-135259 |
691 | prevChild = &p->childContexts; | - |
692 | p->childContexts = this; | - |
693 | }executed 244617 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 244617 |
694 | }executed 244617 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 244617 |
695 | | - |
696 | void QQmlContextData::refreshExpressionsRecursive(QQmlJavaScriptExpression *expression) | - |
697 | { | - |
698 | QQmlJavaScriptExpression::DeleteWatcher w(expression); | - |
699 | | - |
700 | if (expression->m_nextExpression)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 24 times by 3 testsEvaluated by:- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickdesignersupport
|
| 10-24 |
701 | refreshExpressionsRecursive(expression->m_nextExpression);executed 10 times by 1 test: refreshExpressionsRecursive(expression->m_nextExpression); | 10 |
702 | | - |
703 | if (!w.wasDeleted())TRUE | evaluated 34 times by 3 testsEvaluated by:- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickdesignersupport
| FALSE | never evaluated |
| 0-34 |
704 | expression->refresh();executed 34 times by 3 tests: expression->refresh(); Executed by:- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickdesignersupport
| 34 |
705 | }executed 34 times by 3 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmltranslation
- tst_qquickdesignersupport
| 34 |
706 | | - |
707 | QQmlContextData::~QQmlContextData() | - |
708 | { | - |
709 | } | - |
710 | | - |
711 | static inline bool expressions_to_run(QQmlContextData *ctxt, bool isGlobalRefresh) | - |
712 | { | - |
713 | return ctxt->expressions && (!isGlobalRefresh || ctxt->unresolvedNames);executed 12720 times by 42 tests: return ctxt->expressions && (!isGlobalRefresh || ctxt->unresolvedNames); Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- ...
| 12720 |
714 | } | - |
715 | | - |
716 | void QQmlContextData::refreshExpressionsRecursive(bool isGlobal) | - |
717 | { | - |
718 | | - |
719 | if (expressions_to_run(this, isGlobal) && (nextChild || childContexts)) {TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickdesignersupport
| FALSE | evaluated 256 times by 6 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
|
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickdesignersupport
|
TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qquickdesignersupport
| FALSE | evaluated 12 times by 1 test |
| 2-256 |
720 | QQmlGuardedContextData guard(this); | - |
721 | | - |
722 | if (childContexts)TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qquickdesignersupport
| FALSE | evaluated 10 times by 1 test |
| 2-10 |
723 | childContexts->refreshExpressionsRecursive(isGlobal);executed 2 times by 1 test: childContexts->refreshExpressionsRecursive(isGlobal); Executed by:- tst_qquickdesignersupport
| 2 |
724 | | - |
725 | if (guard.isNull()) return; never executed: return; TRUE | never evaluated | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickdesignersupport
|
| 0-12 |
726 | | - |
727 | if (nextChild)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qquickdesignersupport
|
| 2-10 |
728 | nextChild->refreshExpressionsRecursive(isGlobal);executed 10 times by 1 test: nextChild->refreshExpressionsRecursive(isGlobal); | 10 |
729 | | - |
730 | if (guard.isNull()) return; never executed: return; TRUE | never evaluated | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickdesignersupport
|
| 0-12 |
731 | | - |
732 | if (expressions_to_run(this, isGlobal))TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickdesignersupport
| FALSE | evaluated 2 times by 1 test |
| 2-10 |
733 | refreshExpressionsRecursive(expressions);executed 10 times by 2 tests: refreshExpressionsRecursive(expressions); Executed by:- tst_qqmlcontext
- tst_qquickdesignersupport
| 10 |
734 | | - |
735 | } else if (expressions_to_run(this, isGlobal)) {executed 12 times by 2 tests: end of block Executed by:- tst_qqmlcontext
- tst_qquickdesignersupport
TRUE | evaluated 12 times by 1 test | FALSE | evaluated 256 times by 6 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
|
| 12-256 |
736 | | - |
737 | refreshExpressionsRecursive(expressions); | - |
738 | | - |
739 | } else if (nextChild && childContexts) {executed 12 times by 1 test: end of block TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickfontloader
| FALSE | evaluated 240 times by 6 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
|
TRUE | evaluated 4 times by 1 test | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickfontloader
|
| 4-240 |
740 | | - |
741 | QQmlGuardedContextData guard(this); | - |
742 | | - |
743 | childContexts->refreshExpressionsRecursive(isGlobal); | - |
744 | | - |
745 | if (!guard.isNull() && nextChild)TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
| 0-4 |
746 | nextChild->refreshExpressionsRecursive(isGlobal);executed 4 times by 1 test: nextChild->refreshExpressionsRecursive(isGlobal); | 4 |
747 | | - |
748 | } else if (nextChild) {executed 4 times by 1 test: end of block TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qquickfontloader
| FALSE | evaluated 240 times by 6 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
|
| 4-240 |
749 | | - |
750 | nextChild->refreshExpressionsRecursive(isGlobal); | - |
751 | | - |
752 | } else if (childContexts) {executed 12 times by 2 tests: end of block Executed by:- tst_qqmlcontext
- tst_qquickfontloader
TRUE | evaluated 8 times by 1 test | FALSE | evaluated 232 times by 6 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
|
| 8-232 |
753 | | - |
754 | childContexts->refreshExpressionsRecursive(isGlobal); | - |
755 | | - |
756 | }executed 8 times by 1 test: end of block | 8 |
757 | }executed 280 times by 6 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltranslation
- tst_qquickdesignersupport
- tst_qquickfontloader
| 280 |
758 | | - |
759 | | - |
760 | | - |
761 | | - |
762 | void QQmlContextData::refreshExpressions() | - |
763 | { | - |
764 | bool isGlobal = (parent == nullptr); | - |
765 | | - |
766 | | - |
767 | if (expressions_to_run(this, isGlobal) && childContexts) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 6078 times by 41 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- ...
|
TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-6078 |
768 | QQmlGuardedContextData guard(this); | - |
769 | | - |
770 | childContexts->refreshExpressionsRecursive(isGlobal); | - |
771 | | - |
772 | if (!guard.isNull() && expressions_to_run(this, isGlobal))TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-2 |
773 | refreshExpressionsRecursive(expressions);executed 2 times by 1 test: refreshExpressionsRecursive(expressions); | 2 |
774 | | - |
775 | } else if (expressions_to_run(this, isGlobal)) {executed 2 times by 1 test: end of block TRUE | never evaluated | FALSE | evaluated 6078 times by 41 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- ...
|
| 0-6078 |
776 | | - |
777 | refreshExpressionsRecursive(expressions); | - |
778 | | - |
779 | } else if (childContexts) { never executed: end of block TRUE | evaluated 238 times by 5 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qquickdesignersupport
- tst_qquickfontloader
| FALSE | evaluated 5840 times by 39 testsEvaluated by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem
- tst_qquickitem2
- ...
|
| 0-5840 |
780 | | - |
781 | childContexts->refreshExpressionsRecursive(isGlobal); | - |
782 | | - |
783 | }executed 238 times by 5 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qquickdesignersupport
- tst_qquickfontloader
| 238 |
784 | }executed 6080 times by 42 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypeproviders
- tst_qqmlxmlhttprequest
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- ...
| 6080 |
785 | | - |
786 | void QQmlContextData::addObject(QObject *o) | - |
787 | { | - |
788 | QQmlData *data = QQmlData::get(o, true); | - |
789 | | - |
790 | Q_ASSERT(data->context == nullptr); | - |
791 | | - |
792 | data->context = this; | - |
793 | data->outerContext = this; | - |
794 | | - |
795 | data->nextContextObject = contextObjects; | - |
796 | if (data->nextContextObject)TRUE | evaluated 367222 times by 122 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- 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_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- ...
| FALSE | evaluated 157524 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
|
| 157524-367222 |
797 | data->nextContextObject->prevContextObject = &data->nextContextObject;executed 367222 times by 122 tests: data->nextContextObject->prevContextObject = &data->nextContextObject; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- 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_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- ...
| 367222 |
798 | data->prevContextObject = &contextObjects; | - |
799 | contextObjects = data; | - |
800 | }executed 524746 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 524746 |
801 | | - |
802 | void QQmlContextData::setIdProperty(int idx, QObject *obj) | - |
803 | { | - |
804 | idValues[idx] = obj; | - |
805 | idValues[idx].context = this; | - |
806 | }executed 218303 times by 114 tests: end of block 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_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- ...
| 218303 |
807 | | - |
808 | QString QQmlContextData::findObjectId(const QObject *obj) const | - |
809 | { | - |
810 | const QV4::IdentifierHash &properties = propertyNames(); | - |
811 | if (propertyNameCache.isEmpty())TRUE | never evaluated | FALSE | evaluated 1094 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
|
| 0-1094 |
812 | return QString(); never executed: return QString(); | 0 |
813 | | - |
814 | for (int ii = 0; ii < idValueCount; ii++) {TRUE | evaluated 1018 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| FALSE | evaluated 712 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
|
| 712-1018 |
815 | if (idValues[ii] == obj)TRUE | evaluated 382 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| FALSE | evaluated 636 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
|
| 382-636 |
816 | return properties.findId(ii);executed 382 times by 2 tests: return properties.findId(ii); Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| 382 |
817 | }executed 636 times by 2 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| 636 |
818 | | - |
819 | if (publicContext) {TRUE | evaluated 712 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| FALSE | never evaluated |
| 0-712 |
820 | QQmlContextPrivate *p = QQmlContextPrivate::get(publicContext); | - |
821 | for (int ii = 0; ii < p->propertyValues.count(); ++ii)TRUE | evaluated 12 times by 1 test | FALSE | evaluated 708 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
|
| 12-708 |
822 | if (p->propertyValues.at(ii) == QVariant::fromValue(const_cast<QObject *>(obj)))TRUE | evaluated 4 times by 1 test | FALSE | evaluated 8 times by 1 test |
| 4-8 |
823 | return properties.findId(ii);executed 4 times by 1 test: return properties.findId(ii); | 4 |
824 | }executed 708 times by 2 tests: end of block Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| 708 |
825 | | - |
826 | if (linkedContext)TRUE | never evaluated | FALSE | evaluated 708 times by 2 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
|
| 0-708 |
827 | return linkedContext->findObjectId(obj); never executed: return linkedContext->findObjectId(obj); | 0 |
828 | return QString();executed 708 times by 2 tests: return QString(); Executed by:- tst_qqmlcontext
- tst_qqmlenginedebugservice
| 708 |
829 | } | - |
830 | | - |
831 | QQmlContext *QQmlContextData::asQQmlContext() | - |
832 | { | - |
833 | if (!publicContext)TRUE | evaluated 60368 times by 66 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- ...
| FALSE | evaluated 1635028 times by 67 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- ...
|
| 60368-1635028 |
834 | publicContext = new QQmlContext(this);executed 60368 times by 66 tests: publicContext = new QQmlContext(this); Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmldiskcache
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- ...
| 60368 |
835 | return publicContext;executed 1695396 times by 75 tests: return publicContext; Executed by:- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmldiskcache
- 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_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| 1695396 |
836 | } | - |
837 | | - |
838 | QQmlContextPrivate *QQmlContextData::asQQmlContextPrivate() | - |
839 | { | - |
840 | return QQmlContextPrivate::get(asQQmlContext());executed 334097 times by 32 tests: return QQmlContextPrivate::get(asQQmlContext()); Executed by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 334097 |
841 | } | - |
842 | | - |
843 | void QQmlContextData::initFromTypeCompilationUnit(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &unit, int subComponentIndex) | - |
844 | { | - |
845 | typeCompilationUnit = unit; | - |
846 | componentObjectIndex = subComponentIndex == -1 ? 0 : subComponentIndex;TRUE | evaluated 58081 times by 139 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| FALSE | evaluated 95035 times by 37 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquickitemparticle
- tst_qquicklayouts
- ...
|
| 58081-95035 |
847 | Q_ASSERT(!idValues); | - |
848 | idValueCount = typeCompilationUnit->data->objectAt(componentObjectIndex)->nNamedObjectsInComponent; | - |
849 | idValues = new ContextGuard[idValueCount]; | - |
850 | }executed 153116 times by 139 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- 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
- tst_qqmllistmodel
- ...
| 153116 |
851 | | - |
852 | const QV4::IdentifierHash &QQmlContextData::propertyNames() const | - |
853 | { | - |
854 | if (propertyNameCache.isEmpty()) {TRUE | evaluated 225106 times by 84 testsEvaluated 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
- ...
| FALSE | evaluated 4576410 times by 77 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- 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_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlpropertymap
- ...
|
| 225106-4576410 |
855 | if (typeCompilationUnit)TRUE | evaluated 136373 times by 84 testsEvaluated 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
- ...
| FALSE | evaluated 88733 times by 77 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- 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
- tst_qqmlpropertymap
- ...
|
| 88733-136373 |
856 | propertyNameCache = typeCompilationUnit->namedObjectsPerComponent(componentObjectIndex);executed 136373 times by 84 tests: propertyNameCache = typeCompilationUnit->namedObjectsPerComponent(componentObjectIndex); 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
- ...
| 136373 |
857 | else | - |
858 | propertyNameCache = QV4::IdentifierHash(engine->handle());executed 88733 times by 77 tests: propertyNameCache = QV4::IdentifierHash(engine->handle()); Executed by:- tst_bindingdependencyapi
- tst_examples
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- 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
- tst_qqmlpropertymap
- ...
| 88733 |
859 | } | - |
860 | return propertyNameCache;executed 4801516 times by 84 tests: return propertyNameCache; 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
- ...
| 4801516 |
861 | } | - |
862 | | - |
863 | QV4::IdentifierHash &QQmlContextData::detachedPropertyNames() | - |
864 | { | - |
865 | propertyNames(); | - |
866 | propertyNameCache.detach(); | - |
867 | return propertyNameCache;executed 19014 times by 34 tests: return propertyNameCache; Executed by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmlvaluetypeproviders
- tst_qquickanimatedimage
- tst_qquickanimationcontroller
- tst_qquickborderimage
- tst_qquickflickable
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 19014 |
868 | } | - |
869 | | - |
870 | QUrl QQmlContextData::url() const | - |
871 | { | - |
872 | if (typeCompilationUnit)TRUE | evaluated 8538 times by 46 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- ...
| FALSE | evaluated 1316 times by 14 testsEvaluated by:- tst_examples
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmlproperty
- tst_qqmlqt
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
| 1316-8538 |
873 | return typeCompilationUnit->finalUrl();executed 8538 times by 46 tests: return typeCompilationUnit->finalUrl(); Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- ...
| 8538 |
874 | return baseUrl;executed 1316 times by 14 tests: return baseUrl; Executed by:- tst_examples
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmlproperty
- tst_qqmlqt
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| 1316 |
875 | } | - |
876 | | - |
877 | QString QQmlContextData::urlString() const | - |
878 | { | - |
879 | if (typeCompilationUnit)TRUE | evaluated 36744 times by 16 testsEvaluated by:- tst_examples
- tst_qqmlcomponent
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickstates
- tst_scenegraph
| FALSE | evaluated 18 times by 1 test |
| 18-36744 |
880 | return typeCompilationUnit->finalUrlString();executed 36744 times by 16 tests: return typeCompilationUnit->finalUrlString(); Executed by:- tst_examples
- tst_qqmlcomponent
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickstates
- tst_scenegraph
| 36744 |
881 | return baseUrlString;executed 18 times by 1 test: return baseUrlString; | 18 |
882 | } | - |
883 | | - |
884 | QT_END_NAMESPACE | - |
885 | | - |
886 | #include "moc_qqmlcontext.cpp" | - |
| | |