OpenCoverage

qqmlimport.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2017 Crimson AS <info@crimson.no>-
4** Copyright (C) 2016 The Qt Company Ltd.-
5** Contact: https://www.qt.io/licensing/-
6**-
7** This file is part of the QtQml module of the Qt Toolkit.-
8**-
9** $QT_BEGIN_LICENSE:LGPL$-
10** Commercial License Usage-
11** Licensees holding valid commercial Qt licenses may use this file in-
12** accordance with the commercial license agreement provided with the-
13** Software or, alternatively, in accordance with the terms contained in-
14** a written agreement between you and The Qt Company. For licensing terms-
15** and conditions see https://www.qt.io/terms-conditions. For further-
16** information use the contact form at https://www.qt.io/contact-us.-
17**-
18** GNU Lesser General Public License Usage-
19** Alternatively, this file may be used under the terms of the GNU Lesser-
20** General Public License version 3 as published by the Free Software-
21** Foundation and appearing in the file LICENSE.LGPL3 included in the-
22** packaging of this file. Please review the following information to-
23** ensure the GNU Lesser General Public License version 3 requirements-
24** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
25**-
26** GNU General Public License Usage-
27** Alternatively, this file may be used under the terms of the GNU-
28** General Public License version 2.0 or (at your option) the GNU General-
29** Public license version 3 or any later version approved by the KDE Free-
30** Qt Foundation. The licenses are as published by the Free Software-
31** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
32** included in the packaging of this file. Please review the following-
33** information to ensure the GNU General Public License requirements will-
34** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
35** https://www.gnu.org/licenses/gpl-3.0.html.-
36**-
37** $QT_END_LICENSE$-
38**-
39****************************************************************************/-
40-
41#include "qqmlimport_p.h"-
42-
43#include <QtCore/qdebug.h>-
44#include <QtCore/qdir.h>-
45#include <QtQml/qqmlfile.h>-
46#include <QtCore/qfileinfo.h>-
47#include <QtCore/qpluginloader.h>-
48#include <QtCore/qlibraryinfo.h>-
49#include <QtCore/qreadwritelock.h>-
50#include <QtQml/qqmlextensioninterface.h>-
51#include <QtQml/qqmlextensionplugin.h>-
52#include <private/qqmlextensionplugin_p.h>-
53#include <private/qqmlglobal_p.h>-
54#include <private/qqmltypenamecache_p.h>-
55#include <private/qqmlengine_p.h>-
56#include <private/qfieldlist_p.h>-
57#include <QtCore/qjsonobject.h>-
58#include <QtCore/qjsonarray.h>-
59-
60#include <algorithm>-
61#include <functional>-
62-
63QT_BEGIN_NAMESPACE-
64-
65DEFINE_BOOL_CONFIG_OPTION(qmlImportTrace, QML_IMPORT_TRACE)
never executed: status = Yes;
never executed: end of block
executed 326 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
  • ...
executed 274867 times by 148 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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
status == UnknownDescription
TRUEevaluated 326 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 274541 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
  • ...
__builtin_expe...ACE")), false)Description
TRUEnever evaluated
FALSEevaluated 326 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
  • ...
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0-274867
66DEFINE_BOOL_CONFIG_OPTION(qmlCheckTypes, QML_CHECK_TYPES)
never executed: status = Yes;
never executed: end of block
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 80584 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 80272 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
  • ...
__builtin_expe...PES")), false)Description
TRUEnever evaluated
FALSEevaluated 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
  • ...
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0-80584
67-
68static const QLatin1Char Dot('.');-
69static const QLatin1Char Slash('/');-
70static const QLatin1Char Backslash('\\');-
71static const QLatin1Char Colon(':');-
72static const QLatin1String Slash_qmldir("/qmldir");-
73static const QLatin1String String_qmldir("qmldir");-
74static const QString dotqml_string(QStringLiteral(".qml"));-
75static const QString dotuidotqml_string(QStringLiteral(".ui.qml"));-
76static bool designerSupportRequired = false;-
77-
78namespace {-
79-
80QString resolveLocalUrl(const QString &url, const QString &relative)-
81{-
82 if (relative.contains(Colon)) {
relative.contains(Colon)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
FALSEevaluated 120691 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-120691
83 // contains a host name-
84 return QUrl(url).resolved(QUrl(relative)).toString();
executed 8 times by 2 tests: return QUrl(url).resolved(QUrl(relative)).toString();
Executed by:
  • tst_qqmlmoduleplugin
  • tst_qquickloader
8
85 } else if (relative.isEmpty()) {
relative.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 120691 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-120691
86 return url;
never executed: return url;
0
87 } else if (relative.at(0) == Slash || !url.contains(Slash)) {
relative.at(0) == SlashDescription
TRUEnever evaluated
FALSEevaluated 120691 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
  • ...
!url.contains(Slash)Description
TRUEevaluated 91022 times by 46 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
  • ...
FALSEevaluated 29669 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-120691
88 return relative;
executed 91022 times by 46 tests: return relative;
Executed 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
  • ...
91022
89 } else {-
90 const QStringRef baseRef = url.leftRef(url.lastIndexOf(Slash) + 1);-
91 if (relative == QLatin1String("."))
relative == QLatin1String(".")Description
TRUEevaluated 18952 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 10717 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
  • ...
10717-18952
92 return baseRef.toString();
executed 18952 times by 127 tests: return baseRef.toString();
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
  • ...
18952
93-
94 QString base = baseRef + relative;-
95-
96 // Remove any relative directory elements in the path-
97 int length = base.length();-
98 int index = 0;-
99 while ((index = base.indexOf(QLatin1String("/."), index)) != -1) {
(index = base.... index)) != -1Description
TRUEevaluated 10023 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 10717 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
  • ...
10023-10717
100 if ((length > (index + 2)) && (base.at(index + 2) == Dot) &&
(length > (index + 2))Description
TRUEevaluated 10007 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 16 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
(base.at(index + 2) == Dot)Description
TRUEevaluated 350 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qrcqml
FALSEevaluated 9657 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
  • ...
16-10007
101 (length == (index + 3) || (base.at(index + 3) == Slash))) {
length == (index + 3)Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
FALSEevaluated 330 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qrcqml
(base.at(index + 3) == Slash)Description
TRUEevaluated 330 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qrcqml
FALSEnever evaluated
0-330
102 // Either "/../" or "/..<END>"-
103 int previous = base.lastIndexOf(Slash, index - 1);-
104 if (previous == -1)
previous == -1Description
TRUEnever evaluated
FALSEevaluated 350 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qrcqml
0-350
105 break;
never executed: break;
0
106-
107 int removeLength = (index - previous) + 3;-
108 base.remove(previous + 1, removeLength);-
109 length -= removeLength;-
110 index = previous;-
111 } else if ((length == (index + 2)) || (base.at(index + 2) == Slash)) {
executed 350 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qrcqml
(length == (index + 2))Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
FALSEevaluated 9657 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
  • ...
(base.at(index + 2) == Slash)Description
TRUEevaluated 9657 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-9657
112 // Either "/./" or "/.<END>"-
113 base.remove(index, 2);-
114 length -= 2;-
115 } else {
executed 9673 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
  • ...
9673
116 ++index;-
117 }
never executed: end of block
0
118 }-
119-
120 return base;
executed 10717 times by 127 tests: return base;
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
  • ...
10717
121 }-
122}-
123-
124bool isPathAbsolute(const QString &path)-
125{-
126#if defined(Q_OS_UNIX)-
127 return (path.at(0) == Slash);
executed 26444 times by 137 tests: return (path.at(0) == Slash);
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
  • ...
26444
128#else-
129 QFileInfo fi(path);-
130 return fi.isAbsolute();-
131#endif-
132}-
133-
134/*-
135 \internal-
136-
137 Fetches the QQmlType instance registered for \a urlString, creating a-
138 registration for it if it is not already registered, using the associated-
139 \a typeName, \a isCompositeSingleton, \a majorVersion and \a minorVersion-
140 details.-
141-
142 Errors (if there are any) are placed into \a errors, if it is nonzero. Note-
143 that errors are treated as fatal if \a errors is not set.-
144*/-
145QQmlType fetchOrCreateTypeForUrl(const QString &urlString, const QHashedStringRef& typeName,-
146 bool isCompositeSingleton, QList<QQmlError> *errors,-
147 int majorVersion=-1, int minorVersion=-1)-
148{-
149 QUrl url(urlString); // ### unfortunate (costly) conversion-
150 QQmlType ret = QQmlMetaType::qmlType(url);-
151 if (ret.isValid())
ret.isValid()Description
TRUEevaluated 750 times by 20 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_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 752 times by 41 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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
750-752
152 return ret;
executed 750 times by 20 tests: return ret;
Executed 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_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
750
153-
154 int dot = typeName.indexOf(QLatin1Char('.'));-
155 QHashedStringRef unqualifiedtype = dot < 0 ? typeName : QHashedStringRef(typeName.constData() + dot + 1, typeName.length() - dot - 1);
dot < 0Description
TRUEevaluated 750 times by 41 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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
2-750
156-
157 // We need a pointer, but we were passed a string. Take a copy so we-
158 // can guarentee it will live long enough to reach qmlregister.-
159 QByteArray buf(unqualifiedtype.toString().toUtf8());-
160-
161 QQmlMetaTypeRegistrationFailureRecorder failureRecorder;-
162-
163 // Register the type. Note that the URI parameters here are empty; for-
164 // file type imports, we do not place them in a URI as we don't-
165 // necessarily have a good and unique one (picture a library import,-
166 // which may be found in multiple plugin locations on disk), but there-
167 // are other reasons for this too.-
168 //-
169 // By not putting them in a URI, we prevent the types from being-
170 // registered on a QQmlTypeModule; this is important, as once types are-
171 // placed on there, they cannot be easily removed, meaning if the-
172 // developer subsequently loads a different import (meaning different-
173 // types) with the same URI (using, say, a different plugin path), it is-
174 // very undesirable that we continue to associate the types from the-
175 // "old" URI with that new module.-
176 //-
177 // Not having URIs also means that the types cannot be found by name-
178 // etc, the only way to look them up is through QQmlImports -- for-
179 // better or worse.-
180 if (isCompositeSingleton) {
isCompositeSingletonDescription
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmltypeloader
FALSEevaluated 742 times by 41 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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
10-742
181 QQmlPrivate::RegisterCompositeSingletonType reg = {-
182 url,-
183 "", // uri-
184 majorVersion,-
185 minorVersion,-
186 buf.constData()-
187 };-
188 ret = QQmlMetaType::registerCompositeSingletonType(reg);-
189 } else {
executed 10 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmltypeloader
10
190 QQmlPrivate::RegisterCompositeType reg = {-
191 url,-
192 "", // uri-
193 majorVersion,-
194 minorVersion,-
195 buf.constData()-
196 };-
197 ret = QQmlMetaType::registerCompositeType(reg);-
198 }
executed 742 times by 41 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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
742
199-
200 // This means that the type couldn't be found by URL, but could not be-
201 // registered either, meaning we most likely were passed some kind of bad-
202 // data.-
203 if (!ret.isValid()) {
!ret.isValid()Description
TRUEnever evaluated
FALSEevaluated 752 times by 41 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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
0-752
204 if (!errors) // Cannot list errors properly, just quit
!errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
205 qFatal("%s", failureRecorder.failures().join('\n').toLatin1().constData());
never executed: QMessageLogger(__FILE__, 205, __PRETTY_FUNCTION__).fatal("%s", failureRecorder.failures().join('\n').toLatin1().constData());
0
206 QQmlError error;-
207 error.setDescription(failureRecorder.failures().join('\n'));-
208 errors->prepend(error);-
209 }
never executed: end of block
0
210 return ret;
executed 752 times by 41 tests: return ret;
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_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
752
211}-
212-
213} // namespace-
214-
215struct RegisteredPlugin {-
216 QString uri;-
217 QPluginLoader* loader;-
218};-
219-
220struct StringRegisteredPluginMap : public QMap<QString, RegisteredPlugin> {-
221 QMutex mutex;-
222};-
223-
224Q_GLOBAL_STATIC(StringRegisteredPluginMap, qmlEnginePluginsWithRegisteredTypes); // stores the uri and the PluginLoaders
executed 294 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
  • ...
executed 294 times by 135 tests: guard.store(QtGlobalStatic::Destroyed);
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
  • ...
executed 7485 times by 135 tests: return &holder.value;
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
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 294 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-7485
225-
226void qmlClearEnginePlugins()-
227{-
228 StringRegisteredPluginMap *plugins = qmlEnginePluginsWithRegisteredTypes();-
229 QMutexLocker lock(&plugins->mutex);-
230#if QT_CONFIG(library)-
231 for (auto &plugin : qAsConst(*plugins)) {-
232 QPluginLoader* loader = plugin.loader;-
233 if (loader && !loader->unload())
loaderDescription
TRUEevaluated 96 times by 3 tests
Evaluated by:
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
FALSEnever evaluated
!loader->unload()Description
TRUEnever evaluated
FALSEevaluated 96 times by 3 tests
Evaluated by:
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
0-96
234 qWarning("Unloading %s failed: %s", qPrintable(plugin.uri), qPrintable(loader->errorString()));
never executed: QMessageLogger(__FILE__, 234, __PRETTY_FUNCTION__).warning("Unloading %s failed: %s", QtPrivate::asString(plugin.uri).toLocal8Bit().constData(), QtPrivate::asString(loader->errorString()).toLocal8Bit().constData());
0
235 delete loader;-
236 }
executed 96 times by 3 tests: end of block
Executed by:
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
96
237#endif-
238 plugins->clear();-
239}
executed 90 times by 3 tests: end of block
Executed by:
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
90
240-
241typedef QPair<QStaticPlugin, QJsonArray> StaticPluginPair;-
242-
243/*!-
244 \internal-
245 \class QQmlImportInstance-
246-
247 A QQmlImportType represents a single import of a document, held within a-
248 namespace.-
249-
250 \note The uri here may not necessarily be unique (e.g. for file imports).-
251-
252 \note Version numbers may be -1 for file imports: this means that no-
253 version was specified as part of the import. Type resolution will be-
254 responsible for attempting to find the "best" possible version.-
255*/-
256-
257/*!-
258 \internal-
259 \class QQmlImportNamespace-
260-
261 A QQmlImportNamespace is a way of seperating imports into a local namespace.-
262-
263 Within a QML document, there is at least one namespace (the-
264 "unqualified set") where imports without a qualifier are placed, i.e:-
265-
266 import QtQuick 2.6-
267-
268 will have a single namespace (the unqualified set) containing a single import-
269 for QtQuick 2.6. However, there may be others if an import statement gives-
270 a qualifier, i.e the following will result in an additional new-
271 QQmlImportNamespace in the qualified set:-
272-
273 import MyFoo 1.0 as Foo-
274*/-
275-
276class QQmlImportsPrivate-
277{-
278public:-
279 QQmlImportsPrivate(QQmlTypeLoader *loader);-
280 ~QQmlImportsPrivate();-
281-
282 QQmlImportNamespace *importNamespace(const QString &prefix) const;-
283-
284 bool addLibraryImport(const QString& uri, const QString &prefix,-
285 int vmaj, int vmin, const QString &qmldirIdentifier, const QString &qmldirUrl, bool incomplete,-
286 QQmlImportDatabase *database,-
287 QList<QQmlError> *errors);-
288-
289 bool addFileImport(const QString &uri, const QString &prefix,-
290 int vmaj, int vmin,-
291 bool isImplicitImport, bool incomplete, QQmlImportDatabase *database,-
292 QList<QQmlError> *errors);-
293-
294 bool updateQmldirContent(const QString &uri, const QString &prefix,-
295 const QString &qmldirIdentifier, const QString& qmldirUrl,-
296 QQmlImportDatabase *database,-
297 QList<QQmlError> *errors);-
298-
299 bool resolveType(const QHashedStringRef &type, int *vmajor, int *vminor,-
300 QQmlType *type_return, QList<QQmlError> *errors,-
301 QQmlType::RegistrationType registrationType,-
302 QQmlImport::RecursionRestriction recursionRestriction-
303 = QQmlImport::PreventRecursion);-
304-
305 QUrl baseUrl;-
306 QString base;-
307 int ref;-
308-
309 // storage of data related to imports without a namespace-
310 mutable QQmlImportNamespace unqualifiedset;-
311-
312 QQmlImportNamespace *findQualifiedNamespace(const QHashedStringRef &) const;-
313-
314 // storage of data related to imports with a namespace-
315 mutable QFieldList<QQmlImportNamespace, &QQmlImportNamespace::nextNamespace> qualifiedSets;-
316-
317 QQmlTypeLoader *typeLoader;-
318-
319 static bool locateQmldir(const QString &uri, int vmaj, int vmin,-
320 QQmlImportDatabase *database,-
321 QString *outQmldirFilePath, QString *outUrl);-
322-
323 static bool validateQmldirVersion(const QQmlTypeLoaderQmldirContent &qmldir, const QString &uri, int vmaj, int vmin,-
324 QList<QQmlError> *errors);-
325-
326 bool importExtension(const QString &absoluteFilePath, const QString &uri,-
327 int vmaj, int vmin,-
328 QQmlImportDatabase *database,-
329 const QQmlTypeLoaderQmldirContent &qmldir,-
330 QList<QQmlError> *errors);-
331-
332 bool getQmldirContent(const QString &qmldirIdentifier, const QString &uri,-
333 QQmlTypeLoaderQmldirContent *qmldir, QList<QQmlError> *errors);-
334-
335 QString resolvedUri(const QString &dir_arg, QQmlImportDatabase *database);-
336-
337 QQmlImportInstance *addImportToNamespace(QQmlImportNamespace *nameSpace,-
338 const QString &uri, const QString &url,-
339 int vmaj, int vmin, QV4::CompiledData::Import::ImportType type,-
340 QList<QQmlError> *errors, bool lowPrecedence = false);-
341-
342 bool populatePluginPairVector(QVector<StaticPluginPair> &result, const QString &uri, const QStringList &versionUris,-
343 const QString &qmldirPath, QList<QQmlError> *errors);-
344};-
345-
346/*!-
347\class QQmlImports-
348\brief The QQmlImports class encapsulates one QML document's import statements.-
349\internal-
350*/-
351QQmlImports::QQmlImports(const QQmlImports &copy)-
352: d(copy.d)-
353{-
354 ++d->ref;-
355}
executed 55249 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
  • ...
