OpenCoverage

qqmlinfo.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlinfo.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QQmlInfoPrivate-
7{-
8public:-
9 QQmlInfoPrivate(QtMsgType type)-
10 : ref (1)-
11 , msgType(type)-
12 , object(nullptr)-
13 {}
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
14-
15 int ref;-
16 QtMsgType msgType;-
17 const QObject *object;-
18 QString buffer;-
19 QList<QQmlError> errors;-
20};-
21-
22QQmlInfo::QQmlInfo(QQmlInfoPrivate *p)-
23: QDebug(&p->buffer), d(p)-
24{-
25 nospace();-
26}
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
27-
28QQmlInfo::QQmlInfo(const QQmlInfo &other)-
29: QDebug(other), d(other.d)-
30{-
31 d->ref++;-
32}
never executed: end of block
0
33-
34QQmlInfo::~QQmlInfo()-
35{-
36 if (0 == --d->ref
0 == --d->refDescription
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
37 QList<QQmlError> errors = d->errors;-
38-
39 QQmlEngine *engine = nullptr;-
40-
41 if (!d->buffer.isEmpty()
!d->buffer.isEmpty()Description
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
42 QQmlError error;-
43 error.setMessageType(d->msgType);-
44-
45 QObject *object = const_cast<QObject *>(d->object);-
46-
47 if (object
objectDescription
TRUEevaluated 924 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
  • ...
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
) {
52-924
48 engine = qmlEngine(d->object);-
49-
50 d->buffer.prepend(QLatin1String("QML ") + QQmlMetaType::prettyTypeName(object) + QLatin1String(": "));-
51-
52 QQmlData *ddata = QQmlData::get(object, false);-
53 if (ddata
ddataDescription
TRUEevaluated 720 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • 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
  • tst_qquickstates
  • ...
FALSEevaluated 204 times by 8 tests
Evaluated by:
  • tst_qqmlinfo
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
&& ddata->outerContext
ddata->outerContextDescription
TRUEevaluated 506 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • ...
FALSEevaluated 214 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickvisualdatamodel
) {
204-720
54 error.setUrl(ddata->outerContext->url());-
55 error.setLine(ddata->lineNumber);-
56 error.setColumn(ddata->columnNumber);-
57 }
executed 506 times by 27 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_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgravity
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • ...
506
58 }
executed 924 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
  • ...
924
59-
60 error.setDescription(d->buffer);-
61-
62 errors.prepend(error);-
63 }
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
64-
65 QQmlEnginePrivate::warning(engine, errors);-
66-
67 delete d;-
68 }
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
69}
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
70-
71namespace QtQml {-
72QQmlInfo qmlDebug(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; return
executed 2 times by 1 test: return QQmlInfo(d);
Executed by:
  • tst_qqmlinfo
QQmlInfo(d);
executed 2 times by 1 test: return QQmlInfo(d);
Executed by:
  • tst_qqmlinfo
} QQmlInfo qmlDebug(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; d->errors << error; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
} QQmlInfo qmlDebug(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; d->errors = errors; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
}
0-2
73QQmlInfo qmlInfo(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; return
executed 48 times by 1 test: return QQmlInfo(d);
Executed by:
  • tst_qqmlinfo
QQmlInfo(d);
executed 48 times by 1 test: return QQmlInfo(d);
Executed by:
  • tst_qqmlinfo
} QQmlInfo qmlInfo(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; d->errors << error; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
} QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; d->errors = errors; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
}
0-48
74QQmlInfo qmlWarning(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; return
executed 926 times by 30 tests: return QQmlInfo(d);
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
  • ...
QQmlInfo(d);
executed 926 times by 30 tests: return QQmlInfo(d);
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
  • ...
} QQmlInfo qmlWarning(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; d->errors << error; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
} QQmlInfo qmlWarning(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; d->errors = errors; return
never executed: return QQmlInfo(d);
QQmlInfo(d);
never executed: return QQmlInfo(d);
}
0-926
75-
76-
77}-
78-
79-
80-
81-
82-
83QQmlInfo qmlInfo(const QObject *me)-
84{-
85 return
never executed: return QtQml::qmlInfo(me);
QtQml::qmlInfo(me);
never executed: return QtQml::qmlInfo(me);
0
86}-
87-
88QQmlInfo qmlInfo(const QObject *me, const QQmlError &error)-
89{-
90 return
never executed: return QtQml::qmlInfo(me, error);
QtQml::qmlInfo(me, error);
never executed: return QtQml::qmlInfo(me, error);
0
91}-
92-
93QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors)-
94{-
95 return
never executed: return QtQml::qmlInfo(me, errors);
QtQml::qmlInfo(me, errors);
never executed: return QtQml::qmlInfo(me, errors);
0
96}-
97-
98-
99-
100-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0