OpenCoverage

qqmltypeloader.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmltypeloader.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qqmltypeloader_p.h"-
41#include "qqmlabstracturlinterceptor.h"-
42#include "qqmlexpression_p.h"-
43-
44#include <private/qqmlengine_p.h>-
45#include <private/qqmlglobal_p.h>-
46#include <private/qqmlthread_p.h>-
47#include <private/qv4codegen_p.h>-
48#include <private/qqmlcomponent_p.h>-
49#include <private/qqmlprofiler_p.h>-
50#include <private/qqmlmemoryprofiler_p.h>-
51#include <private/qqmltypecompiler_p.h>-
52#include <private/qqmlpropertyvalidator_p.h>-
53#include <private/qqmlpropertycachecreator_p.h>-
54#include <private/qdeferredcleanup_p.h>-
55-
56#include <QtCore/qdir.h>-
57#include <QtCore/qfile.h>-
58#include <QtCore/qdatetime.h>-
59#include <QtCore/qdebug.h>-
60#include <QtCore/qmutex.h>-
61#include <QtCore/qthread.h>-
62#include <QtQml/qqmlfile.h>-
63#include <QtCore/qdiriterator.h>-
64#include <QtQml/qqmlcomponent.h>-
65#include <QtCore/qwaitcondition.h>-
66#include <QtCore/qloggingcategory.h>-
67#include <QtQml/qqmlextensioninterface.h>-
68#include <QtCore/qcryptographichash.h>-
69-
70#include <functional>-
71-
72#if defined (Q_OS_UNIX)-
73#include <sys/types.h>-
74#include <sys/stat.h>-
75#include <unistd.h>-
76#endif-
77-
78#if defined (QT_LINUXBASE)-
79// LSB doesn't declare NAME_MAX. Use SYMLINK_MAX instead, which seems to-
80// always be identical to NAME_MAX-
81#ifndef NAME_MAX-
82# define NAME_MAX _POSIX_SYMLINK_MAX-
83#endif-
84-
85#endif-
86-
87// #define DATABLOB_DEBUG-
88-
89#ifdef DATABLOB_DEBUG-
90-
91#define ASSERT_MAINTHREAD() do { if (m_thread->isThisThread()) qFatal("QQmlTypeLoader: Caller not in main thread"); } while (false)-
92#define ASSERT_LOADTHREAD() do { if (!m_thread->isThisThread()) qFatal("QQmlTypeLoader: Caller not in load thread"); } while (false)-
93#define ASSERT_CALLBACK() do { if (!m_typeLoader || !m_typeLoader->m_thread->isThisThread()) qFatal("QQmlDataBlob: An API call was made outside a callback"); } while (false)-
94-
95#else-
96-
97#define ASSERT_MAINTHREAD()-
98#define ASSERT_LOADTHREAD()-
99#define ASSERT_CALLBACK()-
100-
101#endif-
102-
103DEFINE_BOOL_CONFIG_OPTION(dumpErrors, QML_DUMP_ERRORS);
never executed: status = Yes;
never executed: end of block
executed 44 times by 22 tests: end of block
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
executed 342 times by 22 tests: return status == Yes;
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
status == UnknownDescription
TRUEevaluated 44 times by 22 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
FALSEevaluated 298 times by 12 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
__builtin_expe...ORS")), false)Description
TRUEnever evaluated
FALSEevaluated 44 times by 22 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0-342
104DEFINE_BOOL_CONFIG_OPTION(disableDiskCache, QML_DISABLE_DISK_CACHE);
executed 2 times by 1 test: status = Yes;
Executed by:
  • tst_qquickfolderlistmodel
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickfolderlistmodel
executed 312 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
executed 103936 times by 141 tests: return status == Yes;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
status == UnknownDescription
TRUEevaluated 312 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 103624 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
__builtin_expe...CHE")), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEevaluated 310 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
v != "0"Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEnever evaluated
v != "false"Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEnever evaluated
0-103936
105DEFINE_BOOL_CONFIG_OPTION(forceDiskCache, QML_FORCE_DISK_CACHE);
never executed: status = Yes;
never executed: end of block
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickfolderlistmodel
executed 20 times by 1 test: return status == Yes;
Executed by:
  • tst_qquickfolderlistmodel
status == UnknownDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
__builtin_expe...CHE")), false)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0-20
106-
107Q_DECLARE_LOGGING_CATEGORY(DBG_DISK_CACHE)-
108Q_LOGGING_CATEGORY(DBG_DISK_CACHE, "qt.qml.diskcache")
executed 94438 times by 138 tests: return category;
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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
94438
109-
110QT_BEGIN_NAMESPACE-
111-
112namespace {-
113-
114 template<typename LockType>-
115 struct LockHolder-
116 {-
117 LockType& lock;-
118 LockHolder(LockType *l) : lock(*l) { lock.lock(); }
executed 630695 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
630695
119 ~LockHolder() { lock.unlock(); }
executed 630695 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
630695
120 };-
121}-
122-
123#if QT_CONFIG(qml_network)-
124// This is a lame object that we need to ensure that slots connected to-
125// QNetworkReply get called in the correct thread (the loader thread).-
126// As QQmlTypeLoader lives in the main thread, and we can't use-
127// Qt::DirectConnection connections from a QNetworkReply (because then-
128// sender() wont work), we need to insert this object in the middle.-
129class QQmlTypeLoaderNetworkReplyProxy : public QObject-
130{-
131 Q_OBJECT-
132public:-
133 QQmlTypeLoaderNetworkReplyProxy(QQmlTypeLoader *l);-
134-
135public slots:-
136 void finished();-
137 void downloadProgress(qint64, qint64);-
138 void manualFinished(QNetworkReply*);-
139-
140private:-
141 QQmlTypeLoader *l;-
142};-
143#endif // qml_network-
144-
145class QQmlTypeLoaderThread : public QQmlThread-
146{-
147 typedef QQmlTypeLoaderThread This;-
148-
149public:-
150 QQmlTypeLoaderThread(QQmlTypeLoader *loader);-
151#if QT_CONFIG(qml_network)-
152 QNetworkAccessManager *networkAccessManager() const;-
153 QQmlTypeLoaderNetworkReplyProxy *networkReplyProxy() const;-
154#endif // qml_network-
155 void load(QQmlDataBlob *b);-
156 void loadAsync(QQmlDataBlob *b);-
157 void loadWithStaticData(QQmlDataBlob *b, const QByteArray &);-
158 void loadWithStaticDataAsync(QQmlDataBlob *b, const QByteArray &);-
159 void loadWithCachedUnit(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit);-
160 void loadWithCachedUnitAsync(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit);-
161 void callCompleted(QQmlDataBlob *b);-
162 void callDownloadProgressChanged(QQmlDataBlob *b, qreal p);-
163 void initializeEngine(QQmlExtensionInterface *, const char *);-
164-
165protected:-
166 void shutdownThread() override;-
167-
168private:-
169 void loadThread(QQmlDataBlob *b);-
170 void loadWithStaticDataThread(QQmlDataBlob *b, const QByteArray &);-
171 void loadWithCachedUnitThread(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit);-
172 void callCompletedMain(QQmlDataBlob *b);-
173 void callDownloadProgressChangedMain(QQmlDataBlob *b, qreal p);-
174 void initializeEngineMain(QQmlExtensionInterface *iface, const char *uri);-
175-
176 QQmlTypeLoader *m_loader;-
177#if QT_CONFIG(qml_network)-
178 mutable QNetworkAccessManager *m_networkAccessManager;-
179 mutable QQmlTypeLoaderNetworkReplyProxy *m_networkReplyProxy;-
180#endif // qml_network-
181};-
182-
183#if QT_CONFIG(qml_network)-
184QQmlTypeLoaderNetworkReplyProxy::QQmlTypeLoaderNetworkReplyProxy(QQmlTypeLoader *l)-
185: l(l)-
186{-
187}
executed 36 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
36
188-
189void QQmlTypeLoaderNetworkReplyProxy::finished()-
190{-
191 Q_ASSERT(sender());-
192 Q_ASSERT(qobject_cast<QNetworkReply *>(sender()));-
193 QNetworkReply *reply = static_cast<QNetworkReply *>(sender());-
194 l->networkReplyFinished(reply);-
195}
executed 192 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
192
196-
197void QQmlTypeLoaderNetworkReplyProxy::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)-
198{-
199 Q_ASSERT(sender());-
200 Q_ASSERT(qobject_cast<QNetworkReply *>(sender()));-
201 QNetworkReply *reply = static_cast<QNetworkReply *>(sender());-
202 l->networkReplyProgress(reply, bytesReceived, bytesTotal);-
203}
executed 120 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
120
204-
205// This function is for when you want to shortcut the signals and call directly-
206void QQmlTypeLoaderNetworkReplyProxy::manualFinished(QNetworkReply *reply)-
207{-
208 qint64 replySize = reply->size();-
209 l->networkReplyProgress(reply, replySize, replySize);-
210 l->networkReplyFinished(reply);-
211}
never executed: end of block
0
212#endif // qml_network-
213-
214/*!-
215\class QQmlDataBlob-
216\brief The QQmlDataBlob encapsulates a data request that can be issued to a QQmlTypeLoader.-
217\internal-
218-
219QQmlDataBlob's are loaded by a QQmlTypeLoader. The user creates the QQmlDataBlob-
220and then calls QQmlTypeLoader::load() or QQmlTypeLoader::loadWithStaticData() to load it.-
221The QQmlTypeLoader invokes callbacks on the QQmlDataBlob as data becomes available.-
222*/-
223-
224/*!-
225\enum QQmlDataBlob::Status-
226-
227This enum describes the status of the data blob.-
228-
229\list-
230\li Null The blob has not yet been loaded by a QQmlTypeLoader-
231\li Loading The blob is loading network data. The QQmlDataBlob::setData() callback has not yet been-
232invoked or has not yet returned.-
233\li WaitingForDependencies The blob is waiting for dependencies to be done before continueing. This status-
234only occurs after the QQmlDataBlob::setData() callback has been made, and when the blob has outstanding-
235dependencies.-
236\li Complete The blob's data has been loaded and all dependencies are done.-
237\li Error An error has been set on this blob.-
238\endlist-
239*/-
240-
241/*!-
242\enum QQmlDataBlob::Type-
243-
244This enum describes the type of the data blob.-
245-
246\list-
247\li QmlFile This is a QQmlTypeData-
248\li JavaScriptFile This is a QQmlScriptData-
249\li QmldirFile This is a QQmlQmldirData-
250\endlist-
251*/-
252-
253/*!-
254Create a new QQmlDataBlob for \a url and of the provided \a type.-
255*/-
256QQmlDataBlob::QQmlDataBlob(const QUrl &url, Type type, QQmlTypeLoader *manager)-
257: m_typeLoader(manager), m_type(type), m_url(url), m_finalUrl(url), m_redirectCount(0),-
258 m_inCallback(false), m_isDone(false)-
259{-
260 //Set here because we need to get the engine from the manager-
261 if (m_typeLoader->engine() && m_typeLoader->engine()->urlInterceptor())
m_typeLoader->engine()Description
TRUEevaluated 55543 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
m_typeLoader->...lInterceptor()Description
TRUEevaluated 256 times by 9 tests
Evaluated by:
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
FALSEevaluated 55287 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
0-55543
262 m_url = m_typeLoader->engine()->urlInterceptor()->intercept(m_url,
executed 256 times by 9 tests: m_url = m_typeLoader->engine()->urlInterceptor()->intercept(m_url, (QQmlAbstractUrlInterceptor::DataType)m_type);
Executed by:
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
256
263 (QQmlAbstractUrlInterceptor::DataType)m_type);
executed 256 times by 9 tests: m_url = m_typeLoader->engine()->urlInterceptor()->intercept(m_url, (QQmlAbstractUrlInterceptor::DataType)m_type);
Executed by:
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
256
264}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
265-
266/*! \internal */-
267QQmlDataBlob::~QQmlDataBlob()-
268{-
269 Q_ASSERT(m_waitingOnMe.isEmpty());-
270-
271 cancelAllWaitingFor();-
272}
executed 55477 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55477
273-
274/*!-
275 Must be called before loading can occur.-
276*/-
277void QQmlDataBlob::startLoading()-
278{-
279 Q_ASSERT(status() == QQmlDataBlob::Null);-
280 m_data.setStatus(QQmlDataBlob::Loading);-
281}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
282-
283/*!-
284Returns the type provided to the constructor.-
285*/-
286QQmlDataBlob::Type QQmlDataBlob::type() const-
287{-
288 return m_type;
executed 50 times by 6 tests: return m_type;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
50
289}-
290-
291/*!-
292Returns the blob's status.-
293*/-
294QQmlDataBlob::Status QQmlDataBlob::status() const-
295{-
296 return m_data.status();
executed 735824 times by 141 tests: return m_data.status();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
735824
297}-
298-
299/*!-
300Returns true if the status is Null.-
301*/-
302bool QQmlDataBlob::isNull() const-
303{-
304 return status() == Null;
never executed: return status() == Null;
0
305}-
306-
307/*!-
308Returns true if the status is Loading.-
309*/-
310bool QQmlDataBlob::isLoading() const-
311{-
312 return status() == Loading;
never executed: return status() == Loading;
0
313}-
314-
315/*!-
316Returns true if the status is WaitingForDependencies.-
317*/-
318bool QQmlDataBlob::isWaiting() const-
319{-
320 return status() == WaitingForDependencies ||
executed 55339 times by 141 tests: return status() == WaitingForDependencies || status() == ResolvingDependencies;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55339
321 status() == ResolvingDependencies;
executed 55339 times by 141 tests: return status() == WaitingForDependencies || status() == ResolvingDependencies;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55339
322}-
323-
324/*!-
325Returns true if the status is Complete.-
326*/-
327bool QQmlDataBlob::isComplete() const-
328{-
329 return status() == Complete;
executed 3580 times by 12 tests: return status() == Complete;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickloader
3580
330}-
331-
332/*!-
333Returns true if the status is Error.-
334*/-
335bool QQmlDataBlob::isError() const-
336{-
337 return status() == Error;
executed 274307 times by 141 tests: return status() == Error;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
274307
338}-
339-
340/*!-
341Returns true if the status is Complete or Error.-
342*/-
343bool QQmlDataBlob::isCompleteOrError() const-
344{-
345 Status s = status();-
346 return s == Error || s == Complete;
executed 119484 times by 141 tests: return s == Error || s == Complete;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
119484
347}-
348-
349/*!-
350Returns the data download progress from 0 to 1.-
351*/-
352qreal QQmlDataBlob::progress() const-
353{-
354 quint8 p = m_data.progress();-
355 if (p == 0xFF) return 1.;
executed 3 times by 2 tests: return 1.;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
p == 0xFFDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
FALSEevaluated 137 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
3-137
356 else return qreal(p) / qreal(0xFF);
executed 137 times by 11 tests: return qreal(p) / qreal(0xFF);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
137
357}-
358-
359/*!-
360Returns the physical url of the data. Initially this is the same as-
361finalUrl(), but if a URL interceptor is set, it will work on this URL-
362and leave finalUrl() alone.-
363-
364\sa finalUrl()-
365*/-
366QUrl QQmlDataBlob::url() const-
367{-
368 return m_url;
executed 282677 times by 141 tests: return m_url;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
282677
369}-
370-
371QString QQmlDataBlob::urlString() const-
372{-
373 if (m_urlString.isEmpty())
m_urlString.isEmpty()Description
TRUEevaluated 48593 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 48 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
48-48593
374 m_urlString = m_url.toString();
executed 48593 times by 141 tests: m_urlString = m_url.toString();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48593
375-
376 return m_urlString;
executed 48641 times by 141 tests: return m_urlString;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48641
377}-
378-
379/*!-
380Returns the logical URL to be used for resolving further URLs referred to in-
381the code.-
382-
383This is the blob url passed to the constructor. If a URL interceptor rewrites-
384the URL, this one stays the same. If a network redirect happens while fetching-
385the data, this url is updated to reflect the new location. Therefore, if both-
386an interception and a redirection happen, the final url will indirectly-
387incorporate the result of the interception, potentially breaking further-
388lookups.-
389-
390\sa url()-
391*/-
392QUrl QQmlDataBlob::finalUrl() const-
393{-
394 return m_finalUrl;
executed 293073 times by 141 tests: return m_finalUrl;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
293073
395}-
396-
397/*!-
398Returns the finalUrl() as a string.-
399*/-
400QString QQmlDataBlob::finalUrlString() const-
401{-
402 if (m_finalUrlString.isEmpty())
m_finalUrlString.isEmpty()Description
TRUEevaluated 191767 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 16021 times by 130 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
16021-191767
403 m_finalUrlString = m_finalUrl.toString();
executed 191767 times by 141 tests: m_finalUrlString = m_finalUrl.toString();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
191767
404-
405 return m_finalUrlString;
executed 207788 times by 141 tests: return m_finalUrlString;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
207788
406}-
407-
408/*!-
409Return the errors on this blob.-
410-
411May only be called from the load thread, or after the blob isCompleteOrError().-
412*/-
413QList<QQmlError> QQmlDataBlob::errors() const-
414{-
415 Q_ASSERT(isCompleteOrError() || (m_typeLoader && m_typeLoader->m_thread->isThisThread()));-
416 return m_errors;
executed 238 times by 21 tests: return m_errors;
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
238
417}-
418-
419/*!-
420Mark this blob as having \a errors.-
421-
422All outstanding dependencies will be cancelled. Requests to add new dependencies-
423will be ignored. Entry into the Error state is irreversable.-
424-
425The setError() method may only be called from within a QQmlDataBlob callback.-
426*/-
427void QQmlDataBlob::setError(const QQmlError &errors)-
428{-
429 ASSERT_CALLBACK();-
430-
431 QList<QQmlError> l;-
432 l << errors;-
433 setError(l);-
434}
executed 122 times by 8 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
122
435-
436/*!-
437\overload-
438*/-
439void QQmlDataBlob::setError(const QList<QQmlError> &errors)-
440{-
441 ASSERT_CALLBACK();-
442-
443 Q_ASSERT(status() != Error);-
444 Q_ASSERT(m_errors.isEmpty());-
445-
446 m_errors = errors; // Must be set before the m_data fence-
447 m_data.setStatus(Error);-
448-
449 if (dumpErrors()) {
dumpErrors()Description
TRUEnever evaluated
FALSEevaluated 342 times by 22 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
0-342
450 qWarning().nospace() << "Errors for " << urlString();-
451 for (int ii = 0; ii < errors.count(); ++ii)
ii < errors.count()Description
TRUEnever evaluated
FALSEnever evaluated
0
452 qWarning().nospace() << " " << qPrintable(errors.at(ii).toString());
never executed: QMessageLogger(__FILE__, 452, __PRETTY_FUNCTION__).warning().nospace() << " " << QtPrivate::asString(errors.at(ii).toString()).toLocal8Bit().constData();
0
453 }
never executed: end of block
0
454 cancelAllWaitingFor();-
455-
456 if (!m_inCallback)
!m_inCallbackDescription
TRUEevaluated 212 times by 16 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 130 times by 13 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
130-212
457 tryDone();
executed 212 times by 16 tests: tryDone();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
212
458}
executed 342 times by 22 tests: end of block
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
342
459-
460void QQmlDataBlob::setError(const QQmlCompileError &error)-
461{-
462 QQmlError e;-
463 e.setColumn(error.location.column);-
464 e.setLine(error.location.line);-
465 e.setDescription(error.description);-
466 e.setUrl(url());-
467 setError(e);-
468}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
469-
470void QQmlDataBlob::setError(const QVector<QQmlCompileError> &errors)-
471{-
472 QList<QQmlError> finalErrors;-
473 finalErrors.reserve(errors.count());-
474 for (const QQmlCompileError &error: errors) {-
475 QQmlError e;-
476 e.setColumn(error.location.column);-
477 e.setLine(error.location.line);-
478 e.setDescription(error.description);-
479 e.setUrl(url());-
480 finalErrors << e;-
481 }
executed 60 times by 10 tests: end of block
Executed by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
60
482 setError(finalErrors);-
483}
executed 60 times by 10 tests: end of block
Executed by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
60
484-
485void QQmlDataBlob::setError(const QString &description)-
486{-
487 QQmlError e;-
488 e.setDescription(description);-
489 e.setUrl(url());-
490 setError(e);-
491}
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qquickloader
10
492-
493/*!-
494Wait for \a blob to become complete or to error. If \a blob is already-
495complete or in error, or this blob is already complete, this has no effect.-
496-
497The setError() method may only be called from within a QQmlDataBlob callback.-
498*/-
499void QQmlDataBlob::addDependency(QQmlDataBlob *blob)-
500{-
501 ASSERT_CALLBACK();-
502-
503 Q_ASSERT(status() != Null);-
504-
505 if (!blob ||
!blobDescription
TRUEnever evaluated
FALSEevaluated 1378 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
0-1378
506 blob->status() == Error || blob->status() == Complete ||
blob->status() == ErrorDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 1350 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
blob->status() == CompleteDescription
TRUEevaluated 1192 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
FALSEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
28-1350
507 status() == Error || status() == Complete || m_isDone)
status() == ErrorDescription
TRUEnever evaluated
FALSEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
status() == CompleteDescription
TRUEnever evaluated
FALSEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
m_isDoneDescription
TRUEnever evaluated
FALSEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
0-158
508 return;
executed 1220 times by 43 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
1220
509-
510 for (auto existingDep: qAsConst(m_waitingFor))-
511 if (existingDep.data() == blob)
existingDep.data() == blobDescription
TRUEnever evaluated
FALSEevaluated 504 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
0-504
512 return;
never executed: return;
0
513-
514 m_data.setStatus(WaitingForDependencies);-
515-
516 m_waitingFor.append(blob);-
517 blob->m_waitingOnMe.append(this);-
518}
executed 158 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
158
519-
520/*!-
521\fn void QQmlDataBlob::dataReceived(const Data &data)-
522-
523Invoked when data for the blob is received. Implementors should use this callback-
524to determine a blob's dependencies. Within this callback you may call setError()-
525or addDependency().-
526*/-
527-
528/*!-
529Invoked once data has either been received or a network error occurred, and all-
530dependencies are complete.-
531-
532You can set an error in this method, but you cannot add new dependencies. Implementors-
533should use this callback to finalize processing of data.-
534-
535The default implementation does nothing.-
536-
537XXX Rename processData() or some such to avoid confusion between done() (processing thread)-
538and completed() (main thread)-
539*/-
540void QQmlDataBlob::done()-
541{-
542}-
543-
544#if QT_CONFIG(qml_network)-
545/*!-
546Invoked if there is a network error while fetching this blob.-
547-
548The default implementation sets an appropriate QQmlError.-
549*/-
550void QQmlDataBlob::networkError(QNetworkReply::NetworkError networkError)-
551{-
552 Q_UNUSED(networkError);-
553-
554 QQmlError error;-
555 error.setUrl(m_url);-
556-
557 const char *errorString = nullptr;-
558 switch (networkError) {-
559 default:
executed 2 times by 1 test: default:
Executed by:
  • tst_qqmltypeloader
2
560 errorString = "Network error";-
561 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qqmltypeloader
2
562 case QNetworkReply::ConnectionRefusedError:
executed 2 times by 1 test: case QNetworkReply::ConnectionRefusedError:
Executed by:
  • tst_qqmlcomponent
2
563 errorString = "Connection refused";-
564 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qqmlcomponent
2
565 case QNetworkReply::RemoteHostClosedError:
executed 2 times by 1 test: case QNetworkReply::RemoteHostClosedError:
Executed by:
  • tst_qquicktextedit
2
566 errorString = "Remote host closed the connection";-
567 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquicktextedit
2
568 case QNetworkReply::HostNotFoundError:
executed 2 times by 1 test: case QNetworkReply::HostNotFoundError:
Executed by:
  • tst_qqmlqt
2
569 errorString = "Host not found";-
570 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qqmlqt
2
571 case QNetworkReply::TimeoutError:
never executed: case QNetworkReply::TimeoutError:
0
572 errorString = "Timeout";-
573 break;
never executed: break;
0
574 case QNetworkReply::ProxyConnectionRefusedError:
never executed: case QNetworkReply::ProxyConnectionRefusedError:
0
575 case QNetworkReply::ProxyConnectionClosedError:
never executed: case QNetworkReply::ProxyConnectionClosedError:
0
576 case QNetworkReply::ProxyNotFoundError:
never executed: case QNetworkReply::ProxyNotFoundError:
0
577 case QNetworkReply::ProxyTimeoutError:
never executed: case QNetworkReply::ProxyTimeoutError:
0
578 case QNetworkReply::ProxyAuthenticationRequiredError:
never executed: case QNetworkReply::ProxyAuthenticationRequiredError:
0
579 case QNetworkReply::UnknownProxyError:
never executed: case QNetworkReply::UnknownProxyError:
0
580 errorString = "Proxy error";-
581 break;
never executed: break;
0
582 case QNetworkReply::ContentAccessDenied:
never executed: case QNetworkReply::ContentAccessDenied:
0
583 errorString = "Access denied";-
584 break;
never executed: break;
0
585 case QNetworkReply::ContentNotFoundError:
executed 102 times by 6 tests: case QNetworkReply::ContentNotFoundError:
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
102
586 errorString = "File not found";-
587 break;
executed 102 times by 6 tests: break;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
102
588 case QNetworkReply::AuthenticationRequiredError:
never executed: case QNetworkReply::AuthenticationRequiredError:
0
589 errorString = "Authentication required";-
590 break;
never executed: break;
0
591 };-
592-
593 error.setDescription(QLatin1String(errorString));-
594-
595 setError(error);-
596}
executed 110 times by 7 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
110
597#endif // qml_network-
598-
599/*!-
600Called if \a blob, which was previously waited for, has an error.-
601-
602The default implementation does nothing.-
603*/-
604void QQmlDataBlob::dependencyError(QQmlDataBlob *blob)-
605{-
606 Q_UNUSED(blob);-
607}
executed 108 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
108
608-
609/*!-
610Called if \a blob, which was previously waited for, has completed.-
611-
612The default implementation does nothing.-
613*/-
614void QQmlDataBlob::dependencyComplete(QQmlDataBlob *blob)-
615{-
616 Q_UNUSED(blob);-
617}
never executed: end of block
0
618-
619/*!-
620Called when all blobs waited for have completed. This occurs regardless of-
621whether they are in error, or complete state.-
622-
623The default implementation does nothing.-
624*/-
625void QQmlDataBlob::allDependenciesDone()-
626{-
627 m_data.setStatus(QQmlDataBlob::ResolvingDependencies);-
628}
executed 55355 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55355
629-
630/*!-
631Called when the download progress of this blob changes. \a progress goes-
632from 0 to 1.-
633-
634This callback is only invoked if an asynchronous load for this blob is-
635made. An asynchronous load is one in which the Asynchronous mode is-
636specified explicitly, or one that is implicitly delayed due to a network-
637operation.-
638-
639The default implementation does nothing.-
640*/-
641void QQmlDataBlob::downloadProgressChanged(qreal progress)-
642{-
643 Q_UNUSED(progress);-
644}
never executed: end of block
0
645-
646/*!-
647Invoked on the main thread sometime after done() was called on the load thread.-
648-
649You cannot modify the blobs state at all in this callback and cannot depend on the-
650order or timeliness of these callbacks. Implementors should use this callback to notify-
651dependencies on the main thread that the blob is done and not a lot else.-
652-
653This callback is only invoked if an asynchronous load for this blob is-
654made. An asynchronous load is one in which the Asynchronous mode is-
655specified explicitly, or one that is implicitly delayed due to a network-
656operation.-
657-
658The default implementation does nothing.-
659*/-
660void QQmlDataBlob::completed()-
661{-
662}-
663-
664-
665void QQmlDataBlob::tryDone()-
666{-
667 if (status() != Loading && m_waitingFor.isEmpty() && !m_isDone) {
status() != LoadingDescription
TRUEevaluated 55803 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
m_waitingFor.isEmpty()Description
TRUEevaluated 55645 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
!m_isDoneDescription
TRUEevaluated 55543 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 102 times by 12 tests
Evaluated by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
0-55803
668 m_isDone = true;-
669 addref();-
670-
671#ifdef DATABLOB_DEBUG-
672 qWarning("QQmlDataBlob::done() %s", qPrintable(urlString()));-
673#endif-
674 done();-
675-
676 if (status() != Error)
status() != ErrorDescription
TRUEevaluated 55201 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 342 times by 22 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
342-55201
677 m_data.setStatus(Complete);
executed 55201 times by 141 tests: m_data.setStatus(Complete);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55201
678-
679 notifyAllWaitingOnMe();-
680-
681 // Locking is not required here, as anyone expecting callbacks must-
682 // already be protected against the blob being completed (as set above);-
683#ifdef DATABLOB_DEBUG-
684 qWarning("QQmlDataBlob: Dispatching completed");-
685#endif-
686 m_typeLoader->m_thread->callCompleted(this);-
687-
688 release();-
689 }
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
690}
executed 55803 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55803
691-
692void QQmlDataBlob::cancelAllWaitingFor()-
693{-
694 while (m_waitingFor.count()) {
m_waitingFor.count()Description
TRUEnever evaluated
FALSEevaluated 55819 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-55819
695 QQmlRefPointer<QQmlDataBlob> blob = m_waitingFor.takeLast();-
696-
697 Q_ASSERT(blob->m_waitingOnMe.contains(this));-
698-
699 blob->m_waitingOnMe.removeOne(this);-
700 }
never executed: end of block
0
701}
executed 55819 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55819
702-
703void QQmlDataBlob::notifyAllWaitingOnMe()-
704{-
705 while (m_waitingOnMe.count()) {
m_waitingOnMe.count()Description
TRUEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 55543 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
158-55543
706 QQmlDataBlob *blob = m_waitingOnMe.takeLast();-
707-
708 Q_ASSERT(std::any_of(blob->m_waitingFor.constBegin(), blob->m_waitingFor.constEnd(),
executed 163 times by 8 tests: return waiting.data() == this;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
163
709 [this](const QQmlRefPointer<QQmlDataBlob> &waiting) { return waiting.data() == this; }));-
710-
711 blob->notifyComplete(this);-
712 }
executed 158 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
158
713}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
714-
715void QQmlDataBlob::notifyComplete(QQmlDataBlob *blob)-
716{-
717 Q_ASSERT(blob->status() == Error || blob->status() == Complete);-
718 QQmlCompilingProfiler prof(typeLoader()->profiler(), blob);-
719-
720 m_inCallback = true;-
721-
722 QQmlRefPointer<QQmlDataBlob> blobRef;-
723 for (int i = 0; i < m_waitingFor.count(); ++i) {
i < m_waitingFor.count()Description
TRUEevaluated 163 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-163
724 if (m_waitingFor.at(i).data() == blob) {
m_waitingFor.a...data() == blobDescription
TRUEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquicktextedit
5-158
725 blobRef = m_waitingFor.takeAt(i);-
726 break;
executed 158 times by 8 tests: break;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
158
727 }-
728 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquicktextedit
5
729 Q_ASSERT(blobRef);-
730-
731 if (blob->status() == Error) {
blob->status() == ErrorDescription
TRUEevaluated 108 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 50 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
50-108
732 dependencyError(blob);-
733 } else if (blob->status() == Complete) {
executed 108 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
blob->status() == CompleteDescription
TRUEevaluated 50 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
FALSEnever evaluated
0-108
734 dependencyComplete(blob);-
735 }
executed 50 times by 6 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
50
736-
737 if (!isError() && m_waitingFor.isEmpty())
!isError()Description
TRUEevaluated 158 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
m_waitingFor.isEmpty()Description
TRUEevaluated 62 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 96 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
0-158
738 allDependenciesDone();
executed 62 times by 8 tests: allDependenciesDone();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
62
739-
740 m_inCallback = false;-
741-
742 tryDone();-
743}
executed 158 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
158
744-
745#define TD_STATUS_MASK 0x0000FFFF-
746#define TD_STATUS_SHIFT 0-
747#define TD_PROGRESS_MASK 0x00FF0000-
748#define TD_PROGRESS_SHIFT 16-
749#define TD_ASYNC_MASK 0x80000000-
750-
751QQmlDataBlob::ThreadData::ThreadData()-
752: _p(0)-
753{-
754}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
755-
756QQmlDataBlob::Status QQmlDataBlob::ThreadData::status() const-
757{-
758 return QQmlDataBlob::Status((_p.load() & TD_STATUS_MASK) >> TD_STATUS_SHIFT);
executed 735823 times by 141 tests: return QQmlDataBlob::Status((_p.load() & 0x0000FFFF) >> 0);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
735823
759}-
760-
761void QQmlDataBlob::ThreadData::setStatus(QQmlDataBlob::Status status)-
762{-
763 while (true) {-
764 int d = _p.load();-
765 int nd = (d & ~TD_STATUS_MASK) | ((status << TD_STATUS_SHIFT) & TD_STATUS_MASK);-
766 if (d == nd || _p.testAndSetOrdered(d, nd)) return;
executed 221904 times by 141 tests: return;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
d == ndDescription
TRUEevaluated 144 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 221760 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
_p.testAndSetOrdered(d, nd)Description
TRUEevaluated 221760 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
0-221904
767 }
never executed: end of block
0
768}
never executed: end of block
0
769-
770bool QQmlDataBlob::ThreadData::isAsync() const-
771{-
772 return _p.load() & TD_ASYNC_MASK;
executed 9642 times by 127 tests: return _p.load() & 0x80000000;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9642
773}-
774-
775void QQmlDataBlob::ThreadData::setIsAsync(bool v)-
776{-
777 while (true) {-
778 int d = _p.load();-
779 int nd = (d & ~TD_ASYNC_MASK) | (v?TD_ASYNC_MASK:0);-
780 if (d == nd || _p.testAndSetOrdered(d, nd)) return;
executed 142 times by 13 tests: return;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
d == ndDescription
TRUEnever evaluated
FALSEevaluated 142 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
_p.testAndSetOrdered(d, nd)Description
TRUEevaluated 142 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-142
781 }
never executed: end of block
0
782}
never executed: end of block
0
783-
784quint8 QQmlDataBlob::ThreadData::progress() const-
785{-
786 return quint8((_p.load() & TD_PROGRESS_MASK) >> TD_PROGRESS_SHIFT);
executed 168 times by 12 tests: return quint8((_p.load() & 0x00FF0000) >> 16);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
168
787}-
788-
789void QQmlDataBlob::ThreadData::setProgress(quint8 v)-
790{-
791 while (true) {-
792 int d = _p.load();-
793 int nd = (d & ~TD_PROGRESS_MASK) | ((v << TD_PROGRESS_SHIFT) & TD_PROGRESS_MASK);-
794 if (d == nd || _p.testAndSetOrdered(d, nd)) return;
executed 9642 times by 127 tests: return;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
d == ndDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 9630 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
_p.testAndSetOrdered(d, nd)Description
TRUEevaluated 9630 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEnever evaluated
0-9642
795 }
never executed: end of block
0
796}
never executed: end of block
0
797-
798QQmlTypeLoaderThread::QQmlTypeLoaderThread(QQmlTypeLoader *loader)-
799: m_loader(loader)-
800#if QT_CONFIG(qml_network)-
801, m_networkAccessManager(nullptr), m_networkReplyProxy(nullptr)-
802#endif // qml_network-
803{-
804 // Do that after initializing all the members.-
805 startup();-
806}
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
807-
808#if QT_CONFIG(qml_network)-
809QNetworkAccessManager *QQmlTypeLoaderThread::networkAccessManager() const-
810{-
811 Q_ASSERT(isThisThread());-
812 if (!m_networkAccessManager) {
!m_networkAccessManagerDescription
TRUEevaluated 36 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 156 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
36-156
813 m_networkAccessManager = QQmlEnginePrivate::get(m_loader->engine())->createNetworkAccessManager(nullptr);-
814 m_networkReplyProxy = new QQmlTypeLoaderNetworkReplyProxy(m_loader);-
815 }
executed 36 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
36
816-
817 return m_networkAccessManager;
executed 192 times by 9 tests: return m_networkAccessManager;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
192
818}-
819-
820QQmlTypeLoaderNetworkReplyProxy *QQmlTypeLoaderThread::networkReplyProxy() const-
821{-
822 Q_ASSERT(isThisThread());-
823 Q_ASSERT(m_networkReplyProxy); // Must call networkAccessManager() first-
824 return m_networkReplyProxy;
executed 192 times by 9 tests: return m_networkReplyProxy;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
192
825}-
826#endif // qml_network-
827-
828void QQmlTypeLoaderThread::load(QQmlDataBlob *b)-
829{-
830 b->addref();-
831 callMethodInThread(&This::loadThread, b);-
832}
executed 8500 times by 126 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
8500
833-
834void QQmlTypeLoaderThread::loadAsync(QQmlDataBlob *b)-
835{-
836 b->addref();-
837 postMethodToThread(&This::loadThread, b);-
838}
executed 104 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
104
839-
840void QQmlTypeLoaderThread::loadWithStaticData(QQmlDataBlob *b, const QByteArray &d)-
841{-
842 b->addref();-
843 callMethodInThread(&This::loadWithStaticDataThread, b, d);-
844}
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
845-
846void QQmlTypeLoaderThread::loadWithStaticDataAsync(QQmlDataBlob *b, const QByteArray &d)-
847{-
848 b->addref();-
849 postMethodToThread(&This::loadWithStaticDataThread, b, d);-
850}
never executed: end of block
0
851-
852void QQmlTypeLoaderThread::loadWithCachedUnit(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit)-
853{-
854 b->addref();-
855 callMethodInThread(&This::loadWithCachedUnitThread, b, unit);-
856}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
8
857-
858void QQmlTypeLoaderThread::loadWithCachedUnitAsync(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit)-
859{-
860 b->addref();-
861 postMethodToThread(&This::loadWithCachedUnitThread, b, unit);-
862}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
6
863-
864void QQmlTypeLoaderThread::callCompleted(QQmlDataBlob *b)-
865{-
866 b->addref();-
867 postMethodToMain(&This::callCompletedMain, b);-
868}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
869-
870void QQmlTypeLoaderThread::callDownloadProgressChanged(QQmlDataBlob *b, qreal p)-
871{-
872 b->addref();-
873 postMethodToMain(&This::callDownloadProgressChangedMain, b, p);-
874}
executed 118 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
118
875-
876void QQmlTypeLoaderThread::initializeEngine(QQmlExtensionInterface *iface,-
877 const char *uri)-
878{-
879 callMethodInMain(&This::initializeEngineMain, iface, uri);-
880}
executed 7389 times by 135 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
7389
881-
882void QQmlTypeLoaderThread::shutdownThread()-
883{-
884#if QT_CONFIG(qml_network)-
885 delete m_networkAccessManager;-
886 m_networkAccessManager = nullptr;-
887 delete m_networkReplyProxy;-
888 m_networkReplyProxy = nullptr;-
889#endif // qml_network-
890}
executed 7660 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
  • ...
7660
891-
892void QQmlTypeLoaderThread::loadThread(QQmlDataBlob *b)-
893{-
894 m_loader->loadThread(b);-
895 b->release();-
896}
executed 8604 times by 126 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
8604
897-
898void QQmlTypeLoaderThread::loadWithStaticDataThread(QQmlDataBlob *b, const QByteArray &d)-
899{-
900 m_loader->loadWithStaticDataThread(b, d);-
901 b->release();-
902}
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
903-
904void QQmlTypeLoaderThread::loadWithCachedUnitThread(QQmlDataBlob *b, const QV4::CompiledData::Unit *unit)-
905{-
906 m_loader->loadWithCachedUnitThread(b, unit);-
907 b->release();-
908}
executed 14 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
14
909-
910void QQmlTypeLoaderThread::callCompletedMain(QQmlDataBlob *b)-
911{-
912 QML_MEMORY_SCOPE_URL(b->url());-
913#ifdef DATABLOB_DEBUG-
914 qWarning("QQmlTypeLoaderThread: %s completed() callback", qPrintable(b->urlString()));-
915#endif-
916 b->completed();-
917 b->release();-
918}
executed 55541 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55541
919-
920void QQmlTypeLoaderThread::callDownloadProgressChangedMain(QQmlDataBlob *b, qreal p)-
921{-
922#ifdef DATABLOB_DEBUG-
923 qWarning("QQmlTypeLoaderThread: %s downloadProgressChanged(%f) callback",-
924 qPrintable(b->urlString()), p);-
925#endif-
926 b->downloadProgressChanged(p);-
927 b->release();-
928}
executed 118 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
118
929-
930void QQmlTypeLoaderThread::initializeEngineMain(QQmlExtensionInterface *iface,-
931 const char *uri)-
932{-
933 Q_ASSERT(m_loader->engine()->thread() == QThread::currentThread());-
934 iface->initializeEngine(m_loader->engine(), uri);-
935}
executed 7389 times by 135 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
7389
936-
937/*!-
938\class QQmlTypeLoader-
939\brief The QQmlTypeLoader class abstracts loading files and their dependencies over the network.-
940\internal-
941-
942The QQmlTypeLoader class is provided for the exclusive use of the QQmlTypeLoader class.-
943-
944Clients create QQmlDataBlob instances and submit them to the QQmlTypeLoader class-
945through the QQmlTypeLoader::load() or QQmlTypeLoader::loadWithStaticData() methods.-
946The loader then fetches the data over the network or from the local file system in an efficient way.-
947QQmlDataBlob is an abstract class, so should always be specialized.-
948-
949Once data is received, the QQmlDataBlob::dataReceived() method is invoked on the blob. The-
950derived class should use this callback to process the received data. Processing of the data can-
951result in an error being set (QQmlDataBlob::setError()), or one or more dependencies being-
952created (QQmlDataBlob::addDependency()). Dependencies are other QQmlDataBlob's that-
953are required before processing can fully complete.-
954-
955To complete processing, the QQmlDataBlob::done() callback is invoked. done() is called when-
956one of these three preconditions are met.-
957-
958\list 1-
959\li The QQmlDataBlob has no dependencies.-
960\li The QQmlDataBlob has an error set.-
961\li All the QQmlDataBlob's dependencies are themselves "done()".-
962\endlist-
963-
964Thus QQmlDataBlob::done() will always eventually be called, even if the blob has an error set.-
965*/-
966-
967void QQmlTypeLoader::invalidate()-
968{-
969 if (m_thread) {
m_threadDescription
TRUEevaluated 7660 times by 148 tests
Evaluated 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
  • ...
FALSEevaluated 7660 times by 148 tests
Evaluated 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
  • ...
7660
970 shutdownThread();-
971 delete m_thread;-
972 m_thread = nullptr;-
973 }
executed 7660 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
  • ...
7660
974-
975#if QT_CONFIG(qml_network)-
976 // Need to delete the network replies after-
977 // the loader thread is shutdown as it could be-
978 // getting new replies while we clear them-
979 for (NetworkReplies::Iterator iter = m_networkReplies.begin(); iter != m_networkReplies.end(); ++iter)
iter != m_networkReplies.end()Description
TRUEnever evaluated
FALSEevaluated 15320 times by 148 tests
Evaluated 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
  • ...
0-15320
980 (*iter)->release();
never executed: (*iter)->release();
0
981 m_networkReplies.clear();-
982#endif // qml_network-
983}
executed 15320 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
  • ...
15320
984-
985#if QT_CONFIG(qml_debug)-
986void QQmlTypeLoader::setProfiler(QQmlProfiler *profiler)-
987{-
988 Q_ASSERT(!m_profiler);-
989 m_profiler.reset(profiler);-
990}
executed 32 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
32
991#endif-
992-
993struct PlainLoader {-
994 void loadThread(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
995 {-
996 loader->loadThread(blob);-
997 }
executed 1152 times by 43 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
1152
998 void load(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
999 {-
1000 loader->m_thread->load(blob);-
1001 }
executed 8500 times by 126 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
8500
1002 void loadAsync(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1003 {-
1004 loader->m_thread->loadAsync(blob);-
1005 }
executed 104 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
104
1006};-
1007-
1008struct StaticLoader {-
1009 const QByteArray &data;-
1010 StaticLoader(const QByteArray &data) : data(data) {}
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
1011-
1012 void loadThread(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1013 {-
1014 loader->loadWithStaticDataThread(blob, data);-
1015 }
never executed: end of block
0
1016 void load(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1017 {-
1018 loader->m_thread->loadWithStaticData(blob, data);-
1019 }
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
1020 void loadAsync(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1021 {-
1022 loader->m_thread->loadWithStaticDataAsync(blob, data);-
1023 }
never executed: end of block
0
1024};-
1025-
1026struct CachedLoader {-
1027 const QV4::CompiledData::Unit *unit;-
1028 CachedLoader(const QV4::CompiledData::Unit *unit) : unit(unit) {}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
18
1029-
1030 void loadThread(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1031 {-
1032 loader->loadWithCachedUnitThread(blob, unit);-
1033 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
4
1034 void load(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1035 {-
1036 loader->m_thread->loadWithCachedUnit(blob, unit);-
1037 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
8
1038 void loadAsync(QQmlTypeLoader *loader, QQmlDataBlob *blob) const-
1039 {-
1040 loader->m_thread->loadWithCachedUnitAsync(blob, unit);-
1041 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
6
1042};-
1043-
1044template<typename Loader>-
1045void QQmlTypeLoader::doLoad(const Loader &loader, QQmlDataBlob *blob, Mode mode)-
1046{-
1047#ifdef DATABLOB_DEBUG-
1048 qWarning("QQmlTypeLoader::doLoad(%s): %s thread", qPrintable(blob->urlString()),-
1049 m_thread->isThisThread()?"Compile":"Engine");-
1050#endif-
1051 blob->startLoading();-
1052-
1053 if (m_thread->isThisThread()) {
m_thread->isThisThread()Description
TRUEevaluated 1156 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
FALSEevaluated 54387 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
1156-54387
1054 unlock();-
1055 loader.loadThread(this, blob);-
1056 lock();-
1057 } else if (mode == Asynchronous) {
executed 1156 times by 44 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
mode == AsynchronousDescription
TRUEevaluated 110 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
FALSEevaluated 54277 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
110-54277
1058 blob->m_data.setIsAsync(true);-
1059 unlock();-
1060 loader.loadAsync(this, blob);-
1061 lock();-
1062 } else {
executed 110 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
110
1063 unlock();-
1064 loader.load(this, blob);-
1065 lock();-
1066 if (mode == PreferSynchronous) {
mode == PreferSynchronousDescription
TRUEevaluated 54182 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 95 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qtqmlmodules
95-54182
1067 if (!blob->isCompleteOrError())
!blob->isCompleteOrError()Description
TRUEevaluated 32 times by 8 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 54150 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
32-54150
1068 blob->m_data.setIsAsync(true);
executed 32 times by 8 tests: blob->m_data.setIsAsync(true);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
32
1069 } else {
executed 54182 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54182
1070 Q_ASSERT(mode == Synchronous);-
1071 while (!blob->isCompleteOrError()) {
!blob->isCompleteOrError()Description
TRUEevaluated 660 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 95 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qtqmlmodules
95-660
1072 unlock();-
1073 m_thread->waitForNextMessage();-
1074 lock();-
1075 }
executed 660 times by 1 test: end of block
Executed by:
  • tst_qqmltypeloader
660
1076 }
executed 95 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qtqmlmodules
95
1077 }-
1078}-
1079-
1080/*!-
1081Load the provided \a blob from the network or filesystem.-
1082-
1083The loader must be locked.-
1084*/-
1085void QQmlTypeLoader::load(QQmlDataBlob *blob, Mode mode)-
1086{-
1087 doLoad(PlainLoader(), blob, mode);-
1088}
executed 9756 times by 127 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9756
1089-
1090/*!-
1091Load the provided \a blob with \a data. The blob's URL is not used by the data loader in this case.-
1092-
1093The loader must be locked.-
1094*/-
1095void QQmlTypeLoader::loadWithStaticData(QQmlDataBlob *blob, const QByteArray &data, Mode mode)-
1096{-
1097 doLoad(StaticLoader(data), blob, mode);-
1098}
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
1099-
1100void QQmlTypeLoader::loadWithCachedUnit(QQmlDataBlob *blob, const QV4::CompiledData::Unit *unit, Mode mode)-
1101{-
1102 doLoad(CachedLoader(unit), blob, mode);-
1103}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
18
1104-
1105void QQmlTypeLoader::loadWithStaticDataThread(QQmlDataBlob *blob, const QByteArray &data)-
1106{-
1107 ASSERT_LOADTHREAD();-
1108-
1109 setData(blob, data);-
1110}
executed 45769 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
1111-
1112void QQmlTypeLoader::loadWithCachedUnitThread(QQmlDataBlob *blob, const QV4::CompiledData::Unit *unit)-
1113{-
1114 ASSERT_LOADTHREAD();-
1115-
1116 setCachedUnit(blob, unit);-
1117}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
18
1118-
1119void QQmlTypeLoader::loadThread(QQmlDataBlob *blob)-
1120{-
1121 ASSERT_LOADTHREAD();-
1122-
1123 // Don't continue loading if we've been shutdown-
1124 if (m_thread->isShutdown()) {
m_thread->isShutdown()Description
TRUEnever evaluated
FALSEevaluated 9756 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-9756
1125 QQmlError error;-
1126 error.setDescription(QLatin1String("Interrupted by shutdown"));-
1127 blob->setError(error);-
1128 return;
never executed: return;
0
1129 }-
1130-
1131 if (blob->m_url.isEmpty()) {
blob->m_url.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 9756 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-9756
1132 QQmlError error;-
1133 error.setDescription(QLatin1String("Invalid null URL"));-
1134 blob->setError(error);-
1135 return;
never executed: return;
0
1136 }-
1137-
1138 QML_MEMORY_SCOPE_URL(blob->m_url);-
1139-
1140 if (QQmlFile::isSynchronous(blob->m_url)) {
QQmlFile::isSy...s(blob->m_url)Description
TRUEevaluated 9566 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 190 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
190-9566
1141 const QString fileName = QQmlFile::urlToLocalFileOrQrc(blob->m_url);-
1142 if (!QQml_isFileCaseCorrect(fileName)) {
!QQml_isFileCa...rect(fileName)Description
TRUEnever evaluated
FALSEevaluated 9566 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-9566
1143 blob->setError(QLatin1String("File name case mismatch"));-
1144 return;
never executed: return;
0
1145 }-
1146-
1147 blob->m_data.setProgress(0xFF);-
1148 if (blob->m_data.isAsync())
blob->m_data.isAsync()Description
TRUEevaluated 90 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
FALSEevaluated 9476 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
90-9476
1149 m_thread->callDownloadProgressChanged(blob, 1.);
executed 90 times by 8 tests: m_thread->callDownloadProgressChanged(blob, 1.);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
90
1150-
1151 setData(blob, fileName);-
1152-
1153 } else {
executed 9566 times by 127 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9566
1154#if QT_CONFIG(qml_network)-
1155 QNetworkReply *reply = m_thread->networkAccessManager()->get(QNetworkRequest(blob->m_url));-
1156 QQmlTypeLoaderNetworkReplyProxy *nrp = m_thread->networkReplyProxy();-
1157 blob->addref();-
1158 m_networkReplies.insert(reply, blob);-
1159-
1160 if (reply->isFinished()) {
reply->isFinished()Description
TRUEnever evaluated
FALSEevaluated 190 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
0-190
1161 nrp->manualFinished(reply);-
1162 } else {
never executed: end of block
0
1163 QObject::connect(reply, SIGNAL(downloadProgress(qint64,qint64)),-
1164 nrp, SLOT(downloadProgress(qint64,qint64)));-
1165 QObject::connect(reply, SIGNAL(finished()),-
1166 nrp, SLOT(finished()));-
1167 }
executed 190 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
190
1168-
1169#ifdef DATABLOB_DEBUG-
1170 qWarning("QQmlDataBlob: requested %s", qPrintable(blob->urlString()));-
1171#endif // DATABLOB_DEBUG-
1172#endif // qml_network-
1173 }-
1174}-
1175-
1176#define DATALOADER_MAXIMUM_REDIRECT_RECURSION 16-
1177#define TYPELOADER_MINIMUM_TRIM_THRESHOLD 64-
1178-
1179#if QT_CONFIG(qml_network)-
1180void QQmlTypeLoader::networkReplyFinished(QNetworkReply *reply)-
1181{-
1182 Q_ASSERT(m_thread->isThisThread());-
1183-
1184 reply->deleteLater();-
1185-
1186 QQmlDataBlob *blob = m_networkReplies.take(reply);-
1187-
1188 Q_ASSERT(blob);-
1189-
1190 blob->m_redirectCount++;-
1191-
1192 if (blob->m_redirectCount < DATALOADER_MAXIMUM_REDIRECT_RECURSION) {
blob->m_redirectCount < 16Description
TRUEevaluated 192 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-192
1193 QVariant redirect = reply->attribute(QNetworkRequest::RedirectionTargetAttribute);-
1194 if (redirect.isValid()) {
redirect.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 190 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
2-190
1195 QUrl url = reply->url().resolved(redirect.toUrl());-
1196 blob->m_finalUrl = url;-
1197 blob->m_finalUrlString.clear();-
1198-
1199 QNetworkReply *reply = m_thread->networkAccessManager()->get(QNetworkRequest(url));-
1200 QObject *nrp = m_thread->networkReplyProxy();-
1201 QObject::connect(reply, SIGNAL(finished()), nrp, SLOT(finished()));-
1202 m_networkReplies.insert(reply, blob);-
1203#ifdef DATABLOB_DEBUG-
1204 qWarning("QQmlDataBlob: redirected to %s", qPrintable(blob->finalUrlString()));-
1205#endif-
1206 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qqmltypeloader
2
1207 }-
1208 }
executed 190 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
190
1209-
1210 if (reply->error()) {
reply->error()Description
TRUEevaluated 110 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 80 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
80-110
1211 blob->networkError(reply->error());-
1212 } else {
executed 110 times by 7 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
110
1213 QByteArray data = reply->readAll();-
1214 setData(blob, data);-
1215 }
executed 80 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
80
1216-
1217 blob->release();-
1218}
executed 190 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
190
1219-
1220void QQmlTypeLoader::networkReplyProgress(QNetworkReply *reply,-
1221 qint64 bytesReceived, qint64 bytesTotal)-
1222{-
1223 Q_ASSERT(m_thread->isThisThread());-
1224-
1225 QQmlDataBlob *blob = m_networkReplies.value(reply);-
1226-
1227 Q_ASSERT(blob);-
1228-
1229 if (bytesTotal != 0) {
bytesTotal != 0Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 44 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
44-76
1230 quint8 progress = 0xFF * (qreal(bytesReceived) / qreal(bytesTotal));-
1231 blob->m_data.setProgress(progress);-
1232 if (blob->m_data.isAsync())
blob->m_data.isAsync()Description
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 48 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
28-48
1233 m_thread->callDownloadProgressChanged(blob, blob->m_data.progress());
executed 28 times by 6 tests: m_thread->callDownloadProgressChanged(blob, blob->m_data.progress());
Executed by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
28
1234 }
executed 76 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
76
1235}
executed 120 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
120
1236#endif // qml_network-
1237-
1238/*!-
1239Return the QQmlEngine associated with this loader-
1240*/-
1241QQmlEngine *QQmlTypeLoader::engine() const-
1242{-
1243 return m_engine;
executed 676777 times by 141 tests: return m_engine;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
676777
1244}-
1245-
1246/*!-
1247Call the initializeEngine() method on \a iface. Used by QQmlImportDatabase to ensure it-
1248gets called in the correct thread.-
1249*/-
1250void QQmlTypeLoader::initializeEngine(QQmlExtensionInterface *iface,-
1251 const char *uri)-
1252{-
1253 Q_ASSERT(m_thread->isThisThread() || engine()->thread() == QThread::currentThread());-
1254-
1255 if (m_thread->isThisThread()) {
m_thread->isThisThread()Description
TRUEevaluated 7389 times by 135 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEnever evaluated
0-7389
1256 m_thread->initializeEngine(iface, uri);-
1257 } else {
executed 7389 times by 135 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
7389
1258 Q_ASSERT(engine()->thread() == QThread::currentThread());-
1259 iface->initializeEngine(engine(), uri);-
1260 }
never executed: end of block
0
1261}-
1262-
1263-
1264void QQmlTypeLoader::setData(QQmlDataBlob *blob, const QByteArray &data)-
1265{-
1266 QML_MEMORY_SCOPE_URL(blob->url());-
1267 QQmlDataBlob::SourceCodeData d;-
1268 d.inlineSourceCode = QString::fromUtf8(data);-
1269 d.hasInlineSourceCode = true;-
1270 setData(blob, d);-
1271}
executed 45849 times by 59 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45849
1272-
1273void QQmlTypeLoader::setData(QQmlDataBlob *blob, const QString &fileName)-
1274{-
1275 QML_MEMORY_SCOPE_URL(blob->url());-
1276 QQmlDataBlob::SourceCodeData d;-
1277 d.fileInfo = QFileInfo(fileName);-
1278 setData(blob, d);-
1279}
executed 9566 times by 127 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9566
1280-
1281void QQmlTypeLoader::setData(QQmlDataBlob *blob, const QQmlDataBlob::SourceCodeData &d)-
1282{-
1283 QML_MEMORY_SCOPE_URL(blob->url());-
1284 QQmlCompilingProfiler prof(profiler(), blob);-
1285-
1286 blob->m_inCallback = true;-
1287-
1288 blob->dataReceived(d);-
1289-
1290 if (!blob->isError() && !blob->isWaiting())
!blob->isError()Description
TRUEevaluated 55321 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 94 times by 9 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
!blob->isWaiting()Description
TRUEevaluated 55275 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
46-55321
1291 blob->allDependenciesDone();
executed 55275 times by 141 tests: blob->allDependenciesDone();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55275
1292-
1293 if (blob->status() != QQmlDataBlob::Error)
blob->status()...ataBlob::ErrorDescription
TRUEevaluated 55287 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 128 times by 13 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
128-55287
1294 blob->m_data.setStatus(QQmlDataBlob::WaitingForDependencies);
executed 55287 times by 141 tests: blob->m_data.setStatus(QQmlDataBlob::WaitingForDependencies);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55287
1295-
1296 blob->m_inCallback = false;-
1297-
1298 blob->tryDone();-
1299}
executed 55415 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55415
1300-
1301void QQmlTypeLoader::setCachedUnit(QQmlDataBlob *blob, const QV4::CompiledData::Unit *unit)-
1302{-
1303 QML_MEMORY_SCOPE_URL(blob->url());-
1304 QQmlCompilingProfiler prof(profiler(), blob);-
1305-
1306 blob->m_inCallback = true;-
1307-
1308 blob->initializeFromCachedUnit(unit);-
1309-
1310 if (!blob->isError() && !blob->isWaiting())
!blob->isError()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEnever evaluated
!blob->isWaiting()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEnever evaluated
0-18
1311 blob->allDependenciesDone();
executed 18 times by 1 test: blob->allDependenciesDone();
Executed by:
  • tst_qmlcachegen
18
1312-
1313 if (blob->status() != QQmlDataBlob::Error)
blob->status()...ataBlob::ErrorDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEnever evaluated
0-18
1314 blob->m_data.setStatus(QQmlDataBlob::WaitingForDependencies);
executed 18 times by 1 test: blob->m_data.setStatus(QQmlDataBlob::WaitingForDependencies);
Executed by:
  • tst_qmlcachegen
18
1315-
1316 blob->m_inCallback = false;-
1317-
1318 blob->tryDone();-
1319}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
18
1320-
1321void QQmlTypeLoader::shutdownThread()-
1322{-
1323 if (m_thread && !m_thread->isShutdown())
m_threadDescription
TRUEevaluated 7660 times by 148 tests
Evaluated 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
  • ...
FALSEevaluated 7660 times by 148 tests
Evaluated 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
  • ...
!m_thread->isShutdown()Description
TRUEevaluated 7660 times by 148 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-7660
1324 m_thread->shutdown();
executed 7660 times by 148 tests: m_thread->shutdown();
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
  • ...
7660
1325}
executed 15320 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
  • ...
15320
1326-
1327QQmlTypeLoader::Blob::Blob(const QUrl &url, QQmlDataBlob::Type type, QQmlTypeLoader *loader)-
1328 : QQmlDataBlob(url, type, loader), m_importCache(loader)-
1329{-
1330}
executed 55543 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55543
1331-
1332QQmlTypeLoader::Blob::~Blob()-
1333{-
1334}-
1335-
1336bool QQmlTypeLoader::Blob::fetchQmldir(const QUrl &url, const QV4::CompiledData::Import *import, int priority, QList<QQmlError> *errors)-
1337{-
1338 QQmlRefPointer<QQmlQmldirData> data = typeLoader()->getQmldir(url);-
1339-
1340 data->setImport(this, import);-
1341 data->setPriority(this, priority);-
1342-
1343 if (data->status() == Error) {
data->status() == ErrorDescription
TRUEnever evaluated
FALSEevaluated 148 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
0-148
1344 // This qmldir must not exist - which is not an error-
1345 return true;
never executed: return true;
0
1346 } else if (data->status() == Complete) {
data->status() == CompleteDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
FALSEevaluated 126 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
22-126
1347 // This data is already available-
1348 return qmldirDataAvailable(data, errors);
executed 22 times by 3 tests: return qmldirDataAvailable(data, errors);
Executed by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
22
1349 }-
1350-
1351 // Wait for this data to become available-
1352 addDependency(data.data());-
1353 return true;
executed 126 times by 8 tests: return true;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
126
1354}-
1355-
1356bool QQmlTypeLoader::Blob::updateQmldir(const QQmlRefPointer<QQmlQmldirData> &data, const QV4::CompiledData::Import *import, QList<QQmlError> *errors)-
1357{-
1358 QString qmldirIdentifier = data->urlString();-
1359 QString qmldirUrl = qmldirIdentifier.left(qmldirIdentifier.lastIndexOf(QLatin1Char('/')) + 1);-
1360-
1361 typeLoader()->setQmldirContent(qmldirIdentifier, data->content());-
1362-
1363 if (!m_importCache.updateQmldirContent(typeLoader()->importDatabase(), stringAt(import->uriIndex), stringAt(import->qualifierIndex), qmldirIdentifier, qmldirUrl, errors))
!m_importCache...irUrl, errors)Description
TRUEnever evaluated
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-44
1364 return false;
never executed: return false;
0
1365-
1366 QHash<const QV4::CompiledData::Import *, int>::iterator it = m_unresolvedImports.find(import);-
1367 if (it != m_unresolvedImports.end()) {
it != m_unreso...dImports.end()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
8-36
1368 *it = data->priority(this);-
1369 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
8
1370-
1371 // Release this reference at destruction-
1372 m_qmldirs << data;-
1373-
1374 const QString &importQualifier = stringAt(import->qualifierIndex);-
1375 if (!importQualifier.isEmpty()) {
!importQualifier.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 42 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
2-42
1376 // Does this library contain any qualified scripts?-
1377 QUrl libraryUrl(qmldirUrl);-
1378 const QQmlTypeLoaderQmldirContent qmldir = typeLoader()->qmldirContent(qmldirIdentifier);-
1379 const auto qmldirScripts = qmldir.scripts();-
1380 for (const QQmlDirParser::Script &script : qmldirScripts) {-
1381 QUrl scriptUrl = libraryUrl.resolved(QUrl(script.fileName));-
1382 QQmlRefPointer<QQmlScriptBlob> blob = typeLoader()->getScript(scriptUrl);-
1383 addDependency(blob.data());-
1384-
1385 scriptImported(blob, import->location, script.nameSpace, importQualifier);-
1386 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
1387 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
1388-
1389 return true;
executed 44 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
1390}-
1391-
1392bool QQmlTypeLoader::Blob::addImport(const QV4::CompiledData::Import *import, QList<QQmlError> *errors)-
1393{-
1394 Q_ASSERT(errors);-
1395-
1396 QQmlImportDatabase *importDatabase = typeLoader()->importDatabase();-
1397-
1398 const QString &importUri = stringAt(import->uriIndex);-
1399 const QString &importQualifier = stringAt(import->qualifierIndex);-
1400 if (import->type == QV4::CompiledData::Import::ImportScript) {
import->type =...::ImportScriptDescription
TRUEevaluated 302 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 58345 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
302-58345
1401 QUrl scriptUrl = finalUrl().resolved(QUrl(importUri));-
1402 QQmlRefPointer<QQmlScriptBlob> blob = typeLoader()->getScript(scriptUrl);-
1403 addDependency(blob.data());-
1404-
1405 scriptImported(blob, import->location, importQualifier, QString());-
1406 } else if (import->type == QV4::CompiledData::Import::ImportLibrary) {
executed 302 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
import->type =...:ImportLibraryDescription
TRUEevaluated 58147 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 198 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickloader
  • tst_qquickstates
  • tst_qrcqml
198-58147
1407 QString qmldirFilePath;-
1408 QString qmldirUrl;-
1409-
1410 if (QQmlMetaType::isLockedModule(importUri, import->majorVersion)) {
QQmlMetaType::...>majorVersion)Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlmoduleplugin
FALSEevaluated 58123 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
24-58123
1411 //Locked modules are checked first, to save on filesystem checks-
1412 if (!m_importCache.addLibraryImport(importDatabase, importUri, importQualifier, import->majorVersion,
!m_importCache...false, errors)Description
TRUEnever evaluated
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlmoduleplugin
0-24
1413 import->minorVersion, QString(), QString(), false, errors))
!m_importCache...false, errors)Description
TRUEnever evaluated
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlmoduleplugin
0-24
1414 return false;
never executed: return false;
0
1415-
1416 } else if (m_importCache.locateQmldir(importDatabase, importUri, import->majorVersion, import->minorVersion,
executed 24 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlmoduleplugin
m_importCache....h, &qmldirUrl)Description
TRUEevaluated 56757 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 1366 times by 44 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
24-56757
1417 &qmldirFilePath, &qmldirUrl)) {
m_importCache....h, &qmldirUrl)Description
TRUEevaluated 56757 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 1366 times by 44 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
1366-56757
1418 // This is a local library import-
1419 if (!m_importCache.addLibraryImport(importDatabase, importUri, importQualifier, import->majorVersion,
!m_importCache...false, errors)Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
FALSEevaluated 56741 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
16-56741
1420 import->minorVersion, qmldirFilePath, qmldirUrl, false, errors))
!m_importCache...false, errors)Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
FALSEevaluated 56741 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
16-56741
1421 return false;
executed 16 times by 2 tests: return false;
Executed by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
16
1422-
1423 if (!importQualifier.isEmpty()) {
!importQualifier.isEmpty()Description
TRUEevaluated 1024 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 55717 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
1024-55717
1424 // Does this library contain any qualified scripts?-
1425 QUrl libraryUrl(qmldirUrl);-
1426 const QQmlTypeLoaderQmldirContent qmldir = typeLoader()->qmldirContent(qmldirFilePath);-
1427 const auto qmldirScripts = qmldir.scripts();-
1428 for (const QQmlDirParser::Script &script : qmldirScripts) {-
1429 QUrl scriptUrl = libraryUrl.resolved(QUrl(script.fileName));-
1430 QQmlRefPointer<QQmlScriptBlob> blob = typeLoader()->getScript(scriptUrl);-
1431 addDependency(blob.data());-
1432-
1433 scriptImported(blob, import->location, script.nameSpace, importQualifier);-
1434 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
6
1435 }
executed 1024 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
1024
1436 } else {
executed 56741 times by 140 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
56741
1437 // Is this a module?-
1438 if (QQmlMetaType::isAnyModule(importUri)) {
QQmlMetaType::...ule(importUri)Description
TRUEevaluated 1354 times by 44 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
12-1354
1439 if (!m_importCache.addLibraryImport(importDatabase, importUri, importQualifier, import->majorVersion,
!m_importCache...false, errors)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEevaluated 1346 times by 44 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
8-1346
1440 import->minorVersion, QString(), QString(), false, errors))
!m_importCache...false, errors)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEevaluated 1346 times by 44 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
8-1346
1441 return false;
executed 8 times by 2 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
8
1442 } else {
executed 1346 times by 44 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • ...
1346
1443 // We haven't yet resolved this import-
1444 m_unresolvedImports.insert(import, 0);-
1445-
1446 QQmlAbstractUrlInterceptor *interceptor = typeLoader()->engine()->urlInterceptor();-
1447-
1448 // Query any network import paths for this library.-
1449 // Interceptor might redirect local paths.-
1450 QStringList remotePathList = importDatabase->importPathList(-
1451 interceptor ? QQmlImportDatabase::LocalOrRemote-
1452 : QQmlImportDatabase::Remote);-
1453 if (!remotePathList.isEmpty()) {
!remotePathList.isEmpty()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
4-8
1454 // Add this library and request the possible locations for it-
1455 if (!m_importCache.addLibraryImport(importDatabase, importUri, importQualifier, import->majorVersion,
!m_importCache... true, errors)Description
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
0-8
1456 import->minorVersion, QString(), QString(), true, errors))
!m_importCache... true, errors)Description
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
0-8
1457 return false;
never executed: return false;
0
1458-
1459 // Probe for all possible locations-
1460 int priority = 0;-
1461 const QStringList qmlDirPaths = QQmlImports::completeQmldirPaths(importUri, remotePathList, import->majorVersion, import->minorVersion);-
1462 for (const QString &qmldirPath : qmlDirPaths) {-
1463 if (interceptor) {
interceptorDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
14-72
1464 QUrl url = interceptor->intercept(-
1465 QQmlImports::urlFromLocalFileOrQrcOrUrl(qmldirPath),-
1466 QQmlAbstractUrlInterceptor::QmldirFile);-
1467 if (!QQmlFile::isLocalFile(url)
!QQmlFile::isLocalFile(url)Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEnever evaluated
0-72
1468 && !fetchQmldir(url, import, ++priority, errors)) {
!fetchQmldir(u...ority, errors)Description
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
0-72
1469 return false;
never executed: return false;
0
1470 }-
1471 } else if (!fetchQmldir(QUrl(qmldirPath), import, ++priority, errors)) {
executed 72 times by 1 test: end of block
Executed by:
  • tst_qqmltypeloader
!fetchQmldir(Q...ority, errors)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-72
1472 return false;
never executed: return false;
0
1473 }-
1474-
1475 }
executed 86 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
86
1476 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
8
1477 }
executed 12 times by 4 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
12
1478 }-
1479 } else {-
1480 Q_ASSERT(import->type == QV4::CompiledData::Import::ImportFile);-
1481-
1482 bool incomplete = false;-
1483-
1484 QUrl qmldirUrl = finalUrl().resolved(QUrl(importUri + QLatin1String("/qmldir")));-
1485 if (!QQmlImports::isLocal(qmldirUrl)) {
!QQmlImports::...cal(qmldirUrl)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
FALSEevaluated 194 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickstates
  • tst_qrcqml
4-194
1486 // This is a remote file; the import is currently incomplete-
1487 incomplete = true;-
1488 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
4
1489-
1490 if (!m_importCache.addFileImport(importDatabase, importUri, importQualifier, import->majorVersion,
!m_importCache...plete, errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
FALSEevaluated 196 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickloader
  • tst_qquickstates
  • tst_qrcqml
2-196
1491 import->minorVersion, incomplete, errors))
!m_importCache...plete, errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
FALSEevaluated 196 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickloader
  • tst_qquickstates
  • tst_qrcqml
2-196
1492 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlcomponent
2
1493-
1494 if (incomplete) {
incompleteDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
FALSEevaluated 192 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickstates
  • tst_qrcqml
4-192
1495 if (!fetchQmldir(qmldirUrl, import, 1, errors))
!fetchQmldir(q...rt, 1, errors)Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
0-4
1496 return false;
never executed: return false;
0
1497 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
4
1498 }
executed 196 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickloader
  • tst_qquickstates
  • tst_qrcqml
196
1499-
1500 return true;
executed 58621 times by 141 tests: return true;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
58621
1501}-
1502-
1503void QQmlTypeLoader::Blob::dependencyComplete(QQmlDataBlob *blob)-
1504{-
1505 if (blob->type() == QQmlDataBlob::QmldirFile) {
blob->type() =...ob::QmldirFileDescription
TRUEevaluated 22 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEevaluated 28 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
22-28
1506 QQmlQmldirData *data = static_cast<QQmlQmldirData *>(blob);-
1507-
1508 const QV4::CompiledData::Import *import = data->import(this);-
1509-
1510 QList<QQmlError> errors;-
1511 if (!qmldirDataAvailable(data, &errors)) {
!qmldirDataAva...data, &errors)Description
TRUEnever evaluated
FALSEevaluated 22 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-22
1512 Q_ASSERT(errors.size());-
1513 QQmlError error(errors.takeFirst());-
1514 error.setUrl(m_importCache.baseUrl());-
1515 error.setLine(import->location.line);-
1516 error.setColumn(import->location.column);-
1517 errors.prepend(error); // put it back on the list after filling out information.-
1518 setError(errors);-
1519 }
never executed: end of block
0
1520 }
executed 22 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
22
1521}
executed 50 times by 6 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
50
1522-
1523bool QQmlTypeLoader::Blob::isDebugging() const-
1524{-
1525 return typeLoader()->engine()->handle()->debugger() != nullptr;
executed 103892 times by 141 tests: return typeLoader()->engine()->handle()->debugger() != nullptr;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
103892
1526}-
1527-
1528bool QQmlTypeLoader::Blob::qmldirDataAvailable(const QQmlRefPointer<QQmlQmldirData> &data, QList<QQmlError> *errors)-
1529{-
1530 bool resolve = true;-
1531-
1532 const QV4::CompiledData::Import *import = data->import(this);-
1533 data->setImport(this, nullptr);-
1534-
1535 int priority = data->priority(this);-
1536 data->setPriority(this, 0);-
1537-
1538 if (import) {
importDescription
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-44
1539 // Do we need to resolve this import?-
1540 QHash<const QV4::CompiledData::Import *, int>::iterator it = m_unresolvedImports.find(import);-
1541 if (it != m_unresolvedImports.end()) {
it != m_unreso...dImports.end()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
8-36
1542 resolve = (*it == 0) || (*it > priority);
(*it == 0)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEnever evaluated
(*it > priority)Description
TRUEnever evaluated
FALSEnever evaluated
0-8
1543 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
8
1544-
1545 if (resolve) {
resolveDescription
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-44
1546 // This is the (current) best resolution for this import-
1547 if (!updateQmldir(data, import, errors)) {
!updateQmldir(...mport, errors)Description
TRUEnever evaluated
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-44
1548 return false;
never executed: return false;
0
1549 }-
1550-
1551 if (it != m_unresolvedImports.end())
it != m_unreso...dImports.end()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
8-36
1552 *it = priority;
executed 8 times by 2 tests: *it = priority;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
8
1553 return true;
executed 44 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
1554 }-
1555 }
never executed: end of block
0
1556-
1557 return true;
never executed: return true;
0
1558}-
1559-
1560-
1561QQmlTypeLoaderQmldirContent::QQmlTypeLoaderQmldirContent()-
1562{-
1563}-
1564-
1565bool QQmlTypeLoaderQmldirContent::hasError() const-
1566{-
1567 return m_parser.hasError();
executed 57017 times by 140 tests: return m_parser.hasError();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
57017
1568}-
1569-
1570QList<QQmlError> QQmlTypeLoaderQmldirContent::errors(const QString &uri) const-
1571{-
1572 return m_parser.errors(uri);
executed 4 times by 1 test: return m_parser.errors(uri);
Executed by:
  • tst_qqmlmoduleplugin
4
1573}-
1574-
1575QString QQmlTypeLoaderQmldirContent::typeNamespace() const-
1576{-
1577 return m_parser.typeNamespace();
executed 7401 times by 135 tests: return m_parser.typeNamespace();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
7401
1578}-
1579-
1580void QQmlTypeLoaderQmldirContent::setContent(const QString &location, const QString &content)-
1581{-
1582 m_hasContent = true;-
1583 m_location = location;-
1584 m_parser.parse(content);-
1585}
executed 7935 times by 140 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
7935
1586-
1587void QQmlTypeLoaderQmldirContent::setError(const QQmlError &error)-
1588{-
1589 m_parser.setError(error);-
1590}
never executed: end of block
0
1591-
1592QQmlDirComponents QQmlTypeLoaderQmldirContent::components() const-
1593{-
1594 return m_parser.components();
executed 57035 times by 140 tests: return m_parser.components();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
57035
1595}-
1596-
1597QQmlDirScripts QQmlTypeLoaderQmldirContent::scripts() const-
1598{-
1599 return m_parser.scripts();
executed 58061 times by 140 tests: return m_parser.scripts();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
58061
1600}-
1601-
1602QQmlDirPlugins QQmlTypeLoaderQmldirContent::plugins() const-
1603{-
1604 return m_parser.plugins();
executed 64414 times by 140 tests: return m_parser.plugins();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
64414
1605}-
1606-
1607QString QQmlTypeLoaderQmldirContent::pluginLocation() const-
1608{-
1609 return m_location;
executed 57013 times by 140 tests: return m_location;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
57013
1610}-
1611-
1612bool QQmlTypeLoaderQmldirContent::designerSupported() const-
1613{-
1614 return m_parser.designerSupported();
executed 8 times by 1 test: return m_parser.designerSupported();
Executed by:
  • tst_qqmlimport
8
1615}-
1616-
1617/*!-
1618Constructs a new type loader that uses the given \a engine.-
1619*/-
1620QQmlTypeLoader::QQmlTypeLoader(QQmlEngine *engine)-
1621 : m_engine(engine)-
1622 , m_thread(new QQmlTypeLoaderThread(this))-
1623 , m_mutex(m_thread->mutex())-
1624 , m_typeCacheTrimThreshold(TYPELOADER_MINIMUM_TRIM_THRESHOLD)-
1625{-
1626}
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
1627-
1628/*!-
1629Destroys the type loader, first clearing the cache of any information about-
1630loaded files.-
1631*/-
1632QQmlTypeLoader::~QQmlTypeLoader()-
1633{-
1634 // Stop the loader thread before releasing resources-
1635 shutdownThread();-
1636-
1637 clearCache();-
1638-
1639 invalidate();-
1640}
executed 7660 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
  • ...
7660
1641-
1642QQmlImportDatabase *QQmlTypeLoader::importDatabase() const-
1643{-
1644 return &QQmlEnginePrivate::get(engine())->importDatabase;
executed 113744 times by 141 tests: return &QQmlEnginePrivate::get(engine())->importDatabase;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
113744
1645}-
1646-
1647QUrl QQmlTypeLoader::normalize(const QUrl &unNormalizedUrl)-
1648{-
1649 QUrl normalized(unNormalizedUrl);-
1650 if (normalized.scheme() == QLatin1String("qrc"))
normalized.sch...1String("qrc")Description
TRUEevaluated 180 times by 8 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qrcqml
FALSEevaluated 72549 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
180-72549
1651 normalized.setHost(QString()); // map qrc:///a.qml to qrc:/a.qml
executed 180 times by 8 tests: normalized.setHost(QString());
Executed by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmltranslation
  • tst_qrcqml
180
1652 return normalized;
executed 72729 times by 141 tests: return normalized;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
72729
1653}-
1654-
1655/*!-
1656Returns a QQmlTypeData for the specified \a url. The QQmlTypeData may be cached.-
1657*/-
1658QQmlRefPointer<QQmlTypeData> QQmlTypeLoader::getType(const QUrl &unNormalizedUrl, Mode mode)-
1659{-
1660 Q_ASSERT(!unNormalizedUrl.isRelative() &&-
1661 (QQmlFile::urlToLocalFileOrQrc(unNormalizedUrl).isEmpty() ||-
1662 !QDir::isRelativePath(QQmlFile::urlToLocalFileOrQrc(unNormalizedUrl))));-
1663-
1664 const QUrl url = normalize(unNormalizedUrl);-
1665-
1666 LockHolder<QQmlTypeLoader> holder(this);-
1667-
1668 QQmlTypeData *typeData = m_typeCache.value(url);-
1669-
1670 if (!typeData) {
!typeDataDescription
TRUEevaluated 9364 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 4934 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfolderlistmodel
  • ...
4934-9364
1671 // Trim before adding the new type, so that we don't immediately trim it away-
1672 if (m_typeCache.size() >= m_typeCacheTrimThreshold)
m_typeCache.si...eTrimThresholdDescription
TRUEevaluated 42 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
FALSEevaluated 9322 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
42-9322
1673 trimCache();
executed 42 times by 3 tests: trimCache();
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
42
1674-
1675 typeData = new QQmlTypeData(url, this);-
1676 // TODO: if (compiledData == 0), is it safe to omit this insertion?-
1677 m_typeCache.insert(url, typeData);-
1678 QQmlMetaType::CachedUnitLookupError error = QQmlMetaType::CachedUnitLookupError::NoError;-
1679 if (const QV4::CompiledData::Unit *cachedUnit = QQmlMetaType::findCachedCompilationUnit(typeData->url(), &error)) {
const QV4::Com...url(), &error)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEevaluated 9350 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
14-9350
1680 QQmlTypeLoader::loadWithCachedUnit(typeData, cachedUnit, mode);-
1681 } else {
executed 14 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
14
1682 typeData->setCachedUnitStatus(error);-
1683 QQmlTypeLoader::load(typeData, mode);-
1684 }
executed 9350 times by 126 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9350
1685 } else if ((mode == PreferSynchronous || mode == Synchronous) && QQmlFile::isSynchronous(url)) {
mode == PreferSynchronousDescription
TRUEevaluated 4920 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfolderlistmodel
  • ...
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qquickloader
mode == SynchronousDescription
TRUEnever evaluated
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qquickloader
QQmlFile::isSynchronous(url)Description
TRUEevaluated 4918 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfolderlistmodel
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
0-4920
1686 // this was started Asynchronous, but we need to force Synchronous-
1687 // completion now (if at all possible with this type of URL).-
1688-
1689 if (!m_thread->isThisThread()) {
!m_thread->isThisThread()Description
TRUEevaluated 4588 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickshortcut
  • ...
FALSEevaluated 330 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickloader
  • tst_qquickworkerscript
330-4588
1690 // this only works when called directly from the UI thread, but not-
1691 // when recursively called on the QML thread via resolveTypes()-
1692-
1693 while (!typeData->isCompleteOrError()) {
!typeData->isCompleteOrError()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qquickloader
FALSEevaluated 4588 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickshortcut
  • ...
4-4588
1694 unlock();-
1695 m_thread->waitForNextMessage();-
1696 lock();-
1697 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qquickloader
4
1698 }
executed 4588 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickshortcut
  • ...
4588
1699 }
executed 4918 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfolderlistmodel
  • ...
4918
1700-
1701 return typeData;
executed 14298 times by 126 tests: return typeData;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
14298
1702}-
1703-
1704/*!-
1705Returns a QQmlTypeData for the given \a data with the provided base \a url. The-
1706QQmlTypeData will not be cached.-
1707*/-
1708QQmlRefPointer<QQmlTypeData> QQmlTypeLoader::getType(const QByteArray &data, const QUrl &url, Mode mode)-
1709{-
1710 LockHolder<QQmlTypeLoader> holder(this);-
1711-
1712 QQmlTypeData *typeData = new QQmlTypeData(url, this);-
1713 QQmlTypeLoader::loadWithStaticData(typeData, data, mode);-
1714-
1715 return QQmlRefPointer<QQmlTypeData>(typeData, QQmlRefPointer<QQmlTypeData>::Adopt);
executed 45769 times by 59 tests: return QQmlRefPointer<QQmlTypeData>(typeData, QQmlRefPointer<QQmlTypeData>::Adopt);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45769
1716}-
1717-
1718/*!-
1719Return a QQmlScriptBlob for \a url. The QQmlScriptData may be cached.-
1720*/-
1721QQmlRefPointer<QQmlScriptBlob> QQmlTypeLoader::getScript(const QUrl &unNormalizedUrl)-
1722{-
1723 Q_ASSERT(!unNormalizedUrl.isRelative() &&-
1724 (QQmlFile::urlToLocalFileOrQrc(unNormalizedUrl).isEmpty() ||-
1725 !QDir::isRelativePath(QQmlFile::urlToLocalFileOrQrc(unNormalizedUrl))));-
1726-
1727 const QUrl url = normalize(unNormalizedUrl);-
1728-
1729 LockHolder<QQmlTypeLoader> holder(this);-
1730-
1731 QQmlScriptBlob *scriptBlob = m_scriptCache.value(url);-
1732-
1733 if (!scriptBlob) {
!scriptBlobDescription
TRUEevaluated 286 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
32-286
1734 scriptBlob = new QQmlScriptBlob(url, this);-
1735 m_scriptCache.insert(url, scriptBlob);-
1736-
1737 QQmlMetaType::CachedUnitLookupError error;-
1738 if (const QV4::CompiledData::Unit *cachedUnit = QQmlMetaType::findCachedCompilationUnit(scriptBlob->url(), &error)) {
const QV4::Com...url(), &error)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEevaluated 282 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
4-282
1739 QQmlTypeLoader::loadWithCachedUnit(scriptBlob, cachedUnit);-
1740 } else {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
4
1741 scriptBlob->setCachedUnitStatus(error);-
1742 QQmlTypeLoader::load(scriptBlob);-
1743 }
executed 282 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
282
1744 }-
1745-
1746 return scriptBlob;
executed 318 times by 13 tests: return scriptBlob;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
318
1747}-
1748-
1749/*!-
1750Returns a QQmlQmldirData for \a url. The QQmlQmldirData may be cached.-
1751*/-
1752QQmlRefPointer<QQmlQmldirData> QQmlTypeLoader::getQmldir(const QUrl &url)-
1753{-
1754 Q_ASSERT(!url.isRelative() &&-
1755 (QQmlFile::urlToLocalFileOrQrc(url).isEmpty() ||-
1756 !QDir::isRelativePath(QQmlFile::urlToLocalFileOrQrc(url))));-
1757-
1758 LockHolder<QQmlTypeLoader> holder(this);-
1759-
1760 QQmlQmldirData *qmldirData = m_qmldirCache.value(url);-
1761-
1762 if (!qmldirData) {
!qmldirDataDescription
TRUEevaluated 124 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
24-124
1763 qmldirData = new QQmlQmldirData(url, this);-
1764 m_qmldirCache.insert(url, qmldirData);-
1765 QQmlTypeLoader::load(qmldirData);-
1766 }
executed 124 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
124
1767-
1768 return qmldirData;
executed 148 times by 8 tests: return qmldirData;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
148
1769}-
1770-
1771// #### Qt 6: Remove this function, it exists only for binary compatibility.-
1772/*!-
1773 * \internal-
1774 */-
1775bool QQmlEngine::addNamedBundle(const QString &name, const QString &fileName)-
1776{-
1777 Q_UNUSED(name)-
1778 Q_UNUSED(fileName)-
1779 return false;
never executed: return false;
0
1780}-
1781-
1782/*!-
1783Returns the absolute filename of path via a directory cache.-
1784Returns a empty string if the path does not exist.-
1785-
1786Why a directory cache? QML checks for files in many paths with-
1787invalid directories. By caching whether a directory exists-
1788we avoid many stats. We also cache the files' existence in the-
1789directory, for the same reason.-
1790*/-
1791QString QQmlTypeLoader::absoluteFilePath(const QString &path)-
1792{-
1793 if (path.isEmpty())
path.isEmpty()Description
TRUEevaluated 132864 times by 15 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 525649 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
132864-525649
1794 return QString();
executed 132864 times by 15 tests: return QString();
Executed by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
132864
1795 if (path.at(0) == QLatin1Char(':')) {
path.at(0) == QLatin1Char(':')Description
TRUEevaluated 1176 times by 13 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltranslation
  • tst_qquickshortcut
  • tst_qrcqml
  • tst_sharedimage
FALSEevaluated 524473 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
1176-524473
1796 // qrc resource-
1797 QFileInfo fileInfo(path);-
1798 return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();
executed 1176 times by 13 tests: return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();
Executed by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltranslation
  • tst_qquickshortcut
  • tst_qrcqml
  • tst_sharedimage
1176
1799 } else if (path.count() > 3 && path.at(3) == QLatin1Char(':') &&
path.count() > 3Description
TRUEevaluated 524473 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
path.at(3) == QLatin1Char(':')Description
TRUEevaluated 22241 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 502232 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-524473
1800 path.startsWith(QLatin1String("qrc"), Qt::CaseInsensitive)) {
path.startsWit...seInsensitive)Description
TRUEevaluated 22241 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEnever evaluated
0-22241
1801 // qrc resource url-
1802 QFileInfo fileInfo(QQmlFile::urlToLocalFileOrQrc(path));-
1803 return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();
executed 22241 times by 137 tests: return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
22241
1804 }-
1805#if defined(Q_OS_ANDROID)-
1806 else if (path.count() > 7 && path.at(6) == QLatin1Char(':') && path.at(7) == QLatin1Char('/') &&-
1807 path.startsWith(QLatin1String("assets"), Qt::CaseInsensitive)) {-
1808 // assets resource url-
1809 QFileInfo fileInfo(QQmlFile::urlToLocalFileOrQrc(path));-
1810 return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();-
1811 }-
1812#endif-
1813-
1814 int lastSlash = path.lastIndexOf(QLatin1Char('/'));-
1815 QString dirPath(path.left(lastSlash));-
1816-
1817 LockHolder<QQmlTypeLoader> holder(this);-
1818 if (!m_importDirCache.contains(dirPath)) {
!m_importDirCa...tains(dirPath)Description
TRUEevaluated 45486 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 456746 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
45486-456746
1819 bool exists = QDir(dirPath).exists();-
1820 QCache<QString, bool> *entry = exists ? new QCache<QString, bool> : nullptr;
existsDescription
TRUEevaluated 7651 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 37835 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
7651-37835
1821 m_importDirCache.insert(dirPath, entry);-
1822 }
executed 45486 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
45486
1823 QCache<QString, bool> *fileSet = m_importDirCache.object(dirPath);-
1824 if (!fileSet)
!fileSetDescription
TRUEevaluated 38647 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 463585 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
38647-463585
1825 return QString();
executed 38647 times by 141 tests: return QString();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
38647
1826-
1827 QString absoluteFilePath;-
1828 QString fileName(path.mid(lastSlash+1, path.length()-lastSlash-1));-
1829-
1830 bool *value = fileSet->object(fileName);-
1831 if (value) {
valueDescription
TRUEevaluated 436635 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
FALSEevaluated 26950 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
26950-436635
1832 if (*value)
*valueDescription
TRUEevaluated 988 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
FALSEevaluated 435647 times by 63 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
988-435647
1833 absoluteFilePath = path;
executed 988 times by 43 tests: absoluteFilePath = path;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
988
1834 } else {
executed 436635 times by 72 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
436635
1835 bool exists = QFile::exists(path);-
1836 fileSet->insert(fileName, new bool(exists));-
1837 if (exists)
existsDescription
TRUEevaluated 15706 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 11244 times by 125 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
11244-15706
1838 absoluteFilePath = path;
executed 15706 times by 140 tests: absoluteFilePath = path;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
15706
1839 }
executed 26950 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
26950
1840-
1841 if (absoluteFilePath.length() > 2 && absoluteFilePath.at(0) != QLatin1Char('/') && absoluteFilePath.at(1) != QLatin1Char(':'))
absoluteFilePath.length() > 2Description
TRUEevaluated 16694 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 446891 times by 125 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
absoluteFilePa...atin1Char('/')Description
TRUEnever evaluated
FALSEevaluated 16694 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
absoluteFilePa...atin1Char(':')Description
TRUEnever evaluated
FALSEnever evaluated
0-446891
1842 absoluteFilePath = QFileInfo(absoluteFilePath).absoluteFilePath();
never executed: absoluteFilePath = QFileInfo(absoluteFilePath).absoluteFilePath();
0
1843-
1844 return absoluteFilePath;
executed 463585 times by 141 tests: return absoluteFilePath;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
463585
1845}-
1846-
1847-
1848/*!-
1849Returns true if the path is a directory via a directory cache. Cache is-
1850shared with absoluteFilePath().-
1851*/-
1852bool QQmlTypeLoader::directoryExists(const QString &path)-
1853{-
1854 if (path.isEmpty())
path.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 9629 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-9629
1855 return false;
never executed: return false;
0
1856-
1857 bool isResource = path.at(0) == QLatin1Char(':');-
1858#if defined(Q_OS_ANDROID)-
1859 isResource = isResource || path.startsWith(QLatin1String("assets:/"));-
1860#endif-
1861-
1862 if (isResource) {
isResourceDescription
TRUEevaluated 56 times by 7 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qrcqml
FALSEevaluated 9573 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
56-9573
1863 // qrc resource-
1864 QFileInfo fileInfo(path);-
1865 return fileInfo.exists() && fileInfo.isDir();
executed 56 times by 7 tests: return fileInfo.exists() && fileInfo.isDir();
Executed by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qrcqml
56
1866 }-
1867-
1868 int length = path.length();-
1869 if (path.endsWith(QLatin1Char('/')))
path.endsWith(...tin1Char('/'))Description
TRUEevaluated 9429 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 144 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickstates
144-9429
1870 --length;
executed 9429 times by 126 tests: --length;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9429
1871 QString dirPath(path.left(length));-
1872-
1873 LockHolder<QQmlTypeLoader> holder(this);-
1874 if (!m_importDirCache.contains(dirPath)) {
!m_importDirCa...tains(dirPath)Description
TRUEevaluated 6688 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 2885 times by 55 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
2885-6688
1875 bool exists = QDir(dirPath).exists();-
1876 QCache<QString, bool> *files = exists ? new QCache<QString, bool> : nullptr;
existsDescription
TRUEevaluated 6676 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquicktext
  • tst_qquicktextedit
12-6676
1877 m_importDirCache.insert(dirPath, files);-
1878 }
executed 6688 times by 126 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
6688
1879-
1880 QCache<QString, bool> *fileSet = m_importDirCache.object(dirPath);-
1881 return fileSet != nullptr;
executed 9573 times by 126 tests: return fileSet != nullptr;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
9573
1882}-
1883-
1884-
1885/*!-
1886Return a QQmlTypeLoaderQmldirContent for absoluteFilePath. The QQmlTypeLoaderQmldirContent may be cached.-
1887-
1888\a filePath is a local file path.-
1889-
1890It can also be a remote path for a remote directory import, but it will have been cached by now in this case.-
1891*/-
1892const QQmlTypeLoaderQmldirContent QQmlTypeLoader::qmldirContent(const QString &filePathIn)-
1893{-
1894 LockHolder<QQmlTypeLoader> holder(this);-
1895-
1896 QString filePath;-
1897-
1898 // Try to guess if filePathIn is already a URL. This is necessarily fragile, because-
1899 // - paths can contain ':', which might make them appear as URLs with schemes.-
1900 // - windows drive letters appear as schemes (thus "< 2" below).-
1901 // - a "file:" URL is equivalent to the respective file, but will be treated differently.-
1902 // Yet, this heuristic is the best we can do until we pass more structured information here,-
1903 // for example a QUrl also for local files.-
1904 QUrl url(filePathIn);-
1905 if (url.scheme().length() < 2) {
url.scheme().length() < 2Description
TRUEevaluated 57997 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
46-57997
1906 filePath = filePathIn;-
1907 } else {
executed 57997 times by 140 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
57997
1908 filePath = QQmlFile::urlToLocalFileOrQrc(url);-
1909 if (filePath.isEmpty()) { // Can't load the remote here, but should be cached
filePath.isEmpty()Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-46
1910 if (auto entry = m_importQmlDirCache.value(filePathIn))
auto entry = m...ue(filePathIn)Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-46
1911 return **entry;
executed 46 times by 5 tests: return **entry;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
46
1912 else-
1913 return QQmlTypeLoaderQmldirContent();
never executed: return QQmlTypeLoaderQmldirContent();
0
1914 }-
1915 }
never executed: end of block
0
1916-
1917 QQmlTypeLoaderQmldirContent **val = m_importQmlDirCache.value(filePath);-
1918 if (val)
valDescription
TRUEevaluated 50106 times by 74 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 7891 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
7891-50106
1919 return **val;
executed 50106 times by 74 tests: return **val;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
50106
1920 QQmlTypeLoaderQmldirContent *qmldir = new QQmlTypeLoaderQmldirContent;-
1921-
1922#define ERROR(description) { QQmlError e; e.setDescription(description); qmldir->setError(e); }-
1923#define NOT_READABLE_ERROR QString(QLatin1String("module \"$$URI$$\" definition \"%1\" not readable"))-
1924#define CASE_MISMATCH_ERROR QString(QLatin1String("cannot load module \"$$URI$$\": File name case mismatch for \"%1\""))-
1925-
1926 QFile file(filePath);-
1927 if (!QQml_isFileCaseCorrect(filePath)) {
!QQml_isFileCa...rect(filePath)Description
TRUEnever evaluated
FALSEevaluated 7891 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-7891
1928 ERROR(CASE_MISMATCH_ERROR.arg(filePath));-
1929 } else if (file.open(QFile::ReadOnly)) {
never executed: end of block
file.open(QFile::ReadOnly)Description
TRUEevaluated 7891 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
0-7891
1930 QByteArray data = file.readAll();-
1931 qmldir->setContent(filePath, QString::fromUtf8(data));-
1932 } else {
executed 7891 times by 140 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
7891
1933 ERROR(NOT_READABLE_ERROR.arg(filePath));-
1934 }
never executed: end of block
0
1935-
1936#undef ERROR-
1937#undef NOT_READABLE_ERROR-
1938#undef CASE_MISMATCH_ERROR-
1939-
1940 m_importQmlDirCache.insert(filePath, qmldir);-
1941 return *qmldir;
executed 7891 times by 140 tests: return *qmldir;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
7891
1942}-
1943-
1944void QQmlTypeLoader::setQmldirContent(const QString &url, const QString &content)-
1945{-
1946 QQmlTypeLoaderQmldirContent *qmldir;-
1947 QQmlTypeLoaderQmldirContent **val = m_importQmlDirCache.value(url);-
1948 if (val) {
valDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
FALSEevaluated 22 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
22
1949 qmldir = *val;-
1950 } else {
executed 22 times by 3 tests: end of block
Executed by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
22
1951 qmldir = new QQmlTypeLoaderQmldirContent;-
1952 m_importQmlDirCache.insert(url, qmldir);-
1953 }
executed 22 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
22
1954-
1955 qmldir->setContent(url, content);-
1956}
executed 44 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
1957-
1958/*!-
1959Clears cached information about loaded files, including any type data, scripts-
1960and qmldir information.-
1961*/-
1962void QQmlTypeLoader::clearCache()-
1963{-
1964 for (TypeCache::Iterator iter = m_typeCache.begin(), end = m_typeCache.end(); iter != end; ++iter)
iter != endDescription
TRUEevaluated 8496 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 7906 times by 148 tests
Evaluated 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
  • ...
7906-8496
1965 (*iter)->release();
executed 8496 times by 126 tests: (*iter)->release();
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
8496
1966 for (ScriptCache::Iterator iter = m_scriptCache.begin(), end = m_scriptCache.end(); iter != end; ++iter)
iter != endDescription
TRUEevaluated 286 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 7906 times by 148 tests
Evaluated 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
  • ...
286-7906
1967 (*iter)->release();
executed 286 times by 13 tests: (*iter)->release();
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
286
1968 for (QmldirCache::Iterator iter = m_qmldirCache.begin(), end = m_qmldirCache.end(); iter != end; ++iter)
iter != endDescription
TRUEevaluated 124 times by 8 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 7906 times by 148 tests
Evaluated 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
  • ...
124-7906
1969 (*iter)->release();
executed 124 times by 8 tests: (*iter)->release();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
124
1970-
1971 qDeleteAll(m_importQmlDirCache);-
1972-
1973 m_typeCache.clear();-
1974 m_typeCacheTrimThreshold = TYPELOADER_MINIMUM_TRIM_THRESHOLD;-
1975 m_scriptCache.clear();-
1976 m_qmldirCache.clear();-
1977 m_importDirCache.clear();-
1978 m_importQmlDirCache.clear();-
1979 QQmlMetaType::freeUnusedTypesAndCaches();-
1980}
executed 7906 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
  • ...
7906
1981-
1982void QQmlTypeLoader::updateTypeCacheTrimThreshold()-
1983{-
1984 int size = m_typeCache.size();-
1985 if (size > m_typeCacheTrimThreshold)
size > m_typeC...eTrimThresholdDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
8-38
1986 m_typeCacheTrimThreshold = size * 2;
executed 8 times by 2 tests: m_typeCacheTrimThreshold = size * 2;
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
8
1987 if (size < m_typeCacheTrimThreshold / 2)
size < m_typeC...mThreshold / 2Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
14-32
1988 m_typeCacheTrimThreshold = qMax(size * 2, TYPELOADER_MINIMUM_TRIM_THRESHOLD);
executed 14 times by 2 tests: m_typeCacheTrimThreshold = qMax(size * 2, 64);
Executed by:
  • tst_examples
  • tst_qqmltypeloader
14
1989}
executed 46 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
46
1990-
1991void QQmlTypeLoader::trimCache()-
1992{-
1993 while (true) {-
1994 QList<TypeCache::Iterator> unneededTypes;-
1995 for (TypeCache::Iterator iter = m_typeCache.begin(), end = m_typeCache.end(); iter != end; ++iter) {
iter != endDescription
TRUEevaluated 4620 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
FALSEevaluated 88 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
88-4620
1996 QQmlTypeData *typeData = iter.value();-
1997-
1998 // typeData->m_compiledData may be set early on in the proccess of loading a file, so-
1999 // it's important to check the general loading status of the typeData before making any-
2000 // other decisions.-
2001 if (typeData->count() == 1 && (typeData->isError() || typeData->isComplete())
typeData->count() == 1Description
TRUEevaluated 3440 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
FALSEevaluated 1180 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
typeData->isError()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 3436 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
typeData->isComplete()Description
TRUEevaluated 3436 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
FALSEnever evaluated
0-3440
2002 && (!typeData->m_compiledData || typeData->m_compiledData->count() == 1)) {
!typeData->m_compiledDataDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 3436 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
typeData->m_co...->count() == 1Description
TRUEevaluated 850 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
FALSEevaluated 2586 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
4-3436
2003 // There are no live objects of this type-
2004 unneededTypes.append(iter);-
2005 }
executed 854 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
854
2006 }
executed 4620 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
4620
2007-
2008 if (unneededTypes.isEmpty())
unneededTypes.isEmpty()Description
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
42-46
2009 break;
executed 46 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
46
2010-
2011 while (!unneededTypes.isEmpty()) {
!unneededTypes.isEmpty()Description
TRUEevaluated 854 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
42-854
2012 TypeCache::Iterator iter = unneededTypes.takeLast();-
2013-
2014 iter.value()->release();-
2015 m_typeCache.erase(iter);-
2016 }
executed 854 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
854
2017 }
executed 42 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
42
2018-
2019 updateTypeCacheTrimThreshold();-
2020-
2021 QQmlMetaType::freeUnusedTypesAndCaches();-
2022-
2023 // TODO: release any scripts which are no longer referenced by any types-
2024}
executed 46 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
46
2025-
2026bool QQmlTypeLoader::isTypeLoaded(const QUrl &url) const-
2027{-
2028 LockHolder<QQmlTypeLoader> holder(const_cast<QQmlTypeLoader *>(this));-
2029 return m_typeCache.contains(url);
executed 314 times by 1 test: return m_typeCache.contains(url);
Executed by:
  • tst_qqmltypeloader
314
2030}-
2031-
2032bool QQmlTypeLoader::isScriptLoaded(const QUrl &url) const-
2033{-
2034 LockHolder<QQmlTypeLoader> holder(const_cast<QQmlTypeLoader *>(this));-
2035 return m_scriptCache.contains(url);
never executed: return m_scriptCache.contains(url);
0
2036}-
2037-
2038QQmlTypeData::TypeDataCallback::~TypeDataCallback()-
2039{-
2040}-
2041-
2042QString QQmlTypeData::TypeReference::qualifiedName() const-
2043{-
2044 QString result;-
2045 if (!prefix.isEmpty()) {
!prefix.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
2046 result = prefix + QLatin1Char('.');-
2047 }
never executed: end of block
0
2048 result.append(type.qmlTypeName());-
2049 return result;
never executed: return result;
0
2050}-
2051-
2052QQmlTypeData::QQmlTypeData(const QUrl &url, QQmlTypeLoader *manager)-
2053: QQmlTypeLoader::Blob(url, QmlFile, manager),-
2054 m_typesResolved(false), m_implicitImportLoaded(false)-
2055{-
2056-
2057}
executed 55133 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55133
2058-
2059QQmlTypeData::~QQmlTypeData()-
2060{-
2061 m_scripts.clear();-
2062 m_compositeSingletons.clear();-
2063 m_resolvedTypes.clear();-
2064}
executed 55067 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55067
2065-
2066const QList<QQmlTypeData::ScriptReference> &QQmlTypeData::resolvedScripts() const-
2067{-
2068 return m_scripts;
never executed: return m_scripts;
0
2069}-
2070-
2071QV4::CompiledData::CompilationUnit *QQmlTypeData::compilationUnit() const-
2072{-
2073 return m_compiledData.data();
executed 59584 times by 141 tests: return m_compiledData.data();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
59584
2074}-
2075-
2076void QQmlTypeData::registerCallback(TypeDataCallback *callback)-
2077{-
2078 Q_ASSERT(!m_callbacks.contains(callback));-
2079 m_callbacks.append(callback);-
2080}
executed 146 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
146
2081-
2082void QQmlTypeData::unregisterCallback(TypeDataCallback *callback)-
2083{-
2084 Q_ASSERT(m_callbacks.contains(callback));-
2085 m_callbacks.removeOne(callback);-
2086 Q_ASSERT(!m_callbacks.contains(callback));-
2087}
executed 12 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickloader
12
2088-
2089bool QQmlTypeData::tryLoadFromDiskCache()-
2090{-
2091 if (disableDiskCache() && !forceDiskCache())
disableDiskCache()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEevaluated 55101 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
!forceDiskCache()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
FALSEnever evaluated
0-55101
2092 return false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qquickfolderlistmodel
10
2093-
2094 if (isDebugging())
isDebugging()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qv4debugger
FALSEevaluated 55083 times by 138 tests
Evaluated 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
18-55083
2095 return false;
executed 18 times by 2 tests: return false;
Executed by:
  • tst_qqmldebugjs
  • tst_qv4debugger
18
2096-
2097 QV4::ExecutionEngine *v4 = typeLoader()->engine()->handle();-
2098 if (!v4)
!v4Description
TRUEnever evaluated
FALSEevaluated 55083 times by 138 tests
Evaluated 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
0-55083
2099 return false;
never executed: return false;
0
2100-
2101 QQmlRefPointer<QV4::CompiledData::CompilationUnit> unit = QV4::Compiler::Codegen::createUnitForLoading();-
2102 {-
2103 QString error;-
2104 if (!unit->loadFromDisk(url(), m_backupSourceCode.sourceTimeStamp(), &error)) {
!unit->loadFro...amp(), &error)Description
TRUEevaluated 48255 times by 138 tests
Evaluated 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
FALSEevaluated 6828 times by 124 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
6828-48255
2105 qCDebug(DBG_DISK_CACHE) << "Error loading" << urlString() << "from disk cache:" << error;
never executed: QMessageLogger(__FILE__, 2105, __PRETTY_FUNCTION__, DBG_DISK_CACHE().categoryName()).debug() << "Error loading" << urlString() << "from disk cache:" << error;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 48255 times by 138 tests
Evaluated 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
0-48255
2106 return false;
executed 48255 times by 138 tests: return false;
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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
48255
2107 }-
2108 }-
2109-
2110 if (unit->data->flags & QV4::CompiledData::Unit::PendingTypeCompilation) {
unit->data->fl...ypeCompilationDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEevaluated 6818 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
10-6818
2111 restoreIR(unit);-
2112 return true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_qmlcachegen
10
2113 }-
2114-
2115 m_compiledData = unit;-
2116-
2117 for (int i = 0, count = m_compiledData->objectCount(); i < count; ++i)
i < countDescription
TRUEevaluated 57406 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 6818 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6818-57406
2118 m_typeReferences.collectFromObject(m_compiledData->objectAt(i));
executed 57406 times by 123 tests: m_typeReferences.collectFromObject(m_compiledData->objectAt(i));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
57406
2119-
2120 m_importCache.setBaseUrl(finalUrl(), finalUrlString());-
2121-
2122 // For remote URLs, we don't delay the loading of the implicit import-
2123 // because the loading probably requires an asynchronous fetch of the-
2124 // qmldir (so we can't load it just in time).-
2125 if (!finalUrl().scheme().isEmpty()) {
!finalUrl().scheme().isEmpty()Description
TRUEevaluated 6818 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEnever evaluated
0-6818
2126 QUrl qmldirUrl = finalUrl().resolved(QUrl(QLatin1String("qmldir")));-
2127 if (!QQmlImports::isLocal(qmldirUrl)) {
!QQmlImports::...cal(qmldirUrl)Description
TRUEnever evaluated
FALSEevaluated 6818 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
0-6818
2128 if (!loadImplicitImport())
!loadImplicitImport()Description
TRUEnever evaluated
FALSEnever evaluated
0
2129 return false;
never executed: return false;
0
2130-
2131 // find the implicit import-
2132 for (quint32 i = 0; i < m_compiledData->data->nImports; ++i) {
i < m_compiled...data->nImportsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2133 const QV4::CompiledData::Import *import = m_compiledData->data->importAt(i);-
2134 if (m_compiledData->stringAt(import->uriIndex) == QLatin1String(".")
m_compiledData...in1String(".")Description
TRUEnever evaluated
FALSEnever evaluated
0
2135 && import->qualifierIndex == 0
import->qualifierIndex == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2136 && import->majorVersion == -1
import->majorVersion == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
2137 && import->minorVersion == -1) {
import->minorVersion == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
2138 QList<QQmlError> errors;-
2139 if (!fetchQmldir(qmldirUrl, import, 1, &errors)) {
!fetchQmldir(q...t, 1, &errors)Description
TRUEnever evaluated
FALSEnever evaluated
0
2140 setError(errors);-
2141 return false;
never executed: return false;
0
2142 }-
2143 break;
never executed: break;
0
2144 }-
2145 }
never executed: end of block
0
2146 }
never executed: end of block
0
2147 }
executed 6818 times by 123 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6818
2148-
2149 for (int i = 0, count = m_compiledData->data->nImports; i < count; ++i) {
i < countDescription
TRUEevaluated 9395 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 6816 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6816-9395
2150 const QV4::CompiledData::Import *import = m_compiledData->data->importAt(i);-
2151 QList<QQmlError> errors;-
2152 if (!addImport(import, &errors)) {
!addImport(import, &errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlimport
FALSEevaluated 9393 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
2-9393
2153 Q_ASSERT(errors.size());-
2154 QQmlError error(errors.takeFirst());-
2155 error.setUrl(m_importCache.baseUrl());-
2156 error.setLine(import->location.line);-
2157 error.setColumn(import->location.column);-
2158 errors.prepend(error); // put it back on the list after filling out information.-
2159 setError(errors);-
2160 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlimport
2
2161 }-
2162 }
executed 9393 times by 123 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
9393
2163-
2164 return true;
executed 6816 times by 123 tests: return true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6816
2165}-
2166-
2167void QQmlTypeData::createTypeAndPropertyCaches(const QQmlRefPointer<QQmlTypeNameCache> &typeNameCache,-
2168 const QV4::CompiledData::ResolvedTypeReferenceMap &resolvedTypeCache)-
2169{-
2170 Q_ASSERT(m_compiledData);-
2171 m_compiledData->typeNameCache = typeNameCache;-
2172 m_compiledData->resolvedTypes = resolvedTypeCache;-
2173-
2174 QQmlEnginePrivate * const engine = QQmlEnginePrivate::get(typeLoader()->engine());-
2175-
2176 QQmlPendingGroupPropertyBindings pendingGroupPropertyBindings;-
2177-
2178 {-
2179 QQmlPropertyCacheCreator<QV4::CompiledData::CompilationUnit> propertyCacheCreator(&m_compiledData->propertyCaches,-
2180 &pendingGroupPropertyBindings,-
2181 engine, m_compiledData.data(), &m_importCache);-
2182 QQmlCompileError error = propertyCacheCreator.buildMetaObjects();-
2183 if (error.isSet()) {
error.isSet()Description
TRUEnever evaluated
FALSEevaluated 6526 times by 122 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
0-6526
2184 setError(error);-
2185 return;
never executed: return;
0
2186 }-
2187 }-
2188-
2189 QQmlPropertyCacheAliasCreator<QV4::CompiledData::CompilationUnit> aliasCreator(&m_compiledData->propertyCaches, m_compiledData.data());-
2190 aliasCreator.appendAliasPropertiesToMetaObjects();-
2191-
2192 pendingGroupPropertyBindings.resolveMissingPropertyCaches(engine, &m_compiledData->propertyCaches);-
2193}
executed 6526 times by 122 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6526
2194-
2195static bool addTypeReferenceChecksumsToHash(const QList<QQmlTypeData::TypeReference> &typeRefs, QCryptographicHash *hash, QQmlEngine *engine)-
2196{-
2197 for (const auto &typeRef: typeRefs) {-
2198 if (typeRef.typeData) {
typeRef.typeDataDescription
TRUEevaluated 29 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEnever evaluated
0-29
2199 const auto unit = typeRef.typeData->compilationUnit();-
2200 hash->addData(unit->data->md5Checksum, sizeof(unit->data->md5Checksum));-
2201 } else if (typeRef.type.isValid()) {
executed 29 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
typeRef.type.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0-29
2202 const auto propertyCache = QQmlEnginePrivate::get(engine)->cache(typeRef.type.metaObject());-
2203 bool ok = false;-
2204 hash->addData(propertyCache->checksum(&ok));-
2205 if (!ok)
!okDescription
TRUEnever evaluated
FALSEnever evaluated
0
2206 return false;
never executed: return false;
0
2207 }
never executed: end of block
0
2208 }
executed 29 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
29
2209 return true;
executed 55267 times by 141 tests: return true;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55267
2210}-
2211-
2212void QQmlTypeData::done()-
2213{-
2214 QDeferredCleanup cleanup([this]{-
2215 m_document.reset();-
2216 m_typeReferences.clear();-
2217 if (isError())
isError()Description
TRUEevaluated 214 times by 21 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
FALSEevaluated 54919 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
214-54919
2218 m_compiledData = nullptr;
executed 214 times by 21 tests: m_compiledData = nullptr;
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
  • tst_qtqmlmodules
214
2219 });
executed 55133 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55133
2220-
2221 if (isError())
isError()Description
TRUEevaluated 112 times by 13 tests
Evaluated by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEevaluated 55021 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
112-55021
2222 return;
executed 112 times by 13 tests: return;
Executed by:
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
112
2223-
2224 // Check all script dependencies for errors-
2225 for (int ii = 0; ii < m_scripts.count(); ++ii) {
ii < m_scripts.count()Description
TRUEevaluated 290 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 54995 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
290-54995
2226 const ScriptReference &script = m_scripts.at(ii);-
2227 Q_ASSERT(script.script->isCompleteOrError());-
2228 if (script.script->isError()) {
script.script->isError()Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 264 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
26-264
2229 QList<QQmlError> errors = script.script->errors();-
2230 QQmlError error;-
2231 error.setUrl(url());-
2232 error.setLine(script.location.line);-
2233 error.setColumn(script.location.column);-
2234 error.setDescription(QQmlTypeLoader::tr("Script %1 unavailable").arg(script.script->urlString()));-
2235 errors.prepend(error);-
2236 setError(errors);-
2237 return;
executed 26 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
26
2238 }-
2239 }
executed 264 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
264
2240-
2241 // Check all type dependencies for errors-
2242 for (auto it = m_resolvedTypes.constBegin(), end = m_resolvedTypes.constEnd(); it != end;
it != endDescription
TRUEevaluated 77501 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 54989 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54989-77501
2243 ++it) {-
2244 const TypeReference &type = *it;-
2245 Q_ASSERT(!type.typeData || type.typeData->isCompleteOrError());-
2246 if (type.typeData && type.typeData->isError()) {
type.typeData->isError()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquicktextedit
FALSEevaluated 898 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
6-898
2247 const QString typeName = stringAt(it.key());-
2248-
2249 QList<QQmlError> errors = type.typeData->errors();-
2250 QQmlError error;-
2251 error.setUrl(url());-
2252 error.setLine(type.location.line);-
2253 error.setColumn(type.location.column);-
2254 error.setDescription(QQmlTypeLoader::tr("Type %1 unavailable").arg(typeName));-
2255 errors.prepend(error);-
2256 setError(errors);-
2257 return;
executed 6 times by 2 tests: return;
Executed by:
  • tst_qqmltypeloader
  • tst_qquicktextedit
6
2258 }-
2259 }
executed 77495 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
77495
2260-
2261 // Check all composite singleton type dependencies for errors-
2262 for (int ii = 0; ii < m_compositeSingletons.count(); ++ii) {
ii < m_composi...letons.count()Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEevaluated 54989 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
24-54989
2263 const TypeReference &type = m_compositeSingletons.at(ii);-
2264 Q_ASSERT(!type.typeData || type.typeData->isCompleteOrError());-
2265 if (type.typeData && type.typeData->isError()) {
type.typeData->isError()Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-24
2266 QString typeName = type.type.qmlTypeName();-
2267-
2268 QList<QQmlError> errors = type.typeData->errors();-
2269 QQmlError error;-
2270 error.setUrl(url());-
2271 error.setLine(type.location.line);-
2272 error.setColumn(type.location.column);-
2273 error.setDescription(QQmlTypeLoader::tr("Type %1 unavailable").arg(typeName));-
2274 errors.prepend(error);-
2275 setError(errors);-
2276 return;
never executed: return;
0
2277 }-
2278 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
24
2279-
2280 QQmlRefPointer<QQmlTypeNameCache> typeNameCache;-
2281 QV4::CompiledData::ResolvedTypeReferenceMap resolvedTypeCache;-
2282 {-
2283 QQmlCompileError error = buildTypeResolutionCaches(&typeNameCache, &resolvedTypeCache);-
2284 if (error.isSet()) {
error.isSet()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 54987 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
2-54987
2285 setError(error);-
2286 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
2
2287 }-
2288 }-
2289-
2290 QQmlEngine *const engine = typeLoader()->engine();-
2291-
2292 const auto dependencyHasher = [engine, resolvedTypeCache, this](QCryptographicHash *hash) {-
2293 if (!resolvedTypeCache.addToHash(hash, engine))
!resolvedTypeC...(hash, engine)Description
TRUEnever evaluated
FALSEevaluated 55267 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
0-55267
2294 return false;
never executed: return false;
0
2295 return ::addTypeReferenceChecksumsToHash(m_compositeSingletons, hash, engine);
executed 55267 times by 141 tests: return ::addTypeReferenceChecksumsToHash(m_compositeSingletons, hash, engine);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55267
2296 };-
2297-
2298 // verify if any dependencies changed if we're using a cache-
2299 if (m_document.isNull() && !m_compiledData->verifyChecksum(dependencyHasher)) {
m_document.isNull()Description
TRUEevaluated 6814 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 48173 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
!m_compiledDat...endencyHasher)Description
TRUEevaluated 288 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 6526 times by 122 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
288-48173
2300 qCDebug(DBG_DISK_CACHE) << "Checksum mismatch for cached version of" << m_compiledData->fileName();
never executed: QMessageLogger(__FILE__, 2300, __PRETTY_FUNCTION__, DBG_DISK_CACHE().categoryName()).debug() << "Checksum mismatch for cached version of" << m_compiledData->fileName();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 288 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
0-288
2301 if (!loadFromSource())
!loadFromSource()Description
TRUEnever evaluated
FALSEevaluated 288 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
0-288
2302 return;
never executed: return;
0
2303 m_backupSourceCode = SourceCodeData();-
2304 m_compiledData = nullptr;-
2305 }
executed 288 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
288
2306-
2307 if (!m_document.isNull()) {
!m_document.isNull()Description
TRUEevaluated 48461 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 6526 times by 122 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6526-48461
2308 // Compile component-
2309 compile(typeNameCache, resolvedTypeCache, dependencyHasher);-
2310 } else {
executed 48461 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48461
2311 createTypeAndPropertyCaches(typeNameCache, resolvedTypeCache);-
2312 }
executed 6526 times by 122 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
6526
2313-
2314 if (isError())
isError()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
FALSEevaluated 54979 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
8-54979
2315 return;
executed 8 times by 2 tests: return;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
8
2316-
2317 {-
2318 QQmlEnginePrivate *const enginePrivate = QQmlEnginePrivate::get(engine);-
2319 {-
2320 // Sanity check property bindings-
2321 QQmlPropertyValidator validator(enginePrivate, m_importCache, m_compiledData);-
2322 QVector<QQmlCompileError> errors = validator.validate();-
2323 if (!errors.isEmpty()) {
!errors.isEmpty()Description
TRUEevaluated 60 times by 10 tests
Evaluated by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 54919 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
60-54919
2324 setError(errors);-
2325 return;
executed 60 times by 10 tests: return;
Executed by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
60
2326 }-
2327 }-
2328-
2329 m_compiledData->finalizeCompositeType(enginePrivate);-
2330 }-
2331-
2332 {-
2333 QQmlType type = QQmlMetaType::qmlType(finalUrl(), true);-
2334 if (m_compiledData && m_compiledData->data->flags & QV4::CompiledData::Unit::IsSingleton) {
m_compiledData...t::IsSingletonDescription
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEevaluated 54903 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
16-54903
2335 if (!type.isValid()) {
!type.isValid()Description
TRUEnever evaluated
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-16
2336 QQmlError error;-
2337 error.setDescription(QQmlTypeLoader::tr("No matching type found, pragma Singleton files cannot be used by QQmlComponent."));-
2338 setError(error);-
2339 return;
never executed: return;
0
2340 } else if (!type.isCompositeSingleton()) {
!type.isCompositeSingleton()Description
TRUEnever evaluated
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-16
2341 QQmlError error;-
2342 error.setDescription(QQmlTypeLoader::tr("pragma Singleton used with a non composite singleton type %1").arg(type.qmlTypeName()));-
2343 setError(error);-
2344 return;
never executed: return;
0
2345 }-
2346 } else {
executed 16 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
16
2347 // If the type is CompositeSingleton but there was no pragma Singleton in the-
2348 // QML file, lets report an error.-
2349 if (type.isValid() && type.isCompositeSingleton()) {
type.isValid()Description
TRUEevaluated 726 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
FALSEevaluated 54177 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
type.isCompositeSingleton()Description
TRUEnever evaluated
FALSEevaluated 726 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
0-54177
2350 QString typeName = type.qmlTypeName();-
2351 setError(QQmlTypeLoader::tr("qmldir defines type as singleton, but no pragma Singleton found in type %1.").arg(typeName));-
2352 return;
never executed: return;
0
2353 }-
2354 }
executed 54903 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54903
2355 }-
2356-
2357 {-
2358 // Collect imported scripts-
2359 m_compiledData->dependentScripts.reserve(m_scripts.count());-
2360 for (int scriptIndex = 0; scriptIndex < m_scripts.count(); ++scriptIndex) {
scriptIndex < ...cripts.count()Description
TRUEevaluated 264 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 54919 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
264-54919
2361 const QQmlTypeData::ScriptReference &script = m_scripts.at(scriptIndex);-
2362-
2363 QStringRef qualifier(&script.qualifier);-
2364 QString enclosingNamespace;-
2365-
2366 const int lastDotIndex = qualifier.lastIndexOf(QLatin1Char('.'));-
2367 if (lastDotIndex != -1) {
lastDotIndex != -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 260 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
4-260
2368 enclosingNamespace = qualifier.left(lastDotIndex).toString();-
2369 qualifier = qualifier.mid(lastDotIndex+1);-
2370 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
2371-
2372 m_compiledData->typeNameCache->add(qualifier.toString(), scriptIndex, enclosingNamespace);-
2373 QQmlRefPointer<QQmlScriptData> scriptData = script.script->scriptData();-
2374 m_compiledData->dependentScripts << scriptData;-
2375 }
executed 264 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
264
2376 }-
2377}
executed 54919 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54919
2378-
2379void QQmlTypeData::completed()-
2380{-
2381 // Notify callbacks-
2382 while (!m_callbacks.isEmpty()) {
!m_callbacks.isEmpty()Description
TRUEevaluated 134 times by 12 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 55131 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
134-55131
2383 TypeDataCallback *callback = m_callbacks.takeFirst();-
2384 callback->typeDataReady(this);-
2385 }
executed 134 times by 12 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
134
2386}
executed 55131 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55131
2387-
2388bool QQmlTypeData::loadImplicitImport()-
2389{-
2390 m_implicitImportLoaded = true; // Even if we hit an error, count as loaded (we'd just keep hitting the error)-
2391-
2392 m_importCache.setBaseUrl(finalUrl(), finalUrlString());-
2393-
2394 QQmlImportDatabase *importDatabase = typeLoader()->importDatabase();-
2395 // For local urls, add an implicit import "." as most overridden lookup.-
2396 // This will also trigger the loading of the qmldir and the import of any native-
2397 // types from available plugins.-
2398 QList<QQmlError> implicitImportErrors;-
2399 m_importCache.addImplicitImport(importDatabase, &implicitImportErrors);-
2400-
2401 if (!implicitImportErrors.isEmpty()) {
!implicitImpor...rors.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 55049 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
4-55049
2402 setError(implicitImportErrors);-
2403 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
4
2404 }-
2405-
2406 return true;
executed 55049 times by 141 tests: return true;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55049
2407}-
2408-
2409void QQmlTypeData::dataReceived(const SourceCodeData &data)-
2410{-
2411 m_backupSourceCode = data;-
2412-
2413 if (tryLoadFromDiskCache())
tryLoadFromDiskCache()Description
TRUEevaluated 6826 times by 124 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 48285 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
6826-48285
2414 return;
executed 6826 times by 124 tests: return;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
6826
2415-
2416 if (isError())
isError()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlimport
FALSEevaluated 48283 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
2-48283
2417 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qqmlimport
2
2418-
2419 if (!m_backupSourceCode.exists() || m_backupSourceCode.isEmpty()) {
!m_backupSourceCode.exists()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickloader
FALSEevaluated 48275 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
m_backupSourceCode.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEevaluated 48273 times by 140 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
2-48275
2420 if (m_cachedUnitStatus == QQmlMetaType::CachedUnitLookupError::VersionMismatch)
m_cachedUnitSt...ersionMismatchDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickloader
2-8
2421 setError(QQmlTypeLoader::tr("File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile"));
executed 2 times by 1 test: setError(QQmlTypeLoader::tr("File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile"));
Executed by:
  • tst_qmlcachegen
2
2422 else if (!m_backupSourceCode.exists())
!m_backupSourceCode.exists()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickloader
FALSEnever evaluated
0-8
2423 setError(QQmlTypeLoader::tr("No such file or directory"));
executed 8 times by 2 tests: setError(QQmlTypeLoader::tr("No such file or directory"));
Executed by:
  • tst_qqmlecmascript
  • tst_qquickloader
8
2424 else-
2425 setError(QQmlTypeLoader::tr("File is empty"));
never executed: setError(QQmlTypeLoader::tr("File is empty"));
0
2426 return;
executed 10 times by 3 tests: return;
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qquickloader
10
2427 }-
2428-
2429 if (!loadFromSource())
!loadFromSource()Description
TRUEevaluated 32 times by 5 tests
Evaluated by:
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
FALSEevaluated 48241 times by 140 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
32-48241
2430 return;
executed 32 times by 5 tests: return;
Executed by:
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
32
2431-
2432 continueLoadFromIR();-
2433}
executed 48241 times by 140 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
48241
2434-
2435void QQmlTypeData::initializeFromCachedUnit(const QV4::CompiledData::Unit *unit)-
2436{-
2437 m_document.reset(new QmlIR::Document(isDebugging()));-
2438 QmlIR::IRLoader loader(unit, m_document.data());-
2439 loader.load();-
2440 m_document->jsModule.fileName = urlString();-
2441 m_document->jsModule.finalUrl = finalUrlString();-
2442 m_document->javaScriptCompilationUnit.adopt(new QV4::CompiledData::CompilationUnit(unit));-
2443 continueLoadFromIR();-
2444}
executed 14 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
14
2445-
2446bool QQmlTypeData::loadFromSource()-
2447{-
2448 m_document.reset(new QmlIR::Document(isDebugging()));-
2449 m_document->jsModule.sourceTimeStamp = m_backupSourceCode.sourceTimeStamp();-
2450 QQmlEngine *qmlEngine = typeLoader()->engine();-
2451 QmlIR::IRBuilder compiler(qmlEngine->handle()->v8Engine->illegalNames());-
2452-
2453 QString sourceError;-
2454 const QString source = m_backupSourceCode.readAll(&sourceError);-
2455 if (!sourceError.isEmpty()) {
!sourceError.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 48561 times by 140 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
0-48561
2456 setError(sourceError);-
2457 return false;
never executed: return false;
0
2458 }-
2459-
2460 if (!compiler.generateFromQml(source, finalUrlString(), m_document.data())) {
!compiler.gene...cument.data())Description
TRUEevaluated 32 times by 5 tests
Evaluated by:
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
FALSEevaluated 48529 times by 140 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
32-48529
2461 QList<QQmlError> errors;-
2462 errors.reserve(compiler.errors.count());-
2463 for (const QQmlJS::DiagnosticMessage &msg : qAsConst(compiler.errors)) {-
2464 QQmlError e;-
2465 e.setUrl(url());-
2466 e.setLine(msg.loc.startLine);-
2467 e.setColumn(msg.loc.startColumn);-
2468 e.setDescription(msg.message);-
2469 errors << e;-
2470 }
executed 44 times by 4 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
44
2471 setError(errors);-
2472 return false;
executed 32 times by 5 tests: return false;
Executed by:
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickloader
  • tst_qtqmlmodules
32
2473 }-
2474 return true;
executed 48529 times by 140 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
48529
2475}-
2476-
2477void QQmlTypeData::restoreIR(QQmlRefPointer<QV4::CompiledData::CompilationUnit> unit)-
2478{-
2479 m_document.reset(new QmlIR::Document(isDebugging()));-
2480 QmlIR::IRLoader loader(unit->data, m_document.data());-
2481 loader.load();-
2482 m_document->jsModule.fileName = urlString();-
2483 m_document->jsModule.finalUrl = finalUrlString();-
2484 m_document->javaScriptCompilationUnit = unit;-
2485 continueLoadFromIR();-
2486}
executed 10 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
10
2487-
2488void QQmlTypeData::continueLoadFromIR()-
2489{-
2490 m_typeReferences.collectFromObjects(m_document->objects.constBegin(), m_document->objects.constEnd());-
2491 m_importCache.setBaseUrl(finalUrl(), finalUrlString());-
2492-
2493 // For remote URLs, we don't delay the loading of the implicit import-
2494 // because the loading probably requires an asynchronous fetch of the-
2495 // qmldir (so we can't load it just in time).-
2496 if (!finalUrl().scheme().isEmpty()) {
!finalUrl().scheme().isEmpty()Description
TRUEevaluated 2803 times by 128 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 45462 times by 47 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
2803-45462
2497 QUrl qmldirUrl = finalUrl().resolved(QUrl(QLatin1String("qmldir")));-
2498 if (!QQmlImports::isLocal(qmldirUrl)) {
!QQmlImports::...cal(qmldirUrl)Description
TRUEevaluated 58 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2745 times by 128 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
58-2745
2499 if (!loadImplicitImport())
!loadImplicitImport()Description
TRUEnever evaluated
FALSEevaluated 58 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
0-58
2500 return;
never executed: return;
0
2501 // This qmldir is for the implicit import-
2502 QQmlJS::MemoryPool *pool = m_document->jsParserEngine.pool();-
2503 auto implicitImport = pool->New<QV4::CompiledData::Import>();-
2504 implicitImport->uriIndex = m_document->registerString(QLatin1String("."));-
2505 implicitImport->qualifierIndex = 0; // empty string-
2506 implicitImport->majorVersion = -1;-
2507 implicitImport->minorVersion = -1;-
2508 QList<QQmlError> errors;-
2509-
2510 if (!fetchQmldir(qmldirUrl, implicitImport, 1, &errors)) {
!fetchQmldir(q...t, 1, &errors)Description
TRUEnever evaluated
FALSEevaluated 58 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
0-58
2511 setError(errors);-
2512 return;
never executed: return;
0
2513 }-
2514 }
executed 58 times by 7 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
58
2515 }
executed 2803 times by 128 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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
2803
2516-
2517 QList<QQmlError> errors;-
2518-
2519 for (const QV4::CompiledData::Import *import : qAsConst(m_document->imports)) {-
2520 if (!addImport(import, &errors)) {
!addImport(import, &errors)Description
TRUEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEevaluated 49118 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
24-49118
2521 Q_ASSERT(errors.size());-
2522 QQmlError error(errors.takeFirst());-
2523 error.setUrl(m_importCache.baseUrl());-
2524 error.setLine(import->location.line);-
2525 error.setColumn(import->location.column);-
2526 errors.prepend(error); // put it back on the list after filling out information.-
2527 setError(errors);-
2528 return;
executed 24 times by 3 tests: return;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
24
2529 }-
2530 }
executed 49118 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
49118
2531}
executed 48241 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48241
2532-
2533void QQmlTypeData::allDependenciesDone()-
2534{-
2535 QQmlTypeLoader::Blob::allDependenciesDone();-
2536-
2537 if (!m_typesResolved) {
!m_typesResolvedDescription
TRUEevaluated 55057 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
16-55057
2538 // Check that all imports were resolved-
2539 QList<QQmlError> errors;-
2540 QHash<const QV4::CompiledData::Import *, int>::const_iterator it = m_unresolvedImports.constBegin(), end = m_unresolvedImports.constEnd();-
2541 for ( ; it != end; ++it) {
it != endDescription
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
FALSEevaluated 55057 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
10-55057
2542 if (*it == 0) {
*it == 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
4-6
2543 // This import was not resolved-
2544 for (auto keyIt = m_unresolvedImports.keyBegin(),-
2545 keyEnd = m_unresolvedImports.keyEnd();-
2546 keyIt != keyEnd; ++keyIt) {
keyIt != keyEndDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
4
2547 const QV4::CompiledData::Import *import = *keyIt;-
2548 QQmlError error;-
2549 error.setDescription(QQmlTypeLoader::tr("module \"%1\" is not installed").arg(stringAt(import->uriIndex)));-
2550 error.setUrl(m_importCache.baseUrl());-
2551 error.setLine(import->location.line);-
2552 error.setColumn(import->location.column);-
2553 errors.prepend(error);-
2554 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
4
2555 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
4
2556 }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
10
2557 if (errors.size()) {
errors.size()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
FALSEevaluated 55053 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
4-55053
2558 setError(errors);-
2559 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
4
2560 }-
2561-
2562 resolveTypes();-
2563 m_typesResolved = true;-
2564 }
executed 55053 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55053
2565}
executed 55069 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55069
2566-
2567void QQmlTypeData::downloadProgressChanged(qreal p)-
2568{-
2569 for (int ii = 0; ii < m_callbacks.count(); ++ii) {
ii < m_callbacks.count()Description
TRUEevaluated 117 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 118 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
117-118
2570 TypeDataCallback *callback = m_callbacks.at(ii);-
2571 callback->typeDataProgress(this, p);-
2572 }
executed 117 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
117
2573}
executed 118 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
118
2574-
2575QString QQmlTypeData::stringAt(int index) const-
2576{-
2577 if (m_compiledData)
m_compiledDataDescription
TRUEevaluated 42606 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 152183 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
42606-152183
2578 return m_compiledData->stringAt(index);
executed 42606 times by 123 tests: return m_compiledData->stringAt(index);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
42606
2579 return m_document->jsGenerator.stringTable.stringForIndex(index);
executed 152183 times by 141 tests: return m_document->jsGenerator.stringTable.stringForIndex(index);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
152183
2580}-
2581-
2582void QQmlTypeData::compile(const QQmlRefPointer<QQmlTypeNameCache> &typeNameCache, const QV4::CompiledData::ResolvedTypeReferenceMap &resolvedTypeCache,-
2583 const QV4::CompiledData::DependentTypesHasher &dependencyHasher)-
2584{-
2585 Q_ASSERT(m_compiledData.isNull());-
2586-
2587 const bool typeRecompilation = m_document && m_document->javaScriptCompilationUnit && m_document->javaScriptCompilationUnit->data->flags & QV4::CompiledData::Unit::PendingTypeCompilation;
m_document->ja...ypeCompilationDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qmlcachegen
FALSEnever evaluated
0-24
2588-
2589 QQmlEnginePrivate * const enginePrivate = QQmlEnginePrivate::get(typeLoader()->engine());-
2590 QQmlTypeCompiler compiler(enginePrivate, this, m_document.data(), typeNameCache, resolvedTypeCache, dependencyHasher);-
2591 m_compiledData = compiler.compile();-
2592 if (!m_compiledData) {
!m_compiledDataDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
FALSEevaluated 48453 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
8-48453
2593 setError(compiler.compilationErrors());-
2594 return;
executed 8 times by 2 tests: return;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
8
2595 }-
2596-
2597 const bool trySaveToDisk = (!disableDiskCache() || forceDiskCache()) && !m_document->jsModule.debugMode && !typeRecompilation;
!disableDiskCache()Description
TRUEevaluated 48443 times by 140 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
forceDiskCache()Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickfolderlistmodel
!m_document->j...dule.debugModeDescription
TRUEevaluated 48425 times by 138 tests
Evaluated 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qv4debugger
!typeRecompilationDescription
TRUEevaluated 48401 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qmlcachegen
0-48443
2598 if (trySaveToDisk) {
trySaveToDiskDescription
TRUEevaluated 48401 times by 137 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 52 times by 4 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmldebugjs
  • tst_qquickfolderlistmodel
  • tst_qv4debugger
52-48401
2599 QString errorString;-
2600 if (m_compiledData->saveToDisk(url(), &errorString)) {
m_compiledData... &errorString)Description
TRUEevaluated 2628 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 45773 times by 57 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
2628-45773
2601 QString error;-
2602 if (!m_compiledData->loadFromDisk(url(), m_backupSourceCode.sourceTimeStamp(), &error)) {
!m_compiledDat...amp(), &error)Description
TRUEevaluated 288 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 2340 times by 123 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
288-2340
2603 // ignore error, keep using the in-memory compilation unit.-
2604 }
executed 288 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
288
2605 } else {
executed 2628 times by 123 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
2628
2606 qCDebug(DBG_DISK_CACHE) << "Error saving cached version of" << m_compiledData->fileName() << "to disk:" << errorString;
never executed: QMessageLogger(__FILE__, 2606, __PRETTY_FUNCTION__, DBG_DISK_CACHE().categoryName()).debug() << "Error saving cached version of" << m_compiledData->fileName() << "to disk:" << errorString;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 45773 times by 57 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
0-45773
2607 }
executed 45773 times by 57 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45773
2608 }-
2609}
executed 48453 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48453
2610-
2611void QQmlTypeData::resolveTypes()-
2612{-
2613 // Add any imported scripts to our resolved set-
2614 const auto resolvedScripts = m_importCache.resolvedScripts();-
2615 for (const QQmlImports::ScriptReference &script : resolvedScripts) {-
2616 QQmlRefPointer<QQmlScriptBlob> blob = typeLoader()->getScript(script.location);-
2617 addDependency(blob.data());-
2618-
2619 ScriptReference ref;-
2620 //ref.location = ...-
2621 if (!script.qualifier.isEmpty())
!script.qualifier.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
4
2622 {-
2623 ref.qualifier = script.qualifier + QLatin1Char('.') + script.nameSpace;-
2624 // Add a reference to the enclosing namespace-
2625 m_namespaces.insert(script.qualifier);-
2626 } else {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
2627 ref.qualifier = script.nameSpace;-
2628 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
2629-
2630 ref.script = blob;-
2631 m_scripts << ref;-
2632 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
8
2633-
2634 // Lets handle resolved composite singleton types-
2635 const auto resolvedCompositeSingletons = m_importCache.resolvedCompositeSingletons();-
2636 for (const QQmlImports::CompositeSingletonReference &csRef : resolvedCompositeSingletons) {-
2637 TypeReference ref;-
2638 QString typeName;-
2639 if (!csRef.prefix.isEmpty()) {
!csRef.prefix.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-24
2640 typeName = csRef.prefix + QLatin1Char('.') + csRef.typeName;-
2641 // Add a reference to the enclosing namespace-
2642 m_namespaces.insert(csRef.prefix);-
2643 } else {
never executed: end of block
0
2644 typeName = csRef.typeName;-
2645 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
24
2646-
2647 int majorVersion = csRef.majorVersion > -1 ? csRef.majorVersion : -1;
csRef.majorVersion > -1Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEnever evaluated
0-24
2648 int minorVersion = csRef.minorVersion > -1 ? csRef.minorVersion : -1;
csRef.minorVersion > -1Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEnever evaluated
0-24
2649-
2650 if (!resolveType(typeName, majorVersion, minorVersion, ref, -1, -1, true,
!resolveType(t...SingletonType)Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-24
2651 QQmlType::CompositeSingletonType))
!resolveType(t...SingletonType)Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-24
2652 return;
never executed: return;
0
2653-
2654 if (ref.type.isCompositeSingleton()) {
ref.type.isCom...iteSingleton()Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
FALSEnever evaluated
0-24
2655 ref.typeData = typeLoader()->getType(ref.type.sourceUrl());-
2656 if (ref.typeData->status() == QQmlDataBlob::ResolvingDependencies) {
ref.typeData->...ngDependenciesDescription
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
0-24
2657 // TODO: give an error message? If so, we should record and show the path of the cycle.-
2658 continue;
never executed: continue;
0
2659 }-
2660 addDependency(ref.typeData.data());-
2661 ref.prefix = csRef.prefix;-
2662-
2663 m_compositeSingletons << ref;-
2664 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
24
2665 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
24
2666-
2667 std::stable_sort(m_compositeSingletons.begin(), m_compositeSingletons.end(), [](const TypeReference &lhs, const TypeReference &rhs){-
2668 return lhs.qualifiedName() < rhs.qualifiedName();
never executed: return lhs.qualifiedName() < rhs.qualifiedName();
0
2669 });-
2670-
2671 for (QV4::CompiledData::TypeReferenceMap::ConstIterator unresolvedRef = m_typeReferences.constBegin(), end = m_typeReferences.constEnd();-
2672 unresolvedRef != end; ++unresolvedRef) {
unresolvedRef != endDescription
TRUEevaluated 77579 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 55021 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55021-77579
2673-
2674 TypeReference ref; // resolved reference-
2675-
2676 const bool reportErrors = unresolvedRef->errorWhenNotFound;-
2677-
2678 int majorVersion = -1;-
2679 int minorVersion = -1;-
2680-
2681 const QString name = stringAt(unresolvedRef.key());-
2682-
2683 if (!resolveType(name, majorVersion, minorVersion, ref, unresolvedRef->location.line,
!resolveType(n...istrationType)Description
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEevaluated 77547 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
32-77547
2684 unresolvedRef->location.column, reportErrors,
!resolveType(n...istrationType)Description
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEevaluated 77547 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
32-77547
2685 QQmlType::AnyRegistrationType) && reportErrors)
!resolveType(n...istrationType)Description
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEevaluated 77547 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
reportErrorsDescription
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEnever evaluated
0-77547
2686 return;
executed 32 times by 6 tests: return;
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
32
2687-
2688 if (ref.type.isComposite()) {
ref.type.isComposite()Description
TRUEevaluated 910 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
FALSEevaluated 76637 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
910-76637
2689 ref.typeData = typeLoader()->getType(ref.type.sourceUrl());-
2690 addDependency(ref.typeData.data());-
2691 }
executed 910 times by 40 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
910
2692 ref.majorVersion = majorVersion;-
2693 ref.minorVersion = minorVersion;-
2694-
2695 ref.location.line = unresolvedRef->location.line;-
2696 ref.location.column = unresolvedRef->location.column;-
2697-
2698 ref.needsCreation = unresolvedRef->needsCreation;-
2699-
2700 m_resolvedTypes.insert(unresolvedRef.key(), ref);-
2701 }
executed 77547 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
77547
2702-
2703 // ### this allows enums to work without explicit import or instantiation of the type-
2704 if (!m_implicitImportLoaded)
!m_implicitImportLoadedDescription
TRUEevaluated 54373 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 648 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
648-54373
2705 loadImplicitImport();
executed 54373 times by 141 tests: loadImplicitImport();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54373
2706}
executed 55021 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
55021
2707-
2708QQmlCompileError QQmlTypeData::buildTypeResolutionCaches(-
2709 QQmlRefPointer<QQmlTypeNameCache> *typeNameCache,-
2710 QV4::CompiledData::ResolvedTypeReferenceMap *resolvedTypeCache-
2711 ) const-
2712{-
2713 typeNameCache->adopt(new QQmlTypeNameCache(m_importCache));-
2714-
2715 for (const QString &ns: m_namespaces)-
2716 (*typeNameCache)->add(ns);
executed 4 times by 1 test: (*typeNameCache)->add(ns);
Executed by:
  • tst_qqmlecmascript
4
2717-
2718 // Add any Composite Singletons that were used to the import cache-
2719 for (const QQmlTypeData::TypeReference &singleton: m_compositeSingletons)-
2720 (*typeNameCache)->add(singleton.type.qmlTypeName(), singleton.type.sourceUrl(), singleton.prefix);
executed 24 times by 4 tests: (*typeNameCache)->add(singleton.type.qmlTypeName(), singleton.type.sourceUrl(), singleton.prefix);
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
24
2721-
2722 m_importCache.populateCache(typeNameCache->data());-
2723-
2724 QQmlEnginePrivate * const engine = QQmlEnginePrivate::get(typeLoader()->engine());-
2725-
2726 for (auto resolvedType = m_resolvedTypes.constBegin(), end = m_resolvedTypes.constEnd(); resolvedType != end; ++resolvedType) {
resolvedType != endDescription
TRUEevaluated 77481 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 54987 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54987-77481
2727 QScopedPointer<QV4::CompiledData::ResolvedTypeReference> ref(new QV4::CompiledData::ResolvedTypeReference);-
2728 QQmlType qmlType = resolvedType->type;-
2729 if (resolvedType->typeData) {
resolvedType->typeDataDescription
TRUEevaluated 894 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
FALSEevaluated 76587 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
894-76587
2730 if (resolvedType->needsCreation && qmlType.isCompositeSingleton()) {
resolvedType->needsCreationDescription
TRUEevaluated 876 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEevaluated 18 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlenginecleanup
  • tst_qqmlproperty
  • tst_qquickloader
qmlType.isCompositeSingleton()Description
TRUEnever evaluated
FALSEevaluated 876 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
0-876
2731 return QQmlCompileError(resolvedType->location, tr("Composite Singleton Type %1 is not creatable.").arg(qmlType.qmlTypeName()));
never executed: return QQmlCompileError(resolvedType->location, tr("Composite Singleton Type %1 is not creatable.").arg(qmlType.qmlTypeName()));
0
2732 }-
2733 ref->compilationUnit = resolvedType->typeData->compilationUnit();-
2734 } else if (qmlType.isValid()) {
executed 894 times by 40 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • ...
qmlType.isValid()Description
TRUEevaluated 76587 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
0-76587
2735 ref->type = qmlType;-
2736 Q_ASSERT(ref->type.isValid());-
2737-
2738 if (resolvedType->needsCreation && !ref->type.isCreatable()) {
resolvedType->needsCreationDescription
TRUEevaluated 74631 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 1956 times by 65 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • ...
!ref->type.isCreatable()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 74629 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
2-74631
2739 QString reason = ref->type.noCreationReason();-
2740 if (reason.isEmpty())
reason.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-2
2741 reason = tr("Element is not creatable.");
never executed: reason = tr("Element is not creatable.");
0
2742 return QQmlCompileError(resolvedType->location, reason);
executed 2 times by 1 test: return QQmlCompileError(resolvedType->location, reason);
Executed by:
  • tst_qqmlecmascript
2
2743 }-
2744-
2745 if (ref->type.containsRevisionedAttributes()) {
ref->type.cont...edAttributes()Description
TRUEevaluated 62981 times by 133 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 13604 times by 116 tests
Evaluated by:
  • tst_bindingdependencyapi
  • 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
13604-62981
2746 ref->typePropertyCache = engine->cache(ref->type,-
2747 resolvedType->minorVersion);-
2748 }
executed 62981 times by 133 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
62981
2749 }
executed 76585 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
76585
2750 ref->majorVersion = resolvedType->majorVersion;-
2751 ref->minorVersion = resolvedType->minorVersion;-
2752 ref->doDynamicTypeCheck();-
2753 resolvedTypeCache->insert(resolvedType.key(), ref.take());-
2754 }
executed 77479 times by 141 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
77479
2755 QQmlCompileError noError;-
2756 return noError;
executed 54987 times by 141 tests: return noError;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
54987
2757}-
2758-
2759bool QQmlTypeData::resolveType(const QString &typeName, int &majorVersion, int &minorVersion,-
2760 TypeReference &ref, int lineNumber, int columnNumber,-
2761 bool reportErrors, QQmlType::RegistrationType registrationType)-
2762{-
2763 QQmlImportNamespace *typeNamespace = nullptr;-
2764 QList<QQmlError> errors;-
2765-
2766 bool typeFound = m_importCache.resolveType(typeName, &ref.type, &majorVersion, &minorVersion,-
2767 &typeNamespace, &errors, registrationType);-
2768 if (!typeNamespace && !typeFound && !m_implicitImportLoaded) {
!typeNamespaceDescription
TRUEevaluated 77603 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
!typeFoundDescription
TRUEevaluated 626 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 76977 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
!m_implicitImportLoadedDescription
TRUEevaluated 622 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquicktextedit
0-77603
2769 // Lazy loading of implicit import-
2770 if (loadImplicitImport()) {
loadImplicitImport()Description
TRUEevaluated 618 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
4-618
2771 // Try again to find the type-
2772 errors.clear();-
2773 typeFound = m_importCache.resolveType(typeName, &ref.type, &majorVersion, &minorVersion,-
2774 &typeNamespace, &errors, registrationType);-
2775 } else {
executed 618 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
618
2776 return false; //loadImplicitImport() hit an error, and called setError already
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
4
2777 }-
2778 }-
2779-
2780 if ((!typeFound || typeNamespace) && reportErrors) {
!typeFoundDescription
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEevaluated 77571 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
typeNamespaceDescription
TRUEnever evaluated
FALSEevaluated 77571 times by 141 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
reportErrorsDescription
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEnever evaluated
0-77571
2781 // Known to not be a type:-
2782 // - known to be a namespace (Namespace {})-
2783 // - type with unknown namespace (UnknownNamespace.SomeType {})-
2784 QQmlError error;-
2785 if (typeNamespace) {
typeNamespaceDescription
TRUEnever evaluated
FALSEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
0-28
2786 error.setDescription(QQmlTypeLoader::tr("Namespace %1 cannot be used as a type").arg(typeName));-
2787 } else {
never executed: end of block
0
2788 if (errors.size()) {
errors.size()Description
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEnever evaluated
0-28
2789 error = errors.takeFirst();-
2790 } else {
executed 28 times by 6 tests: end of block
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
28
2791 // this should not be possible!-
2792 // Description should come from error provided by addImport() function.-
2793 error.setDescription(QQmlTypeLoader::tr("Unreported error adding script import to import database"));-
2794 }
never executed: end of block
0
2795 error.setUrl(m_importCache.baseUrl());-
2796 error.setDescription(QQmlTypeLoader::tr("%1 %2").arg(typeName).arg(error.description()));-
2797 }
executed 28 times by 6 tests: end of block
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
28
2798-
2799 if (lineNumber != -1)
lineNumber != -1Description
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEnever evaluated
0-28
2800 error.setLine(lineNumber);
executed 28 times by 6 tests: error.setLine(lineNumber);
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
28
2801 if (columnNumber != -1)
columnNumber != -1Description
TRUEevaluated 28 times by 6 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
FALSEnever evaluated
0-28
2802 error.setColumn(columnNumber);
executed 28 times by 6 tests: error.setColumn(columnNumber);
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
28
2803-
2804 errors.prepend(error);-
2805 setError(errors);-
2806 return false;
executed 28 times by 6 tests: return false;
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquicktextedit
  • tst_qtqmlmodules
28
2807 }-
2808-
2809 return true;
executed 77571 times by 141 tests: return true;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
77571
2810}-
2811-
2812void QQmlTypeData::scriptImported(const QQmlRefPointer<QQmlScriptBlob> &blob, const QV4::CompiledData::Location &location, const QString &qualifier, const QString &/*nameSpace*/)-
2813{-
2814 ScriptReference ref;-
2815 ref.script = blob;-
2816 ref.location = location;-
2817 ref.qualifier = qualifier;-
2818-
2819 m_scripts << ref;-
2820}
executed 282 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
282
2821-
2822QQmlScriptData::QQmlScriptData()-
2823 : typeNameCache(nullptr)-
2824 , m_loaded(false)-
2825 , m_program(nullptr)-
2826{-
2827}
executed 260 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
260
2828-
2829QQmlScriptData::~QQmlScriptData()-
2830{-
2831 delete m_program;-
2832}
executed 260 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
260
2833-
2834void QQmlScriptData::initialize(QQmlEngine *engine)-
2835{-
2836 Q_ASSERT(!m_program);-
2837 Q_ASSERT(engine);-
2838 Q_ASSERT(!hasEngine());-
2839-
2840 QV4::ExecutionEngine *v4 = engine->handle();-
2841-
2842 m_program = new QV4::Script(v4, nullptr, m_precompiledScript);-
2843-
2844 addToEngine(engine);-
2845-
2846 addref();-
2847}
executed 250 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
250
2848-
2849QV4::ReturnedValue QQmlScriptData::scriptValueForContext(QQmlContextData *parentCtxt)-
2850{-
2851 if (m_loaded)
m_loadedDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
FALSEevaluated 282 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
8-282
2852 return m_value.value();
executed 8 times by 2 tests: return m_value.value();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
8
2853-
2854 Q_ASSERT(parentCtxt && parentCtxt->engine);-
2855 QQmlEnginePrivate *ep = QQmlEnginePrivate::get(parentCtxt->engine);-
2856 QV4::ExecutionEngine *v4 = parentCtxt->engine->handle();-
2857 QV4::Scope scope(v4);-
2858-
2859 bool shared = m_precompiledScript->data->flags & QV4::CompiledData::Unit::IsSharedLibrary;-
2860-
2861 QQmlContextData *effectiveCtxt = parentCtxt;-
2862 if (shared)
sharedDescription
TRUEevaluated 62 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 220 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
62-220
2863 effectiveCtxt = nullptr;
executed 62 times by 7 tests: effectiveCtxt = nullptr;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
62
2864-
2865 // Create the script context if required-
2866 QQmlContextDataRef ctxt(new QQmlContextData);-
2867 ctxt->isInternal = true;-
2868 ctxt->isJSContext = true;-
2869 if (shared)
sharedDescription
TRUEevaluated 62 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 220 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
62-220
2870 ctxt->isPragmaLibraryContext = true;
executed 62 times by 7 tests: ctxt->isPragmaLibraryContext = true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
62
2871 else-
2872 ctxt->isPragmaLibraryContext = parentCtxt->isPragmaLibraryContext;
executed 220 times by 8 tests: ctxt->isPragmaLibraryContext = parentCtxt->isPragmaLibraryContext;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
220
2873 ctxt->baseUrl = url;-
2874 ctxt->baseUrlString = urlString;-
2875-
2876 // For backward compatibility, if there are no imports, we need to use the-
2877 // imports from the parent context. See QTBUG-17518.-
2878 if (!typeNameCache->isEmpty()) {
!typeNameCache->isEmpty()Description
TRUEevaluated 112 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
FALSEevaluated 170 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
112-170
2879 ctxt->imports = typeNameCache;-
2880 } else if (effectiveCtxt) {
executed 112 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
effectiveCtxtDescription
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
FALSEevaluated 56 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
56-114
2881 ctxt->imports = effectiveCtxt->imports;-
2882 ctxt->importedScripts = effectiveCtxt->importedScripts;-
2883 }
executed 114 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
114
2884-
2885 if (effectiveCtxt) {
effectiveCtxtDescription
TRUEevaluated 220 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
FALSEevaluated 62 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
62-220
2886 ctxt->setParent(effectiveCtxt);-
2887 } else {
executed 220 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
220
2888 ctxt->engine = parentCtxt->engine; // Fix for QTBUG-21620-
2889 }
executed 62 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
62
2890-
2891 QV4::ScopedObject scriptsArray(scope);-
2892 if (ctxt->importedScripts.isNullOrUndefined()) {
ctxt->imported...lOrUndefined()Description
TRUEevaluated 168 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 114 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
114-168
2893 scriptsArray = v4->newArrayObject(scripts.count());-
2894 ctxt->importedScripts.set(v4, scriptsArray);-
2895 } else {
executed 168 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
168
2896 scriptsArray = ctxt->importedScripts.valueRef();-
2897 }
executed 114 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
114
2898 QV4::ScopedValue v(scope);-
2899 for (int ii = 0; ii < scripts.count(); ++ii)
ii < scripts.count()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
FALSEevaluated 282 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
28-282
2900 scriptsArray->put(ii, (v = scripts.at(ii)->scriptData()->scriptValueForContext(ctxt)));
executed 28 times by 2 tests: scriptsArray->put(ii, (v = scripts.at(ii)->scriptData()->scriptValueForContext(ctxt)));
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
28
2901-
2902 if (!hasEngine())
!hasEngine()Description
TRUEevaluated 250 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
32-250
2903 initialize(parentCtxt->engine);
executed 250 times by 13 tests: initialize(parentCtxt->engine);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
250
2904-
2905 if (!m_program) {
!m_programDescription
TRUEnever evaluated
FALSEevaluated 282 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-282
2906 if (shared)
sharedDescription
TRUEnever evaluated
FALSEnever evaluated
0
2907 m_loaded = true;
never executed: m_loaded = true;
0
2908 return QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
0
2909 }-
2910-
2911 QV4::Scoped<QV4::QmlContext> qmlContext(scope, QV4::QmlContext::create(v4->rootContext(), ctxt, nullptr));-
2912-
2913 m_program->qmlContext.set(scope.engine, qmlContext);-
2914 m_program->run();-
2915 m_program->qmlContext.clear();-
2916 if (scope.engine->hasException) {
scope.engine->hasExceptionDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 280 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2-280
2917 QQmlError error = scope.engine->catchExceptionAsQmlError();-
2918 if (error.isValid())
error.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-2
2919 ep->warning(error);
executed 2 times by 1 test: ep->warning(error);
Executed by:
  • tst_qqmlecmascript
2
2920 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
2921-
2922 QV4::ScopedValue retval(scope, qmlContext->d()->qml());-
2923 if (shared) {
sharedDescription
TRUEevaluated 62 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 220 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
62-220
2924 m_value.set(scope.engine, retval);-
2925 m_loaded = true;-
2926 }
executed 62 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
62
2927-
2928 return retval->asReturnedValue();
executed 282 times by 13 tests: return retval->asReturnedValue();
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
282
2929}-
2930-
2931void QQmlScriptData::clear()-
2932{-
2933 if (typeNameCache) {
typeNameCacheDescription
TRUEevaluated 250 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
0-250
2934 typeNameCache->release();-
2935 typeNameCache = nullptr;-
2936 }
executed 250 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
250
2937-
2938 scripts.clear();-
2939-
2940 // An addref() was made when the QQmlCleanup was added to the engine.-
2941 release();-
2942}
executed 250 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
250
2943-
2944QQmlScriptBlob::QQmlScriptBlob(const QUrl &url, QQmlTypeLoader *loader)-
2945: QQmlTypeLoader::Blob(url, JavaScriptFile, loader)-
2946{-
2947}
executed 286 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
286
2948-
2949QQmlScriptBlob::~QQmlScriptBlob()-
2950{-
2951}-
2952-
2953QQmlRefPointer<QQmlScriptData> QQmlScriptBlob::scriptData() const-
2954{-
2955 return m_scriptData;
executed 292 times by 13 tests: return m_scriptData;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
292
2956}-
2957-
2958void QQmlScriptBlob::dataReceived(const SourceCodeData &data)-
2959{-
2960 if (!disableDiskCache() || forceDiskCache()) {
!disableDiskCache()Description
TRUEevaluated 282 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
forceDiskCache()Description
TRUEnever evaluated
FALSEnever evaluated
0-282
2961 QQmlRefPointer<QV4::CompiledData::CompilationUnit> unit = QV4::Compiler::Codegen::createUnitForLoading();-
2962 QString error;-
2963 if (unit->loadFromDisk(url(), data.sourceTimeStamp(), &error)) {
unit->loadFrom...amp(), &error)Description
TRUEevaluated 166 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
116-166
2964 initializeFromCompilationUnit(unit);-
2965 return;
executed 166 times by 12 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
166
2966 } else {-
2967 qCDebug(DBG_DISK_CACHE()) << "Error loading" << urlString() << "from disk cache:" << error;
never executed: QMessageLogger(__FILE__, 2967, __PRETTY_FUNCTION__, DBG_DISK_CACHE()().categoryName()).debug() << "Error loading" << urlString() << "from disk cache:" << error;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-116
2968 }
executed 116 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
116
2969 }-
2970-
2971 if (!data.exists()) {
!data.exists()Description
TRUEnever evaluated
FALSEevaluated 116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-116
2972 if (m_cachedUnitStatus == QQmlMetaType::CachedUnitLookupError::VersionMismatch)
m_cachedUnitSt...ersionMismatchDescription
TRUEnever evaluated
FALSEnever evaluated
0
2973 setError(QQmlTypeLoader::tr("File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile"));
never executed: setError(QQmlTypeLoader::tr("File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile"));
0
2974 else-
2975 setError(QQmlTypeLoader::tr("No such file or directory"));
never executed: setError(QQmlTypeLoader::tr("No such file or directory"));
0
2976 return;
never executed: return;
0
2977 }-
2978-
2979 QmlIR::Document irUnit(isDebugging());-
2980-
2981 irUnit.jsModule.sourceTimeStamp = data.sourceTimeStamp();-
2982 QString error;-
2983 QString source = data.readAll(&error);-
2984 if (!error.isEmpty()) {
!error.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-116
2985 setError(error);-
2986 return;
never executed: return;
0
2987 }-
2988-
2989 QmlIR::ScriptDirectivesCollector collector(&irUnit);-
2990 irUnit.jsParserEngine.setDirectives(&collector);-
2991-
2992 QList<QQmlError> errors;-
2993 QQmlRefPointer<QV4::CompiledData::CompilationUnit> unit = QV4::Script::precompile(-
2994 &irUnit.jsModule, &irUnit.jsParserEngine, &irUnit.jsGenerator, urlString(), finalUrlString(),-
2995 source, &errors);-
2996 // No need to addref on unit, it's initial refcount is 1-
2997 source.clear();-
2998 if (!errors.isEmpty()) {
!errors.isEmpty()Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 90 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
26-90
2999 setError(errors);-
3000 return;
executed 26 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
26
3001 }-
3002 if (!unit) {
!unitDescription
TRUEnever evaluated
FALSEevaluated 90 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-90
3003 unit.adopt(new QV4::CompiledData::CompilationUnit);-
3004 }
never executed: end of block
0
3005 irUnit.javaScriptCompilationUnit = unit;-
3006-
3007 QmlIR::QmlUnitGenerator qmlGenerator;-
3008 QV4::CompiledData::Unit *unitData = qmlGenerator.generate(irUnit);-
3009 Q_ASSERT(!unit->data);-
3010 // The js unit owns the data and will free the qml unit.-
3011 unit->data = unitData;-
3012-
3013 if ((!disableDiskCache() || forceDiskCache()) && !isDebugging()) {
!disableDiskCache()Description
TRUEevaluated 90 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
forceDiskCache()Description
TRUEnever evaluated
FALSEnever evaluated
!isDebugging()Description
TRUEevaluated 90 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
0-90
3014 QString errorString;-
3015 if (!unit->saveToDisk(url(), &errorString)) {
!unit->saveToD... &errorString)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 88 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2-88
3016 qCDebug(DBG_DISK_CACHE()) << "Error saving cached version of" << unit->fileName() << "to disk:" << errorString;
never executed: QMessageLogger(__FILE__, 3016, __PRETTY_FUNCTION__, DBG_DISK_CACHE()().categoryName()).debug() << "Error saving cached version of" << unit->fileName() << "to disk:" << errorString;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-2
3017 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
3018 }
executed 90 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
90
3019-
3020 initializeFromCompilationUnit(unit);-
3021}
executed 90 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
90
3022-
3023void QQmlScriptBlob::initializeFromCachedUnit(const QV4::CompiledData::Unit *unit)-
3024{-
3025 QQmlRefPointer<QV4::CompiledData::CompilationUnit> compilationUnit;-
3026 compilationUnit.adopt(new QV4::CompiledData::CompilationUnit(unit));-
3027 initializeFromCompilationUnit(compilationUnit);-
3028}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qmlcachegen
4
3029-
3030void QQmlScriptBlob::done()-
3031{-
3032 if (isError())
isError()Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 260 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
26-260
3033 return;
executed 26 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
26
3034-
3035 // Check all script dependencies for errors-
3036 for (int ii = 0; ii < m_scripts.count(); ++ii) {
ii < m_scripts.count()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
FALSEevaluated 260 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
28-260
3037 const ScriptReference &script = m_scripts.at(ii);-
3038 Q_ASSERT(script.script->isCompleteOrError());-
3039 if (script.script->isError()) {
script.script->isError()Description
TRUEnever evaluated
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
0-28
3040 QList<QQmlError> errors = script.script->errors();-
3041 QQmlError error;-
3042 error.setUrl(url());-
3043 error.setLine(script.location.line);-
3044 error.setColumn(script.location.column);-
3045 error.setDescription(QQmlTypeLoader::tr("Script %1 unavailable").arg(script.script->urlString()));-
3046 errors.prepend(error);-
3047 setError(errors);-
3048 return;
never executed: return;
0
3049 }-
3050 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
28
3051-
3052 m_scriptData->typeNameCache = new QQmlTypeNameCache(m_importCache);-
3053-
3054 QSet<QString> ns;-
3055-
3056 for (int scriptIndex = 0; scriptIndex < m_scripts.count(); ++scriptIndex) {
scriptIndex < ...cripts.count()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
FALSEevaluated 260 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
28-260
3057 const ScriptReference &script = m_scripts.at(scriptIndex);-
3058-
3059 m_scriptData->scripts.append(script.script);-
3060-
3061 if (!script.nameSpace.isNull()) {
!script.nameSpace.isNull()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
4-24
3062 if (!ns.contains(script.nameSpace)) {
!ns.contains(script.nameSpace)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-4
3063 ns.insert(script.nameSpace);-
3064 m_scriptData->typeNameCache->add(script.nameSpace);-
3065 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
3066 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
3067 m_scriptData->typeNameCache->add(script.qualifier, scriptIndex, script.nameSpace);-
3068 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
28
3069 m_scripts.clear();-
3070-
3071 m_importCache.populateCache(m_scriptData->typeNameCache);-
3072}
executed 260 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
260
3073-
3074QString QQmlScriptBlob::stringAt(int index) const-
3075{-
3076 return m_scriptData->m_precompiledScript->data->stringAt(index);
executed 226 times by 4 tests: return m_scriptData->m_precompiledScript->data->stringAt(index);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
226
3077}-
3078-
3079void QQmlScriptBlob::scriptImported(const QQmlRefPointer<QQmlScriptBlob> &blob, const QV4::CompiledData::Location &location, const QString &qualifier, const QString &nameSpace)-
3080{-
3081 ScriptReference ref;-
3082 ref.script = blob;-
3083 ref.location = location;-
3084 ref.qualifier = qualifier;-
3085 ref.nameSpace = nameSpace;-
3086-
3087 m_scripts << ref;-
3088}
executed 28 times by 2 tests: end of block
Executed by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
28
3089-
3090void QQmlScriptBlob::initializeFromCompilationUnit(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &unit)-
3091{-
3092 Q_ASSERT(!m_scriptData);-
3093 m_scriptData.adopt(new QQmlScriptData());-
3094 m_scriptData->url = finalUrl();-
3095 m_scriptData->urlString = finalUrlString();-
3096 m_scriptData->m_precompiledScript = unit;-
3097-
3098 m_importCache.setBaseUrl(finalUrl(), finalUrlString());-
3099-
3100 Q_ASSERT(m_scriptData->m_precompiledScript->data->flags & QV4::CompiledData::Unit::IsQml);-
3101 const QV4::CompiledData::Unit *qmlUnit = m_scriptData->m_precompiledScript->data;-
3102-
3103 QList<QQmlError> errors;-
3104 for (quint32 i = 0; i < qmlUnit->nImports; ++i) {
i < qmlUnit->nImportsDescription
TRUEevaluated 110 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
FALSEevaluated 260 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
110-260
3105 const QV4::CompiledData::Import *import = qmlUnit->importAt(i);-
3106 if (!addImport(import, &errors)) {
!addImport(import, &errors)Description
TRUEnever evaluated
FALSEevaluated 110 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
0-110
3107 Q_ASSERT(errors.size());-
3108 QQmlError error(errors.takeFirst());-
3109 error.setUrl(m_importCache.baseUrl());-
3110 error.setLine(import->location.line);-
3111 error.setColumn(import->location.column);-
3112 errors.prepend(error); // put it back on the list after filling out information.-
3113 setError(errors);-
3114 return;
never executed: return;
0
3115 }-
3116 }
executed 110 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
110
3117}
executed 260 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
260
3118-
3119QQmlQmldirData::QQmlQmldirData(const QUrl &url, QQmlTypeLoader *loader)-
3120: QQmlTypeLoader::Blob(url, QmldirFile, loader)-
3121{-
3122}
executed 124 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
124
3123-
3124const QString &QQmlQmldirData::content() const-
3125{-
3126 return m_content;
executed 44 times by 5 tests: return m_content;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
3127}-
3128-
3129const QV4::CompiledData::Import *QQmlQmldirData::import(QQmlTypeLoader::Blob *blob) const-
3130{-
3131 QHash<QQmlTypeLoader::Blob *, const QV4::CompiledData::Import *>::const_iterator it =-
3132 m_imports.find(blob);-
3133 if (it == m_imports.end())
it == m_imports.end()Description
TRUEnever evaluated
FALSEevaluated 66 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-66
3134 return nullptr;
never executed: return nullptr;
0
3135 return *it;
executed 66 times by 5 tests: return *it;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
66
3136}-
3137-
3138void QQmlQmldirData::setImport(QQmlTypeLoader::Blob *blob, const QV4::CompiledData::Import *import)-
3139{-
3140 m_imports[blob] = import;-
3141}
executed 192 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
192
3142-
3143int QQmlQmldirData::priority(QQmlTypeLoader::Blob *blob) const-
3144{-
3145 QHash<QQmlTypeLoader::Blob *, int>::const_iterator it = m_priorities.find(blob);-
3146 if (it == m_priorities.end())
it == m_priorities.end()Description
TRUEnever evaluated
FALSEevaluated 52 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-52
3147 return 0;
never executed: return 0;
0
3148 return *it;
executed 52 times by 5 tests: return *it;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
52
3149}-
3150-
3151void QQmlQmldirData::setPriority(QQmlTypeLoader::Blob *blob, int priority)-
3152{-
3153 m_priorities[blob] = priority;-
3154}
executed 192 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickloader
  • tst_qquicktextedit
  • tst_qquicktextinput
192
3155-
3156void QQmlQmldirData::dataReceived(const SourceCodeData &data)-
3157{-
3158 QString error;-
3159 m_content = data.readAll(&error);-
3160 if (!error.isEmpty()) {
!error.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 22 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-22
3161 setError(error);-
3162 return;
never executed: return;
0
3163 }-
3164}
executed 22 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
22
3165-
3166void QQmlQmldirData::initializeFromCachedUnit(const QV4::CompiledData::Unit *)-
3167{-
3168 Q_UNIMPLEMENTED();-
3169}
never executed: end of block
0
3170-
3171QString QQmlDataBlob::SourceCodeData::readAll(QString *error) const-
3172{-
3173 error->clear();-
3174 if (hasInlineSourceCode)
hasInlineSourceCodeDescription
TRUEevaluated 45849 times by 59 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
FALSEevaluated 2850 times by 126 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
2850-45849
3175 return inlineSourceCode;
executed 45849 times by 59 tests: return inlineSourceCode;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45849
3176-
3177 QFile f(fileInfo.absoluteFilePath());-
3178 if (!f.open(QIODevice::ReadOnly)) {
!f.open(QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEevaluated 2850 times by 126 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
0-2850
3179 *error = f.errorString();-
3180 return QString();
never executed: return QString();
0
3181 }-
3182-
3183 const qint64 fileSize = fileInfo.size();-
3184-
3185 if (uchar *mappedData = f.map(0, fileSize)) {
uchar *mappedD...p(0, fileSize)Description
TRUEevaluated 2850 times by 126 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEnever evaluated
0-2850
3186 QString source = QString::fromUtf8(reinterpret_cast<const char *>(mappedData), fileSize);-
3187 f.unmap(mappedData);-
3188 return source;
executed 2850 times by 126 tests: return source;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
2850
3189 }-
3190-
3191 QByteArray data(fileSize, Qt::Uninitialized);-
3192 if (f.read(data.data(), data.length()) != data.length()) {
f.read(data.da... data.length()Description
TRUEnever evaluated
FALSEnever evaluated
0
3193 *error = f.errorString();-
3194 return QString();
never executed: return QString();
0
3195 }-
3196 return QString::fromUtf8(data);
never executed: return QString::fromUtf8(data);
0
3197}-
3198-
3199QDateTime QQmlDataBlob::SourceCodeData::sourceTimeStamp() const-
3200{-
3201 if (hasInlineSourceCode)
hasInlineSourceCodeDescription
TRUEevaluated 91652 times by 59 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
FALSEevaluated 15018 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
15018-91652
3202 return QDateTime();
executed 91652 times by 59 tests: return QDateTime();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
91652
3203-
3204 QDateTime timeStamp = fileInfo.lastModified();-
3205 if (timeStamp.isValid())
timeStamp.isValid()Description
TRUEevaluated 14710 times by 126 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 308 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
308-14710
3206 return timeStamp;
executed 14710 times by 126 tests: return timeStamp;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
14710
3207-
3208 static QDateTime appTimeStamp;-
3209 if (!appTimeStamp.isValid())
!appTimeStamp.isValid()Description
TRUEevaluated 48 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 260 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
48-260
3210 appTimeStamp = QFileInfo(QCoreApplication::applicationFilePath()).lastModified();
executed 48 times by 34 tests: appTimeStamp = QFileInfo(QCoreApplication::applicationFilePath()).lastModified();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
48
3211 return appTimeStamp;
executed 308 times by 34 tests: return appTimeStamp;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
308
3212}-
3213-
3214bool QQmlDataBlob::SourceCodeData::exists() const-
3215{-
3216 if (hasInlineSourceCode)
hasInlineSourceCodeDescription
TRUEevaluated 45827 times by 59 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
FALSEevaluated 2580 times by 127 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2580-45827
3217 return true;
executed 45827 times by 59 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45827
3218 return fileInfo.exists();
executed 2580 times by 127 tests: return fileInfo.exists();
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2580
3219}-
3220-
3221bool QQmlDataBlob::SourceCodeData::isEmpty() const-
3222{-
3223 if (hasInlineSourceCode)
hasInlineSourceCodeDescription
TRUEevaluated 45825 times by 59 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
FALSEevaluated 2450 times by 126 tests
Evaluated by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2450-45825
3224 return inlineSourceCode.isEmpty();
executed 45825 times by 59 tests: return inlineSourceCode.isEmpty();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • ...
45825
3225 return fileInfo.size() == 0;
executed 2450 times by 126 tests: return fileInfo.size() == 0;
Executed by:
  • 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_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2450
3226}-
3227-
3228QT_END_NAMESPACE-
3229-
3230#include "qqmltypeloader.moc"-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0