OpenCoverage

qqmlerror.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlerror.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QQmlErrorPrivate-
6{-
7public:-
8 QQmlErrorPrivate();-
9-
10 QUrl url;-
11 QString description;-
12 quint16 line;-
13 quint16 column;-
14 QtMsgType messageType;-
15 QPointer<QObject> object;-
16};-
17-
18QQmlErrorPrivate::QQmlErrorPrivate()-
19: line(0), column(0), messageType(QtMsgType::QtWarningMsg), object()-
20{-
21}
executed 586834 times by 92 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • ...
586834
22-
23-
24-
25-
26QQmlError::QQmlError()-
27: d(nullptr)-
28{-
29}
executed 293524 times by 92 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • ...
293524
30-
31-
32-
33-
34QQmlError::QQmlError(const QQmlError &other)-
35: d(nullptr)-
36{-
37 *this = other;-
38}
executed 293838 times by 91 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
293838
39-
40-
41-
42-
43QQmlError &QQmlError::operator=(const QQmlError &other)-
44{-
45 if (!other.d
!other.dDescription
TRUEevaluated 364 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
FALSEevaluated 294384 times by 91 tests
Evaluated by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
) {
364-294384
46 delete d;-
47 d = nullptr;-
48 }
executed 364 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
else {
364
49 if (!d
!dDescription
TRUEevaluated 294380 times by 91 tests
Evaluated by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmltypeloader
)
4-294380
50 d = new QQmlErrorPrivate;
executed 294380 times by 91 tests: d = new QQmlErrorPrivate;
Executed by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
294380
51 d->url = other.d->url;-
52 d->description = other.d->description;-
53 d->line = other.d->line;-
54 d->column = other.d->column;-
55 d->object = other.d->object;-
56 d->messageType = other.d->messageType;-
57 }
executed 294384 times by 91 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
294384
58 return
executed 294748 times by 91 tests: return *this;
Executed by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
*this;
executed 294748 times by 91 tests: return *this;
Executed by:
  • tst_bindingdependencyapi
  • 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
294748
59}-
60-
61-
62-
63-
64QQmlError::~QQmlError()-
65{-
66 delete d; d = nullptr;-
67}
executed 587358 times by 92 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • ...
587358
68-
69-
70-
71-
72bool QQmlError::isValid() const-
73{-
74 return
executed 2518 times by 22 tests: return d != nullptr;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
d != nullptr;
executed 2518 times by 22 tests: return d != nullptr;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
2518
75}-
76-
77-
78-
79-
80QUrl QQmlError::url() const-
81{-
82 if (d
dDescription
TRUEevaluated 3526 times by 52 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • ...
FALSEevaluated 170 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
)
170-3526
83 return
executed 3526 times by 52 tests: return d->url;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • ...
d->url;
executed 3526 times by 52 tests: return d->url;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • ...
3526
84 return
executed 170 times by 4 tests: return QUrl();
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
QUrl();
executed 170 times by 4 tests: return QUrl();
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
170
85}-
86-
87-
88-
89-
90void QQmlError::setUrl(const QUrl &url)-
91{-
92 if (!d
!dDescription
TRUEevaluated 1030 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
FALSEevaluated 792 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • ...
)
792-1030
93 d = new QQmlErrorPrivate;
executed 1030 times by 28 tests: d = new QQmlErrorPrivate;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
1030
94 d->url = url;-
95}
executed 1822 times by 55 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
1822
96-
97-
98-
99-
100QString QQmlError::description() const-
101{-
102 if (d
dDescription
TRUEevaluated 1949 times by 53 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
FALSEevaluated 170 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
)
170-1949
103 return
executed 1949 times by 53 tests: return d->description;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
d->description;
executed 1949 times by 53 tests: return d->description;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
1949
104 return
executed 170 times by 4 tests: return QString();
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
QString();
executed 170 times by 4 tests: return QString();
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
170
105}-
106-
107-
108-
109-
110void QQmlError::setDescription(const QString &description)-
111{-
112 if (!d
!dDescription
TRUEevaluated 290376 times by 76 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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
FALSEevaluated 2106 times by 52 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • ...
)
2106-290376
113 d = new QQmlErrorPrivate;
executed 290376 times by 76 tests: d = new QQmlErrorPrivate;
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_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
290376
114 d->description = description;-
115}
executed 292482 times by 92 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • ...
292482
116-
117-
118-
119-
120int QQmlError::line() const-
121{-
122 if (d
dDescription
TRUEevaluated 3566 times by 53 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
FALSEevaluated 170 times by 4 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
)
170-3566
123 return
executed 3566 times by 53 tests: return qmlSourceCoordinate(d->line);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
qmlSourceCoordinate(d->line);
executed 3566 times by 53 tests: return qmlSourceCoordinate(d->line);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
3566
124 return
executed 170 times by 4 tests: return -1;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
-1;
executed 170 times by 4 tests: return -1;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
170
125}-
126-
127-
128-
129-
130void QQmlError::setLine(int line)-
131{-
132 if (!d
!dDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlpropertymap
FALSEevaluated 1637 times by 53 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
)
8-1637
133 d = new QQmlErrorPrivate;
executed 8 times by 3 tests: d = new QQmlErrorPrivate;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlpropertymap
8
134 d->line = qmlSourceCoordinate(line);-
135}
executed 1645 times by 53 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
1645
136-
137-
138-
139-
140int QQmlError::column() const-
141{-
142 if (d
dDescription
TRUEevaluated 1219 times by 47 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlerror
)
2-1219
143 return
executed 1219 times by 47 tests: return qmlSourceCoordinate(d->column);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
qmlSourceCoordinate(d->column);
executed 1219 times by 47 tests: return qmlSourceCoordinate(d->column);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
1219
144 return
executed 2 times by 1 test: return -1;
Executed by:
  • tst_qqmlerror
-1;
executed 2 times by 1 test: return -1;
Executed by:
  • tst_qqmlerror
2
145}-
146-
147-
148-
149-
150void QQmlError::setColumn(int column)-
151{-
152 if (!d
!dDescription
TRUEevaluated 64 times by 11 tests
Evaluated by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 1571 times by 51 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
)
64-1571
153 d = new QQmlErrorPrivate;
executed 64 times by 11 tests: d = new QQmlErrorPrivate;
Executed by:
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
64
154 d->column = qmlSourceCoordinate(column);-
155}
executed 1635 times by 53 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
1635
156-
157-
158-
159-
160-
161-
162-
163QObject *QQmlError::object() const-
164{-
165 if (d
dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
166 return
never executed: return d->object;
d->object;
never executed: return d->object;
0
167 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
168}-
169-
170-
171-
172-
173void QQmlError::setObject(QObject *object)-
174{-
175 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 94 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
)
0-94
176 d = new QQmlErrorPrivate;
never executed: d = new QQmlErrorPrivate;
0
177 d->object = object;-
178}
executed 94 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
94
179-
180-
181-
182-
183-
184-
185QtMsgType QQmlError::messageType() const-
186{-
187 if (d
dDescription
TRUEevaluated 1649 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • ...
FALSEnever evaluated
)
0-1649
188 return
executed 1649 times by 40 tests: return d->messageType;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • ...
d->messageType;
executed 1649 times by 40 tests: return d->messageType;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • ...
1649
189 return
never executed: return QtMsgType::QtWarningMsg;
QtMsgType::QtWarningMsg;
never executed: return QtMsgType::QtWarningMsg;
0
190}-
191-
192-
193-
194-
195-
196-
197-
198void QQmlError::setMessageType(QtMsgType messageType)-
199{-
200 if (!d
!dDescription
TRUEevaluated 976 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • ...
FALSEnever evaluated
)
0-976
201 d = new QQmlErrorPrivate;
executed 976 times by 30 tests: d = new QQmlErrorPrivate;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • ...
976
202 d->messageType = messageType;-
203}
executed 976 times by 30 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • ...
976
204-
205-
206-
207-
208QString QQmlError::toString() const-
209{-
210 QString rv;-
211-
212 QUrl u(url());-
213 int l(line());-
214-
215 if (u.isEmpty()
u.isEmpty()Description
TRUEevaluated 898 times by 23 tests
Evaluated by:
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 1045 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickgridview
  • ...
|| (u.isLocalFile()
u.isLocalFile()Description
TRUEevaluated 999 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
FALSEevaluated 46 times by 6 tests
Evaluated by:
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmltypeloader
  • tst_qquickloader
  • tst_qquicktextedit
&& u.path().isEmpty()
u.path().isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 997 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
))
2-1045
216 rv += QLatin1String("<Unknown File>");
executed 900 times by 24 tests: rv += QLatin1String("<Unknown File>");
Executed by:
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
900
217 else-
218 rv += u.toString();
executed 1043 times by 39 tests: rv += u.toString();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickgridview
  • ...
1043
219-
220 if (l != -1
l != -1Description
TRUEevaluated 1135 times by 45 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • ...
FALSEevaluated 808 times by 15 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
) {
808-1135
221 rv += QLatin1Char(':') + QString::number(l);-
222-
223 int c(column());-
224 if (c != -1
c != -1Description
TRUEevaluated 516 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • ...
FALSEevaluated 619 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
)
516-619
225 rv += QLatin1Char(':') + QString::number(c);
executed 516 times by 40 tests: rv += QLatin1Char(':') + QString::number(c);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • ...
516
226 }
executed 1135 times by 45 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • ...
1135
227-
228 rv += QLatin1String(": ") + description();-
229-
230 return
executed 1943 times by 49 tests: return rv;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
rv;
executed 1943 times by 49 tests: return rv;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlerror
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
1943
231}-
232QDebug operator<<(QDebug debug, const QQmlError &error)-
233{-
234 debug << QtPrivate::asString(error.toString()).toLocal8Bit().constData();-
235-
236 QUrl url = error.url();-
237-
238 if (error.line() > 0
error.line() > 0Description
TRUEevaluated 20 times by 6 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktextedit
&& url.scheme() == QLatin1String("file")
url.scheme() =...String("file")Description
TRUEevaluated 12 times by 5 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qquicktextedit
) {
2-20
239 QString file = url.toLocalFile();-
240 QFile f(file);-
241 if (f.open(QIODevice::ReadOnly)
f.open(QIODevice::ReadOnly)Description
TRUEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlerror
) {
2-10
242 QByteArray data = f.readAll();-
243 QTextStream stream(data, QIODevice::ReadOnly);-
244-
245 stream.setCodec("UTF-8");-
246-
247 const QString code = stream.readAll();-
248 const auto lines = code.splitRef(QLatin1Char('\n'));-
249-
250 if (lines.count() >= error.line()
lines.count() >= error.line()Description
TRUEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEnever evaluated
) {
0-10
251 const QStringRef &line = lines.at(error.line() - 1);-
252 debug << "\n " << line.toLocal8Bit().constData();-
253-
254 if(error.column() > 0
error.column() > 0Description
TRUEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEnever evaluated
) {
0-10
255 int column = qMax(0, error.column() - 1);-
256 column = qMin(column, line.length());-
257-
258 QByteArray ind;-
259 ind.reserve(column);-
260 for (int i = 0; i < column
i < columnDescription
TRUEevaluated 48 times by 4 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
; ++i) {
10-48
261 const QChar ch = line.at(i);-
262 if (ch.isSpace()
ch.isSpace()Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlerror
)
8-40
263 ind.append(ch.unicode());
executed 40 times by 3 tests: ind.append(ch.unicode());
Executed by:
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
40
264 else-
265 ind.append(' ');
executed 8 times by 1 test: ind.append(' ');
Executed by:
  • tst_qqmlerror
8
266 }-
267 ind.append('^');-
268 debug << "\n " << ind.constData();-
269 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
10
270 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
10
271 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
10
272 }
executed 12 times by 5 tests: end of block
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquickview
  • tst_qquickwidget
12
273 return
executed 22 times by 6 tests: return debug;
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
debug;
executed 22 times by 6 tests: return debug;
Executed by:
  • tst_qqmlerror
  • tst_qqmlimport
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquickview
  • tst_qquickwidget
22
274}-
275-
276-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0