OpenCoverage

qdbusxmlparser.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusxmlparser.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtDBus module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qdbusxmlparser_p.h"-
41#include "qdbusutil_p.h"-
42-
43#include <QtCore/qmap.h>-
44#include <QtCore/qvariant.h>-
45#include <QtCore/qtextstream.h>-
46#include <QtCore/qxmlstream.h>-
47#include <QtCore/qdebug.h>-
48-
49#ifndef QT_NO_DBUS-
50-
51//#define QDBUS_PARSER_DEBUG-
52#ifdef QDBUS_PARSER_DEBUG-
53# define qDBusParserError qDebug-
54#else-
55# define qDBusParserError if (true) {} else qDebug-
56#endif-
57-
58QT_BEGIN_NAMESPACE-
59-
60static bool parseArg(const QXmlStreamAttributes &attributes, QDBusIntrospection::Argument &argData,-
61 QDBusIntrospection::Interface *ifaceData)-
62{-
63 const QString argType = attributes.value(QLatin1String("type")).toString();-
64-
65 bool ok = QDBusUtil::isValidSingleSignature(argType);-
66 if (!ok) {
!okDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 2262 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
4-2262
67 qDBusParserError("Invalid D-BUS type signature '%s' found while parsing introspection",
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusxmlparser - unknown status
dead code: QMessageLogger(__FILE__, 67, __PRETTY_FUNCTION__).debug("Invalid D-BUS type signature '%s' found while parsing introspection", QString(argType).toLocal8Bit().constData());
-
68 qPrintable(argType));
dead code: QMessageLogger(__FILE__, 67, __PRETTY_FUNCTION__).debug("Invalid D-BUS type signature '%s' found while parsing introspection", QString(argType).toLocal8Bit().constData());
-
69 }-
70-
71 argData.name = attributes.value(QLatin1String("name")).toString();-
72 argData.type = argType;-
73-
74 ifaceData->introspection += QLatin1String(" <arg");-
75 if (attributes.hasAttribute(QLatin1String("direction"))) {
attributes.has...("direction"))Description
TRUEevaluated 2205 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 61 times by 3 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
61-2205
76 const QString direction = attributes.value(QLatin1String("direction")).toString();-
77 ifaceData->introspection += QLatin1String(" direction=\"") + direction + QLatin1String("\"");-
78 }
executed 2205 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
2205
79 ifaceData->introspection += QLatin1String(" type=\"") + argData.type + QLatin1String("\"");-
80 if (!argData.name.isEmpty())
!argData.name.isEmpty()Description
TRUEevaluated 1541 times by 13 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 725 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
725-1541
81 ifaceData->introspection += QLatin1String(" name=\"") + argData.name + QLatin1String("\"");
executed 1541 times by 13 tests: ifaceData->introspection += QLatin1String(" name=\"") + argData.name + QLatin1String("\"");
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
1541
82 ifaceData->introspection += QLatin1String("/>\n");-
83-
84 return ok;
executed 2266 times by 14 tests: return ok;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
2266
85}-
86-
87static bool parseAnnotation(const QXmlStreamReader &xml, QDBusIntrospection::Annotations &annotations,-
88 QDBusIntrospection::Interface *ifaceData, bool interfaceAnnotation = false)-
89{-
90 Q_ASSERT(xml.isStartElement() && xml.name() == QLatin1String("annotation"));-
91-
92 const QXmlStreamAttributes attributes = xml.attributes();-
93 const QString name = attributes.value(QLatin1String("name")).toString();-
94-
95 if (!QDBusUtil::isValidInterfaceName(name)) {
!QDBusUtil::is...faceName(name)Description
TRUEnever evaluated
FALSEevaluated 358 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-358
96 qDBusParserError("Invalid D-BUS annotation '%s' found while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 96, __PRETTY_FUNCTION__).debug("Invalid D-BUS annotation '%s' found while parsing introspection", QString(name).toLocal8Bit().constData());
-
97 qPrintable(name));
dead code: QMessageLogger(__FILE__, 96, __PRETTY_FUNCTION__).debug("Invalid D-BUS annotation '%s' found while parsing introspection", QString(name).toLocal8Bit().constData());
-
98 return false;
never executed: return false;
0
99 }-
100 const QString value = attributes.value(QLatin1String("value")).toString();-
101 annotations.insert(name, value);-
102 if (!interfaceAnnotation)
!interfaceAnnotationDescription
TRUEevaluated 352 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
6-352
103 ifaceData->introspection += QLatin1String(" ");
executed 352 times by 14 tests: ifaceData->introspection += QLatin1String(" ");
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
352
104 ifaceData->introspection += QLatin1String(" <annotation value=\"") + value.toHtmlEscaped() + QLatin1String("\" name=\"") + name + QLatin1String("\"/>\n");-
105 return true;
executed 358 times by 14 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
358
106}-
107-
108static bool parseProperty(QXmlStreamReader &xml, QDBusIntrospection::Property &propertyData,-
109 QDBusIntrospection::Interface *ifaceData)-
110{-
111 Q_ASSERT(xml.isStartElement() && xml.name() == QLatin1String("property"));-
112-
113 QXmlStreamAttributes attributes = xml.attributes();-
114 const QString propertyName = attributes.value(QLatin1String("name")).toString();-
115 if (!QDBusUtil::isValidMemberName(propertyName)) {
!QDBusUtil::is...(propertyName)Description
TRUEnever evaluated
FALSEevaluated 250 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-250
116 qDBusParserError("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(propertyName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
117 qPrintable(propertyName), qPrintable(ifaceData->name));
dead code: QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(propertyName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
118 xml.skipCurrentElement();-
119 return false;
never executed: return false;
0
120 }-
121-
122 // parse data-
123 propertyData.name = propertyName;-
124 propertyData.type = attributes.value(QLatin1String("type")).toString();-
125-
126 if (!QDBusUtil::isValidSingleSignature(propertyData.type)) {
!QDBusUtil::is...ertyData.type)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusinterface - unknown status
FALSEevaluated 249 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
1-249
127 // cannot be!-
128 qDBusParserError("Invalid D-BUS type signature '%s' found in property '%s.%s' while parsing introspection",
executed 1 time by 1 test: end of block
Executed by:
  • tst_qdbusinterface - unknown status
dead code: QMessageLogger(__FILE__, 128, __PRETTY_FUNCTION__).debug("Invalid D-BUS type signature '%s' found in property '%s.%s' while parsing introspection", QString(propertyData.type).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
129 qPrintable(propertyData.type), qPrintable(ifaceData->name),
dead code: QMessageLogger(__FILE__, 128, __PRETTY_FUNCTION__).debug("Invalid D-BUS type signature '%s' found in property '%s.%s' while parsing introspection", QString(propertyData.type).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
130 qPrintable(propertyName));
dead code: QMessageLogger(__FILE__, 128, __PRETTY_FUNCTION__).debug("Invalid D-BUS type signature '%s' found in property '%s.%s' while parsing introspection", QString(propertyData.type).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
131 }-
132-
133 const QString access = attributes.value(QLatin1String("access")).toString();-
134 if (access == QLatin1String("read"))
access == QLat...String("read")Description
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 142 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
108-142
135 propertyData.access = QDBusIntrospection::Property::Read;
executed 108 times by 4 tests: propertyData.access = QDBusIntrospection::Property::Read;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
108
136 else if (access == QLatin1String("write"))
access == QLat...tring("write")Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 135 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
7-135
137 propertyData.access = QDBusIntrospection::Property::Write;
executed 7 times by 3 tests: propertyData.access = QDBusIntrospection::Property::Write;
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
7
138 else if (access == QLatin1String("readwrite"))
access == QLat...g("readwrite")Description
TRUEevaluated 135 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-135
139 propertyData.access = QDBusIntrospection::Property::ReadWrite;
executed 135 times by 6 tests: propertyData.access = QDBusIntrospection::Property::ReadWrite;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
135
140 else {-
141 qDBusParserError("Invalid D-BUS property access '%s' found in property '%s.%s' while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 141, __PRETTY_FUNCTION__).debug("Invalid D-BUS property access '%s' found in property '%s.%s' while parsing introspection", QString(access).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
142 qPrintable(access), qPrintable(ifaceData->name),
dead code: QMessageLogger(__FILE__, 141, __PRETTY_FUNCTION__).debug("Invalid D-BUS property access '%s' found in property '%s.%s' while parsing introspection", QString(access).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
143 qPrintable(propertyName));
dead code: QMessageLogger(__FILE__, 141, __PRETTY_FUNCTION__).debug("Invalid D-BUS property access '%s' found in property '%s.%s' while parsing introspection", QString(access).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData(), QString(propertyName).toLocal8Bit().constData());
-
144 return false; // invalid one!
never executed: return false;
0
145 }-
146-
147 ifaceData->introspection += QLatin1String(" <property access=\"") + access + QLatin1String("\" type=\"") + propertyData.type + QLatin1String("\" name=\"") + propertyName + QLatin1String("\"");-
148-
149 if (!xml.readNextStartElement()) {
!xml.readNextStartElement()Description
TRUEevaluated 240 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
10-240
150 ifaceData->introspection += QLatin1String("/>\n");-
151 } else {
executed 240 times by 6 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
240
152 ifaceData->introspection += QLatin1String(">\n");-
153-
154 do {-
155 if (xml.name() == QLatin1String("annotation")) {
xml.name() == ...("annotation")Description
TRUEevaluated 14 times by 5 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-14
156 parseAnnotation(xml, propertyData.annotations, ifaceData);-
157 } else if (xml.prefix().isEmpty()) {
executed 14 times by 5 tests: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.prefix().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0-14
158 qDBusParserError() << "Unknown element" << xml.name() << "while checking for annotations";
never executed: end of block
dead code: QMessageLogger(__FILE__, 158, __PRETTY_FUNCTION__).debug() << "Unknown element" << xml.name() << "while checking for annotations";
-
159 }-
160 xml.skipCurrentElement();-
161 } while (xml.readNextStartElement());
executed 14 times by 5 tests: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.readNextStartElement()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
4-14
162-
163 ifaceData->introspection += QLatin1String(" </property>\n");-
164 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
10
165-
166 if (!xml.isEndElement() || xml.name() != QLatin1String("property")) {
!xml.isEndElement()Description
TRUEnever evaluated
FALSEevaluated 250 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() != ...ng("property")Description
TRUEnever evaluated
FALSEevaluated 250 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-250
167 qDBusParserError() << "Invalid property specification" << xml.tokenString() << xml.name();
never executed: end of block
dead code: QMessageLogger(__FILE__, 167, __PRETTY_FUNCTION__).debug() << "Invalid property specification" << xml.tokenString() << xml.name();
-
168 return false;
never executed: return false;
0
169 }-
170-
171 return true;
executed 250 times by 6 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
250
172}-
173-
174static bool parseMethod(QXmlStreamReader &xml, QDBusIntrospection::Method &methodData,-
175 QDBusIntrospection::Interface *ifaceData)-
176{-
177 Q_ASSERT(xml.isStartElement() && xml.name() == QLatin1String("method"));-
178-
179 const QXmlStreamAttributes attributes = xml.attributes();-
180 const QString methodName = attributes.value(QLatin1String("name")).toString();-
181 if (!QDBusUtil::isValidMemberName(methodName)) {
!QDBusUtil::is...me(methodName)Description
TRUEnever evaluated
FALSEevaluated 1543 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-1543
182 qDBusParserError("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 182, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(methodName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
183 qPrintable(methodName), qPrintable(ifaceData->name));
dead code: QMessageLogger(__FILE__, 182, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(methodName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
184 return false;
never executed: return false;
0
185 }-
186-
187 methodData.name = methodName;-
188 ifaceData->introspection += QLatin1String(" <method name=\"") + methodName + QLatin1String("\"");-
189-
190 QDBusIntrospection::Arguments outArguments;-
191 QDBusIntrospection::Arguments inArguments;-
192 QDBusIntrospection::Annotations annotations;-
193-
194 if (!xml.readNextStartElement()) {
!xml.readNextStartElement()Description
TRUEevaluated 202 times by 13 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 1341 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
202-1341
195 ifaceData->introspection += QLatin1String("/>\n");-
196 } else {
executed 202 times by 13 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
202
197 ifaceData->introspection += QLatin1String(">\n");-
198-
199 do {-
200 if (xml.name() == QLatin1String("annotation")) {
xml.name() == ...("annotation")Description
TRUEevaluated 247 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 1883 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
247-1883
201 parseAnnotation(xml, annotations, ifaceData);-
202 } else if (xml.name() == QLatin1String("arg")) {
executed 247 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...1String("arg")Description
TRUEevaluated 1883 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-1883
203 const QXmlStreamAttributes attributes = xml.attributes();-
204 const QString direction = attributes.value(QLatin1String("direction")).toString();-
205 QDBusIntrospection::Argument argument;-
206 if (!attributes.hasAttribute(QLatin1String("direction"))
!attributes.ha...("direction"))Description
TRUEnever evaluated
FALSEevaluated 1883 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-1883
207 || direction == QLatin1String("in")) {
direction == Q...n1String("in")Description
TRUEevaluated 1031 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 852 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
852-1031
208 parseArg(attributes, argument, ifaceData);-
209 inArguments << argument;-
210 } else if (direction == QLatin1String("out")) {
executed 1031 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
direction == Q...1String("out")Description
TRUEevaluated 852 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-1031
211 parseArg(attributes, argument, ifaceData);-
212 outArguments << argument;-
213 }
executed 852 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
852
214 } else if (xml.prefix().isEmpty()) {
executed 1883 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.prefix().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0-1883
215 qDBusParserError() << "Unknown element" << xml.name() << "while checking for method arguments";
never executed: end of block
dead code: QMessageLogger(__FILE__, 215, __PRETTY_FUNCTION__).debug() << "Unknown element" << xml.name() << "while checking for method arguments";
-
216 }-
217 xml.skipCurrentElement();-
218 } while (xml.readNextStartElement());
executed 2130 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.readNextStartElement()Description
TRUEevaluated 789 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 1341 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
789-2130
219-
220 ifaceData->introspection += QLatin1String(" </method>\n");-
221 }
executed 1341 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
1341
222-
223 methodData.inputArgs = inArguments;-
224 methodData.outputArgs = outArguments;-
225 methodData.annotations = annotations;-
226-
227 return true;
executed 1543 times by 14 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
1543
228}-
229-
230-
231static bool parseSignal(QXmlStreamReader &xml, QDBusIntrospection::Signal &signalData,-
232 QDBusIntrospection::Interface *ifaceData)-
233{-
234 Q_ASSERT(xml.isStartElement() && xml.name() == QLatin1String("signal"));-
235-
236 const QXmlStreamAttributes attributes = xml.attributes();-
237 const QString signalName = attributes.value(QLatin1String("name")).toString();-
238-
239 if (!QDBusUtil::isValidMemberName(signalName)) {
!QDBusUtil::is...me(signalName)Description
TRUEnever evaluated
FALSEevaluated 296 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-296
240 qDBusParserError("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 240, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(signalName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
241 qPrintable(signalName), qPrintable(ifaceData->name));
dead code: QMessageLogger(__FILE__, 240, __PRETTY_FUNCTION__).debug("Invalid D-BUS member name '%s' found in interface '%s' while parsing introspection", QString(signalName).toLocal8Bit().constData(), QString(ifaceData->name).toLocal8Bit().constData());
-
242 return false;
never executed: return false;
0
243 }-
244-
245 signalData.name = signalName;-
246 ifaceData->introspection += QLatin1String(" <signal name=\"") + signalName + QLatin1String("\"");-
247-
248 QDBusIntrospection::Arguments arguments;-
249 QDBusIntrospection::Annotations annotations;-
250-
251 if (!xml.readNextStartElement()) {
!xml.readNextStartElement()Description
TRUEevaluated 79 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 217 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
79-217
252 ifaceData->introspection += QLatin1String("/>\n");-
253 } else {
executed 79 times by 5 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
79
254 ifaceData->introspection += QLatin1String(">\n");-
255-
256 do {-
257 if (xml.name() == QLatin1String("annotation")) {
xml.name() == ...("annotation")Description
TRUEevaluated 91 times by 13 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 383 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
91-383
258 parseAnnotation(xml, annotations, ifaceData);-
259 } else if (xml.name() == QLatin1String("arg")) {
executed 91 times by 13 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...1String("arg")Description
TRUEevaluated 383 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-383
260 const QXmlStreamAttributes attributes = xml.attributes();-
261 QDBusIntrospection::Argument argument;-
262 if (!attributes.hasAttribute(QLatin1String("direction")) ||
!attributes.ha...("direction"))Description
TRUEevaluated 61 times by 3 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 322 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
61-322
263 attributes.value(QLatin1String("direction")) == QLatin1String("out")) {
attributes.val...1String("out")Description
TRUEevaluated 322 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-322
264 parseArg(attributes, argument, ifaceData);-
265 arguments << argument;-
266 }
executed 383 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
383
267 } else {
executed 383 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
383
268 qDBusParserError() << "Unknown element" << xml.name() << "while checking for signal arguments";
never executed: end of block
dead code: QMessageLogger(__FILE__, 268, __PRETTY_FUNCTION__).debug() << "Unknown element" << xml.name() << "while checking for signal arguments";
-
269 }-
270 xml.skipCurrentElement();-
271 } while (xml.readNextStartElement());
executed 474 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.readNextStartElement()Description
TRUEevaluated 257 times by 13 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 217 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
217-474
272-
273 ifaceData->introspection += QLatin1String(" </signal>\n");-
274 }
executed 217 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
217
275-
276 signalData.outputArgs = arguments;-
277 signalData.annotations = annotations;-
278-
279 return true;
executed 296 times by 14 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
296
280}-
281-
282static void readInterface(QXmlStreamReader &xml, QDBusIntrospection::Object *objData,-
283 QDBusIntrospection::Interfaces *interfaces)-
284{-
285 const QString ifaceName = xml.attributes().value(QLatin1String("name")).toString();-
286 if (!QDBusUtil::isValidInterfaceName(ifaceName)) {
!QDBusUtil::is...ame(ifaceName)Description
TRUEnever evaluated
FALSEevaluated 590 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-590
287 qDBusParserError("Invalid D-BUS interface name '%s' found while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 287, __PRETTY_FUNCTION__).debug("Invalid D-BUS interface name '%s' found while parsing introspection", QString(ifaceName).toLocal8Bit().constData());
-
288 qPrintable(ifaceName));
dead code: QMessageLogger(__FILE__, 287, __PRETTY_FUNCTION__).debug("Invalid D-BUS interface name '%s' found while parsing introspection", QString(ifaceName).toLocal8Bit().constData());
-
289 return;
never executed: return;
0
290 }-
291-
292 objData->interfaces.append(ifaceName);-
293-
294 QDBusIntrospection::Interface *ifaceData = new QDBusIntrospection::Interface;-
295 ifaceData->name = ifaceName;-
296 ifaceData->introspection += QLatin1String(" <interface name=\"") + ifaceName + QLatin1String("\">\n");-
297-
298 while (xml.readNextStartElement()) {
xml.readNextStartElement()Description
TRUEevaluated 2101 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 590 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
590-2101
299 if (xml.name() == QLatin1String("method")) {
xml.name() == ...ring("method")Description
TRUEevaluated 1543 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 558 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
558-1543
300 QDBusIntrospection::Method methodData;-
301 if (parseMethod(xml, methodData, ifaceData))
parseMethod(xm...ta, ifaceData)Description
TRUEevaluated 1543 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-1543
302 ifaceData->methods.insert(methodData.name, methodData);
executed 1543 times by 14 tests: ifaceData->methods.insert(methodData.name, methodData);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
1543
303 } else if (xml.name() == QLatin1String("signal")) {
executed 1543 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...ring("signal")Description
TRUEevaluated 296 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 262 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
262-1543
304 QDBusIntrospection::Signal signalData;-
305 if (parseSignal(xml, signalData, ifaceData))
parseSignal(xm...ta, ifaceData)Description
TRUEevaluated 296 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-296
306 ifaceData->signals_.insert(signalData.name, signalData);
executed 296 times by 14 tests: ifaceData->signals_.insert(signalData.name, signalData);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
296
307 } else if (xml.name() == QLatin1String("property")) {
executed 296 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...ng("property")Description
TRUEevaluated 250 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
12-296
308 QDBusIntrospection::Property propertyData;-
309 if (parseProperty(xml, propertyData, ifaceData))
parseProperty(...ta, ifaceData)Description
TRUEevaluated 250 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-250
310 ifaceData->properties.insert(propertyData.name, propertyData);
executed 250 times by 6 tests: ifaceData->properties.insert(propertyData.name, propertyData);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
250
311 } else if (xml.name() == QLatin1String("annotation")) {
executed 250 times by 6 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...("annotation")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
6-250
312 parseAnnotation(xml, ifaceData->annotations, ifaceData, true);-
313 xml.skipCurrentElement(); // skip over annotation object-
314 } else {
executed 6 times by 1 test: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
6
315 if (xml.prefix().isEmpty()) {
xml.prefix().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
0-6
316 qDBusParserError() << "Unknown element while parsing interface" << xml.name();
never executed: end of block
dead code: QMessageLogger(__FILE__, 316, __PRETTY_FUNCTION__).debug() << "Unknown element while parsing interface" << xml.name();
-
317 }-
318 xml.skipCurrentElement();-
319 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
6
320 }-
321-
322 ifaceData->introspection += QLatin1String(" </interface>");-
323-
324 interfaces->insert(ifaceName, QSharedDataPointer<QDBusIntrospection::Interface>(ifaceData));-
325-
326 if (!xml.isEndElement() || xml.name() != QLatin1String("interface")) {
!xml.isEndElement()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusmetaobject - unknown status
FALSEevaluated 584 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() != ...g("interface")Description
TRUEnever evaluated
FALSEevaluated 584 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-584
327 qDBusParserError() << "Invalid Interface specification";
executed 6 times by 1 test: end of block
Executed by:
  • tst_qdbusmetaobject - unknown status
dead code: QMessageLogger(__FILE__, 327, __PRETTY_FUNCTION__).debug() << "Invalid Interface specification";
-
328 }-
329}
executed 590 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
590
330-
331static void readNode(const QXmlStreamReader &xml, QDBusIntrospection::Object *objData, int nodeLevel)-
332{-
333 const QString objName = xml.attributes().value(QLatin1String("name")).toString();-
334 const QString fullName = objData->path.endsWith(QLatin1Char('/'))
objData->path....tin1Char('/'))Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 366 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
24-366
335 ? (objData->path + objName)-
336 : QString(objData->path + QLatin1Char('/') + objName);-
337 if (!QDBusUtil::isValidObjectPath(fullName)) {
!QDBusUtil::is...Path(fullName)Description
TRUEnever evaluated
FALSEevaluated 390 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
0-390
338 qDBusParserError("Invalid D-BUS object path '%s' found while parsing introspection",
never executed: end of block
dead code: QMessageLogger(__FILE__, 338, __PRETTY_FUNCTION__).debug("Invalid D-BUS object path '%s' found while parsing introspection", QString(fullName).toLocal8Bit().constData());
-
339 qPrintable(fullName));
dead code: QMessageLogger(__FILE__, 338, __PRETTY_FUNCTION__).debug("Invalid D-BUS object path '%s' found while parsing introspection", QString(fullName).toLocal8Bit().constData());
-
340 return;
never executed: return;
0
341 }-
342-
343 if (nodeLevel > 0)
nodeLevel > 0Description
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 338 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
52-338
344 objData->childObjects.append(objName);
executed 52 times by 2 tests: objData->childObjects.append(objName);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusxmlparser - unknown status
52
345}
executed 390 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
390
346-
347QDBusXmlParser::QDBusXmlParser(const QString& service, const QString& path,-
348 const QString& xmlData)-
349 : m_service(service), m_path(path), m_object(new QDBusIntrospection::Object)-
350{-
351// qDBusParserError() << "parsing" << xmlData;-
352-
353 m_object->service = m_service;-
354 m_object->path = m_path;-
355-
356 QXmlStreamReader xml(xmlData);-
357-
358 int nodeLevel = -1;-
359-
360 while (!xml.atEnd()) {
!xml.atEnd()Description
TRUEevaluated 3046 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 368 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
368-3046
361 xml.readNext();-
362-
363 switch (xml.tokenType()) {-
364 case QXmlStreamReader::StartElement:
executed 998 times by 14 tests: case QXmlStreamReader::StartElement:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
998
365 if (xml.name() == QLatin1String("node")) {
xml.name() == ...String("node")Description
TRUEevaluated 390 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 608 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
390-608
366 readNode(xml, m_object, ++nodeLevel);-
367 } else if (xml.name() == QLatin1String("interface")) {
executed 390 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
xml.name() == ...g("interface")Description
TRUEevaluated 590 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
18-590
368 readInterface(xml, m_object, &m_interfaces);-
369 } else {
executed 590 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
590
370 if (xml.prefix().isEmpty()) {
xml.prefix().isEmpty()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-18
371 qDBusParserError() << "skipping unknown element" << xml.name();
executed 18 times by 1 test: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
dead code: QMessageLogger(__FILE__, 371, __PRETTY_FUNCTION__).debug() << "skipping unknown element" << xml.name();
-
372 }-
373 xml.skipCurrentElement();-
374 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
18
375 break;
executed 998 times by 14 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
998
376 case QXmlStreamReader::EndElement:
executed 384 times by 14 tests: case QXmlStreamReader::EndElement:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
384
377 if (xml.name() == QLatin1String("node")) {
xml.name() == ...String("node")Description
TRUEevaluated 384 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEnever evaluated
0-384
378 --nodeLevel;-
379 } else {
executed 384 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
384
380 qDBusParserError() << "Invalid Node declaration" << xml.name();
never executed: end of block
dead code: QMessageLogger(__FILE__, 380, __PRETTY_FUNCTION__).debug() << "Invalid Node declaration" << xml.name();
-
381 }-
382 break;
executed 384 times by 14 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
384
383 case QXmlStreamReader::StartDocument:
executed 362 times by 14 tests: case QXmlStreamReader::StartDocument:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
362
384 case QXmlStreamReader::EndDocument:
executed 350 times by 14 tests: case QXmlStreamReader::EndDocument:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
350
385 case QXmlStreamReader::DTD:
executed 242 times by 13 tests: case QXmlStreamReader::DTD:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
242
386 // not interested-
387 break;
executed 954 times by 14 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
954
388 case QXmlStreamReader::Comment:
never executed: case QXmlStreamReader::Comment:
0
389 // ignore comments and processing instructions-
390 break;
never executed: break;
0
391 default:
executed 710 times by 13 tests: default:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
710
392 qDBusParserError() << "unknown token" << xml.name() << xml.tokenString();
executed 710 times by 13 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
dead code: QMessageLogger(__FILE__, 392, __PRETTY_FUNCTION__).debug() << "unknown token" << xml.name() << xml.tokenString();
-
393 break;
executed 710 times by 13 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
710
394 }-
395 }-
396-
397 if (xml.hasError()) {
xml.hasError()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxmlparser - unknown status
FALSEevaluated 350 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
18-350
398 qDBusParserError() << "xml error" << xml.errorString() << "doc" << xmlData;
executed 18 times by 2 tests: end of block
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxmlparser - unknown status
dead code: QMessageLogger(__FILE__, 398, __PRETTY_FUNCTION__).debug() << "xml error" << xml.errorString() << "doc" << xmlData;
-
399 }-
400}
executed 368 times by 14 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdbusxmlparser - unknown status
368
401-
402QT_END_NAMESPACE-
403-
404#endif // QT_NO_DBUS-
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9