qdbusmarshaller.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusmarshaller.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 "qdbusargument_p.h"-
41#include "qdbusconnection.h"-
42#include "qdbusmetatype_p.h"-
43#include "qdbusutil_p.h"-
44-
45#ifndef QT_NO_DBUS-
46-
47QT_BEGIN_NAMESPACE-
48-
49static void qIterAppend(DBusMessageIter *it, QByteArray *ba, int type, const void *arg)-
50{-
51 if (ba)
baDescription
TRUEevaluated 2243 times by 24 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 3255 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
2243-3255
52 *ba += char(type);
executed 2243 times by 24 tests: *ba += char(type);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
2243
53 else-
54 q_dbus_message_iter_append_basic(it, type, arg);
executed 3255 times by 156 tests: q_dbus_message_iter_append_basic(it, type, arg);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
3255
55}-
56-
57QDBusMarshaller::~QDBusMarshaller()-
58{-
59 close();-
60}
executed 9896 times by 161 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
9896
61-
62inline QString QDBusMarshaller::currentSignature()-
63{-
64 if (message)
messageDescription
TRUEnever evaluated
FALSEnever evaluated
0
65 return QString::fromUtf8(q_dbus_message_get_signature(message));
never executed: return QString::fromUtf8(q_dbus_message_get_signature(message));
0
66 return QString();
never executed: return QString();
0
67}-
68-
69inline void QDBusMarshaller::append(uchar arg)-
70{-
71 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-21
72 qIterAppend(&iterator, ba, DBUS_TYPE_BYTE, &arg);
executed 21 times by 1 test: qIterAppend(&iterator, ba, ((int) 'y'), &arg);
Executed by:
  • tst_qdbusmarshall - unknown status
21
73}
executed 21 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
21
74-
75inline void QDBusMarshaller::append(bool arg)-
76{-
77 dbus_bool_t cast = arg;-
78 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 57 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-57
79 qIterAppend(&iterator, ba, DBUS_TYPE_BOOLEAN, &cast);
executed 57 times by 1 test: qIterAppend(&iterator, ba, ((int) 'b'), &cast);
Executed by:
  • tst_qdbusmarshall - unknown status
57
80}
executed 57 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
57
81-
82inline void QDBusMarshaller::append(short arg)-
83{-
84 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-43
85 qIterAppend(&iterator, ba, DBUS_TYPE_INT16, &arg);
executed 43 times by 2 tests: qIterAppend(&iterator, ba, ((int) 'n'), &arg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
43
86}
executed 43 times by 2 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
43
87-
88inline void QDBusMarshaller::append(ushort arg)-
89{-
90 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-32
91 qIterAppend(&iterator, ba, DBUS_TYPE_UINT16, &arg);
executed 32 times by 1 test: qIterAppend(&iterator, ba, ((int) 'q'), &arg);
Executed by:
  • tst_qdbusmarshall - unknown status
32
92}
executed 32 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
32
93-
94inline void QDBusMarshaller::append(int arg)-
95{-
96 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 2022 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEnever evaluated
0-2022
97 qIterAppend(&iterator, ba, DBUS_TYPE_INT32, &arg);
executed 2022 times by 12 tests: qIterAppend(&iterator, ba, ((int) 'i'), &arg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
2022
98}
executed 2022 times by 12 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
2022
99-
100inline void QDBusMarshaller::append(uint arg)-
101{-
102 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 78 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
FALSEnever evaluated
0-78
103 qIterAppend(&iterator, ba, DBUS_TYPE_UINT32, &arg);
executed 78 times by 11 tests: qIterAppend(&iterator, ba, ((int) 'u'), &arg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
78
104}
executed 78 times by 11 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
78
105-
106inline void QDBusMarshaller::append(qlonglong arg)-
107{-
108 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 47 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
FALSEnever evaluated
0-47
109 qIterAppend(&iterator, ba, DBUS_TYPE_INT64, &arg);
executed 47 times by 5 tests: qIterAppend(&iterator, ba, ((int) 'x'), &arg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
47
110}
executed 47 times by 5 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
47
111-
112inline void QDBusMarshaller::append(qulonglong arg)-
113{-
114 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-29
115 qIterAppend(&iterator, ba, DBUS_TYPE_UINT64, &arg);
executed 29 times by 1 test: qIterAppend(&iterator, ba, ((int) 't'), &arg);
Executed by:
  • tst_qdbusmarshall - unknown status
29
116}
executed 29 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
29
117-
118inline void QDBusMarshaller::append(double arg)-
119{-
120 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 724 times by 3 tests
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
FALSEnever evaluated
0-724
121 qIterAppend(&iterator, ba, DBUS_TYPE_DOUBLE, &arg);
executed 724 times by 3 tests: qIterAppend(&iterator, ba, ((int) 'd'), &arg);
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
724
122}
executed 724 times by 3 tests: end of block
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
724
123-
124void QDBusMarshaller::append(const QString &arg)-
125{-
126 QByteArray data = arg.toUtf8();-
127 const char *cdata = data.constData();-
128 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 2373 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmetatype - unknown status
3-2373
129 qIterAppend(&iterator, ba, DBUS_TYPE_STRING, &cdata);
executed 2373 times by 158 tests: qIterAppend(&iterator, ba, ((int) 's'), &cdata);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
2373
130}
executed 2376 times by 158 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
2376
131-
132inline void QDBusMarshaller::append(const QDBusObjectPath &arg)-
133{-
134 QByteArray data = arg.path().toUtf8();-
135 if (!ba && data.isEmpty()) {
!baDescription
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 19 times by 17 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusmetatype - unknown status
data.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 21 times by 2 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbusreply - unknown status
3-24
136 error(QLatin1String("Invalid object path passed in arguments"));-
137 } else {
executed 3 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
3
138 const char *cdata = data.constData();-
139 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 40 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbusreply - unknown status
FALSEnever evaluated
0-40
140 qIterAppend(&iterator, ba, DBUS_TYPE_OBJECT_PATH, &cdata);
executed 40 times by 19 tests: qIterAppend(&iterator, ba, ((int) 'o'), &cdata);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbusreply - unknown status
40
141 }
executed 40 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbusreply - unknown status
40
142}-
143-
144inline void QDBusMarshaller::append(const QDBusSignature &arg)-
145{-
146 QByteArray data = arg.signature().toUtf8();-
147 if (!ba && data.isEmpty()) {
!baDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
data.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
0-23
148 error(QLatin1String("Invalid signature passed in arguments"));-
149 } else {
executed 3 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
3
150 const char *cdata = data.constData();-
151 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-20
152 qIterAppend(&iterator, ba, DBUS_TYPE_SIGNATURE, &cdata);
executed 20 times by 1 test: qIterAppend(&iterator, ba, ((int) 'g'), &cdata);
Executed by:
  • tst_qdbusmarshall - unknown status
20
153 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
20
154}-
155-
156inline void QDBusMarshaller::append(const QDBusUnixFileDescriptor &arg)-
157{-
158 int fd = arg.fileDescriptor();-
159 if (!ba && fd == -1) {
!baDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
fd == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
1-12
160 error(QLatin1String("Invalid file descriptor passed in arguments"));-
161 } else {
executed 1 time by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
1
162 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-12
163 qIterAppend(&iterator, ba, DBUS_TYPE_UNIX_FD, &fd);
executed 12 times by 1 test: qIterAppend(&iterator, ba, ((int) 'h'), &fd);
Executed by:
  • tst_qdbusmarshall - unknown status
12
164 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
12
165}-
166-
167inline void QDBusMarshaller::append(const QByteArray &arg)-
168{-
169 if (ba) {
baDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
3-26
170 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
FALSEnever evaluated
0-3
171 *ba += DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING;
executed 3 times by 2 tests: *ba += "a" "y";
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
3
172 return;
executed 3 times by 2 tests: return;
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
3
173 }-
174-
175 const char* cdata = arg.constData();-
176 DBusMessageIter subiterator;-
177 q_dbus_message_iter_open_container(&iterator, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE_AS_STRING,-
178 &subiterator);-
179 q_dbus_message_iter_append_fixed_array(&subiterator, DBUS_TYPE_BYTE, &cdata, arg.length());-
180 q_dbus_message_iter_close_container(&iterator, &subiterator);-
181}
executed 26 times by 4 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
26
182-
183inline bool QDBusMarshaller::append(const QDBusVariant &arg)-
184{-
185 if (ba) {
baDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmetatype - unknown status
FALSEevaluated 382 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
3-382
186 if (!skipSignature)
!skipSignatureDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmetatype - unknown status
0-3
187 *ba += DBUS_TYPE_VARIANT_AS_STRING;
never executed: *ba += "v";
0
188 return true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_qdbusmetatype - unknown status
3
189 }-
190-
191 const QVariant &value = arg.variant();-
192 int id = value.userType();-
193 if (id == QVariant::Invalid) {
id == QVariant::InvalidDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 381 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1-381
194 qWarning("QDBusMarshaller: cannot add a null QDBusVariant");-
195 error(QLatin1String("Variant containing QVariant::Invalid passed in arguments"));-
196 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
1
197 }-
198-
199 QByteArray tmpSignature;-
200 const char *signature = 0;-
201 if (id == QDBusMetaTypeId::argument()) {
id == QDBusMet...Id::argument()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusinterface - unknown status
FALSEevaluated 379 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
2-379
202 // take the signature from the QDBusArgument object we're marshalling-
203 tmpSignature =-
204 qvariant_cast<QDBusArgument>(value).currentSignature().toLatin1();-
205 signature = tmpSignature.constData();-
206 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qdbusinterface - unknown status
2
207 // take the signatuer from the metatype we're marshalling-
208 signature = QDBusMetaType::typeToSignature(id);-
209 }
executed 379 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
379
210 if (!signature) {
!signatureDescription
TRUEnever evaluated
FALSEevaluated 381 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
0-381
211 qWarning("QDBusMarshaller: type `%s' (%d) is not registered with D-BUS. "-
212 "Use qDBusRegisterMetaType to register it",-
213 QMetaType::typeName(id), id);-
214 error(QString::fromLatin1("Unregistered type %1 passed in arguments")-
215 .arg(QLatin1String(QMetaType::typeName(id))));-
216 return false;
never executed: return false;
0
217 }-
218-
219 QDBusMarshaller sub(capabilities);-
220 open(sub, DBUS_TYPE_VARIANT, signature);-
221 bool isOk = sub.appendVariantInternal(value);-
222 // don't call sub.close(): it auto-closes-
223-
224 return isOk;
executed 381 times by 7 tests: return isOk;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
381
225}-
226-
227inline void QDBusMarshaller::append(const QStringList &arg)-
228{-
229 if (ba) {
baDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
FALSEevaluated 15 times by 3 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
4-15
230 if (!skipSignature)
!skipSignatureDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
FALSEnever evaluated
0-4
231 *ba += DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_STRING_AS_STRING;
executed 4 times by 2 tests: *ba += "a" "s";
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
4
232 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
4
233 }-
234-
235 QDBusMarshaller sub(capabilities);-
236 open(sub, DBUS_TYPE_ARRAY, DBUS_TYPE_STRING_AS_STRING);-
237 QStringList::ConstIterator it = arg.constBegin();-
238 QStringList::ConstIterator end = arg.constEnd();-
239 for ( ; it != end; ++it)
it != endDescription
TRUEevaluated 27 times by 3 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 15 times by 3 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
15-27
240 sub.append(*it);
executed 27 times by 3 tests: sub.append(*it);
Executed by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
27
241 // don't call sub.close(): it auto-closes-
242}
executed 15 times by 3 tests: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
15
243-
244inline QDBusMarshaller *QDBusMarshaller::beginStructure()-
245{-
246 return beginCommon(DBUS_TYPE_STRUCT, 0);
executed 1412 times by 24 tests: return beginCommon(((int) 'r'), 0);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1412
247}-
248-
249inline QDBusMarshaller *QDBusMarshaller::beginArray(int id)-
250{-
251 const char *signature = QDBusMetaType::typeToSignature( QVariant::Type(id) );-
252 if (!signature) {
!signatureDescription
TRUEnever evaluated
FALSEevaluated 871 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
0-871
253 qWarning("QDBusMarshaller: type `%s' (%d) is not registered with D-BUS. "-
254 "Use qDBusRegisterMetaType to register it",-
255 QMetaType::typeName(id), id);-
256 error(QString::fromLatin1("Unregistered type %1 passed in arguments")-
257 .arg(QLatin1String(QMetaType::typeName(id))));-
258 return this;
never executed: return this;
0
259 }-
260-
261 return beginCommon(DBUS_TYPE_ARRAY, signature);
executed 871 times by 25 tests: return beginCommon(((int) 'a'), signature);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
871
262}-
263-
264inline QDBusMarshaller *QDBusMarshaller::beginMap(int kid, int vid)-
265{-
266 const char *ksignature = QDBusMetaType::typeToSignature( QVariant::Type(kid) );-
267 if (!ksignature) {
!ksignatureDescription
TRUEnever evaluated
FALSEevaluated 245 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
0-245
268 qWarning("QDBusMarshaller: type `%s' (%d) is not registered with D-BUS. "-
269 "Use qDBusRegisterMetaType to register it",-
270 QMetaType::typeName(kid), kid);-
271 error(QString::fromLatin1("Unregistered type %1 passed in arguments")-
272 .arg(QLatin1String(QMetaType::typeName(kid))));-
273 return this;
never executed: return this;
0
274 }-
275 if (ksignature[1] != 0 || !QDBusUtil::isValidBasicType(*ksignature)) {
ksignature[1] != 0Description
TRUEnever evaluated
FALSEevaluated 245 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
!QDBusUtil::is...e(*ksignature)Description
TRUEnever evaluated
FALSEevaluated 245 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
0-245
276 qWarning("QDBusMarshaller: type '%s' (%d) cannot be used as the key type in a D-BUS map.",-
277 QMetaType::typeName(kid), kid);-
278 error(QString::fromLatin1("Type %1 passed in arguments cannot be used as a key in a map")-
279 .arg(QLatin1String(QMetaType::typeName(kid))));-
280 return this;
never executed: return this;
0
281 }-
282-
283 const char *vsignature = QDBusMetaType::typeToSignature( QVariant::Type(vid) );-
284 if (!vsignature) {
!vsignatureDescription
TRUEnever evaluated
FALSEevaluated 245 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
0-245
285 const char *typeName = QMetaType::typeName(vid);-
286 qWarning("QDBusMarshaller: type `%s' (%d) is not registered with D-BUS. "-
287 "Use qDBusRegisterMetaType to register it",-
288 typeName, vid);-
289 error(QString::fromLatin1("Unregistered type %1 passed in arguments")-
290 .arg(QLatin1String(typeName)));-
291 return this;
never executed: return this;
0
292 }-
293-
294 QByteArray signature;-
295 signature = DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING;-
296 signature += ksignature;-
297 signature += vsignature;-
298 signature += DBUS_DICT_ENTRY_END_CHAR_AS_STRING;-
299 return beginCommon(DBUS_TYPE_ARRAY, signature);
executed 245 times by 30 tests: return beginCommon(((int) 'a'), signature);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
245
300}-
301-
302inline QDBusMarshaller *QDBusMarshaller::beginMapEntry()-
303{-
304 return beginCommon(DBUS_TYPE_DICT_ENTRY, 0);
executed 162 times by 6 tests: return beginCommon(((int) 'e'), 0);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
162
305}-
306-
307void QDBusMarshaller::open(QDBusMarshaller &sub, int code, const char *signature)-
308{-
309 sub.parent = this;-
310 sub.ba = ba;-
311 sub.ok = true;-
312 sub.capabilities = capabilities;-
313 sub.skipSignature = skipSignature;-
314-
315 if (ba) {
baDescription
TRUEevaluated 1909 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 1933 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1909-1933
316 if (!skipSignature) {
!skipSignatureDescription
TRUEevaluated 1903 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusmetatype - unknown status
6-1903
317 switch (code) {-
318 case DBUS_TYPE_ARRAY:
executed 914 times by 31 tests: case ((int) 'a'):
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
914
319 *ba += char(code);-
320 *ba += signature;-
321 // fall through-
322-
323 case DBUS_TYPE_DICT_ENTRY:
code before this statement executed 914 times by 31 tests: case ((int) 'e'):
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
never executed: case ((int) 'e'):
0-914
324 sub.closeCode = 0;-
325 sub.skipSignature = true;-
326 break;
executed 914 times by 31 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
914
327-
328 case DBUS_TYPE_STRUCT:
executed 989 times by 24 tests: case ((int) 'r'):
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
989
329 *ba += DBUS_STRUCT_BEGIN_CHAR;-
330 sub.closeCode = DBUS_STRUCT_END_CHAR;-
331 break;
executed 989 times by 24 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
989
332 }-
333 }
executed 1903 times by 31 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1903
334 } else {
executed 1909 times by 31 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1909
335 q_dbus_message_iter_open_container(&iterator, code, signature, &sub.iterator);-
336 }
executed 1933 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1933
337}-
338-
339QDBusMarshaller *QDBusMarshaller::beginCommon(int code, const char *signature)-
340{-
341 QDBusMarshaller *d = new QDBusMarshaller(capabilities);-
342 open(*d, code, signature);-
343 return d;
executed 2690 times by 31 tests: return d;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
2690
344}-
345-
346inline QDBusMarshaller *QDBusMarshaller::endStructure()-
347{
executed 1412 times by 24 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
return endCommon(); }
executed 1412 times by 24 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1412
348-
349inline QDBusMarshaller *QDBusMarshaller::endArray()-
350{
executed 871 times by 25 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
return endCommon(); }
executed 871 times by 25 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
871
351-
352inline QDBusMarshaller *QDBusMarshaller::endMap()-
353{
executed 245 times by 30 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
return endCommon(); }
executed 245 times by 30 tests: return endCommon();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
245
354-
355inline QDBusMarshaller *QDBusMarshaller::endMapEntry()-
356{
executed 162 times by 6 tests: return endCommon();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
return endCommon(); }
executed 162 times by 6 tests: return endCommon();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
162
357-
358QDBusMarshaller *QDBusMarshaller::endCommon()-
359{-
360 QDBusMarshaller *retval = parent;-
361 delete this;-
362 return retval;
executed 2690 times by 31 tests: return retval;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
2690
363}-
364-
365void QDBusMarshaller::close()-
366{-
367 if (ba) {
baDescription
TRUEevaluated 3460 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 6436 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
3460-6436
368 if (!skipSignature && closeCode)
!skipSignatureDescription
TRUEevaluated 2540 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 920 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
closeCodeDescription
TRUEevaluated 989 times by 24 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 1551 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
920-2540
369 *ba += closeCode;
executed 989 times by 24 tests: *ba += closeCode;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
989
370 } else if (parent) {
executed 3460 times by 31 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • 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_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
parentDescription
TRUEevaluated 1933 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 4503 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1933-4503
371 q_dbus_message_iter_close_container(&parent->iterator, &iterator);-
372 }
executed 1933 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1933
373}
executed 9896 times by 161 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
9896
374-
375void QDBusMarshaller::error(const QString &msg)-
376{-
377 ok = false;-
378 if (parent)
parentDescription
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
0-11
379 parent->error(msg);
never executed: parent->error(msg);
0
380 else-
381 errorString = msg;
executed 11 times by 1 test: errorString = msg;
Executed by:
  • tst_qdbusmarshall - unknown status
11
382}-
383-
384bool QDBusMarshaller::appendVariantInternal(const QVariant &arg)-
385{-
386 int id = arg.userType();-
387 if (id == QVariant::Invalid) {
id == QVariant::InvalidDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3550 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1-3550
388 qWarning("QDBusMarshaller: cannot add an invalid QVariant");-
389 error(QLatin1String("Variant containing QVariant::Invalid passed in arguments"));-
390 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
1
391 }-
392-
393 // intercept QDBusArgument parameters here-
394 if (id == QDBusMetaTypeId::argument()) {
id == QDBusMet...Id::argument()Description
TRUEevaluated 545 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3005 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
545-3005
395 QDBusArgument dbusargument = qvariant_cast<QDBusArgument>(arg);-
396 QDBusArgumentPrivate *d = QDBusArgumentPrivate::d(dbusargument);-
397 if (!d->message)
!d->messageDescription
TRUEnever evaluated
FALSEevaluated 545 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-545
398 return false; // can't append this one...
never executed: return false;
0
399-
400 QDBusDemarshaller demarshaller(capabilities);-
401 demarshaller.message = q_dbus_message_ref(d->message);-
402-
403 if (d->direction == Demarshalling) {
d->direction == DemarshallingDescription
TRUEevaluated 302 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
243-302
404 // it's demarshalling; just copy-
405 demarshaller.iterator = static_cast<QDBusDemarshaller *>(d)->iterator;-
406 } else {
executed 302 times by 2 tests: end of block
Executed by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
302
407 // it's marshalling; start over-
408 if (!q_dbus_message_iter_init(demarshaller.message, &demarshaller.iterator))
!q_dbus_messag...ller.iterator)Description
TRUEnever evaluated
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
0-243
409 return false; // error!
never executed: return false;
0
410 }
executed 243 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
243
411-
412 return appendCrossMarshalling(&demarshaller);
executed 545 times by 2 tests: return appendCrossMarshalling(&demarshaller);
Executed by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
545
413 }-
414-
415 const char *signature = QDBusMetaType::typeToSignature( QVariant::Type(id) );-
416 if (!signature) {
!signatureDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3003 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
2-3003
417 qWarning("QDBusMarshaller: type `%s' (%d) is not registered with D-BUS. "-
418 "Use qDBusRegisterMetaType to register it",-
419 QMetaType::typeName(id), id);-
420 error(QString::fromLatin1("Unregistered type %1 passed in arguments")-
421 .arg(QLatin1String(QMetaType::typeName(id))));-
422 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
2
423 }-
424-
425 switch (*signature) {-
426#ifdef __OPTIMIZE__-
427 case DBUS_TYPE_BYTE:-
428 case DBUS_TYPE_INT16:-
429 case DBUS_TYPE_UINT16:-
430 case DBUS_TYPE_INT32:-
431 case DBUS_TYPE_UINT32:-
432 case DBUS_TYPE_INT64:-
433 case DBUS_TYPE_UINT64:-
434 case DBUS_TYPE_DOUBLE:-
435 qIterAppend(&iterator, ba, *signature, arg.constData());-
436 return true;-
437 case DBUS_TYPE_BOOLEAN:-
438 append( arg.toBool() );-
439 return true;-
440#else-
441 case DBUS_TYPE_BYTE:
executed 20 times by 1 test: case ((int) 'y'):
Executed by:
  • tst_qdbusmarshall - unknown status
20
442 append( qvariant_cast<uchar>(arg) );-
443 return true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
20
444 case DBUS_TYPE_BOOLEAN:
executed 42 times by 1 test: case ((int) 'b'):
Executed by:
  • tst_qdbusmarshall - unknown status
42
445 append( arg.toBool() );-
446 return true;
executed 42 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
42
447 case DBUS_TYPE_INT16:
executed 29 times by 2 tests: case ((int) 'n'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
29
448 append( qvariant_cast<short>(arg) );-
449 return true;
executed 29 times by 2 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
29
450 case DBUS_TYPE_UINT16:
executed 20 times by 1 test: case ((int) 'q'):
Executed by:
  • tst_qdbusmarshall - unknown status
20
451 append( qvariant_cast<ushort>(arg) );-
452 return true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
20
453 case DBUS_TYPE_INT32:
executed 236 times by 10 tests: case ((int) 'i'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
236
454 append( static_cast<dbus_int32_t>(arg.toInt()) );-
455 return true;
executed 236 times by 10 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
236
456 case DBUS_TYPE_UINT32:
executed 66 times by 11 tests: case ((int) 'u'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
66
457 append( static_cast<dbus_uint32_t>(arg.toUInt()) );-
458 return true;
executed 66 times by 11 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
66
459 case DBUS_TYPE_INT64:
executed 26 times by 2 tests: case ((int) 'x'):
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
26
460 append( arg.toLongLong() );-
461 return true;
executed 26 times by 2 tests: return true;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
26
462 case DBUS_TYPE_UINT64:
executed 22 times by 1 test: case ((int) 't'):
Executed by:
  • tst_qdbusmarshall - unknown status
22
463 append( arg.toULongLong() );-
464 return true;
executed 22 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
22
465 case DBUS_TYPE_DOUBLE:
executed 24 times by 1 test: case ((int) 'd'):
Executed by:
  • tst_qdbusmarshall - unknown status
24
466 append( arg.toDouble() );-
467 return true;
executed 24 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
24
468#endif-
469-
470 case DBUS_TYPE_STRING:
executed 1921 times by 156 tests: case ((int) 's'):
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1921
471 append( arg.toString() );-
472 return true;
executed 1921 times by 156 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1921
473 case DBUS_TYPE_OBJECT_PATH:
executed 13 times by 1 test: case ((int) 'o'):
Executed by:
  • tst_qdbusmarshall - unknown status
13
474 append( qvariant_cast<QDBusObjectPath>(arg) );-
475 return true;
executed 13 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
13
476 case DBUS_TYPE_SIGNATURE:
executed 13 times by 1 test: case ((int) 'g'):
Executed by:
  • tst_qdbusmarshall - unknown status
13
477 append( qvariant_cast<QDBusSignature>(arg) );-
478 return true;
executed 13 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
13
479-
480 // compound types:-
481 case DBUS_TYPE_VARIANT:
executed 226 times by 7 tests: case ((int) 'v'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
226
482 // nested QVariant-
483 return append( qvariant_cast<QDBusVariant>(arg) );
executed 226 times by 7 tests: return append( qvariant_cast<QDBusVariant>(arg) );
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
226
484-
485 case DBUS_TYPE_ARRAY:
executed 178 times by 7 tests: case ((int) 'a'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
178
486 // could be many things-
487 // find out what kind of array it is-
488 switch (arg.type()) {-
489 case QVariant::StringList:
executed 10 times by 3 tests: case QVariant::StringList:
Executed by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
10
490 append( arg.toStringList() );-
491 return true;
executed 10 times by 3 tests: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
10
492-
493 case QVariant::ByteArray:
executed 19 times by 4 tests: case QVariant::ByteArray:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
19
494 append( arg.toByteArray() );-
495 return true;
executed 19 times by 4 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
19
496-
497 default:
executed 149 times by 7 tests: default:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
149
498 ; // fall through-
499 }
executed 149 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
149
500 // fall through-
501-
502 case DBUS_TYPE_STRUCT:
code before this statement executed 149 times by 7 tests: case ((int) 'r'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
never executed: case ((int) 'r'):
0-149
503 case DBUS_STRUCT_BEGIN_CHAR:
executed 160 times by 5 tests: case ((int) '('):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
160
504 return appendRegisteredType( arg );
executed 309 times by 7 tests: return appendRegisteredType( arg );
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
309
505-
506 case DBUS_TYPE_DICT_ENTRY:
never executed: case ((int) 'e'):
0
507 case DBUS_DICT_ENTRY_BEGIN_CHAR:
never executed: case ((int) '{'):
0
508 qFatal("QDBusMarshaller::appendVariantInternal got a DICT_ENTRY!");-
509 return false;
never executed: return false;
0
510-
511 case DBUS_TYPE_UNIX_FD:
executed 7 times by 1 test: case ((int) 'h'):
Executed by:
  • tst_qdbusmarshall - unknown status
7
512 if (capabilities & QDBusConnection::UnixFileDescriptorPassing || ba) {
capabilities &...criptorPassingDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
baDescription
TRUEnever evaluated
FALSEnever evaluated
0-7
513 append(qvariant_cast<QDBusUnixFileDescriptor>(arg));-
514 return true;
executed 7 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
7
515 }-
516 // fall through-
517-
518 default:
code before this statement never executed: default:
never executed: default:
0
519 qWarning("QDBusMarshaller::appendVariantInternal: Found unknown D-BUS type '%s'",-
520 signature);-
521 return false;
never executed: return false;
0
522 }-
523-
524 return true;
never executed: return true;
0
525}-
526-
527bool QDBusMarshaller::appendRegisteredType(const QVariant &arg)-
528{-
529 ref.ref(); // reference up-
530 QDBusArgument self(QDBusArgumentPrivate::create(this));-
531 return QDBusMetaType::marshall(self, arg.userType(), arg.constData());
executed 309 times by 7 tests: return QDBusMetaType::marshall(self, arg.userType(), arg.constData());
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
309
532}-
533-
534bool QDBusMarshaller::appendCrossMarshalling(QDBusDemarshaller *demarshaller)-
535{-
536 int code = q_dbus_message_iter_get_arg_type(&demarshaller->iterator);-
537 if (QDBusUtil::isValidBasicType(code)) {
QDBusUtil::isV...asicType(code)Description
TRUEevaluated 814 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 845 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
814-845
538 // easy: just append-
539 // do exactly like the D-BUS docs suggest-
540 // (see apidocs for q_dbus_message_iter_get_basic)-
541-
542 qlonglong value;-
543 q_dbus_message_iter_get_basic(&demarshaller->iterator, &value);-
544 q_dbus_message_iter_next(&demarshaller->iterator);-
545 q_dbus_message_iter_append_basic(&iterator, code, &value);-
546 return true;
executed 814 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
814
547 }-
548-
549 if (code == DBUS_TYPE_ARRAY) {
code == ((int) 'a')Description
TRUEevaluated 185 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 660 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
185-660
550 int element = q_dbus_message_iter_get_element_type(&demarshaller->iterator);-
551 if (QDBusUtil::isValidFixedType(element) && element != DBUS_TYPE_UNIX_FD) {
QDBusUtil::isV...dType(element)Description
TRUEevaluated 91 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 94 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
element != ((int) 'h')Description
TRUEevaluated 89 times by 2 tests
Evaluated by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
2-94
552 // another optimization: fixed size arrays-
553 // code is exactly like QDBusDemarshaller::toByteArray-
554 DBusMessageIter sub;-
555 q_dbus_message_iter_recurse(&demarshaller->iterator, &sub);-
556 q_dbus_message_iter_next(&demarshaller->iterator);-
557 int len;-
558 void* data;-
559 q_dbus_message_iter_get_fixed_array(&sub,&data,&len);-
560-
561 char signature[2] = { char(element), 0 };-
562 q_dbus_message_iter_open_container(&iterator, DBUS_TYPE_ARRAY, signature, &sub);-
563 q_dbus_message_iter_append_fixed_array(&sub, element, &data, len);-
564 q_dbus_message_iter_close_container(&iterator, &sub);-
565-
566 return true;
executed 89 times by 2 tests: return true;
Executed by:
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
89
567 }-
568 }
executed 96 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
96
569-
570 // We have to recurse-
571 QDBusDemarshaller *drecursed = demarshaller->beginCommon();-
572-
573 QDBusMarshaller mrecursed(capabilities); // create on the stack makes it autoclose-
574 QByteArray subSignature;-
575 const char *sig = 0;-
576 if (code == DBUS_TYPE_VARIANT || code == DBUS_TYPE_ARRAY) {
code == ((int) 'v')Description
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 660 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
code == ((int) 'a')Description
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 564 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
96-660
577 subSignature = drecursed->currentSignature().toLatin1();-
578 if (!subSignature.isEmpty())
!subSignature.isEmpty()Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-192
579 sig = subSignature.constData();
executed 192 times by 1 test: sig = subSignature.constData();
Executed by:
  • tst_qdbusmarshall - unknown status
192
580 }
executed 192 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
192
581 open(mrecursed, code, sig);-
582-
583 while (!drecursed->atEnd()) {
!drecursed->atEnd()Description
TRUEevaluated 1114 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 756 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
756-1114
584 if (!mrecursed.appendCrossMarshalling(drecursed)) {
!mrecursed.app...ing(drecursed)Description
TRUEnever evaluated
FALSEevaluated 1114 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
0-1114
585 delete drecursed;-
586 return false;
never executed: return false;
0
587 }-
588 }
executed 1114 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
1114
589-
590 delete drecursed;-
591 return true;
executed 756 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
756
592}-
593-
594QT_END_NAMESPACE-
595-
596#endif // QT_NO_DBUS-
Source codeSwitch to Preprocessed file

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