55249
356-
357QQmlImports &-
358QQmlImports::operator =(const QQmlImports &copy)-
359{-
360 ++copy.d->ref;-
361 if (--d->ref == 0)
--d->ref == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
362 delete d;
never executed: delete d;
0
363 d = copy.d;-
364 return *this;
never executed: return *this;
0
365}-
366-
367QQmlImports::QQmlImports(QQmlTypeLoader *typeLoader)-
368 : d(new QQmlImportsPrivate(typeLoader))-
369{-
370}
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
371-
372QQmlImports::~QQmlImports()-
373{-
374 if (--d->ref == 0)
--d->ref == 0Description
TRUEevaluated 13655 times by 134 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_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 55183 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
  • ...
13655-55183
375 delete d;
executed 13655 times by 134 tests: delete d;
Executed 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_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
13655
376}
executed 68838 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
  • ...
68838
377-
378/*!-
379 Sets the base URL to be used for all relative file imports added.-
380*/-
381void QQmlImports::setBaseUrl(const QUrl& url, const QString &urlString)-
382{-
383 d->baseUrl = url;-
384-
385 if (urlString.isEmpty()) {
urlString.isEmpty()Description
TRUEevaluated 90912 times by 44 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • 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
  • tst_qquickfontloader
  • ...
FALSEevaluated 19484 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
  • ...
19484-90912
386 d->base = url.toString();-
387 } else {
executed 90912 times by 44 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • 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
  • tst_qquickfontloader
  • ...
90912
388 //Q_ASSERT(url.toString() == urlString);-
389 d->base = urlString;-
390 }
executed 19484 times by 130 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
  • ...
19484
391}-
392-
393/*!-
394 Returns the base URL to be used for all relative file imports added.-
395*/-
396QUrl QQmlImports::baseUrl() const-
397{-
398 return d->baseUrl;
executed 111258 times by 141 tests: return d->baseUrl;
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
  • ...
111258
399}-
400-
401/*-
402 \internal-
403-
404 This method is responsible for populating data of all types visible in this-
405 document's imports into the \a cache for resolution elsewhere (e.g. in JS,-
406 or when loading additional types).-
407-
408 \note This is for C++ types only. Composite types are handled separately,-
409 as they do not have a QQmlTypeModule.-
410*/-
411void QQmlImports::populateCache(QQmlTypeNameCache *cache) const-
412{-
413 const QQmlImportNamespace &set = d->unqualifiedset;-
414-
415 for (int ii = set.imports.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 111886 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 55249 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
  • ...
55249-111886
416 const QQmlImportInstance *import = set.imports.at(ii);-
417 QQmlTypeModule *module = QQmlMetaType::typeModule(import->uri, import->majversion);-
418 if (module) {
moduleDescription
TRUEevaluated 56859 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 55027 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
  • ...
55027-56859
419 cache->m_anonymousImports.append(QQmlTypeModuleVersion(module, import->minversion));-
420 }
executed 56859 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
  • ...
56859
421 }
executed 111886 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
  • ...
111886
422-
423 for (QQmlImportNamespace *ns = d->qualifiedSets.first(); ns; ns = d->qualifiedSets.next(ns)) {
nsDescription
TRUEevaluated 1178 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 55249 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
  • ...
1178-55249
424-
425 const QQmlImportNamespace &set = *ns;-
426-
427 // positioning is important; we must create the namespace even if there is no module.-
428 QQmlImportRef &typeimport = cache->m_namedImports[set.prefix];-
429 typeimport.m_qualifier = set.prefix;-
430-
431 for (int ii = set.imports.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 1178 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 1178 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1178
432 const QQmlImportInstance *import = set.imports.at(ii);-
433 QQmlTypeModule *module = QQmlMetaType::typeModule(import->uri, import->majversion);-
434 if (module) {
moduleDescription
TRUEevaluated 1162 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickloader
  • tst_qrcqml
16-1162
435 QQmlImportRef &typeimport = cache->m_namedImports[set.prefix];-
436 typeimport.modules.append(QQmlTypeModuleVersion(module, import->minversion));-
437 }
executed 1162 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1162
438 }
executed 1178 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1178
439 }
executed 1178 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1178
440}
executed 55249 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
  • ...
55249
441-
442// We need to exclude the entry for the current baseUrl. This can happen for example-
443// when handling qmldir files on the remote dir case and the current type is marked as-
444// singleton.-
445bool excludeBaseUrl(const QString &importUrl, const QString &fileName, const QString &baseUrl)-
446{-
447 if (importUrl.isEmpty())
importUrl.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
0-14
448 return false;
never executed: return false;
0
449-
450 if (baseUrl.startsWith(importUrl))
baseUrl.startsWith(importUrl)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
2-12
451 {-
452 if (fileName == baseUrl.midRef(importUrl.size()))
fileName == ba...ortUrl.size())Description
TRUEnever evaluated
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
0-12
453 return false;
never executed: return false;
0
454 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
12
455-
456 return true;
executed 14 times by 2 tests: return true;
Executed by:
  • tst_examples
  • tst_qmldiskcache
14
457}-
458-
459void findCompositeSingletons(const QQmlImportNamespace &set, QList<QQmlImports::CompositeSingletonReference> &resultList, const QUrl &baseUrl)-
460{-
461 typedef QQmlDirComponents::const_iterator ConstIterator;-
462-
463 for (int ii = set.imports.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 58267 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 56147 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
  • ...
56147-58267
464 const QQmlImportInstance *import = set.imports.at(ii);-
465-
466 const QQmlDirComponents &components = import->qmlDirComponents;-
467-
468 ConstIterator cend = components.constEnd();-
469 for (ConstIterator cit = components.constBegin(); cit != cend; ++cit) {
cit != cendDescription
TRUEevaluated 748 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 58267 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
  • ...
748-58267
470 if (cit->singleton && excludeBaseUrl(import->url, cit->fileName, baseUrl.toString())) {
cit->singletonDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
FALSEevaluated 734 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
excludeBaseUrl...rl.toString())Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
FALSEnever evaluated
0-734
471 QQmlImports::CompositeSingletonReference ref;-
472 ref.typeName = cit->typeName;-
473 ref.prefix = set.prefix;-
474 ref.majorVersion = cit->majorVersion;-
475 ref.minorVersion = cit->minorVersion;-
476 resultList.append(ref);-
477 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
14
478 }
executed 748 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
748
479-
480 if (QQmlTypeModule *module = QQmlMetaType::typeModule(import->uri, import->majversion)) {
QQmlTypeModule...t->majversion)Description
TRUEevaluated 57987 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 280 times by 17 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_qquickanimatedimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qrcqml
280-57987
481 module->walkCompositeSingletons([&resultList, &set](const QQmlType &singleton) {-
482 QQmlImports::CompositeSingletonReference ref;-
483 ref.typeName = singleton.elementName();-
484 ref.prefix = set.prefix;-
485 ref.majorVersion = singleton.majorVersion();-
486 ref.minorVersion = singleton.minorVersion();-
487 resultList.append(ref);-
488 });
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qmldiskcache
  • tst_qqmlcontext
  • tst_qqmltypeloader
10
489 }
executed 57987 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
  • ...
57987
490 }
executed 58267 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
  • ...
58267
491}
executed 56147 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
  • ...
56147
492-
493/*-
494 \internal-
495-
496 Returns a list of all composite singletons present in this document's-
497 imports.-
498-
499 This information is used by QQmlTypeLoader to ensure that composite singletons-
500 are marked as dependencies during type loading.-
501*/-
502QList<QQmlImports::CompositeSingletonReference> QQmlImports::resolvedCompositeSingletons() const-
503{-
504 QList<QQmlImports::CompositeSingletonReference> compositeSingletons;-
505-
506 const QQmlImportNamespace &set = d->unqualifiedset;-
507 findCompositeSingletons(set, compositeSingletons, baseUrl());-
508-
509 for (QQmlImportNamespace *ns = d->qualifiedSets.first(); ns; ns = d->qualifiedSets.next(ns)) {
nsDescription
TRUEevaluated 1094 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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 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
  • ...
1094-55053
510 const QQmlImportNamespace &set = *ns;-
511 findCompositeSingletons(set, compositeSingletons, baseUrl());-
512 }
executed 1094 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1094
513-
514 return compositeSingletons;
executed 55053 times by 141 tests: return compositeSingletons;
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
515}-
516-
517/*-
518 \internal-
519-
520 Returns a list of scripts imported by this document. This is used by-
521 QQmlTypeLoader to properly handle dependencies on imported scripts.-
522*/-
523QList<QQmlImports::ScriptReference> QQmlImports::resolvedScripts() const-
524{-
525 QList<QQmlImports::ScriptReference> scripts;-
526-
527 const QQmlImportNamespace &set = d->unqualifiedset;-
528-
529 for (int ii = set.imports.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 57173 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 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
  • ...
55053-57173
530 const QQmlImportInstance *import = set.imports.at(ii);-
531-
532 for (const QQmlDirParser::Script &script : import->qmlDirScripts) {-
533 ScriptReference ref;-
534 ref.nameSpace = script.nameSpace;-
535 ref.location = QUrl(import->url).resolved(QUrl(script.fileName));-
536 scripts.append(ref);-
537 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
538 }
executed 57173 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
  • ...
57173
539-
540 for (QQmlImportNamespace *ns = d->qualifiedSets.first(); ns; ns = d->qualifiedSets.next(ns)) {
nsDescription
TRUEevaluated 1094 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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 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
  • ...
1094-55053
541 const QQmlImportNamespace &set = *ns;-
542-
543 for (int ii = set.imports.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 1094 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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 1094 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1094
544 const QQmlImportInstance *import = set.imports.at(ii);-
545-
546 for (const QQmlDirParser::Script &script : import->qmlDirScripts) {-
547 ScriptReference ref;-
548 ref.nameSpace = script.nameSpace;-
549 ref.qualifier = set.prefix;-
550 ref.location = QUrl(import->url).resolved(QUrl(script.fileName));-
551 scripts.append(ref);-
552 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
553 }
executed 1094 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1094
554 }
executed 1094 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1094
555-
556 return scripts;
executed 55053 times by 141 tests: return 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
  • ...
55053
557}-
558-
559static QString joinStringRefs(const QVector<QStringRef> &refs, const QChar &sep)-
560{-
561 QString str;-
562 for (auto it = refs.cbegin(); it != refs.cend(); ++it) {
it != refs.cend()Description
TRUEevaluated 128371 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 105443 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
  • ...
105443-128371
563 if (it != refs.cbegin())
it != refs.cbegin()Description
TRUEevaluated 22928 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
FALSEevaluated 105443 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
  • ...
22928-105443
564 str += sep;
executed 22928 times by 65 tests: str += sep;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
22928
565 str += *it;-
566 }
executed 128371 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
  • ...
128371
567 return str;
executed 105443 times by 141 tests: return str;
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
  • ...
105443
568}-
569-
570/*!-
571 Forms complete paths to a qmldir file, from a base URL, a module URI and version specification.-
572-
573 For example, QtQml.Models 2.0:-
574 - base/QtQml/Models.2.0/qmldir-
575 - base/QtQml.2.0/Models/qmldir-
576 - base/QtQml/Models.2/qmldir-
577 - base/QtQml.2/Models/qmldir-
578 - base/QtQml/Models/qmldir-
579*/-
580QStringList QQmlImports::completeQmldirPaths(const QString &uri, const QStringList &basePaths, int vmaj, int vmin)-
581{-
582 const QVector<QStringRef> parts = uri.splitRef(Dot, QString::SkipEmptyParts);-
583-
584 QStringList qmlDirPathsPaths;-
585 // fully & partially versioned parts + 1 unversioned for each base path-
586 qmlDirPathsPaths.reserve(basePaths.count() * (2 * parts.count() + 1));-
587-
588 for (int version = FullyVersioned; version <= Unversioned; ++version) {
version <= UnversionedDescription
TRUEevaluated 27387 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 9129 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
  • ...
9129-27387
589 const QString ver = versionString(vmaj, vmin, static_cast<QQmlImports::ImportVersion>(version));-
590-
591 for (const QString &path : basePaths) {-
592 QString dir = path;-
593 if (!dir.endsWith(Slash) && !dir.endsWith(Backslash))
!dir.endsWith(Slash)Description
TRUEevaluated 82635 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 24 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
!dir.endsWith(Backslash)Description
TRUEevaluated 82635 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-82635
594 dir += Slash;
executed 82635 times by 141 tests: dir += Slash;
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
  • ...
82635
595-
596 // append to the end-
597 qmlDirPathsPaths += dir + joinStringRefs(parts, Slash) + ver + Slash_qmldir;-
598-
599 if (version != Unversioned) {
version != UnversionedDescription
TRUEevaluated 55106 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 27553 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
  • ...
27553-55106
600 // insert in the middle-
601 for (int index = parts.count() - 2; index >= 0; --index) {
index >= 0Description
TRUEevaluated 11392 times by 65 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
FALSEevaluated 55106 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
  • ...
11392-55106
602 qmlDirPathsPaths += dir + joinStringRefs(parts.mid(0, index + 1), Slash)-
603 + ver + Slash-
604 + joinStringRefs(parts.mid(index + 1), Slash) + Slash_qmldir;-
605 }
executed 11392 times by 65 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
11392
606 }
executed 55106 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
  • ...
55106
607 }
executed 82659 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
  • ...
82659
608 }
executed 27387 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
  • ...
27387
609-
610 return qmlDirPathsPaths;
executed 9129 times by 141 tests: return qmlDirPathsPaths;
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
  • ...
9129
611}-
612-
613QString QQmlImports::versionString(int vmaj, int vmin, ImportVersion version)-
614{-
615 if (version == QQmlImports::FullyVersioned) {
version == QQm...FullyVersionedDescription
TRUEevaluated 9141 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 18278 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
  • ...
9141-18278
616 // extension with fully encoded version number (eg. MyModule.3.2)-
617 return QString::asprintf(".%d.%d", vmaj, vmin);
executed 9141 times by 141 tests: return QString::asprintf(".%d.%d", vmaj, vmin);
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
  • ...
9141
618 } else if (version == QQmlImports::PartiallyVersioned) {
version == QQm...iallyVersionedDescription
TRUEevaluated 9141 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 9137 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
  • ...
9137-9141
619 // extension with encoded version major (eg. MyModule.3)-
620 return QString::asprintf(".%d", vmaj);
executed 9141 times by 141 tests: return QString::asprintf(".%d", vmaj);
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
  • ...
9141
621 } // else extension without version number (eg. MyModule)-
622 return QString();
executed 9137 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
  • ...
9137
623}-
624-
625/*!-
626 \internal-
627-
628 The given (namespace qualified) \a type is resolved to either-
629 \list-
630 \li a QQmlImportNamespace stored at \a ns_return, or-
631 \li a QQmlType stored at \a type_return,-
632 \endlist-
633-
634 If any return pointer is 0, the corresponding search is not done.-
635-
636 \sa addFileImport(), addLibraryImport-
637*/-
638bool QQmlImports::resolveType(const QHashedStringRef &type,-
639 QQmlType *type_return, int *vmaj, int *vmin,-
640 QQmlImportNamespace** ns_return, QList<QQmlError> *errors,-
641 QQmlType::RegistrationType registrationType,-
642 QQmlImport::RecursionRestriction recursionRestriction) const-
643{-
644 QQmlImportNamespace* ns = d->findQualifiedNamespace(type);-
645 if (ns) {
nsDescription
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickscreen
FALSEevaluated 370907 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
  • ...
31-370907
646 if (ns_return)
ns_returnDescription
TRUEnever evaluated
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickscreen
0-31
647 *ns_return = ns;
never executed: *ns_return = ns;
0
648 return true;
executed 31 times by 3 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickscreen
31
649 }-
650 if (type_return) {
type_returnDescription
TRUEevaluated 370907 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-370907
651 if (d->resolveType(type, vmaj, vmin, type_return, errors, registrationType,
d->resolveType...onRestriction)Description
TRUEevaluated 80586 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 290321 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
80586-290321
652 recursionRestriction)) {
d->resolveType...onRestriction)Description
TRUEevaluated 80586 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 290321 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
80586-290321
653 if (qmlImportTrace()) {
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 80586 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-80586
654#define RESOLVE_TYPE_DEBUG qDebug().nospace() << "QQmlImports(" << qPrintable(baseUrl().toString()) \-
655 << ')' << "::resolveType: " << type.toString() << " => "-
656-
657 if (type_return && type_return->isValid()) {
type_returnDescription
TRUEnever evaluated
FALSEnever evaluated
type_return->isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
658 if (type_return->isCompositeSingleton())
type_return->i...iteSingleton()Description
TRUEnever evaluated
FALSEnever evaluated
0
659 RESOLVE_TYPE_DEBUG << type_return->typeName() << ' ' << type_return->sourceUrl() << " TYPE/URL-SINGLETON";
never executed: QMessageLogger(__FILE__, 659, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::resolveType: " << type.toString() << " => " << type_return->typeName() << ' ' << type_return->sourceUrl() << " TYPE/URL-SINGLETON";
0
660 else if (type_return->isComposite())
type_return->isComposite()Description
TRUEnever evaluated
FALSEnever evaluated
0
661 RESOLVE_TYPE_DEBUG << type_return->typeName() << ' ' << type_return->sourceUrl() << " TYPE/URL";
never executed: QMessageLogger(__FILE__, 661, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::resolveType: " << type.toString() << " => " << type_return->typeName() << ' ' << type_return->sourceUrl() << " TYPE/URL";
0
662 else-
663 RESOLVE_TYPE_DEBUG << type_return->typeName() << " TYPE";
never executed: QMessageLogger(__FILE__, 663, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::resolveType: " << type.toString() << " => " << type_return->typeName() << " TYPE";
0
664 }-
665#undef RESOLVE_TYPE_DEBUG-
666 }
never executed: end of block
0
667 return true;
executed 80586 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
  • ...
80586
668 }-
669 }
executed 290321 times by 72 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290321
670 return false;
executed 290321 times by 72 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290321
671}-
672-
673bool QQmlImportInstance::setQmldirContent(const QString &resolvedUrl, const QQmlTypeLoaderQmldirContent &qmldir, QQmlImportNamespace *nameSpace, QList<QQmlError> *errors)-
674{-
675 Q_ASSERT(resolvedUrl.endsWith(Slash));-
676 url = resolvedUrl;-
677-
678 qmlDirComponents = qmldir.components();-
679-
680 const QQmlDirScripts &scripts = qmldir.scripts();-
681 if (!scripts.isEmpty()) {
!scripts.isEmpty()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 56989 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
  • ...
12-56989
682 // Verify that we haven't imported these scripts already-
683 for (QList<QQmlImportInstance *>::const_iterator it = nameSpace->imports.constBegin();-
684 it != nameSpace->imports.constEnd(); ++it) {
it != nameSpac...rts.constEnd()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
12-16
685 if ((*it != this) && ((*it)->uri == uri)) {
(*it != this)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
((*it)->uri == uri)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
686 QQmlError error;-
687 error.setDescription(QQmlImportDatabase::tr("\"%1\" is ambiguous. Found in %2 and in %3").arg(uri).arg(url).arg((*it)->url));-
688 errors->prepend(error);-
689 return false;
never executed: return false;
0
690 }-
691 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
16
692-
693 qmlDirScripts = getVersionedScripts(scripts, majversion, minversion);-
694 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
695-
696 return true;
executed 57001 times by 140 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
  • ...
57001
697}-
698-
699QQmlDirScripts QQmlImportInstance::getVersionedScripts(const QQmlDirScripts &qmldirscripts, int vmaj, int vmin)-
700{-
701 QMap<QString, QQmlDirParser::Script> versioned;-
702-
703 for (QList<QQmlDirParser::Script>::const_iterator sit = qmldirscripts.constBegin();-
704 sit != qmldirscripts.constEnd(); ++sit) {
sit != qmldirs...pts.constEnd()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
12
705 // Only include scripts that match our requested version-
706 if (((vmaj == -1) || (sit->majorVersion == vmaj)) &&
(vmaj == -1)Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
(sit->majorVersion == vmaj)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-12
707 ((vmin == -1) || (sit->minorVersion <= vmin))) {
(vmin == -1)Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
(sit->minorVersion <= vmin)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-12
708 // Load the highest version that matches-
709 QMap<QString, QQmlDirParser::Script>::iterator vit = versioned.find(sit->nameSpace);-
710 if (vit == versioned.end() || (vit->minorVersion < sit->minorVersion)) {
vit == versioned.end()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
(vit->minorVer...>minorVersion)Description
TRUEnever evaluated
FALSEnever evaluated
0-12
711 versioned.insert(sit->nameSpace, *sit);-
712 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
713 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
714 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
715-
716 return versioned.values();
executed 12 times by 1 test: return versioned.values();
Executed by:
  • tst_qqmlecmascript
12
717}-
718-
719/*!-
720 \internal-
721-
722 Searching \e only in the namespace \a ns (previously returned in a call to-
723 resolveType(), \a type is found and returned to-
724 a QQmlType stored at \a type_return. If the type is from a QML file, the returned-
725 type will be a CompositeType.-
726-
727 If the return pointer is 0, the corresponding search is not done.-
728*/-
729bool QQmlImports::resolveType(QQmlImportNamespace *ns, const QHashedStringRef &type,-
730 QQmlType *type_return, int *vmaj, int *vmin,-
731 QQmlType::RegistrationType registrationType) const-
732{-
733 return ns->resolveType(d->typeLoader, type, vmaj, vmin, type_return, nullptr, nullptr, registrationType);
never executed: return ns->resolveType(d->typeLoader, type, vmaj, vmin, type_return, nullptr, nullptr, registrationType);
0
734}-
735-
736bool QQmlImportInstance::resolveType(QQmlTypeLoader *typeLoader, const QHashedStringRef& type,-
737 int *vmajor, int *vminor, QQmlType *type_return, QString *base,-
738 bool *typeRecursionDetected,-
739 QQmlType::RegistrationType registrationType,-
740 QQmlImport::RecursionRestriction recursionRestriction,-
741 QList<QQmlError> *errors) const-
742{-
743 if (majversion >= 0 && minversion >= 0) {
majversion >= 0Description
TRUEevaluated 399848 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 286197 times by 68 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
minversion >= 0Description
TRUEevaluated 399848 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-399848
744 QQmlType t = QQmlMetaType::qmlType(type, uri, majversion, minversion);-
745 if (t.isValid()) {
t.isValid()Description
TRUEevaluated 79084 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 320764 times by 110 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
79084-320764
746 if (vmajor) *vmajor = majversion;
executed 76643 times by 141 tests: *vmajor = majversion;
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
  • ...
vmajorDescription
TRUEevaluated 76643 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 2441 times by 71 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • ...
2441-76643
747 if (vminor) *vminor = minversion;
executed 76643 times by 141 tests: *vminor = minversion;
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
  • ...
vminorDescription
TRUEevaluated 76643 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 2441 times by 71 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • ...
2441-76643
748 if (type_return)
type_returnDescription
TRUEevaluated 79084 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-79084
749 *type_return = t;
executed 79084 times by 141 tests: *type_return = t;
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
  • ...
79084
750 return true;
executed 79084 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
  • ...
79084
751 }-
752 }
executed 320764 times by 110 tests: end of block
Executed 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
320764
753-
754 const QString typeStr = type.toString();-
755 QQmlDirComponents::ConstIterator it = qmlDirComponents.find(typeStr), end = qmlDirComponents.end();-
756 if (it != end) {
it != endDescription
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 606281 times by 110 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
680-606281
757 QString componentUrl;-
758 bool isCompositeSingleton = false;-
759 QQmlDirComponents::ConstIterator candidate = end;-
760 for ( ; it != end && it.key() == typeStr; ++it) {
it != endDescription
TRUEevaluated 1493 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 359 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
it.key() == typeStrDescription
TRUEevaluated 1172 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 321 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
321-1493
761 const QQmlDirParser::Component &c = *it;-
762 switch (registrationType) {-
763 case QQmlType::AnyRegistrationType:
executed 1158 times by 13 tests: case QQmlType::AnyRegistrationType:
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1158
764 break;
executed 1158 times by 13 tests: break;
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1158
765 case QQmlType::CompositeSingletonType:
executed 14 times by 2 tests: case QQmlType::CompositeSingletonType:
Executed by:
  • tst_examples
  • tst_qmldiskcache
14
766 if (!c.singleton)
!c.singletonDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
0-14
767 continue;
never executed: continue;
0
768 break;
executed 14 times by 2 tests: break;
Executed by:
  • tst_examples
  • tst_qmldiskcache
14
769 default:
never executed: default:
0
770 if (c.singleton)
c.singletonDescription
TRUEnever evaluated
FALSEnever evaluated
0
771 continue;
never executed: continue;
0
772 break;
never executed: break;
0
773 }-
774-
775 // importing version -1 means import ALL versions-
776 if ((majversion == -1) ||
(majversion == -1)Description
TRUEevaluated 182 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
FALSEevaluated 990 times by 9 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
182-990
777 (implicitlyImported && c.internal) || // allow the implicit import of internal types
implicitlyImportedDescription
TRUEnever evaluated
FALSEevaluated 990 times by 9 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
c.internalDescription
TRUEnever evaluated
FALSEnever evaluated
0-990
778 (c.majorVersion == majversion && c.minorVersion <= minversion)) {
c.majorVersion == majversionDescription
TRUEevaluated 980 times by 9 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
c.minorVersion <= minversionDescription
TRUEevaluated 510 times by 9 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 470 times by 4 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
10-980
779 // Is this better than the previous candidate?-
780 if ((candidate == end) ||
(candidate == end)Description
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_quicktestmainwithsetup
12-680
781 (c.majorVersion > candidate->majorVersion) ||
(c.majorVersio...>majorVersion)Description
TRUEnever evaluated
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_quicktestmainwithsetup
0-12
782 ((c.majorVersion == candidate->majorVersion) && (c.minorVersion > candidate->minorVersion))) {
(c.majorVersio...>majorVersion)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_quicktestmainwithsetup
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
(c.minorVersio...>minorVersion)Description
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_quicktestmainwithsetup
0-8
783 if (base) {
baseDescription
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEnever evaluated
0-680
784 componentUrl = resolveLocalUrl(QString(url + c.typeName + dotqml_string), c.fileName);-
785 if (c.internal) {
c.internalDescription
TRUEnever evaluated
FALSEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-680
786 if (resolveLocalUrl(*base, c.fileName) != componentUrl)
resolveLocalUr...= componentUrlDescription
TRUEnever evaluated
FALSEnever evaluated
0
787 continue; // failed attempt to access an internal type
never executed: continue;
0
788 }
never executed: end of block
0
789 if (recursionRestriction == QQmlImport::PreventRecursion && *base == componentUrl) {
recursionRestr...eventRecursionDescription
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEnever evaluated
*base == componentUrlDescription
TRUEnever evaluated
FALSEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-680
790 if (typeRecursionDetected)
typeRecursionDetectedDescription
TRUEnever evaluated
FALSEnever evaluated
0
791 *typeRecursionDetected = true;
never executed: *typeRecursionDetected = true;
0
792 continue; // no recursion
never executed: continue;
0
793 }-
794 }
executed 680 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
680
795-
796 // This is our best candidate so far-
797 candidate = it;-
798 isCompositeSingleton = c.singleton;-
799 }
executed 680 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
680
800 }
executed 692 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
692
801 }
executed 1172 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1172
802-
803 if (candidate != end) {
candidate != endDescription
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEnever evaluated
0-680
804 if (!base) // ensure we have a componentUrl
!baseDescription
TRUEnever evaluated
FALSEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-680
805 componentUrl = resolveLocalUrl(QString(url + candidate->typeName + dotqml_string), candidate->fileName);
never executed: componentUrl = resolveLocalUrl(QString(url + candidate->typeName + dotqml_string), candidate->fileName);
0
806 int major = vmajor ? *vmajor : -1;
vmajorDescription
TRUEevaluated 174 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 506 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
174-506
807 int minor = vminor ? *vminor : -1;
vminorDescription
TRUEevaluated 174 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 506 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
174-506
808 QQmlType returnType = fetchOrCreateTypeForUrl(componentUrl, type, isCompositeSingleton,-
809 nullptr, major, minor);-
810 if (type_return)
type_returnDescription
TRUEevaluated 680 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEnever evaluated
0-680
811 *type_return = returnType;
executed 680 times by 13 tests: *type_return = returnType;
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
680
812 return returnType.isValid();
executed 680 times by 13 tests: return returnType.isValid();
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
680
813 }-
814 } else if (!isLibrary) {
never executed: end of block
!isLibraryDescription
TRUEevaluated 286019 times by 68 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 320262 times by 110 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
0-320262
815 QString qmlUrl;-
816 bool exists = false;-
817-
818 const QString urlsToTry[2] = {-
819 url + QString::fromRawData(type.constData(), type.length()) + dotqml_string, // Type -> Type.qml-
820 url + QString::fromRawData(type.constData(), type.length()) + dotuidotqml_string // Type -> Type.ui.qml-
821 };-
822 for (uint i = 0; i < sizeof(urlsToTry) / sizeof(urlsToTry[0]); ++i) {
i < sizeof(url...(urlsToTry[0])Description
TRUEevaluated 571224 times by 68 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 285199 times by 60 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
285199-571224
823 const QString url = urlsToTry[i];-
824 const QString localPath = QQmlFile::urlToLocalFileOrQrc(url);-
825 exists = !typeLoader->absoluteFilePath(localPath).isEmpty();-
826 if (exists) {
existsDescription
TRUEevaluated 820 times by 36 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEevaluated 570404 times by 61 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
820-570404
827 // don't let function.qml confuse the use of "new Function(...)" for example.-
828 if (!QQml_isFileCaseCorrect(localPath)) {
!QQml_isFileCa...ect(localPath)Description
TRUEnever evaluated
FALSEevaluated 820 times by 36 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
0-820
829 exists = false;-
830 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
831 QQmlError caseError;-
832 caseError.setDescription(QLatin1String("File name case mismatch"));-
833 errors->append(caseError);-
834 }
never executed: end of block
0
835 break;
never executed: break;
0
836 }-
837 qmlUrl = url;-
838 break;
executed 820 times by 36 tests: break;
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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
820
839 }-
840 }
executed 570404 times by 61 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
570404
841-
842 if (exists) {
existsDescription
TRUEevaluated 820 times by 36 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEevaluated 285199 times by 60 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
820-285199
843 if (recursionRestriction == QQmlImport::PreventRecursion && base && (*base == qmlUrl)) { // no recursion
recursionRestr...eventRecursionDescription
TRUEevaluated 818 times by 35 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmlcachegen
baseDescription
TRUEevaluated 818 times by 35 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEnever evaluated
(*base == qmlUrl)Description
TRUEnever evaluated
FALSEevaluated 818 times by 35 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-818
844 if (typeRecursionDetected)
typeRecursionDetectedDescription
TRUEnever evaluated
FALSEnever evaluated
0
845 *typeRecursionDetected = true;
never executed: *typeRecursionDetected = true;
0
846 } else {
never executed: end of block
0
847 QQmlType returnType = fetchOrCreateTypeForUrl(-
848 qmlUrl, type, registrationType == QQmlType::CompositeSingletonType, nullptr);-
849 if (type_return)
type_returnDescription
TRUEevaluated 820 times by 36 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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEnever evaluated
0-820
850 *type_return = returnType;
executed 820 times by 36 tests: *type_return = returnType;
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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
820
851 return returnType.isValid();
executed 820 times by 36 tests: return returnType.isValid();
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_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
820
852 }-
853 }-
854 }
executed 285199 times by 60 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
285199
855-
856 return false;
executed 605461 times by 110 tests: return false;
Executed 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
605461
857}-
858-
859bool QQmlImportsPrivate::resolveType(const QHashedStringRef& type, int *vmajor, int *vminor,-
860 QQmlType *type_return, QList<QQmlError> *errors,-
861 QQmlType::RegistrationType registrationType,-
862 QQmlImport::RecursionRestriction recursionRestriction)-
863{-
864 QQmlImportNamespace *s = nullptr;-
865 int dot = type.indexOf(Dot);-
866 if (dot >= 0) {
dot >= 0Description
TRUEevaluated 1055 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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 369852 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
  • ...
1055-369852
867 QHashedStringRef namespaceName(type.constData(), dot);-
868 s = findQualifiedNamespace(namespaceName);-
869 if (!s) {
!sDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistmodel
FALSEevaluated 1051 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
4-1051
870 if (errors) {
errorsDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistmodel
FALSEnever evaluated
0-4
871 QQmlError error;-
872 error.setDescription(QQmlImportDatabase::tr("- %1 is not a namespace").arg(namespaceName.toString()));-
873 errors->prepend(error);-
874 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmllistmodel
4
875 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmllistmodel
4
876 }-
877 int ndot = type.indexOf(Dot,dot+1);-
878 if (ndot > 0) {
ndot > 0Description
TRUEnever evaluated
FALSEevaluated 1051 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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-1051
879 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
880 QQmlError error;-
881 error.setDescription(QQmlImportDatabase::tr("- nested namespaces not allowed"));-
882 errors->prepend(error);-
883 }
never executed: end of block
0
884 return false;
never executed: return false;
0
885 }-
886 } else {
executed 1051 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1051
887 s = &unqualifiedset;-
888 }
executed 369852 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
  • ...
369852
889 QHashedStringRef unqualifiedtype = dot < 0 ? type : QHashedStringRef(type.constData()+dot+1, type.length()-dot-1);
dot < 0Description
TRUEevaluated 369852 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 1051 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1051-369852
890 if (s) {
sDescription
TRUEevaluated 370903 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-370903
891 if (s->resolveType(typeLoader, unqualifiedtype, vmajor, vminor, type_return, &base, errors,
s->resolveType...onRestriction)Description
TRUEevaluated 80584 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 290319 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
80584-290319
892 registrationType, recursionRestriction))
s->resolveType...onRestriction)Description
TRUEevaluated 80584 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 290319 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
80584-290319
893 return true;
executed 80584 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
  • ...
80584
894 if (s->imports.count() == 1 && !s->imports.at(0)->isLibrary && type_return && s != &unqualifiedset) {
s->imports.count() == 1Description
TRUEevaluated 346 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • ...
FALSEevaluated 289973 times by 68 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • ...
!s->imports.at(0)->isLibraryDescription
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qtqmlmodules
FALSEevaluated 328 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • ...
type_returnDescription
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qtqmlmodules
FALSEnever evaluated
s != &unqualifiedsetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qtqmlmodules
0-289973
895 // qualified, and only 1 url-
896 *type_return = fetchOrCreateTypeForUrl(resolveLocalUrl(s->imports.at(0)->url, unqualifiedtype.toString() + QLatin1String(".qml")), type, false, errors);-
897 return type_return->isValid();
executed 2 times by 1 test: return type_return->isValid();
Executed by:
  • tst_qquickloader
2
898 }-
899 }
executed 290317 times by 72 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290317
900-
901 return false;
executed 290317 times by 72 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290317
902}-
903-
904QQmlImportInstance *QQmlImportNamespace::findImport(const QString &uri) const-
905{-
906 for (QQmlImportInstance *import : imports) {-
907 if (import->uri == uri)
import->uri == uriDescription
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
12-44
908 return import;
executed 44 times by 5 tests: return import;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
909 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
12
910 return nullptr;
never executed: return nullptr;
0
911}-
912-
913bool QQmlImportNamespace::resolveType(QQmlTypeLoader *typeLoader, const QHashedStringRef &type,-
914 int *vmajor, int *vminor, QQmlType *type_return,-
915 QString *base, QList<QQmlError> *errors,-
916 QQmlType::RegistrationType registrationType,-
917 QQmlImport::RecursionRestriction recursionRestriction)-
918{-
919 bool typeRecursionDetected = false;-
920 for (int i=0; i<imports.count(); ++i) {
i<imports.count()Description
TRUEevaluated 686045 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 290319 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290319-686045
921 const QQmlImportInstance *import = imports.at(i);-
922 if (import->resolveType(typeLoader, type, vmajor, vminor, type_return, base,
import->resolv...ction, errors)Description
TRUEevaluated 80584 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 605461 times by 110 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
80584-605461
923 &typeRecursionDetected, registrationType, recursionRestriction, errors)) {
import->resolv...ction, errors)Description
TRUEevaluated 80584 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 605461 times by 110 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
80584-605461
924 if (qmlCheckTypes()) {
qmlCheckTypes()Description
TRUEnever evaluated
FALSEevaluated 80584 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-80584
925 // check for type clashes-
926 for (int j = i+1; j<imports.count(); ++j) {
j<imports.count()Description
TRUEnever evaluated
FALSEnever evaluated
0
927 const QQmlImportInstance *import2 = imports.at(j);-
928 if (import2->resolveType(typeLoader, type, vmajor, vminor, nullptr, base,
import2->resol...istrationType)Description
TRUEnever evaluated
FALSEnever evaluated
0
929 nullptr, registrationType)) {
import2->resol...istrationType)Description
TRUEnever evaluated
FALSEnever evaluated
0
930 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
931 QString u1 = import->url;-
932 QString u2 = import2->url;-
933 if (base) {
baseDescription
TRUEnever evaluated
FALSEnever evaluated
0
934 QStringRef b(base);-
935 int dot = b.lastIndexOf(Dot);-
936 if (dot >= 0) {
dot >= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
937 b = b.left(dot+1);-
938 QStringRef l = b.left(dot);-
939 if (u1.startsWith(b))
u1.startsWith(b)Description
TRUEnever evaluated
FALSEnever evaluated
0
940 u1 = u1.mid(b.count());
never executed: u1 = u1.mid(b.count());
0
941 else if (u1 == l)
u1 == lDescription
TRUEnever evaluated
FALSEnever evaluated
0
942 u1 = QQmlImportDatabase::tr("local directory");
never executed: u1 = QQmlImportDatabase::tr("local directory");
0
943 if (u2.startsWith(b))
u2.startsWith(b)Description
TRUEnever evaluated
FALSEnever evaluated
0
944 u2 = u2.mid(b.count());
never executed: u2 = u2.mid(b.count());
0
945 else if (u2 == l)
u2 == lDescription
TRUEnever evaluated
FALSEnever evaluated
0
946 u2 = QQmlImportDatabase::tr("local directory");
never executed: u2 = QQmlImportDatabase::tr("local directory");
0
947 }
never executed: end of block
0
948 }
never executed: end of block
0
949-
950 QQmlError error;-
951 if (u1 != u2) {
u1 != u2Description
TRUEnever evaluated
FALSEnever evaluated
0
952 error.setDescription(QQmlImportDatabase::tr("is ambiguous. Found in %1 and in %2").arg(u1).arg(u2));-
953 } else {
never executed: end of block
0
954 error.setDescription(QQmlImportDatabase::tr("is ambiguous. Found in %1 in version %2.%3 and %4.%5")-
955 .arg(u1)-
956 .arg(import->majversion).arg(import->minversion)-
957 .arg(import2->majversion).arg(import2->minversion));-
958 }
never executed: end of block
0
959 errors->prepend(error);-
960 }
never executed: end of block
0
961 return false;
never executed: return false;
0
962 }-
963 }
never executed: end of block
0
964 }
never executed: end of block
0
965 return true;
executed 80584 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
  • ...
80584
966 }-
967 }
executed 605461 times by 110 tests: end of block
Executed 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_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
605461
968 if (errors) {
errorsDescription
TRUEevaluated 290192 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 127 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickscreen
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
127-290192
969 QQmlError error;-
970 if (typeRecursionDetected)
typeRecursionDetectedDescription
TRUEnever evaluated
FALSEevaluated 290192 times by 72 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
0-290192
971 error.setDescription(QQmlImportDatabase::tr("is instantiated recursively"));
never executed: error.setDescription(QQmlImportDatabase::tr("is instantiated recursively"));
0
972 else-
973 error.setDescription(QQmlImportDatabase::tr("is not a type"));
executed 290192 times by 72 tests: error.setDescription(QQmlImportDatabase::tr("is not a type"));
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290192
974 errors->prepend(error);-
975 }
executed 290192 times by 72 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290192
976 return false;
executed 290319 times by 72 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qmlcachegen
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
290319
977}-
978-
979QQmlImportsPrivate::QQmlImportsPrivate(QQmlTypeLoader *loader)-
980: ref(1), typeLoader(loader) {-
981}
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
982-
983QQmlImportsPrivate::~QQmlImportsPrivate()-
984{-
985 while (QQmlImportNamespace *ns = qualifiedSets.takeFirst())
QQmlImportName...ts.takeFirst()Description
TRUEevaluated 1162 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 13655 times by 134 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_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
1162-13655
986 delete ns;
executed 1162 times by 36 tests: delete ns;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1162
987}
executed 13655 times by 134 tests: end of block
Executed 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_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
13655
988-
989QQmlImportNamespace *QQmlImportsPrivate::findQualifiedNamespace(const QHashedStringRef &prefix) const-
990{-
991 for (QQmlImportNamespace *ns = qualifiedSets.first(); ns; ns = qualifiedSets.next(ns)) {
nsDescription
TRUEevaluated 128462 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 372095 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
  • ...
128462-372095
992 if (prefix == ns->prefix)
prefix == ns->prefixDescription
TRUEevaluated 1084 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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 127378 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1084-127378
993 return ns;
executed 1084 times by 35 tests: return ns;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1084
994 }
executed 127378 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
127378
995 return nullptr;
executed 372095 times by 141 tests: return 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
  • ...
372095
996}-
997-
998/*-
999 Returns the list of possible versioned URI combinations. For example, if \a uri is-
1000 QtQml.Models, \a vmaj is 2, and \a vmin is 0, this method returns the following:-
1001 [QtQml.Models.2.0, QtQml.2.0.Models, QtQml.Models.2, QtQml.2.Models, QtQml.Models]-
1002 */-
1003static QStringList versionUriList(const QString &uri, int vmaj, int vmin)-
1004{-
1005 QStringList result;-
1006 for (int version = QQmlImports::FullyVersioned; version <= QQmlImports::Unversioned; ++version) {
version <= QQm...s::UnversionedDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
8-24
1007 int index = uri.length();-
1008 do {-
1009 QString versionUri = uri;-
1010 versionUri.insert(index, QQmlImports::versionString(vmaj, vmin, static_cast<QQmlImports::ImportVersion>(version)));-
1011 result += versionUri;-
1012-
1013 index = uri.lastIndexOf(Dot, index - 1);-
1014 } while (index > 0 && version != QQmlImports::Unversioned);
executed 32 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
index > 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
version != QQm...s::UnversionedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
2-32
1015 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
24
1016 return result;
executed 8 times by 1 test: return result;
Executed by:
  • tst_qqmlmoduleplugin
8
1017}-
1018-
1019static QVector<QStaticPlugin> makePlugins()-
1020{-
1021 QVector<QStaticPlugin> plugins;-
1022 // To avoid traversing all static plugins for all imports, we cut down-
1023 // the list the first time called to only contain QML plugins:-
1024 const auto staticPlugins = QPluginLoader::staticPlugins();-
1025 for (const QStaticPlugin &plugin : staticPlugins) {-
1026 const QString iid = plugin.metaData().value(QLatin1String("IID")).toString();-
1027 if (iid == QLatin1String(QQmlExtensionInterface_iid) || iid == QLatin1String(QQmlExtensionInterface_iid_old)) {
iid == QLatin1...nterface/1.0")Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
iid == QLatin1...ionInterface")Description
TRUEnever evaluated
FALSEnever evaluated
0-4
1028 plugins.append(plugin);-
1029 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
1030 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
1031 return plugins;
executed 2 times by 1 test: return plugins;
Executed by:
  • tst_qqmlmoduleplugin
2
1032}-
1033-
1034/*-
1035 Get all static plugins that are QML plugins and has a meta data URI that matches with one of-
1036 \a versionUris, which is a list of all possible versioned URI combinations - see versionUriList()-
1037 above.-
1038 */-
1039bool QQmlImportsPrivate::populatePluginPairVector(QVector<StaticPluginPair> &result, const QString &uri, const QStringList &versionUris,-
1040 const QString &qmldirPath, QList<QQmlError> *errors)-
1041{-
1042 static const QVector<QStaticPlugin> plugins = makePlugins();-
1043 for (const QStaticPlugin &plugin : plugins) {-
1044 // Since a module can list more than one plugin, we keep iterating even after we found a match.-
1045 if (QQmlExtensionPlugin *instance = qobject_cast<QQmlExtensionPlugin *>(plugin.instance())) {
QQmlExtensionP...in.instance())Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-16
1046 const QJsonArray metaTagsUriList = plugin.metaData().value(QLatin1String("uri")).toArray();-
1047 if (metaTagsUriList.isEmpty()) {
metaTagsUriList.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-16
1048 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
1049 QQmlError error;-
1050 error.setDescription(QQmlImportDatabase::tr("static plugin for module \"%1\" with name \"%2\" has no metadata URI")-
1051 .arg(uri).arg(QString::fromUtf8(instance->metaObject()->className())));-
1052 error.setUrl(QUrl::fromLocalFile(qmldirPath));-
1053 errors->prepend(error);-
1054 }
never executed: end of block
0
1055 return false;
never executed: return false;
0
1056 }-
1057 // A plugin can be set up to handle multiple URIs, so go through the list:-
1058 for (const QJsonValue &metaTagUri : metaTagsUriList) {-
1059 if (versionUris.contains(metaTagUri.toString())) {
versionUris.co...ri.toString())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
4-12
1060 result.append(qMakePair(plugin, metaTagsUriList));-
1061 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qqmlmoduleplugin
4
1062 }-
1063 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
12
1064 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
16
1065 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
16
1066 return true;
executed 8 times by 1 test: return true;
Executed by:
  • tst_qqmlmoduleplugin
8
1067}-
1068-
1069#if defined(QT_SHARED) || !QT_CONFIG(library)-
1070static inline QString msgCannotLoadPlugin(const QString &uri, const QString &why)-
1071{-
1072 return QQmlImportDatabase::tr("plugin cannot be loaded for module \"%1\": %2").arg(uri, why);
executed 6 times by 1 test: return QQmlImportDatabase::tr("plugin cannot be loaded for module \"%1\": %2").arg(uri, why);
Executed by:
  • tst_qqmlmoduleplugin
6
1073}-
1074#endif-
1075-
1076/*-
1077Import an extension defined by a qmldir file.-
1078-
1079\a qmldirFilePath is a raw file path.-
1080*/-
1081bool QQmlImportsPrivate::importExtension(const QString &qmldirFilePath,-
1082 const QString &uri,-
1083 int vmaj, int vmin,-
1084 QQmlImportDatabase *database,-
1085 const QQmlTypeLoaderQmldirContent &qmldir,-
1086 QList<QQmlError> *errors)-
1087{-
1088 Q_ASSERT(qmldir.hasContent());-
1089-
1090 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 57013 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-57013
1091 qDebug().nospace() << "QQmlImports(" << qPrintable(base) << ")::importExtension: "
never executed: QMessageLogger(__FILE__, 1091, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(base).toLocal8Bit().constData() << ")::importExtension: " << "loaded " << qmldirFilePath;
0
1092 << "loaded " << qmldirFilePath;
never executed: QMessageLogger(__FILE__, 1091, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(base).toLocal8Bit().constData() << ")::importExtension: " << "loaded " << qmldirFilePath;
0
1093-
1094 if (designerSupportRequired && !qmldir.designerSupported()) {
designerSupportRequiredDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlimport
FALSEevaluated 57005 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
  • ...
!qmldir.designerSupported()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlimport
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlimport
2-57005
1095 if (errors) {
errorsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlimport
FALSEnever evaluated
0-2
1096 QQmlError error;-
1097 error.setDescription(QQmlImportDatabase::tr("module does not support the designer \"%1\"").arg(qmldir.typeNamespace()));-
1098 error.setUrl(QUrl::fromLocalFile(qmldirFilePath));-
1099 errors->prepend(error);-
1100 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlimport
2
1101 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlimport
2
1102 }-
1103-
1104 int qmldirPluginCount = qmldir.plugins().count();-
1105 if (qmldirPluginCount == 0)
qmldirPluginCount == 0Description
TRUEevaluated 595 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
FALSEevaluated 56416 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
  • ...
595-56416
1106 return true;
executed 595 times by 31 tests: return true;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
595
1107-
1108 if (!database->qmlDirFilesForWhichPluginsHaveBeenLoaded.contains(qmldirFilePath)) {
!database->qml...mldirFilePath)Description
TRUEevaluated 7399 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
  • ...
FALSEevaluated 49017 times by 70 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
7399-49017
1109 // First search for listed qmldir plugins dynamically. If we cannot resolve them all, we continue-
1110 // searching static plugins that has correct metadata uri. Note that since we only know the uri-
1111 // for a static plugin, and not the filename, we cannot know which static plugin belongs to which-
1112 // listed plugin inside qmldir. And for this reason, mixing dynamic and static plugins inside a-
1113 // single module is not recommended.-
1114-
1115 QString typeNamespace = qmldir.typeNamespace();-
1116 QString qmldirPath = qmldirFilePath;-
1117 int slash = qmldirPath.lastIndexOf(Slash);-
1118 if (slash > 0)
slash > 0Description
TRUEevaluated 7399 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-7399
1119 qmldirPath.truncate(slash);
executed 7399 times by 135 tests: qmldirPath.truncate(slash);
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
  • ...
7399
1120-
1121 int dynamicPluginsFound = 0;-
1122 int staticPluginsFound = 0;-
1123-
1124#if defined(QT_SHARED)-
1125 const auto qmldirPlugins = qmldir.plugins();-
1126 for (const QQmlDirParser::Plugin &plugin : qmldirPlugins) {-
1127 QString resolvedFilePath = database->resolvePlugin(typeLoader, qmldirPath, plugin.path, plugin.name);-
1128 if (!resolvedFilePath.isEmpty()) {
!resolvedFilePath.isEmpty()Description
TRUEevaluated 7391 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
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
8-7391
1129 dynamicPluginsFound++;-
1130 if (!database->importDynamicPlugin(resolvedFilePath, uri, typeNamespace, vmaj, errors)) {
!database->imp... vmaj, errors)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 7385 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
  • ...
6-7385
1131 if (errors) {
errorsDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-6
1132 // XXX TODO: should we leave the import plugin error alone?-
1133 // Here, we pop it off the top and coalesce it into this error's message.-
1134 // The reason is that the lower level may add url and line/column numbering information.-
1135 QQmlError poppedError = errors->takeFirst();-
1136 QQmlError error;-
1137 error.setDescription(msgCannotLoadPlugin(uri, poppedError.description()));-
1138 error.setUrl(QUrl::fromLocalFile(qmldirFilePath));-
1139 errors->prepend(error);-
1140 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
6
1141 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
6
1142 }-
1143 }
executed 7385 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
  • ...
7385
1144 }
executed 7393 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
  • ...
7393
1145#endif // QT_SHARED-
1146-
1147 if (dynamicPluginsFound < qmldirPluginCount) {
dynamicPlugins...dirPluginCountDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 7385 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
  • ...
8-7385
1148 // Check if the missing plugins can be resolved statically. We do this by looking at-
1149 // the URIs embedded in a plugins meta data. Since those URIs can be anything from fully-
1150 // versioned to unversioned, we need to compare with differnt version strings. If a module-
1151 // has several plugins, they must all have the same version. Start by populating pluginPairs-
1152 // with relevant plugins to cut the list short early on:-
1153 const QStringList versionUris = versionUriList(uri, vmaj, vmin);-
1154 QVector<StaticPluginPair> pluginPairs;-
1155 if (!populatePluginPairVector(pluginPairs, uri, versionUris, qmldirFilePath, errors))
!populatePlugi...ePath, errors)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-8
1156 return false;
never executed: return false;
0
1157-
1158 const QString basePath = QFileInfo(qmldirPath).absoluteFilePath();-
1159 for (const QString &versionUri : versionUris) {-
1160 for (const StaticPluginPair &pair : qAsConst(pluginPairs)) {-
1161 for (const QJsonValue &metaTagUri : pair.second) {-
1162 if (versionUri == metaTagUri.toString()) {
versionUri == ...Uri.toString()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
4-8
1163 staticPluginsFound++;-
1164 QObject *instance = pair.first.instance();-
1165 if (!database->importStaticPlugin(instance, basePath, uri, typeNamespace, vmaj, errors)) {
!database->imp... vmaj, errors)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-4
1166 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
1167 QQmlError poppedError = errors->takeFirst();-
1168 QQmlError error;-
1169 error.setDescription(QQmlImportDatabase::tr("static plugin for module \"%1\" with name \"%2\" cannot be loaded: %3")-
1170 .arg(uri).arg(QString::fromUtf8(instance->metaObject()->className())).arg(poppedError.description()));-
1171 error.setUrl(QUrl::fromLocalFile(qmldirFilePath));-
1172 errors->prepend(error);-
1173 }
never executed: end of block
0
1174 return false;
never executed: return false;
0
1175 }-
1176 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qqmlmoduleplugin
4
1177 }-
1178 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
8
1179 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
12
1180 if (staticPluginsFound > 0)
staticPluginsFound > 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
4-28
1181 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qqmlmoduleplugin
4
1182 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
28
1183 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
8
1184-
1185 if ((dynamicPluginsFound + staticPluginsFound) < qmldirPluginCount) {
(dynamicPlugin...dirPluginCountDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 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
  • ...
4-7389
1186 if (errors) {
errorsDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-4
1187 QQmlError error;-
1188 if (qmldirPluginCount > 1 && staticPluginsFound > 0)
qmldirPluginCount > 1Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
staticPluginsFound > 0Description
TRUEnever evaluated
FALSEnever evaluated
0-4
1189 error.setDescription(QQmlImportDatabase::tr("could not resolve all plugins for module \"%1\"").arg(uri));
never executed: error.setDescription(QQmlImportDatabase::tr("could not resolve all plugins for module \"%1\"").arg(uri));
0
1190 else-
1191 error.setDescription(QQmlImportDatabase::tr("module \"%1\" plugin \"%2\" not found").arg(uri).arg(qmldir.plugins()[dynamicPluginsFound].name));
executed 4 times by 1 test: error.setDescription(QQmlImportDatabase::tr("module \"%1\" plugin \"%2\" not found").arg(uri).arg(qmldir.plugins()[dynamicPluginsFound].name));
Executed by:
  • tst_qqmlmoduleplugin
4
1192 error.setUrl(QUrl::fromLocalFile(qmldirFilePath));-
1193 errors->prepend(error);-
1194 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
1195 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
4
1196 }-
1197-
1198 database->qmlDirFilesForWhichPluginsHaveBeenLoaded.insert(qmldirFilePath);-
1199 }
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
1200 return true;
executed 56406 times by 135 tests: return true;
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
  • ...
56406
1201}-
1202-
1203bool QQmlImportsPrivate::getQmldirContent(const QString &qmldirIdentifier, const QString &uri,-
1204 QQmlTypeLoaderQmldirContent *qmldir, QList<QQmlError> *errors)-
1205{-
1206 Q_ASSERT(errors);-
1207 Q_ASSERT(qmldir);-
1208-
1209 *qmldir = typeLoader->qmldirContent(qmldirIdentifier);-
1210 if ((*qmldir).hasContent()) {
(*qmldir).hasContent()Description
TRUEevaluated 57017 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-57017
1211 // Ensure that parsing was successful-
1212 if ((*qmldir).hasError()) {
(*qmldir).hasError()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 57013 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
  • ...
4-57013
1213 QUrl url = QUrl::fromLocalFile(qmldirIdentifier);-
1214 const QList<QQmlError> qmldirErrors = (*qmldir).errors(uri);-
1215 for (int i = 0; i < qmldirErrors.size(); ++i) {
i < qmldirErrors.size()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
4-6
1216 QQmlError error = qmldirErrors.at(i);-
1217 error.setUrl(url);-
1218 errors->append(error);-
1219 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
6
1220 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
4
1221 }-
1222 }
executed 57013 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
  • ...
57013
1223-
1224 return true;
executed 57013 times by 140 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
  • ...
57013
1225}-
1226-
1227QString QQmlImportsPrivate::resolvedUri(const QString &dir_arg, QQmlImportDatabase *database)-
1228{-
1229 QString dir = dir_arg;-
1230 if (dir.endsWith(Slash) || dir.endsWith(Backslash))
dir.endsWith(Slash)Description
TRUEevaluated 9463 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 148 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickstates
  • tst_qrcqml
dir.endsWith(Backslash)Description
TRUEnever evaluated
FALSEevaluated 148 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickstates
  • tst_qrcqml
0-9463
1231 dir.chop(1);
executed 9463 times by 127 tests: dir.chop(1);
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
  • ...
9463
1232-
1233 QStringList paths = database->fileImportPath;-
1234 if (!paths.isEmpty())
!paths.isEmpty()Description
TRUEevaluated 9611 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-9611
1235 std::sort(paths.begin(), paths.end(), std::greater<QString>()); // Ensure subdirs preceed their parents.
executed 9611 times by 127 tests: std::sort(paths.begin(), paths.end(), std::greater<QString>());
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
  • ...
9611
1236-
1237 QString stableRelativePath = dir;-
1238 for (const QString &path : qAsConst(paths)) {-
1239 if (dir.startsWith(path)) {
dir.startsWith(path)Description
TRUEevaluated 8621 times by 122 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • 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
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • ...
FALSEevaluated 11791 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
  • ...
8621-11791
1240 stableRelativePath = dir.mid(path.length()+1);-
1241 break;
executed 8621 times by 122 tests: break;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • 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
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • ...
8621
1242 }-
1243 }
executed 11791 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
  • ...
11791
1244-
1245 stableRelativePath.replace(Backslash, Slash);-
1246-
1247 // remove optional versioning in dot notation from uri-
1248 int versionDot = stableRelativePath.lastIndexOf(Dot);-
1249 if (versionDot >= 0) {
versionDot >= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
FALSEevaluated 9609 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
  • ...
2-9609
1250 int nextSlash = stableRelativePath.indexOf(Slash, versionDot);-
1251 if (nextSlash >= 0)
nextSlash >= 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
0-2
1252 stableRelativePath.remove(versionDot, nextSlash - versionDot);
never executed: stableRelativePath.remove(versionDot, nextSlash - versionDot);
0
1253 else-
1254 stableRelativePath = stableRelativePath.left(versionDot);
executed 2 times by 1 test: stableRelativePath = stableRelativePath.left(versionDot);
Executed by:
  • tst_qquickloader
2
1255 }-
1256-
1257 stableRelativePath.replace(Slash, Dot);-
1258-
1259 return stableRelativePath;
executed 9611 times by 127 tests: return stableRelativePath;
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
  • ...
9611
1260}-
1261-
1262/*-
1263Locates the qmldir file for \a uri version \a vmaj.vmin. Returns true if found,-
1264and fills in outQmldirFilePath and outQmldirUrl appropriately. Otherwise returns-
1265false.-
1266*/-
1267bool QQmlImportsPrivate::locateQmldir(const QString &uri, int vmaj, int vmin, QQmlImportDatabase *database,-
1268 QString *outQmldirFilePath, QString *outQmldirPathUrl)-
1269{-
1270 Q_ASSERT(vmaj >= 0 && vmin >= 0); // Versions are always specified for libraries-
1271-
1272 // Check cache first-
1273-
1274 QQmlImportDatabase::QmldirCache *cacheHead = nullptr;-
1275 {-
1276 QQmlImportDatabase::QmldirCache **cachePtr = database->qmldirCache.value(uri);-
1277 if (cachePtr) {
cachePtrDescription
TRUEevaluated 49610 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 8513 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
  • ...
8513-49610
1278 cacheHead = *cachePtr;-
1279 QQmlImportDatabase::QmldirCache *cache = cacheHead;-
1280 while (cache) {
cacheDescription
TRUEevaluated 54028 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 602 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktaphandler
  • tst_qquicktext
  • ...
602-54028
1281 if (cache->versionMajor == vmaj && cache->versionMinor == vmin) {
cache->versionMajor == vmajDescription
TRUEevaluated 54014 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qquickfolderlistmodel
cache->versionMinor == vminDescription
TRUEevaluated 49008 times by 69 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
FALSEevaluated 5006 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
14-54014
1282 *outQmldirFilePath = cache->qmldirFilePath;-
1283 *outQmldirPathUrl = cache->qmldirPathUrl;-
1284 return !cache->qmldirFilePath.isEmpty();
executed 49008 times by 69 tests: return !cache->qmldirFilePath.isEmpty();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
49008
1285 }-
1286 cache = cache->next;-
1287 }
executed 5020 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktaphandler
  • tst_qquicktext
  • ...
5020
1288 }
executed 602 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktaphandler
  • tst_qquicktext
  • ...
602
1289 }-
1290-
1291 QQmlTypeLoader &typeLoader = QQmlEnginePrivate::get(database->engine)->typeLoader;-
1292-
1293 // Interceptor might redirect remote files to local ones.-
1294 QQmlAbstractUrlInterceptor *interceptor = typeLoader.engine()->urlInterceptor();-
1295 QStringList localImportPaths = database->importPathList(-
1296 interceptor ? QQmlImportDatabase::LocalOrRemote : QQmlImportDatabase::Local);-
1297-
1298 // Search local import paths for a matching version-
1299 const QStringList qmlDirPaths = QQmlImports::completeQmldirPaths(uri, localImportPaths, vmaj, vmin);-
1300 for (QString qmldirPath : qmlDirPaths) {-
1301 if (interceptor) {
interceptorDescription
TRUEevaluated 3196 times by 8 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
FALSEevaluated 67083 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
  • ...
3196-67083
1302 qmldirPath = QQmlFile::urlToLocalFileOrQrc(-
1303 interceptor->intercept(QQmlImports::urlFromLocalFileOrQrcOrUrl(qmldirPath),-
1304 QQmlAbstractUrlInterceptor::QmldirFile));-
1305 }
executed 3196 times by 8 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
3196
1306-
1307 QString absoluteFilePath = typeLoader.absoluteFilePath(qmldirPath);-
1308 if (!absoluteFilePath.isEmpty()) {
!absoluteFilePath.isEmpty()Description
TRUEevaluated 8231 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 62048 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
  • ...
8231-62048
1309 QString url;-
1310 const QStringRef absolutePath = absoluteFilePath.leftRef(absoluteFilePath.lastIndexOf(Slash) + 1);-
1311 if (absolutePath.at(0) == Colon)
absolutePath.at(0) == ColonDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qrcqml
FALSEevaluated 8227 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
  • ...
4-8227
1312 url = QLatin1String("qrc://") + absolutePath.mid(1);
executed 4 times by 1 test: url = QLatin1String("qrc://") + absolutePath.mid(1);
Executed by:
  • tst_qrcqml
4
1313 else-
1314 url = QUrl::fromLocalFile(absolutePath.toString()).toString();
executed 8227 times by 140 tests: url = QUrl::fromLocalFile(absolutePath.toString()).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
  • ...
8227
1315-
1316 QQmlImportDatabase::QmldirCache *cache = new QQmlImportDatabase::QmldirCache;-
1317 cache->versionMajor = vmaj;-
1318 cache->versionMinor = vmin;-
1319 cache->qmldirFilePath = absoluteFilePath;-
1320 cache->qmldirPathUrl = url;-
1321 cache->next = cacheHead;-
1322 database->qmldirCache.insert(uri, cache);-
1323-
1324 *outQmldirFilePath = absoluteFilePath;-
1325 *outQmldirPathUrl = url;-
1326-
1327 return true;
executed 8231 times by 140 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
  • ...
8231
1328 }-
1329 }
executed 62048 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
  • ...
62048
1330-
1331 QQmlImportDatabase::QmldirCache *cache = new QQmlImportDatabase::QmldirCache;-
1332 cache->versionMajor = vmaj;-
1333 cache->versionMinor = vmin;-
1334 cache->next = cacheHead;-
1335 database->qmldirCache.insert(uri, cache);-
1336-
1337 return false;
executed 884 times by 44 tests: return false;
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
  • ...
884
1338}-
1339-
1340bool QQmlImportsPrivate::validateQmldirVersion(const QQmlTypeLoaderQmldirContent &qmldir, const QString &uri, int vmaj, int vmin,-
1341 QList<QQmlError> *errors)-
1342{-
1343 int lowest_min = INT_MAX;-
1344 int highest_min = INT_MIN;-
1345-
1346 typedef QQmlDirComponents::const_iterator ConstIterator;-
1347 const QQmlDirComponents &components = qmldir.components();-
1348-
1349 ConstIterator cend = components.constEnd();-
1350 for (ConstIterator cit = components.constBegin(); cit != cend; ++cit) {
cit != cendDescription
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEevaluated 34 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
24-34
1351 for (ConstIterator cit2 = components.constBegin(); cit2 != cit; ++cit2) {
cit2 != citDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
2-24
1352 if ((cit2->typeName == cit->typeName) &&
(cit2->typeNam...cit->typeName)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-2
1353 (cit2->majorVersion == cit->majorVersion) &&
(cit2->majorVe...>majorVersion)Description
TRUEnever evaluated
FALSEnever evaluated
0
1354 (cit2->minorVersion == cit->minorVersion)) {
(cit2->minorVe...>minorVersion)Description
TRUEnever evaluated
FALSEnever evaluated
0
1355 // This entry clashes with a predecessor-
1356 QQmlError error;-
1357 error.setDescription(QQmlImportDatabase::tr("\"%1\" version %2.%3 is defined more than once in module \"%4\"")-
1358 .arg(cit->typeName).arg(cit->majorVersion).arg(cit->minorVersion).arg(uri));-
1359 errors->prepend(error);-
1360 return false;
never executed: return false;
0
1361 }-
1362 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
2
1363-
1364 if (cit->majorVersion == vmaj) {
cit->majorVersion == vmajDescription
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEnever evaluated
0-24
1365 lowest_min = qMin(lowest_min, cit->minorVersion);-
1366 highest_min = qMax(highest_min, cit->minorVersion);-
1367 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
24
1368 }
executed 24 times by 4 tests: end of block
Executed by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
24
1369-
1370 typedef QList<QQmlDirParser::Script>::const_iterator SConstIterator;-
1371 const QQmlDirScripts &scripts = qmldir.scripts();-
1372-
1373 SConstIterator send = scripts.constEnd();-
1374 for (SConstIterator sit = scripts.constBegin(); sit != send; ++sit) {
sit != sendDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 34 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
12-34
1375 for (SConstIterator sit2 = scripts.constBegin(); sit2 != sit; ++sit2) {
sit2 != sitDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-12
1376 if ((sit2->nameSpace == sit->nameSpace) &&
(sit2->nameSpa...it->nameSpace)Description
TRUEnever evaluated
FALSEnever evaluated
0
1377 (sit2->majorVersion == sit->majorVersion) &&
(sit2->majorVe...>majorVersion)Description
TRUEnever evaluated
FALSEnever evaluated
0
1378 (sit2->minorVersion == sit->minorVersion)) {
(sit2->minorVe...>minorVersion)Description
TRUEnever evaluated
FALSEnever evaluated
0
1379 // This entry clashes with a predecessor-
1380 QQmlError error;-
1381 error.setDescription(QQmlImportDatabase::tr("\"%1\" version %2.%3 is defined more than once in module \"%4\"")-
1382 .arg(sit->nameSpace).arg(sit->majorVersion).arg(sit->minorVersion).arg(uri));-
1383 errors->prepend(error);-
1384 return false;
never executed: return false;
0
1385 }-
1386 }
never executed: end of block
0
1387-
1388 if (sit->majorVersion == vmaj) {
sit->majorVersion == vmajDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-12
1389 lowest_min = qMin(lowest_min, sit->minorVersion);-
1390 highest_min = qMax(highest_min, sit->minorVersion);-
1391 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
1392 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
12
1393-
1394 if (lowest_min > vmin || highest_min < vmin) {
lowest_min > vminDescription
TRUEnever evaluated
FALSEevaluated 34 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
highest_min < vminDescription
TRUEnever evaluated
FALSEevaluated 34 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
0-34
1395 QQmlError error;-
1396 error.setDescription(QQmlImportDatabase::tr("module \"%1\" version %2.%3 is not installed").arg(uri).arg(vmaj).arg(vmin));-
1397 errors->prepend(error);-
1398 return false;
never executed: return false;
0
1399 }-
1400-
1401 return true;
executed 34 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
34
1402}-
1403-
1404QQmlImportNamespace *QQmlImportsPrivate::importNamespace(const QString &prefix) const-
1405{-
1406 QQmlImportNamespace *nameSpace = nullptr;-
1407-
1408 if (prefix.isEmpty()) {
prefix.isEmpty()Description
TRUEevaluated 112252 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 1186 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1186-112252
1409 nameSpace = &unqualifiedset;-
1410 } else {
executed 112252 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
  • ...
112252
1411 nameSpace = findQualifiedNamespace(prefix);-
1412-
1413 if (!nameSpace) {
!nameSpaceDescription
TRUEevaluated 1184 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-1184
1414 nameSpace = new QQmlImportNamespace;-
1415 nameSpace->prefix = prefix;-
1416 qualifiedSets.append(nameSpace);-
1417 }
executed 1184 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1184
1418 }
executed 1186 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • 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
  • ...
1186
1419-
1420 return nameSpace;
executed 113438 times by 141 tests: return nameSpace;
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
  • ...
113438
1421}-
1422-
1423QQmlImportInstance *QQmlImportsPrivate::addImportToNamespace(QQmlImportNamespace *nameSpace,-
1424 const QString &uri, const QString &url, int vmaj, int vmin,-
1425 QV4::CompiledData::Import::ImportType type,-
1426 QList<QQmlError> *errors, bool lowPrecedence)-
1427{-
1428 Q_ASSERT(nameSpace);-
1429 Q_ASSERT(errors);-
1430 Q_UNUSED(errors);-
1431 Q_ASSERT(url.isEmpty() || url.endsWith(Slash));-
1432-
1433 QQmlImportInstance *import = new QQmlImportInstance;-
1434 import->uri = uri;-
1435 import->url = url;-
1436 import->majversion = vmaj;-
1437 import->minversion = vmin;-
1438 import->isLibrary = (type == QV4::CompiledData::Import::ImportLibrary);-
1439-
1440 if (lowPrecedence)
lowPrecedenceDescription
TRUEevaluated 54877 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 58339 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
  • ...
54877-58339
1441 nameSpace->imports.append(import);
executed 54877 times by 141 tests: nameSpace->imports.append(import);
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
  • ...
54877
1442 else-
1443 nameSpace->imports.prepend(import);
executed 58339 times by 141 tests: nameSpace->imports.prepend(import);
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
  • ...
58339
1444-
1445 return import;
executed 113216 times by 141 tests: return import;
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
  • ...
113216
1446}-
1447-
1448bool QQmlImportsPrivate::addLibraryImport(const QString& uri, const QString &prefix,-
1449 int vmaj, int vmin, const QString &qmldirIdentifier, const QString &qmldirUrl, bool incomplete,-
1450 QQmlImportDatabase *database,-
1451 QList<QQmlError> *errors)-
1452{-
1453 Q_ASSERT(database);-
1454 Q_ASSERT(errors);-
1455-
1456 QQmlImportNamespace *nameSpace = importNamespace(prefix);-
1457 Q_ASSERT(nameSpace);-
1458-
1459 QQmlImportInstance *inserted = addImportToNamespace(nameSpace, uri, qmldirUrl, vmaj, vmin, QV4::CompiledData::Import::ImportLibrary, errors);-
1460 Q_ASSERT(inserted);-
1461-
1462 if (!incomplete) {
!incompleteDescription
TRUEevaluated 58135 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 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
8-58135
1463 QQmlTypeLoaderQmldirContent qmldir;-
1464-
1465 if (!qmldirIdentifier.isEmpty()) {
!qmldirIdentifier.isEmpty()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 1378 times by 45 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • 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
  • ...
1378-56757
1466 if (!getQmldirContent(qmldirIdentifier, uri, &qmldir, errors))
!getQmldirCont...mldir, errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 56755 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
  • ...
2-56755
1467 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
1468-
1469 if (qmldir.hasContent()) {
qmldir.hasContent()Description
TRUEevaluated 56755 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-56755
1470 if (!importExtension(qmldir.pluginLocation(), uri, vmaj, vmin, database, qmldir, errors))
!importExtensi...mldir, errors)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
FALSEevaluated 56745 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
  • ...
10-56745
1471 return false;
executed 10 times by 2 tests: return false;
Executed by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
10
1472-
1473 if (!inserted->setQmldirContent(qmldirUrl, qmldir, nameSpace, errors))
!inserted->set...Space, errors)Description
TRUEnever evaluated
FALSEevaluated 56745 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-56745
1474 return false;
never executed: return false;
0
1475 }
executed 56745 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
  • ...
56745
1476 }
executed 56745 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
  • ...
56745
1477-
1478 // Ensure that we are actually providing something-
1479 if ((vmaj < 0) || (vmin < 0) || !QQmlMetaType::isModule(uri, vmaj, vmin)) {
(vmaj < 0)Description
TRUEnever evaluated
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
  • ...
(vmin < 0)Description
TRUEnever evaluated
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
  • ...
!QQmlMetaType:...i, vmaj, vmin)Description
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEevaluated 58081 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-58123
1480 if (inserted->qmlDirComponents.isEmpty() && inserted->qmlDirScripts.isEmpty()) {
inserted->qmlD...ents.isEmpty()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEevaluated 20 times by 4 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
inserted->qmlD...ipts.isEmpty()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
10-22
1481 QQmlError error;-
1482 if (QQmlMetaType::isAnyModule(uri))
QQmlMetaType::isAnyModule(uri)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-12
1483 error.setDescription(QQmlImportDatabase::tr("module \"%1\" version %2.%3 is not installed").arg(uri).arg(vmaj).arg(vmin));
executed 12 times by 2 tests: error.setDescription(QQmlImportDatabase::tr("module \"%1\" version %2.%3 is not installed").arg(uri).arg(vmaj).arg(vmin));
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
12
1484 else-
1485 error.setDescription(QQmlImportDatabase::tr("module \"%1\" is not installed").arg(uri));
never executed: error.setDescription(QQmlImportDatabase::tr("module \"%1\" is not installed").arg(uri));
0
1486 errors->prepend(error);-
1487 return false;
executed 12 times by 2 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
12
1488 } else if ((vmaj >= 0) && (vmin >= 0) && qmldir.hasContent()) {
(vmaj >= 0)Description
TRUEevaluated 30 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEnever evaluated
(vmin >= 0)Description
TRUEevaluated 30 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEnever evaluated
qmldir.hasContent()Description
TRUEevaluated 30 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
FALSEnever evaluated
0-30
1489 // Verify that the qmldir content is valid for this version-
1490 if (!validateQmldirVersion(qmldir, uri, vmaj, vmin, errors))
!validateQmldi... vmin, errors)Description
TRUEnever evaluated
FALSEevaluated 30 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
0-30
1491 return false;
never executed: return false;
0
1492 }
executed 30 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
30
1493 }
executed 30 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qrcqml
30
1494 }
executed 58111 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
  • ...
58111
1495-
1496 return true;
executed 58119 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
  • ...
58119
1497}-
1498-
1499bool QQmlImportsPrivate::addFileImport(const QString& uri, const QString &prefix,-
1500 int vmaj, int vmin,-
1501 bool isImplicitImport, bool incomplete, QQmlImportDatabase *database,-
1502 QList<QQmlError> *errors)-
1503{-
1504 Q_ASSERT(errors);-
1505-
1506 QQmlImportNamespace *nameSpace = importNamespace(prefix);-
1507 Q_ASSERT(nameSpace);-
1508-
1509 // The uri for this import. For library imports this is the same as uri-
1510 // specified by the user, but it may be different in the case of file imports.-
1511 QString importUri = uri;-
1512 QString qmldirUrl = resolveLocalUrl(base, importUri + (importUri.endsWith(Slash)-
1513 ? String_qmldir-
1514 : Slash_qmldir));-
1515 if (QQmlAbstractUrlInterceptor *interceptor = typeLoader->engine()->urlInterceptor()) {
QQmlAbstractUr...lInterceptor()Description
TRUEevaluated 184 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 55067 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
  • ...
184-55067
1516 qmldirUrl = interceptor->intercept(QUrl(qmldirUrl),-
1517 QQmlAbstractUrlInterceptor::QmldirFile).toString();-
1518 }
executed 184 times by 9 tests: end of block
Executed by:
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
184
1519 QString qmldirIdentifier;-
1520-
1521 if (QQmlFile::isLocalFile(qmldirUrl)) {
QQmlFile::isLo...ile(qmldirUrl)Description
TRUEevaluated 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
  • ...
FALSEevaluated 45622 times by 48 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • 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
  • ...
9629-45622
1522-
1523 QString localFileOrQrc = QQmlFile::urlToLocalFileOrQrc(qmldirUrl);-
1524 Q_ASSERT(!localFileOrQrc.isEmpty());-
1525-
1526 QString dir = QQmlFile::urlToLocalFileOrQrc(resolveLocalUrl(base, importUri));-
1527 if (!typeLoader->directoryExists(dir)) {
!typeLoader->d...oryExists(dir)Description
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 9611 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
  • ...
18-9611
1528 if (!isImplicitImport) {
!isImplicitImportDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
FALSEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquicktext
  • tst_qquicktextedit
2-16
1529 QQmlError error;-
1530 error.setDescription(QQmlImportDatabase::tr("\"%1\": no such directory").arg(uri));-
1531 error.setUrl(QUrl(qmldirUrl));-
1532 errors->prepend(error);-
1533 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlcomponent
2
1534 return false;
executed 18 times by 4 tests: return false;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquicktext
  • tst_qquicktextedit
18
1535 }-
1536-
1537 // Transforms the (possible relative) uri into our best guess relative to the-
1538 // import paths.-
1539 importUri = resolvedUri(dir, database);-
1540 if (importUri.endsWith(Slash))
importUri.endsWith(Slash)Description
TRUEnever evaluated
FALSEevaluated 9611 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-9611
1541 importUri.chop(1);
never executed: importUri.chop(1);
0
1542-
1543 if (!typeLoader->absoluteFilePath(localFileOrQrc).isEmpty())
!typeLoader->a...Qrc).isEmpty()Description
TRUEevaluated 274 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 9337 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
  • ...
274-9337
1544 qmldirIdentifier = localFileOrQrc;
executed 274 times by 13 tests: qmldirIdentifier = localFileOrQrc;
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
274
1545-
1546 } else if (nameSpace->prefix.isEmpty() && !incomplete) {
executed 9611 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
  • ...
nameSpace->prefix.isEmpty()Description
TRUEevaluated 45620 times by 48 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
!incompleteDescription
TRUEevaluated 96 times by 5 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktext
FALSEevaluated 45524 times by 48 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • 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
  • ...
2-45620
1547-
1548 if (!isImplicitImport) {
!isImplicitImportDescription
TRUEnever evaluated
FALSEevaluated 96 times by 5 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktext
0-96
1549 QQmlError error;-
1550 error.setDescription(QQmlImportDatabase::tr("import \"%1\" has no qmldir and no namespace").arg(importUri));-
1551 error.setUrl(QUrl(qmldirUrl));-
1552 errors->prepend(error);-
1553 }
never executed: end of block
0
1554-
1555 return false;
executed 96 times by 5 tests: return false;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktext
96
1556-
1557 }-
1558-
1559 // The url for the path containing files for this import-
1560 QString url = resolveLocalUrl(base, uri);-
1561 if (!url.endsWith(Slash) && !url.endsWith(Backslash))
!url.endsWith(Slash)Description
TRUEevaluated 45614 times by 51 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • 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
  • ...
FALSEevaluated 9523 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
  • ...
!url.endsWith(Backslash)Description
TRUEevaluated 45614 times by 51 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • 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
  • ...
FALSEnever evaluated
0-45614
1562 url += Slash;
executed 45614 times by 51 tests: url += Slash;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • 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
  • ...
45614
1563-
1564 // ### For enum support, we are now adding the implicit import always (and earlier). Bail early-
1565 // if the implicit import has already been explicitly added, otherwise we can run into issues-
1566 // with duplicate imports. However remember that we attempted to add this as implicit import, to-
1567 // allow for the loading of internal types.-
1568 if (isImplicitImport) {
isImplicitImportDescription
TRUEevaluated 54941 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 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
196-54941
1569 for (QList<QQmlImportInstance *>::const_iterator it = nameSpace->imports.constBegin();-
1570 it != nameSpace->imports.constEnd(); ++it) {
it != nameSpac...rts.constEnd()Description
TRUEevaluated 56817 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 54877 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
  • ...
54877-56817
1571 if ((*it)->url == url) {
(*it)->url == urlDescription
TRUEevaluated 64 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmlmetatype
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 56753 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
  • ...
64-56753
1572 (*it)->implicitlyImported = true;-
1573 return true;
executed 64 times by 9 tests: return true;
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmlmetatype
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
64
1574 }-
1575 }
executed 56753 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
  • ...
56753
1576 }
executed 54877 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
  • ...
54877
1577-
1578 QQmlImportInstance *inserted = addImportToNamespace(nameSpace, importUri, url, vmaj, vmin, QV4::CompiledData::Import::ImportFile, errors, isImplicitImport);-
1579 Q_ASSERT(inserted);-
1580-
1581 if (!incomplete && !qmldirIdentifier.isEmpty()) {
!incompleteDescription
TRUEevaluated 9547 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 45526 times by 48 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • 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
  • ...
!qmldirIdentifier.isEmpty()Description
TRUEevaluated 216 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
FALSEevaluated 9331 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
  • ...
216-45526
1582 QQmlTypeLoaderQmldirContent qmldir;-
1583 if (!getQmldirContent(qmldirIdentifier, importUri, &qmldir, errors))
!getQmldirCont...mldir, errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 214 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
2-214
1584 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
1585-
1586 if (qmldir.hasContent()) {
qmldir.hasContent()Description
TRUEevaluated 214 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
FALSEnever evaluated
0-214
1587 if (!importExtension(qmldir.pluginLocation(), importUri, vmaj, vmin, database, qmldir, errors))
!importExtensi...mldir, errors)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 212 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
2-212
1588 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
1589-
1590 if (!inserted->setQmldirContent(url, qmldir, nameSpace, errors))
!inserted->set...Space, errors)Description
TRUEnever evaluated
FALSEevaluated 212 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
0-212
1591 return false;
never executed: return false;
0
1592 }
executed 212 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
212
1593 }
executed 212 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qrcqml
212
1594-
1595 return true;
executed 55069 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
  • ...
55069
1596}-
1597-
1598bool QQmlImportsPrivate::updateQmldirContent(const QString &uri, const QString &prefix,-
1599 const QString &qmldirIdentifier, const QString& qmldirUrl,-
1600 QQmlImportDatabase *database, QList<QQmlError> *errors)-
1601{-
1602 QQmlImportNamespace *nameSpace = importNamespace(prefix);-
1603 Q_ASSERT(nameSpace);-
1604-
1605 if (QQmlImportInstance *import = nameSpace->findImport(uri)) {
QQmlImportInst...indImport(uri)Description
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-44
1606 QQmlTypeLoaderQmldirContent qmldir;-
1607 if (!getQmldirContent(qmldirIdentifier, uri, &qmldir, errors))
!getQmldirCont...mldir, errors)Description
TRUEnever evaluated
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-44
1608 return false;
never executed: return false;
0
1609-
1610 if (qmldir.hasContent()) {
qmldir.hasContent()Description
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-44
1611 int vmaj = import->majversion;-
1612 int vmin = import->minversion;-
1613 if (!importExtension(qmldir.pluginLocation(), uri, vmaj, vmin, database, qmldir, errors))
!importExtensi...mldir, errors)Description
TRUEnever evaluated
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-44
1614 return false;
never executed: return false;
0
1615-
1616 if (import->setQmldirContent(qmldirUrl, qmldir, nameSpace, errors)) {
import->setQml...Space, errors)Description
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
FALSEnever evaluated
0-44
1617 if (import->qmlDirComponents.isEmpty() && import->qmlDirScripts.isEmpty()) {
import->qmlDir...ents.isEmpty()Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
import->qmlDir...ipts.isEmpty()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-34
1618 // The implicit import qmldir can be empty, and plugins have no extra versions-
1619 if (uri != QLatin1String(".") && !QQmlMetaType::isModule(uri, vmaj, vmin)) {
uri != QLatin1String(".")Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimatedimage
!QQmlMetaType:...i, vmaj, vmin)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
0-4
1620 QQmlError error;-
1621 if (QQmlMetaType::isAnyModule(uri))
QQmlMetaType::isAnyModule(uri)Description
TRUEnever evaluated
FALSEnever evaluated
0
1622 error.setDescription(QQmlImportDatabase::tr("module \"%1\" version %2.%3 is not installed").arg(uri).arg(vmaj).arg(vmin));
never executed: error.setDescription(QQmlImportDatabase::tr("module \"%1\" version %2.%3 is not installed").arg(uri).arg(vmaj).arg(vmin));
0
1623 else-
1624 error.setDescription(QQmlImportDatabase::tr("module \"%1\" is not installed").arg(uri));
never executed: error.setDescription(QQmlImportDatabase::tr("module \"%1\" is not installed").arg(uri));
0
1625 errors->prepend(error);-
1626 return false;
never executed: return false;
0
1627 }-
1628 } else if ((vmaj >= 0) && (vmin >= 0)) {
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
(vmaj >= 0)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquicktextedit
(vmin >= 0)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
FALSEnever evaluated
0-32
1629 // Verify that the qmldir content is valid for this version-
1630 if (!validateQmldirVersion(qmldir, uri, vmaj, vmin, errors))
!validateQmldi... vmin, errors)Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
0-4
1631 return false;
never executed: return false;
0
1632 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmltypeloader
4
1633 return true;
executed 44 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
1634 }-
1635 }
never executed: end of block
0
1636 }
never executed: end of block
0
1637-
1638 if (errors->isEmpty()) {
errors->isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
1639 QQmlError error;-
1640 error.setDescription(QQmlTypeLoader::tr("Cannot update qmldir content for '%1'").arg(uri));-
1641 errors->prepend(error);-
1642 }
never executed: end of block
0
1643-
1644 return false;
never executed: return false;
0
1645}-
1646-
1647/*!-
1648 \internal-
1649-
1650 Adds an implicit "." file import. This is equivalent to calling addFileImport(), but error-
1651 messages related to the path or qmldir file not existing are suppressed.-
1652-
1653 Additionally, this will add the import with lowest instead of highest precedence.-
1654*/-
1655bool QQmlImports::addImplicitImport(QQmlImportDatabase *importDb, QList<QQmlError> *errors)-
1656{-
1657 Q_ASSERT(errors);-
1658-
1659 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
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
  • ...
0-55053
1660 qDebug().nospace() << "QQmlImports(" << qPrintable(baseUrl().toString())
never executed: QMessageLogger(__FILE__, 1660, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ")::addImplicitImport";
0
1661 << ")::addImplicitImport";
never executed: QMessageLogger(__FILE__, 1660, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ")::addImplicitImport";
0
1662-
1663 bool incomplete = !isLocal(baseUrl());-
1664 return d->addFileImport(QLatin1String("."), QString(), -1, -1, true, incomplete, importDb, errors);
executed 55053 times by 141 tests: return d->addFileImport(QLatin1String("."), QString(), -1, -1, true, incomplete, importDb, errors);
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
1665}-
1666-
1667/*!-
1668 \internal-
1669-
1670 Adds information to \a imports such that subsequent calls to resolveType()-
1671 will resolve types qualified by \a prefix by considering types found at the given \a uri.-
1672-
1673 The uri is either a directory (if importType is FileImport), or a URI resolved using paths-
1674 added via addImportPath() (if importType is LibraryImport).-
1675-
1676 The \a prefix may be empty, in which case the import location is considered for-
1677 unqualified types.-
1678-
1679 The base URL must already have been set with Import::setBaseUrl().-
1680-
1681 Optionally, the url the import resolved to can be returned by providing the url parameter.-
1682 Not all imports will result in an output url being generated, in which case the url will-
1683 be set to an empty string.-
1684-
1685 Returns true on success, and false on failure. In case of failure, the errors array will-
1686 filled appropriately.-
1687*/-
1688bool QQmlImports::addFileImport(QQmlImportDatabase *importDb,-
1689 const QString& uri, const QString& prefix, int vmaj, int vmin,-
1690 bool incomplete, QList<QQmlError> *errors)-
1691{-
1692 Q_ASSERT(importDb);-
1693 Q_ASSERT(errors);-
1694-
1695 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
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
0-198
1696 qDebug().nospace() << "QQmlImports(" << qPrintable(baseUrl().toString()) << ')' << "::addFileImport: "
never executed: QMessageLogger(__FILE__, 1696, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::addFileImport: " << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
0
1697 << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
never executed: QMessageLogger(__FILE__, 1696, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::addFileImport: " << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
0
1698-
1699 return d->addFileImport(uri, prefix, vmaj, vmin, false, incomplete, importDb, errors);
executed 198 times by 14 tests: return d->addFileImport(uri, prefix, vmaj, vmin, false, incomplete, importDb, errors);
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
198
1700}-
1701-
1702bool QQmlImports::addLibraryImport(QQmlImportDatabase *importDb,-
1703 const QString &uri, const QString &prefix, int vmaj, int vmin,-
1704 const QString &qmldirIdentifier, const QString& qmldirUrl, bool incomplete, QList<QQmlError> *errors)-
1705{-
1706 Q_ASSERT(importDb);-
1707 Q_ASSERT(errors);-
1708-
1709 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 58143 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-58143
1710 qDebug().nospace() << "QQmlImports(" << qPrintable(baseUrl().toString()) << ')' << "::addLibraryImport: "
never executed: QMessageLogger(__FILE__, 1710, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::addLibraryImport: " << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
0
1711 << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
never executed: QMessageLogger(__FILE__, 1710, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::addLibraryImport: " << uri << ' ' << vmaj << '.' << vmin << " as " << prefix;
0
1712-
1713 return d->addLibraryImport(uri, prefix, vmaj, vmin, qmldirIdentifier, qmldirUrl, incomplete, importDb, errors);
executed 58143 times by 141 tests: return d->addLibraryImport(uri, prefix, vmaj, vmin, qmldirIdentifier, qmldirUrl, incomplete, importDb, errors);
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
  • ...
58143
1714}-
1715-
1716bool QQmlImports::updateQmldirContent(QQmlImportDatabase *importDb,-
1717 const QString &uri, const QString &prefix,-
1718 const QString &qmldirIdentifier, const QString& qmldirUrl, QList<QQmlError> *errors)-
1719{-
1720 Q_ASSERT(importDb);-
1721 Q_ASSERT(errors);-
1722-
1723 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
0-44
1724 qDebug().nospace() << "QQmlImports(" << qPrintable(baseUrl().toString()) << ')' << "::updateQmldirContent: "
never executed: QMessageLogger(__FILE__, 1724, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::updateQmldirContent: " << uri << " to " << qmldirUrl << " as " << prefix;
0
1725 << uri << " to " << qmldirUrl << " as " << prefix;
never executed: QMessageLogger(__FILE__, 1724, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImports(" << QtPrivate::asString(baseUrl().toString()).toLocal8Bit().constData() << ')' << "::updateQmldirContent: " << uri << " to " << qmldirUrl << " as " << prefix;
0
1726-
1727 return d->updateQmldirContent(uri, prefix, qmldirIdentifier, qmldirUrl, importDb, errors);
executed 44 times by 5 tests: return d->updateQmldirContent(uri, prefix, qmldirIdentifier, qmldirUrl, importDb, errors);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquicktextedit
44
1728}-
1729-
1730bool QQmlImports::locateQmldir(QQmlImportDatabase *importDb,-
1731 const QString& uri, int vmaj, int vmin,-
1732 QString *qmldirFilePath, QString *url)-
1733{-
1734 return d->locateQmldir(uri, vmaj, vmin, importDb, qmldirFilePath, url);
executed 58123 times by 141 tests: return d->locateQmldir(uri, vmaj, vmin, importDb, qmldirFilePath, 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
  • ...
58123
1735}-
1736-
1737bool QQmlImports::isLocal(const QString &url)-
1738{-
1739 return !QQmlFile::urlToLocalFileOrQrc(url).isEmpty();
never executed: return !QQmlFile::urlToLocalFileOrQrc(url).isEmpty();
0
1740}-
1741-
1742bool QQmlImports::isLocal(const QUrl &url)-
1743{-
1744 return !QQmlFile::urlToLocalFileOrQrc(url).isEmpty();
executed 64872 times by 141 tests: return !QQmlFile::urlToLocalFileOrQrc(url).isEmpty();
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
  • ...
64872
1745}-
1746-
1747QUrl QQmlImports::urlFromLocalFileOrQrcOrUrl(const QString &file)-
1748{-
1749 QUrl url(QLatin1String(file.at(0) == Colon ? "qrc" : "") + file);-
1750-
1751 // We don't support single character schemes as those conflict with windows drive letters.-
1752 if (url.scheme().length() < 2)
url.scheme().length() < 2Description
TRUEevaluated 2744 times by 137 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_qqmllistmodel
  • ...
FALSEevaluated 1110 times by 8 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
1110-2744
1753 return QUrl::fromLocalFile(file);
executed 2744 times by 137 tests: return QUrl::fromLocalFile(file);
Executed 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_qqmllistmodel
  • ...
2744
1754 return url;
executed 1110 times by 8 tests: return url;
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
1110
1755}-
1756-
1757void QQmlImports::setDesignerSupportRequired(bool b)-
1758{-
1759 designerSupportRequired = b;-
1760}
executed 14 times by 1 test: end of block
Executed by:
  • tst_qqmlimport
14
1761-
1762-
1763/*!-
1764\class QQmlImportDatabase-
1765\brief The QQmlImportDatabase class manages the QML imports for a QQmlEngine.-
1766\internal-
1767*/-
1768QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)-
1769: engine(e)-
1770{-
1771 filePluginPath << QLatin1String(".");-
1772 // Search order is applicationDirPath(), qrc:/qt-project.org/imports, $QML2_IMPORT_PATH, QLibraryInfo::Qml2ImportsPath-
1773-
1774 QString installImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);-
1775 addImportPath(installImportsPath);-
1776-
1777 // env import paths-
1778 if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) {
__builtin_expe...ATH")), false)Description
TRUEnever evaluated
FALSEevaluated 7674 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-7674
1779 const QString envImportPath = qEnvironmentVariable("QML2_IMPORT_PATH");-
1780#if defined(Q_OS_WIN)-
1781 QLatin1Char pathSep(';');-
1782#else-
1783 QLatin1Char pathSep(':');-
1784#endif-
1785 QStringList paths = envImportPath.split(pathSep, QString::SkipEmptyParts);-
1786 for (int ii = paths.count() - 1; ii >= 0; --ii)
ii >= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1787 addImportPath(paths.at(ii));
never executed: addImportPath(paths.at(ii));
0
1788 }
never executed: end of block
0
1789-
1790 addImportPath(QStringLiteral("qrc:/qt-project.org/imports"));
executed 7674 times by 148 tests: return qstring_literal_temp;
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
1791 addImportPath(QCoreApplication::applicationDirPath());-
1792}
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
1793-
1794QQmlImportDatabase::~QQmlImportDatabase()-
1795{-
1796 clearDirCache();-
1797}
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
1798-
1799/*!-
1800 \internal-
1801-
1802 Returns the result of the merge of \a baseName with \a path, \a suffixes, and \a prefix.-
1803 The \a prefix must contain the dot.-
1804-
1805 \a qmldirPath is the location of the qmldir file.-
1806 */-
1807QString QQmlImportDatabase::resolvePlugin(QQmlTypeLoader *typeLoader,-
1808 const QString &qmldirPath,-
1809 const QString &qmldirPluginPath,-
1810 const QString &baseName, const QStringList &suffixes,-
1811 const QString &prefix)-
1812{-
1813 QStringList searchPaths = filePluginPath;-
1814 bool qmldirPluginPathIsRelative = QDir::isRelativePath(qmldirPluginPath);-
1815 if (!qmldirPluginPathIsRelative)
!qmldirPluginPathIsRelativeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 7395 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
  • ...
4-7395
1816 searchPaths.prepend(qmldirPluginPath);
executed 4 times by 1 test: searchPaths.prepend(qmldirPluginPath);
Executed by:
  • tst_qqmltypeloader
4
1817-
1818 for (const QString &pluginPath : qAsConst(searchPaths)) {-
1819 QString resolvedPath;-
1820 if (pluginPath == QLatin1String(".")) {
pluginPath == ...in1String(".")Description
TRUEevaluated 7395 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
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
4-7395
1821 if (qmldirPluginPathIsRelative && !qmldirPluginPath.isEmpty() && qmldirPluginPath != QLatin1String("."))
qmldirPluginPathIsRelativeDescription
TRUEevaluated 7395 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
!qmldirPluginPath.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 7395 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
  • ...
qmldirPluginPa...in1String(".")Description
TRUEnever evaluated
FALSEnever evaluated
0-7395
1822 resolvedPath = QDir::cleanPath(qmldirPath + Slash + qmldirPluginPath);
never executed: resolvedPath = QDir::cleanPath(qmldirPath + Slash + qmldirPluginPath);
0
1823 else-
1824 resolvedPath = qmldirPath;
executed 7395 times by 135 tests: resolvedPath = qmldirPath;
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
  • ...
7395
1825 } else {-
1826 if (QDir::isRelativePath(pluginPath))
QDir::isRelati...th(pluginPath)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
0-4
1827 resolvedPath = QDir::cleanPath(qmldirPath + Slash + pluginPath);
never executed: resolvedPath = QDir::cleanPath(qmldirPath + Slash + pluginPath);
0
1828 else-
1829 resolvedPath = pluginPath;
executed 4 times by 1 test: resolvedPath = pluginPath;
Executed by:
  • tst_qqmltypeloader
4
1830 }-
1831-
1832 // hack for resources, should probably go away-
1833 if (resolvedPath.startsWith(Colon))
resolvedPath.startsWith(Colon)Description
TRUEnever evaluated
FALSEevaluated 7399 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
  • ...
0-7399
1834 resolvedPath = QCoreApplication::applicationDirPath();
never executed: resolvedPath = QCoreApplication::applicationDirPath();
0
1835-
1836 if (!resolvedPath.endsWith(Slash))
!resolvedPath.endsWith(Slash)Description
TRUEevaluated 7395 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
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
4-7395
1837 resolvedPath += Slash;
executed 7395 times by 135 tests: resolvedPath += Slash;
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
  • ...
7395
1838-
1839 resolvedPath += prefix + baseName;-
1840 for (const QString &suffix : suffixes) {-
1841 const QString absolutePath = typeLoader->absoluteFilePath(resolvedPath + suffix);-
1842 if (!absolutePath.isEmpty())
!absolutePath.isEmpty()Description
TRUEevaluated 7391 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
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
8-7391
1843 return absolutePath;
executed 7391 times by 135 tests: return absolutePath;
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
  • ...
7391
1844 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
8
1845 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
8
1846-
1847 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-8
1848 qDebug() << "QQmlImportDatabase::resolvePlugin: Could not resolve plugin" << baseName
never executed: QMessageLogger(__FILE__, 1848, __PRETTY_FUNCTION__).debug() << "QQmlImportDatabase::resolvePlugin: Could not resolve plugin" << baseName << "in" << qmldirPath;
0
1849 << "in" << qmldirPath;
never executed: QMessageLogger(__FILE__, 1848, __PRETTY_FUNCTION__).debug() << "QQmlImportDatabase::resolvePlugin: Could not resolve plugin" << baseName << "in" << qmldirPath;
0
1850-
1851 return QString();
executed 8 times by 1 test: return QString();
Executed by:
  • tst_qqmlmoduleplugin
8
1852}-
1853-
1854/*!-
1855 \internal-
1856-
1857 Returns the result of the merge of \a baseName with \a dir and the platform suffix.-
1858-
1859 \table-
1860 \header \li Platform \li Valid suffixes-
1861 \row \li Windows \li \c .dll-
1862 \row \li Unix/Linux \li \c .so-
1863 \row \li \macos \li \c .dylib, \c .bundle, \c .so-
1864 \endtable-
1865-
1866 Version number on unix are ignored.-
1867*/-
1868QString QQmlImportDatabase::resolvePlugin(QQmlTypeLoader *typeLoader,-
1869 const QString &qmldirPath, const QString &qmldirPluginPath,-
1870 const QString &baseName)-
1871{-
1872#if defined(Q_OS_WIN)-
1873 static const QString prefix;-
1874 static const QStringList suffixes = {-
1875# ifdef QT_DEBUG-
1876 QLatin1String("d.dll"), // try a qmake-style debug build first-
1877# endif-
1878 QLatin1String(".dll")-
1879 };-
1880#elif defined(Q_OS_DARWIN)-
1881 static const QString prefix = QLatin1String("lib");-
1882 static const QStringList suffixes = {-
1883# ifdef QT_DEBUG-
1884 QLatin1String("_debug.dylib"), // try a qmake-style debug build first-
1885 QLatin1String(".dylib"),-
1886# else-
1887 QLatin1String(".dylib"),-
1888 QLatin1String("_debug.dylib"), // try a qmake-style debug build after-
1889# endif-
1890 QLatin1String(".so"),-
1891 QLatin1String(".bundle")-
1892 };-
1893# else // Unix-
1894 static const QString prefix = QLatin1String("lib");-
1895 static const QStringList suffixes = { QLatin1String(".so") };-
1896#endif-
1897-
1898 return resolvePlugin(typeLoader, qmldirPath, qmldirPluginPath, baseName, suffixes, prefix);
executed 7399 times by 135 tests: return resolvePlugin(typeLoader, qmldirPath, qmldirPluginPath, baseName, suffixes, prefix);
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
  • ...
7399
1899}-
1900-
1901/*!-
1902 \internal-
1903*/-
1904QStringList QQmlImportDatabase::pluginPathList() const-
1905{-
1906 return filePluginPath;
executed 4 times by 1 test: return filePluginPath;
Executed by:
  • tst_qqmlmoduleplugin
4
1907}-
1908-
1909/*!-
1910 \internal-
1911*/-
1912void QQmlImportDatabase::setPluginPathList(const QStringList &paths)-
1913{-
1914 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEnever evaluated
0
1915 qDebug().nospace() << "QQmlImportDatabase::setPluginPathList: " << paths;
never executed: QMessageLogger(__FILE__, 1915, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImportDatabase::setPluginPathList: " << paths;
0
1916-
1917 filePluginPath = paths;-
1918}
never executed: end of block
0
1919-
1920/*!-
1921 \internal-
1922*/-
1923void QQmlImportDatabase::addPluginPath(const QString& path)-
1924{-
1925 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEnever evaluated
0
1926 qDebug().nospace() << "QQmlImportDatabase::addPluginPath: " << path;
never executed: QMessageLogger(__FILE__, 1926, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImportDatabase::addPluginPath: " << path;
0
1927-
1928 QUrl url = QUrl(path);-
1929 if (url.isRelative() || url.scheme() == QLatin1String("file")
url.isRelative()Description
TRUEnever evaluated
FALSEnever evaluated
url.scheme() =...String("file")Description
TRUEnever evaluated
FALSEnever evaluated
0
1930 || (url.scheme().length() == 1 && QFile::exists(path)) ) { // windows path
url.scheme().length() == 1Description
TRUEnever evaluated
FALSEnever evaluated
QFile::exists(path)Description
TRUEnever evaluated
FALSEnever evaluated
0
1931 QDir dir = QDir(path);-
1932 filePluginPath.prepend(dir.canonicalPath());-
1933 } else {
never executed: end of block
0
1934 filePluginPath.prepend(path);-
1935 }
never executed: end of block
0
1936}-
1937-
1938/*!-
1939 \internal-
1940*/-
1941void QQmlImportDatabase::addImportPath(const QString& path)-
1942{-
1943 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 23204 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-23204
1944 qDebug().nospace() << "QQmlImportDatabase::addImportPath: " << path;
never executed: QMessageLogger(__FILE__, 1944, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImportDatabase::addImportPath: " << path;
0
1945-
1946 if (path.isEmpty())
path.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 23204 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-23204
1947 return;
never executed: return;
0
1948-
1949 QUrl url = QUrl(path);-
1950 QString cPath;-
1951-
1952 if (url.scheme() == QLatin1String("file")) {
url.scheme() =...String("file")Description
TRUEnever evaluated
FALSEevaluated 23204 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-23204
1953 cPath = QQmlFile::urlToLocalFileOrQrc(url);-
1954 } else if (path.startsWith(QLatin1Char(':'))) {
never executed: end of block
path.startsWit...tin1Char(':'))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qrcqml
FALSEevaluated 23202 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-23202
1955 // qrc directory, e.g. :/foo-
1956 // need to convert to a qrc url, e.g. qrc:/foo-
1957 cPath = QLatin1String("qrc") + path;-
1958 cPath.replace(Backslash, Slash);-
1959 } else if (url.isRelative() ||
executed 2 times by 1 test: end of block
Executed by:
  • tst_qrcqml
url.isRelative()Description
TRUEevaluated 15476 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 7726 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
  • ...
2-15476
1960 (url.scheme().length() == 1 && QFile::exists(path)) ) { // windows path
url.scheme().length() == 1Description
TRUEnever evaluated
FALSEevaluated 7726 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
  • ...
QFile::exists(path)Description
TRUEnever evaluated
FALSEnever evaluated
0-7726
1961 QDir dir = QDir(path);-
1962 cPath = dir.canonicalPath();-
1963 } else {
executed 15476 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
  • ...
15476
1964 cPath = path;-
1965 cPath.replace(Backslash, Slash);-
1966 }
executed 7726 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
  • ...
7726
1967-
1968 if (!cPath.isEmpty()
!cPath.isEmpty()Description
TRUEevaluated 23204 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-23204
1969 && !fileImportPath.contains(cPath))
!fileImportPat...ontains(cPath)Description
TRUEevaluated 23194 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 10 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qqmltypeloader
10-23194
1970 fileImportPath.prepend(cPath);
executed 23194 times by 148 tests: fileImportPath.prepend(cPath);
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
  • ...
23194
1971}
executed 23204 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
  • ...
23204
1972-
1973/*!-
1974 \internal-
1975*/-
1976QStringList QQmlImportDatabase::importPathList(PathType type) const-
1977{-
1978 if (type == LocalOrRemote)
type == LocalOrRemoteDescription
TRUEevaluated 451 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
FALSEevaluated 8736 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
  • ...
451-8736
1979 return fileImportPath;
executed 451 times by 10 tests: return fileImportPath;
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmltypeloader
  • tst_qquickshortcut
  • tst_sharedimage
451
1980-
1981 QStringList list;-
1982 for (const QString &path : fileImportPath) {-
1983 bool localPath = isPathAbsolute(path) || QQmlFile::isLocalFile(path);
isPathAbsolute(path)Description
TRUEevaluated 17634 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 8810 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
  • ...
QQmlFile::isLocalFile(path)Description
TRUEevaluated 8744 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 66 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
66-17634
1984 if (localPath == (type == Local))
localPath == (type == Local)Description
TRUEevaluated 26358 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 86 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlmoduleplugin
86-26358
1985 list.append(path);
executed 26358 times by 137 tests: list.append(path);
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
  • ...
26358
1986 }
executed 26444 times by 137 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_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
  • ...
26444
1987-
1988 return list;
executed 8736 times by 137 tests: return list;
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
  • ...
8736
1989}-
1990-
1991/*!-
1992 \internal-
1993*/-
1994void QQmlImportDatabase::setImportPathList(const QStringList &paths)-
1995{-
1996 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-28
1997 qDebug().nospace() << "QQmlImportDatabase::setImportPathList: " << paths;
never executed: QMessageLogger(__FILE__, 1997, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImportDatabase::setImportPathList: " << paths;
0
1998-
1999 fileImportPath = paths;-
2000-
2001 // Our existing cached paths may have been invalidated-
2002 clearDirCache();-
2003}
executed 28 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
28
2004-
2005/*!-
2006 \internal-
2007*/-
2008bool QQmlImportDatabase::registerPluginTypes(QObject *instance, const QString &basePath,-
2009 const QString &uri, const QString &typeNamespace, int vmaj, QList<QQmlError> *errors)-
2010{-
2011 if (qmlImportTrace())
qmlImportTrace()Description
TRUEnever evaluated
FALSEevaluated 590 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
  • ...
0-590
2012 qDebug().nospace() << "QQmlImportDatabase::registerPluginTypes: " << uri << " from " << basePath;
never executed: QMessageLogger(__FILE__, 2012, __PRETTY_FUNCTION__).debug().nospace() << "QQmlImportDatabase::registerPluginTypes: " << uri << " from " << basePath;
0
2013-
2014 QQmlTypesExtensionInterface *iface = qobject_cast<QQmlTypesExtensionInterface *>(instance);-
2015 if (!iface) {
!ifaceDescription
TRUEnever evaluated
FALSEevaluated 590 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
  • ...
0-590
2016 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2017 QQmlError error;-
2018 error.setDescription(tr("Module loaded for URI '%1' does not implement QQmlTypesExtensionInterface").arg(typeNamespace));-
2019 errors->prepend(error);-
2020 }
never executed: end of block
0
2021 return false;
never executed: return false;
0
2022 }-
2023-
2024 const QByteArray bytes = uri.toUtf8();-
2025 const char *moduleId = bytes.constData();-
2026-
2027 QQmlMetaTypeRegistrationFailureRecorder failureRecorder;-
2028 {-
2029 // Create a scope for QWriteLocker to keep it as narrow as possible, and-
2030 // to ensure that we release it before the call to initalizeEngine below-
2031 QMutexLocker lock(QQmlMetaType::typeRegistrationLock());-
2032-
2033 if (!typeNamespace.isEmpty()) {
!typeNamespace.isEmpty()Description
TRUEevaluated 564 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
  • ...
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
26-564
2034 // This is an 'identified' module-
2035 if (typeNamespace != uri) {
typeNamespace != uriDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 562 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
  • ...
2-562
2036 // The namespace for type registrations must match the URI for locating the module-
2037 if (errors) {
errorsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-2
2038 QQmlError error;-
2039 error.setDescription(tr("Module namespace '%1' does not match import URI '%2'").arg(typeNamespace).arg(uri));-
2040 errors->prepend(error);-
2041 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
2
2042 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
2043 }-
2044-
2045 if (QQmlMetaType::namespaceContainsRegistrations(typeNamespace, vmaj)) {
QQmlMetaType::...mespace, vmaj)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 560 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
  • ...
2-560
2046 // Other modules have already installed to this namespace-
2047 if (errors) {
errorsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-2
2048 QQmlError error;-
2049 error.setDescription(tr("Namespace '%1' has already been used for type registration").arg(typeNamespace));-
2050 errors->prepend(error);-
2051 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
2
2052 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
2053 } else {-
2054 QQmlMetaType::protectNamespace(typeNamespace);-
2055 }
executed 560 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
  • ...
560
2056 } else {-
2057 // This is not an identified module - provide a warning-
2058 qWarning().nospace() << qPrintable(tr("Module '%1' does not contain a module identifier directive - it cannot be protected from external registrations.").arg(uri));-
2059 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
26
2060-
2061 QQmlMetaType::setTypeRegistrationNamespace(typeNamespace);-
2062-
2063 if (QQmlExtensionPlugin *plugin = qobject_cast<QQmlExtensionPlugin *>(instance)) {
QQmlExtensionP...n *>(instance)Description
TRUEevaluated 586 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-586
2064 // basepath should point to the directory of the module, not the plugin file itself:-
2065 QQmlExtensionPluginPrivate::get(plugin)->baseUrl = QQmlImports::urlFromLocalFileOrQrcOrUrl(basePath);-
2066 }
executed 586 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
  • ...
586
2067-
2068 iface->registerTypes(moduleId);-
2069 QQmlMetaType::setTypeRegistrationNamespace(QString());-
2070 } // QWriteLocker lock(QQmlMetaType::typeRegistrationLock())-
2071-
2072 if (!failureRecorder.failures().isEmpty()) {
!failureRecord...es().isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 584 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
  • ...
2-584
2073 if (errors) {
errorsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-2
2074 for (const QString &failure : failureRecorder.failures()) {-
2075 QQmlError error;-
2076 error.setDescription(failure);-
2077 errors->prepend(error);-
2078 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
2
2079 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
2
2080 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
2
2081 }-
2082-
2083 return true;
executed 584 times by 135 tests: return true;
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
  • ...
584
2084}-
2085-
2086/*!-
2087 \internal-
2088*/-
2089bool QQmlImportDatabase::importStaticPlugin(QObject *instance, const QString &basePath,-
2090 const QString &uri, const QString &typeNamespace, int vmaj, QList<QQmlError> *errors)-
2091{-
2092 // Dynamic plugins are differentiated by their filepath. For static plugins we-
2093 // don't have that information so we use their address as key instead.-
2094 const QString uniquePluginID = QString::asprintf("%p", instance);-
2095 {-
2096 StringRegisteredPluginMap *plugins = qmlEnginePluginsWithRegisteredTypes();-
2097 QMutexLocker lock(&plugins->mutex);-
2098-
2099 // Plugin types are global across all engines and should only be-
2100 // registered once. But each engine still needs to be initialized.-
2101 bool typesRegistered = plugins->contains(uniquePluginID);-
2102-
2103 if (typesRegistered) {
typesRegisteredDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-4
2104 Q_ASSERT_X(plugins->value(uniquePluginID).uri == uri,-
2105 "QQmlImportDatabase::importStaticPlugin",-
2106 "Internal error: Static plugin imported previously with different uri");-
2107 } else {
never executed: end of block
0
2108 RegisteredPlugin plugin;-
2109 plugin.uri = uri;-
2110 plugin.loader = nullptr;-
2111 plugins->insert(uniquePluginID, plugin);-
2112-
2113 if (!registerPluginTypes(instance, basePath, uri, typeNamespace, vmaj, errors))
!registerPlugi... vmaj, errors)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
0-4
2114 return false;
never executed: return false;
0
2115 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
2116-
2117 // Release the lock on plugins early as we're done with the global part. Releasing the lock-
2118 // also allows other QML loader threads to acquire the lock while this thread is blocking-
2119 // in the initializeEngine call to the gui thread (which in turn may be busy waiting for-
2120 // other QML loader threads and thus not process the initializeEngine call).-
2121 }-
2122-
2123 // The plugin's per-engine initialization does not need lock protection, as this function is-
2124 // only called from the engine specific loader thread and importDynamicPlugin as well as-
2125 // importStaticPlugin are the only places of access.-
2126 if (!initializedPlugins.contains(uniquePluginID)) {
!initializedPl...niquePluginID)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-4
2127 initializedPlugins.insert(uniquePluginID);-
2128-
2129 if (QQmlExtensionInterface *eiface = qobject_cast<QQmlExtensionInterface *>(instance)) {
QQmlExtensionI...e *>(instance)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEnever evaluated
0-4
2130 QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine);-
2131 ep->typeLoader.initializeEngine(eiface, uri.toUtf8().constData());-
2132 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
2133 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlmoduleplugin
4
2134-
2135 return true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_qqmlmoduleplugin
4
2136}-
2137-
2138/*!-
2139 \internal-
2140*/-
2141bool QQmlImportDatabase::importDynamicPlugin(const QString &filePath, const QString &uri,-
2142 const QString &typeNamespace, int vmaj, QList<QQmlError> *errors)-
2143{-
2144#if QT_CONFIG(library)-
2145 QFileInfo fileInfo(filePath);-
2146 const QString absoluteFilePath = fileInfo.absoluteFilePath();-
2147-
2148 QObject *instance = nullptr;-
2149 bool engineInitialized = initializedPlugins.contains(absoluteFilePath);-
2150 {-
2151 StringRegisteredPluginMap *plugins = qmlEnginePluginsWithRegisteredTypes();-
2152 QMutexLocker lock(&plugins->mutex);-
2153 bool typesRegistered = plugins->contains(absoluteFilePath);-
2154-
2155 if (typesRegistered) {
typesRegisteredDescription
TRUEevaluated 6805 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 586 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
  • ...
586-6805
2156 Q_ASSERT_X(plugins->value(absoluteFilePath).uri == uri,-
2157 "QQmlImportDatabase::importDynamicPlugin",-
2158 "Internal error: Plugin imported previously with different uri");-
2159 }
executed 6805 times by 96 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
6805
2160-
2161 if (!engineInitialized || !typesRegistered) {
!engineInitializedDescription
TRUEevaluated 7391 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
!typesRegisteredDescription
TRUEnever evaluated
FALSEnever evaluated
0-7391
2162 if (!QQml_isFileCaseCorrect(absoluteFilePath)) {
!QQml_isFileCa...oluteFilePath)Description
TRUEnever evaluated
FALSEevaluated 7391 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
  • ...
0-7391
2163 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2164 QQmlError error;-
2165 error.setDescription(tr("File name case mismatch for \"%1\"").arg(absoluteFilePath));-
2166 errors->prepend(error);-
2167 }
never executed: end of block
0
2168 return false;
never executed: return false;
0
2169 }-
2170-
2171 QPluginLoader* loader = nullptr;-
2172 if (!typesRegistered) {
!typesRegisteredDescription
TRUEevaluated 586 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
  • ...
FALSEevaluated 6805 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
586-6805
2173 loader = new QPluginLoader(absoluteFilePath);-
2174-
2175 if (!loader->load()) {
!loader->load()Description
TRUEnever evaluated
FALSEevaluated 586 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
  • ...
0-586
2176 if (errors) {
errorsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2177 QQmlError error;-
2178 error.setDescription(loader->errorString());-
2179 errors->prepend(error);-
2180 }
never executed: end of block
0
2181 delete loader;-
2182 return false;
never executed: return false;
0
2183 }-
2184 } else {
executed 586 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
  • ...
586
2185 loader = plugins->value(absoluteFilePath).loader;-
2186 }
executed 6805 times by 96 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
6805
2187-
2188 instance = loader->instance();-
2189-
2190 if (!typesRegistered) {
!typesRegisteredDescription
TRUEevaluated 586 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
  • ...
FALSEevaluated 6805 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
586-6805
2191 RegisteredPlugin plugin;-
2192 plugin.uri = uri;-
2193 plugin.loader = loader;-
2194 plugins->insert(absoluteFilePath, plugin);-
2195-
2196 // Continue with shared code path for dynamic and static plugins:-
2197 if (!registerPluginTypes(instance, fileInfo.absolutePath(), uri, typeNamespace, vmaj, errors))
!registerPlugi... vmaj, errors)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlmoduleplugin
FALSEevaluated 580 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
  • ...
6-580
2198 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qqmlmoduleplugin
6
2199 }
executed 580 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
  • ...
580
2200 }
executed 7385 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
  • ...
7385
2201-
2202 // Release the lock on plugins early as we're done with the global part. Releasing the lock-
2203 // also allows other QML loader threads to acquire the lock while this thread is blocking-
2204 // in the initializeEngine call to the gui thread (which in turn may be busy waiting for-
2205 // other QML loader threads and thus not process the initializeEngine call).-
2206 }-
2207-
2208-
2209 if (!engineInitialized) {
!engineInitializedDescription
TRUEevaluated 7385 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-7385
2210 // The plugin's per-engine initialization does not need lock protection, as this function is-
2211 // only called from the engine specific loader thread and importDynamicPlugin as well as-
2212 // importStaticPlugin are the only places of access.-
2213 initializedPlugins.insert(absoluteFilePath);-
2214-
2215 if (QQmlExtensionInterface *eiface = qobject_cast<QQmlExtensionInterface *>(instance)) {
QQmlExtensionI...e *>(instance)Description
TRUEevaluated 7385 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-7385
2216 QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine);-
2217 ep->typeLoader.initializeEngine(eiface, uri.toUtf8().constData());-
2218 }
executed 7385 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
  • ...
7385
2219 }
executed 7385 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
  • ...
7385
2220-
2221 return true;
executed 7385 times by 135 tests: return true;
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
  • ...
7385
2222#else-
2223 Q_UNUSED(filePath);-
2224 Q_UNUSED(uri);-
2225 Q_UNUSED(typeNamespace);-
2226 Q_UNUSED(vmaj);-
2227 Q_UNUSED(errors);-
2228 return false;-
2229#endif-
2230}-
2231-
2232void QQmlImportDatabase::clearDirCache()-
2233{-
2234 QStringHash<QmldirCache *>::ConstIterator itr = qmldirCache.begin();-
2235 while (itr != qmldirCache.end()) {
itr != qmldirCache.end()Description
TRUEevaluated 8497 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 7688 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
  • ...
7688-8497
2236 QmldirCache *cache = *itr;-
2237 do {-
2238 QmldirCache *nextCache = cache->next;-
2239 delete cache;-
2240 cache = nextCache;-
2241 } while (cache);
executed 9098 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
  • ...
cacheDescription
TRUEevaluated 601 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlmoduleplugin
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickfolderlistmodel
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshortcut
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
FALSEevaluated 8497 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
  • ...
601-9098
2242-
2243 ++itr;-
2244 }
executed 8497 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
  • ...
8497
2245 qmldirCache.clear();-
2246}
executed 7688 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
  • ...
7688
2247-
2248QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0