Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | #include "qdbusmetaobject_p.h" | - |
42 | | - |
43 | #include <QtCore/qbytearray.h> | - |
44 | #include <QtCore/qhash.h> | - |
45 | #include <QtCore/qstring.h> | - |
46 | #include <QtCore/qvarlengtharray.h> | - |
47 | | - |
48 | #include "qdbusutil_p.h" | - |
49 | #include "qdbuserror.h" | - |
50 | #include "qdbusmetatype.h" | - |
51 | #include "qdbusargument.h" | - |
52 | #include "qdbusintrospection_p.h" | - |
53 | #include "qdbusabstractinterface_p.h" | - |
54 | | - |
55 | #include <private/qmetaobject_p.h> | - |
56 | #include <private/qmetaobjectbuilder_p.h> | - |
57 | | - |
58 | #ifndef QT_NO_DBUS | - |
59 | | - |
60 | QT_BEGIN_NAMESPACE | - |
61 | | - |
62 | class QDBusMetaObjectGenerator | - |
63 | { | - |
64 | public: | - |
65 | QDBusMetaObjectGenerator(const QString &interface, | - |
66 | const QDBusIntrospection::Interface *parsedData); | - |
67 | void write(QDBusMetaObject *obj); | - |
68 | void writeWithoutXml(QDBusMetaObject *obj); | - |
69 | | - |
70 | private: | - |
71 | struct Method { | - |
72 | QList<QByteArray> parameterNames; | - |
73 | QByteArray tag; | - |
74 | QByteArray name; | - |
75 | QVarLengthArray<int, 4> inputTypes; | - |
76 | QVarLengthArray<int, 4> outputTypes; | - |
77 | QByteArray rawReturnType; | - |
78 | int flags; | - |
79 | }; | - |
80 | | - |
81 | struct Property { | - |
82 | QByteArray typeName; | - |
83 | QByteArray signature; | - |
84 | int type; | - |
85 | int flags; | - |
86 | }; | - |
87 | struct Type { | - |
88 | int id; | - |
89 | QByteArray name; | - |
90 | }; | - |
91 | | - |
92 | QMap<QByteArray, Method> signals_; | - |
93 | QMap<QByteArray, Method> methods; | - |
94 | QMap<QByteArray, Property> properties; | - |
95 | | - |
96 | const QDBusIntrospection::Interface *data; | - |
97 | QString interface; | - |
98 | | - |
99 | Type findType(const QByteArray &signature, | - |
100 | const QDBusIntrospection::Annotations &annotations, | - |
101 | const char *direction = "Out", int id = -1); | - |
102 | | - |
103 | void parseMethods(); | - |
104 | void parseSignals(); | - |
105 | void parseProperties(); | - |
106 | | - |
107 | static int aggregateParameterCount(const QMap<QByteArray, Method> &map); | - |
108 | }; | - |
109 | | - |
110 | static const int intsPerProperty = 2; | - |
111 | static const int intsPerMethod = 2; | - |
112 | | - |
113 | struct QDBusMetaObjectPrivate : public QMetaObjectPrivate | - |
114 | { | - |
115 | int propertyDBusData; | - |
116 | int methodDBusData; | - |
117 | }; | - |
118 | | - |
119 | QDBusMetaObjectGenerator::QDBusMetaObjectGenerator(const QString &interfaceName, | - |
120 | const QDBusIntrospection::Interface *parsedData) | - |
121 | : data(parsedData), interface(interfaceName) | - |
122 | { | - |
123 | if (data) {TRUE | evaluated 152 times by 12 testsEvaluated 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
| FALSE | never evaluated |
| 0-152 |
124 | parseProperties(); | - |
125 | parseSignals(); | - |
126 | parseMethods(); | - |
127 | }executed 152 times by 12 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
| 152 |
128 | }executed 152 times by 12 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
| 152 |
129 | | - |
130 | static int registerComplexDBusType(const char *typeName) | - |
131 | { | - |
132 | struct QDBusRawTypeHandler { | - |
133 | static void destruct(void *) | - |
134 | { | - |
135 | qFatal("Cannot destruct placeholder type QDBusRawType"); | - |
136 | } never executed: end of block | 0 |
137 | | - |
138 | static void *construct(void *, const void *) | - |
139 | { | - |
140 | qFatal("Cannot construct placeholder type QDBusRawType"); | - |
141 | return 0; never executed: return 0; | 0 |
142 | } | - |
143 | }; | - |
144 | | - |
145 | return QMetaType::registerNormalizedType(typeName,executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
146 | QDBusRawTypeHandler::destruct,executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
147 | QDBusRawTypeHandler::construct,executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
148 | sizeof(void *),executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
149 | QMetaType::MovableType,executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
150 | 0);executed 4 times by 1 test: return QMetaType::registerNormalizedType(typeName, QDBusRawTypeHandler::destruct, QDBusRawTypeHandler::construct, sizeof(void *), QMetaType::MovableType, 0); Executed by:- tst_qdbusinterface - unknown status
| 4 |
151 | } | - |
152 | | - |
153 | Q_DBUS_EXPORT bool qt_dbus_metaobject_skip_annotations = false; | - |
154 | | - |
155 | QDBusMetaObjectGenerator::Type | - |
156 | QDBusMetaObjectGenerator::findType(const QByteArray &signature, | - |
157 | const QDBusIntrospection::Annotations &annotations, | - |
158 | const char *direction, int id) | - |
159 | { | - |
160 | Type result; | - |
161 | result.id = QVariant::Invalid; | - |
162 | | - |
163 | int type = QDBusMetaType::signatureToType(signature); | - |
164 | if (type == QVariant::Invalid && !qt_dbus_metaobject_skip_annotations) {TRUE | evaluated 209 times by 11 testsEvaluated 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
| FALSE | evaluated 1061 times by 11 testsEvaluated 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
|
TRUE | evaluated 209 times by 11 testsEvaluated 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
| FALSE | never evaluated |
| 0-1061 |
165 | | - |
166 | | - |
167 | QString annotationName = QString::fromLatin1("org.qtproject.QtDBus.QtTypeName"); | - |
168 | if (id >= 0)TRUE | evaluated 203 times by 11 testsEvaluated 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
| FALSE | evaluated 6 times by 3 testsEvaluated by:- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
|
| 6-203 |
169 | annotationName += QString::fromLatin1(".%1%2")executed 203 times by 11 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); 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
| 203 |
170 | .arg(QLatin1String(direction))executed 203 times by 11 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); 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
| 203 |
171 | .arg(id);executed 203 times by 11 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); 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
| 203 |
172 | | - |
173 | | - |
174 | QByteArray typeName = annotations.value(annotationName).toLatin1(); | - |
175 | | - |
176 | | - |
177 | if (typeName.isEmpty()) {TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 204 times by 11 testsEvaluated 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
|
| 5-204 |
178 | | - |
179 | annotationName = QString::fromLatin1("com.trolltech.QtDBus.QtTypeName"); | - |
180 | if (id >= 0)TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qdbusinterface - unknown status
|
| 1-4 |
181 | annotationName += QString::fromLatin1(".%1%2")executed 4 times by 2 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); Executed by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 4 |
182 | .arg(QLatin1String(direction))executed 4 times by 2 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); Executed by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 4 |
183 | .arg(id);executed 4 times by 2 tests: annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1String(direction)) .arg(id); Executed by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 4 |
184 | typeName = annotations.value(annotationName).toLatin1(); | - |
185 | }executed 5 times by 2 tests: end of block Executed by:- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 5 |
186 | | - |
187 | if (!typeName.isEmpty()) {TRUE | evaluated 205 times by 11 testsEvaluated 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
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
|
| 4-205 |
188 | | - |
189 | type = QMetaType::type(typeName); | - |
190 | }executed 205 times by 11 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
| 205 |
191 | | - |
192 | if (type == QVariant::Invalid || signature != QDBusMetaType::typeToSignature(type)) {TRUE | evaluated 4 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
| FALSE | evaluated 205 times by 11 testsEvaluated 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
|
TRUE | never evaluated | FALSE | evaluated 205 times by 11 testsEvaluated 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
|
| 0-205 |
193 | | - |
194 | | - |
195 | typeName = "QDBusRawType<0x" + signature.toHex() + ">*"; | - |
196 | type = registerComplexDBusType(typeName); | - |
197 | }executed 4 times by 1 test: end of block Executed by:- tst_qdbusinterface - unknown status
| 4 |
198 | | - |
199 | result.name = typeName; | - |
200 | } else if (type == QVariant::Invalid) {executed 209 times by 11 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
TRUE | never evaluated | FALSE | evaluated 1061 times by 11 testsEvaluated 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
|
| 0-1061 |
201 | | - |
202 | | - |
203 | | - |
204 | if (signature == "av") {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
205 | result.name = "QVariantList"; | - |
206 | type = QVariant::List; | - |
207 | } else if (signature == "a{sv}") { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
208 | result.name = "QVariantMap"; | - |
209 | type = QVariant::Map; | - |
210 | } else if (signature == "a{ss}") { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
211 | result.name = "QMap<QString,QString>"; | - |
212 | type = qMetaTypeId<QMap<QString, QString> >(); | - |
213 | } else { never executed: end of block | 0 |
214 | result.name = "{D-Bus type \"" + signature + "\"}"; | - |
215 | type = registerComplexDBusType(result.name); | - |
216 | } never executed: end of block | 0 |
217 | } else { | - |
218 | result.name = QMetaType::typeName(type); | - |
219 | }executed 1061 times by 11 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
| 1061 |
220 | | - |
221 | result.id = type; | - |
222 | return result; executed 1270 times by 11 tests: return result; 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
| 1270 |
223 | } | - |
224 | | - |
225 | void QDBusMetaObjectGenerator::parseMethods() | - |
226 | { | - |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | QDBusIntrospection::Methods::ConstIterator method_it = data->methods.constBegin(); | - |
233 | QDBusIntrospection::Methods::ConstIterator method_end = data->methods.constEnd(); | - |
234 | for ( ; method_it != method_end; ++method_it) {TRUE | evaluated 990 times by 12 testsEvaluated 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
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 152-990 |
235 | const QDBusIntrospection::Method &m = *method_it; | - |
236 | Method mm; | - |
237 | | - |
238 | mm.name = m.name.toLatin1(); | - |
239 | QByteArray prototype = mm.name; | - |
240 | prototype += '('; | - |
241 | | - |
242 | bool ok = true; | - |
243 | | - |
244 | | - |
245 | for (int i = 0; i < m.inputArgs.count(); ++i) {TRUE | evaluated 543 times by 11 testsEvaluated 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
| FALSE | evaluated 990 times by 12 testsEvaluated 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
|
| 543-990 |
246 | const QDBusIntrospection::Argument &arg = m.inputArgs.at(i); | - |
247 | | - |
248 | Type type = findType(arg.type.toLatin1(), m.annotations, "In", i); | - |
249 | if (type.id == QVariant::Invalid) {TRUE | never evaluated | FALSE | evaluated 543 times by 11 testsEvaluated 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
|
| 0-543 |
250 | ok = false; | - |
251 | break; never executed: break; | 0 |
252 | } | - |
253 | | - |
254 | mm.inputTypes.append(type.id); | - |
255 | | - |
256 | mm.parameterNames.append(arg.name.toLatin1()); | - |
257 | | - |
258 | prototype.append(type.name); | - |
259 | prototype.append(','); | - |
260 | }executed 543 times by 11 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
| 543 |
261 | if (!ok) continue; never executed: continue; TRUE | never evaluated | FALSE | evaluated 990 times by 12 testsEvaluated 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
|
| 0-990 |
262 | | - |
263 | | - |
264 | for (int i = 0; i < m.outputArgs.count(); ++i) {TRUE | evaluated 533 times by 11 testsEvaluated 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
| FALSE | evaluated 990 times by 12 testsEvaluated 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
|
| 533-990 |
265 | const QDBusIntrospection::Argument &arg = m.outputArgs.at(i); | - |
266 | | - |
267 | Type type = findType(arg.type.toLatin1(), m.annotations, "Out", i); | - |
268 | if (type.id == QVariant::Invalid) {TRUE | never evaluated | FALSE | evaluated 533 times by 11 testsEvaluated 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
|
| 0-533 |
269 | ok = false; | - |
270 | break; never executed: break; | 0 |
271 | } | - |
272 | | - |
273 | mm.outputTypes.append(type.id); | - |
274 | | - |
275 | if (i == 0 && type.id == -1) {TRUE | evaluated 514 times by 11 testsEvaluated 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
| FALSE | evaluated 19 times by 5 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
|
TRUE | never evaluated | FALSE | evaluated 514 times by 11 testsEvaluated 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
|
| 0-514 |
276 | mm.rawReturnType = type.name; | - |
277 | } never executed: end of block | 0 |
278 | if (i != 0) {TRUE | evaluated 19 times by 5 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
| FALSE | evaluated 514 times by 11 testsEvaluated 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
|
| 19-514 |
279 | | - |
280 | mm.parameterNames.append(arg.name.toLatin1()); | - |
281 | | - |
282 | prototype.append(type.name); | - |
283 | prototype.append("&,"); | - |
284 | }executed 19 times by 5 tests: end of block Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
| 19 |
285 | }executed 533 times by 11 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
| 533 |
286 | if (!ok) continue; never executed: continue; TRUE | never evaluated | FALSE | evaluated 990 times by 12 testsEvaluated 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
|
| 0-990 |
287 | | - |
288 | | - |
289 | if (!mm.parameterNames.isEmpty())TRUE | evaluated 485 times by 11 testsEvaluated 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
| FALSE | evaluated 505 times by 12 testsEvaluated 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
|
| 485-505 |
290 | prototype[prototype.length() - 1] = ')';executed 485 times by 11 tests: prototype[prototype.length() - 1] = ')'; 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
| 485 |
291 | else | - |
292 | prototype.append(')');executed 505 times by 12 tests: prototype.append(')'); 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
| 505 |
293 | | - |
294 | | - |
295 | if (m.annotations.value(QLatin1String(ANNOTATION_NO_WAIT)) == QLatin1String("true"))TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 989 times by 12 testsEvaluated 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
|
| 1-989 |
296 | mm.tag = "Q_NOREPLY";executed 1 time by 1 test: mm.tag = "Q_NOREPLY"; Executed by:- tst_qdbusmetaobject - unknown status
| 1 |
297 | | - |
298 | | - |
299 | mm.flags = AccessPublic | MethodSlot | MethodScriptable; | - |
300 | | - |
301 | | - |
302 | methods.insert(QMetaObject::normalizedSignature(prototype), mm); | - |
303 | }executed 990 times by 12 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
| 990 |
304 | }executed 152 times by 12 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
| 152 |
305 | | - |
306 | void QDBusMetaObjectGenerator::parseSignals() | - |
307 | { | - |
308 | QDBusIntrospection::Signals::ConstIterator signal_it = data->signals_.constBegin(); | - |
309 | QDBusIntrospection::Signals::ConstIterator signal_end = data->signals_.constEnd(); | - |
310 | for ( ; signal_it != signal_end; ++signal_it) {TRUE | evaluated 98 times by 12 testsEvaluated 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
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 98-152 |
311 | const QDBusIntrospection::Signal &s = *signal_it; | - |
312 | Method mm; | - |
313 | | - |
314 | mm.name = s.name.toLatin1(); | - |
315 | QByteArray prototype = mm.name; | - |
316 | prototype += '('; | - |
317 | | - |
318 | bool ok = true; | - |
319 | | - |
320 | | - |
321 | for (int i = 0; i < s.outputArgs.count(); ++i) {TRUE | evaluated 106 times by 11 testsEvaluated 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
| FALSE | evaluated 98 times by 12 testsEvaluated 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
|
| 98-106 |
322 | const QDBusIntrospection::Argument &arg = s.outputArgs.at(i); | - |
323 | | - |
324 | Type type = findType(arg.type.toLatin1(), s.annotations, "Out", i); | - |
325 | if (type.id == QVariant::Invalid) {TRUE | never evaluated | FALSE | evaluated 106 times by 11 testsEvaluated 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
|
| 0-106 |
326 | ok = false; | - |
327 | break; never executed: break; | 0 |
328 | } | - |
329 | | - |
330 | mm.inputTypes.append(type.id); | - |
331 | | - |
332 | mm.parameterNames.append(arg.name.toLatin1()); | - |
333 | | - |
334 | prototype.append(type.name); | - |
335 | prototype.append(','); | - |
336 | }executed 106 times by 11 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
| 106 |
337 | if (!ok) continue; never executed: continue; TRUE | never evaluated | FALSE | evaluated 98 times by 12 testsEvaluated 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
|
| 0-98 |
338 | | - |
339 | | - |
340 | if (!mm.parameterNames.isEmpty())TRUE | evaluated 71 times by 11 testsEvaluated 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
| FALSE | evaluated 27 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbusthreading - unknown status
|
| 27-71 |
341 | prototype[prototype.length() - 1] = ')';executed 71 times by 11 tests: prototype[prototype.length() - 1] = ')'; 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
| 71 |
342 | else | - |
343 | prototype.append(')');executed 27 times by 4 tests: prototype.append(')'); Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbusthreading - unknown status
| 27 |
344 | | - |
345 | | - |
346 | mm.flags = AccessPublic | MethodSignal | MethodScriptable; | - |
347 | | - |
348 | | - |
349 | signals_.insert(QMetaObject::normalizedSignature(prototype), mm); | - |
350 | }executed 98 times by 12 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
| 98 |
351 | }executed 152 times by 12 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
| 152 |
352 | | - |
353 | void QDBusMetaObjectGenerator::parseProperties() | - |
354 | { | - |
355 | QDBusIntrospection::Properties::ConstIterator prop_it = data->properties.constBegin(); | - |
356 | QDBusIntrospection::Properties::ConstIterator prop_end = data->properties.constEnd(); | - |
357 | for ( ; prop_it != prop_end; ++prop_it) {TRUE | evaluated 88 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 88-152 |
358 | const QDBusIntrospection::Property &p = *prop_it; | - |
359 | Property mp; | - |
360 | Type type = findType(p.type.toLatin1(), p.annotations); | - |
361 | if (type.id == QVariant::Invalid)TRUE | never evaluated | FALSE | evaluated 88 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
|
| 0-88 |
362 | continue; never executed: continue; | 0 |
363 | | - |
364 | QByteArray name = p.name.toLatin1(); | - |
365 | mp.signature = p.type.toLatin1(); | - |
366 | mp.type = type.id; | - |
367 | mp.typeName = type.name; | - |
368 | | - |
369 | | - |
370 | mp.flags = StdCppSet | Scriptable | Stored | Designable; | - |
371 | if (p.access != QDBusIntrospection::Property::Write)TRUE | evaluated 86 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qdbusmetaobject - unknown status
|
| 2-86 |
372 | mp.flags |= Readable;executed 86 times by 4 tests: mp.flags |= Readable; Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 86 |
373 | if (p.access != QDBusIntrospection::Property::Read)TRUE | evaluated 53 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 35 times by 2 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusmetaobject - unknown status
|
| 35-53 |
374 | mp.flags |= Writable;executed 53 times by 4 tests: mp.flags |= Writable; Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 53 |
375 | | - |
376 | | - |
377 | properties.insert(name, mp); | - |
378 | }executed 88 times by 4 tests: end of block Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 88 |
379 | }executed 152 times by 12 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
| 152 |
380 | | - |
381 | | - |
382 | | - |
383 | | - |
384 | int QDBusMetaObjectGenerator::aggregateParameterCount(const QMap<QByteArray, Method> &map) | - |
385 | { | - |
386 | int sum = 0; | - |
387 | QMap<QByteArray, Method>::const_iterator it; | - |
388 | for (it = map.constBegin(); it != map.constEnd(); ++it) {TRUE | evaluated 1088 times by 12 testsEvaluated 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
| FALSE | evaluated 304 times by 12 testsEvaluated 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
|
| 304-1088 |
389 | const Method &m = it.value(); | - |
390 | sum += m.inputTypes.size() + qMax(1, m.outputTypes.size()); | - |
391 | }executed 1088 times by 12 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
| 1088 |
392 | return sum;executed 304 times by 12 tests: return sum; 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
| 304 |
393 | } | - |
394 | | - |
395 | void QDBusMetaObjectGenerator::write(QDBusMetaObject *obj) | - |
396 | { | - |
397 | | - |
398 | | - |
399 | | - |
400 | QString className = interface; | - |
401 | className.replace(QLatin1Char('.'), QLatin1String("::")); | - |
402 | if (className.isEmpty())TRUE | never evaluated | FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 0-152 |
403 | className = QLatin1String("QDBusInterface"); never executed: className = QLatin1String("QDBusInterface"); | 0 |
404 | | - |
405 | QVarLengthArray<int> idata; | - |
406 | idata.resize(sizeof(QDBusMetaObjectPrivate) / sizeof(int)); | - |
407 | | - |
408 | int methodParametersDataSize = | - |
409 | ((aggregateParameterCount(signals_) | - |
410 | + aggregateParameterCount(methods)) * 2) | - |
411 | - signals_.count() | - |
412 | - methods.count(); | - |
413 | | - |
414 | QDBusMetaObjectPrivate *header = reinterpret_cast<QDBusMetaObjectPrivate *>(idata.data()); | - |
415 | Q_STATIC_ASSERT_X(QMetaObjectPrivate::OutputRevision == 7, "QtDBus meta-object generator should generate the same version as moc"); | - |
416 | header->revision = QMetaObjectPrivate::OutputRevision; | - |
417 | header->className = 0; | - |
418 | header->classInfoCount = 0; | - |
419 | header->classInfoData = 0; | - |
420 | header->methodCount = signals_.count() + methods.count(); | - |
421 | header->methodData = idata.size(); | - |
422 | header->propertyCount = properties.count(); | - |
423 | header->propertyData = header->methodData + header->methodCount * 5 + methodParametersDataSize; | - |
424 | header->enumeratorCount = 0; | - |
425 | header->enumeratorData = 0; | - |
426 | header->constructorCount = 0; | - |
427 | header->constructorData = 0; | - |
428 | header->flags = RequiresVariantMetaObject; | - |
429 | header->signalCount = signals_.count(); | - |
430 | | - |
431 | header->propertyDBusData = header->propertyData + header->propertyCount * 3; | - |
432 | header->methodDBusData = header->propertyDBusData + header->propertyCount * intsPerProperty; | - |
433 | | - |
434 | int data_size = idata.size() + | - |
435 | (header->methodCount * (5+intsPerMethod)) + methodParametersDataSize + | - |
436 | (header->propertyCount * (3+intsPerProperty)); | - |
437 | for (const Method &mm : qAsConst(signals_)) | - |
438 | data_size += 2 + mm.inputTypes.count() + mm.outputTypes.count();executed 98 times by 12 tests: data_size += 2 + mm.inputTypes.count() + mm.outputTypes.count(); 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
| 98 |
439 | for (const Method &mm : qAsConst(methods)) | - |
440 | data_size += 2 + mm.inputTypes.count() + mm.outputTypes.count();executed 990 times by 12 tests: data_size += 2 + mm.inputTypes.count() + mm.outputTypes.count(); 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
| 990 |
441 | idata.resize(data_size + 1); | - |
442 | | - |
443 | QMetaStringTable strings(className.toLatin1()); | - |
444 | | - |
445 | int offset = header->methodData; | - |
446 | int parametersOffset = offset + header->methodCount * 5; | - |
447 | int signatureOffset = header->methodDBusData; | - |
448 | int typeidOffset = header->methodDBusData + header->methodCount * intsPerMethod; | - |
449 | idata[typeidOffset++] = 0; | - |
450 | | - |
451 | | - |
452 | for (int x = 0; x < 2; ++x) {TRUE | evaluated 304 times by 12 testsEvaluated 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
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 152-304 |
453 | | - |
454 | QMap<QByteArray, Method> &map = (x == 0) ? signals_ : methods;TRUE | evaluated 152 times by 12 testsEvaluated 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
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 152 |
455 | for (QMap<QByteArray, Method>::ConstIterator it = map.constBegin(); | - |
456 | it != map.constEnd(); ++it) {TRUE | evaluated 1088 times by 12 testsEvaluated 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
| FALSE | evaluated 304 times by 12 testsEvaluated 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
|
| 304-1088 |
457 | const Method &mm = it.value(); | - |
458 | | - |
459 | int argc = mm.inputTypes.size() + qMax(0, mm.outputTypes.size() - 1); | - |
460 | | - |
461 | idata[offset++] = strings.enter(mm.name); | - |
462 | idata[offset++] = argc; | - |
463 | idata[offset++] = parametersOffset; | - |
464 | idata[offset++] = strings.enter(mm.tag); | - |
465 | idata[offset++] = mm.flags; | - |
466 | | - |
467 | | - |
468 | for (int i = -1; i < argc; ++i) {TRUE | evaluated 1756 times by 12 testsEvaluated 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
| FALSE | evaluated 1088 times by 12 testsEvaluated 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
|
| 1088-1756 |
469 | int type; | - |
470 | QByteArray typeName; | - |
471 | if (i < 0) { TRUE | evaluated 1088 times by 12 testsEvaluated 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
| FALSE | evaluated 668 times by 11 testsEvaluated 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
|
| 668-1088 |
472 | if (!mm.outputTypes.isEmpty()) {TRUE | evaluated 514 times by 11 testsEvaluated 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
| FALSE | evaluated 574 times by 12 testsEvaluated 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
|
| 514-574 |
473 | type = mm.outputTypes.first(); | - |
474 | if (type == -1) {TRUE | never evaluated | FALSE | evaluated 514 times by 11 testsEvaluated 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
|
| 0-514 |
475 | type = IsUnresolvedType | strings.enter(mm.rawReturnType); | - |
476 | } never executed: end of block | 0 |
477 | } else {executed 514 times by 11 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
| 514 |
478 | type = QMetaType::Void; | - |
479 | }executed 574 times by 12 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
| 574 |
480 | } else if (i < mm.inputTypes.size()) {TRUE | evaluated 649 times by 11 testsEvaluated 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
| FALSE | evaluated 19 times by 5 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
|
| 19-649 |
481 | type = mm.inputTypes.at(i); | - |
482 | } else {executed 649 times by 11 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
| 649 |
483 | Q_ASSERT(mm.outputTypes.size() > 1); | - |
484 | type = mm.outputTypes.at(i - mm.inputTypes.size() + 1); | - |
485 | | - |
486 | typeName = QMetaType::typeName(type); | - |
487 | typeName.append('&'); | - |
488 | }executed 19 times by 5 tests: end of block Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
| 19 |
489 | Q_ASSERT(type != QMetaType::UnknownType); | - |
490 | int typeInfo; | - |
491 | if (!typeName.isEmpty())TRUE | evaluated 19 times by 5 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
| FALSE | evaluated 1737 times by 12 testsEvaluated 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
|
| 19-1737 |
492 | typeInfo = IsUnresolvedType | strings.enter(typeName);executed 19 times by 5 tests: typeInfo = IsUnresolvedType | strings.enter(typeName); Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbuspendingreply - unknown status
| 19 |
493 | else | - |
494 | typeInfo = type;executed 1737 times by 12 tests: typeInfo = type; 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
| 1737 |
495 | idata[parametersOffset++] = typeInfo; | - |
496 | }executed 1756 times by 12 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
| 1756 |
497 | | - |
498 | for (int i = 0; i < argc; ++i)TRUE | evaluated 668 times by 11 testsEvaluated 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
| FALSE | evaluated 1088 times by 12 testsEvaluated 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
|
| 668-1088 |
499 | idata[parametersOffset++] = strings.enter(mm.parameterNames.at(i));executed 668 times by 11 tests: idata[parametersOffset++] = strings.enter(mm.parameterNames.at(i)); 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
| 668 |
500 | | - |
501 | idata[signatureOffset++] = typeidOffset; | - |
502 | idata[typeidOffset++] = mm.inputTypes.count(); | - |
503 | memcpy(idata.data() + typeidOffset, mm.inputTypes.data(), mm.inputTypes.count() * sizeof(int)); | - |
504 | typeidOffset += mm.inputTypes.count(); | - |
505 | | - |
506 | idata[signatureOffset++] = typeidOffset; | - |
507 | idata[typeidOffset++] = mm.outputTypes.count(); | - |
508 | memcpy(idata.data() + typeidOffset, mm.outputTypes.data(), mm.outputTypes.count() * sizeof(int)); | - |
509 | typeidOffset += mm.outputTypes.count(); | - |
510 | }executed 1088 times by 12 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
| 1088 |
511 | }executed 304 times by 12 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
| 304 |
512 | | - |
513 | Q_ASSERT(offset == header->methodData + header->methodCount * 5); | - |
514 | Q_ASSERT(parametersOffset == header->propertyData); | - |
515 | Q_ASSERT(signatureOffset == header->methodDBusData + header->methodCount * intsPerMethod); | - |
516 | Q_ASSERT(typeidOffset == idata.size()); | - |
517 | offset += methodParametersDataSize; | - |
518 | Q_ASSERT(offset == header->propertyData); | - |
519 | | - |
520 | | - |
521 | signatureOffset = header->propertyDBusData; | - |
522 | for (QMap<QByteArray, Property>::ConstIterator it = properties.constBegin(); | - |
523 | it != properties.constEnd(); ++it) {TRUE | evaluated 88 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| FALSE | evaluated 152 times by 12 testsEvaluated 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
|
| 88-152 |
524 | const Property &mp = it.value(); | - |
525 | | - |
526 | | - |
527 | idata[offset++] = strings.enter(it.key()); | - |
528 | Q_ASSERT(mp.type != QMetaType::UnknownType); | - |
529 | idata[offset++] = mp.type; | - |
530 | idata[offset++] = mp.flags; | - |
531 | | - |
532 | idata[signatureOffset++] = strings.enter(mp.signature); | - |
533 | idata[signatureOffset++] = mp.type; | - |
534 | }executed 88 times by 4 tests: end of block Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmetaobject - unknown status
| 88 |
535 | | - |
536 | Q_ASSERT(offset == header->propertyDBusData); | - |
537 | Q_ASSERT(signatureOffset == header->methodDBusData); | - |
538 | | - |
539 | char *string_data = new char[strings.blobSize()]; | - |
540 | strings.writeBlob(string_data); | - |
541 | | - |
542 | uint *uint_data = new uint[idata.size()]; | - |
543 | memcpy(uint_data, idata.data(), idata.size() * sizeof(int)); | - |
544 | | - |
545 | | - |
546 | obj->d.data = uint_data; | - |
547 | obj->d.relatedMetaObjects = 0; | - |
548 | obj->d.static_metacall = 0; | - |
549 | obj->d.extradata = 0; | - |
550 | obj->d.stringdata = reinterpret_cast<const QByteArrayData *>(string_data); | - |
551 | obj->d.superdata = &QDBusAbstractInterface::staticMetaObject; | - |
552 | }executed 152 times by 12 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
| 152 |
553 | | - |
554 | #if 0 | - |
555 | void QDBusMetaObjectGenerator::writeWithoutXml(const QString &interface) | - |
556 | { | - |
557 | | - |
558 | QString tmp(interface); | - |
559 | tmp.replace(QLatin1Char('.'), QLatin1String("::")); | - |
560 | QByteArray name(tmp.toLatin1()); | - |
561 | | - |
562 | QDBusMetaObjectPrivate *header = new QDBusMetaObjectPrivate; | - |
563 | memset(header, 0, sizeof *header); | - |
564 | header->revision = 1; | - |
565 | | - |
566 | | - |
567 | char *stringdata = new char[name.length() + 1]; | - |
568 | stringdata[name.length()] = '\0'; | - |
569 | | - |
570 | d.data = reinterpret_cast<uint*>(header); | - |
571 | d.relatedMetaObjects = 0; | - |
572 | d.static_metacall = 0; | - |
573 | d.extradata = 0; | - |
574 | d.stringdata = stringdata; | - |
575 | d.superdata = &QDBusAbstractInterface::staticMetaObject; | - |
576 | cached = false; | - |
577 | } | - |
578 | #endif | - |
579 | | - |
580 | | - |
581 | | - |
582 | | - |
583 | QDBusMetaObject *QDBusMetaObject::createMetaObject(const QString &interface, const QString &xml, | - |
584 | QHash<QString, QDBusMetaObject *> &cache, | - |
585 | QDBusError &error) | - |
586 | { | - |
587 | error = QDBusError(); | - |
588 | QDBusIntrospection::Interfaces parsed = QDBusIntrospection::parseInterfaces(xml); | - |
589 | | - |
590 | QDBusMetaObject *we = 0; | - |
591 | QDBusIntrospection::Interfaces::ConstIterator it = parsed.constBegin(); | - |
592 | QDBusIntrospection::Interfaces::ConstIterator end = parsed.constEnd(); | - |
593 | for ( ; it != end; ++it) {TRUE | evaluated 404 times by 12 testsEvaluated 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
| FALSE | evaluated 140 times by 12 testsEvaluated 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
|
| 140-404 |
594 | | - |
595 | bool us = it.key() == interface; | - |
596 | | - |
597 | QDBusMetaObject *obj = cache.value(it.key(), 0); | - |
598 | if ( !obj && ( us || !interface.startsWith( QLatin1String("local.") ) ) ) {TRUE | evaluated 341 times by 12 testsEvaluated 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
| FALSE | evaluated 63 times by 2 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusinterface - unknown status
|
TRUE | evaluated 102 times by 8 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - 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
| FALSE | evaluated 239 times by 11 testsEvaluated 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
|
TRUE | evaluated 45 times by 10 testsEvaluated 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
| FALSE | evaluated 194 times by 2 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusthreading - unknown status
|
| 45-341 |
599 | | - |
600 | obj = new QDBusMetaObject; | - |
601 | QDBusMetaObjectGenerator generator(it.key(), it.value().constData()); | - |
602 | generator.write(obj); | - |
603 | | - |
604 | if ( (obj->cached = !it.key().startsWith( QLatin1String("local.") )) )TRUE | evaluated 44 times by 10 testsEvaluated 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
| FALSE | evaluated 103 times by 6 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbusthreading - unknown status
|
| 44-103 |
605 | | - |
606 | cache.insert(it.key(), obj);executed 44 times by 10 tests: cache.insert(it.key(), obj); 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
| 44 |
607 | else if (!us)TRUE | evaluated 9 times by 4 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
| FALSE | evaluated 94 times by 3 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusmetaobject - unknown status
- tst_qdbusthreading - unknown status
|
| 9-94 |
608 | delete obj;executed 9 times by 4 tests: delete obj; Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
| 9 |
609 | | - |
610 | }executed 147 times by 12 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
| 147 |
611 | | - |
612 | if (us)TRUE | evaluated 102 times by 8 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - 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
| FALSE | evaluated 302 times by 11 testsEvaluated 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
|
| 102-302 |
613 | | - |
614 | we = obj;executed 102 times by 8 tests: we = obj; Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - 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
| 102 |
615 | }executed 404 times by 12 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
| 404 |
616 | | - |
617 | if (we)TRUE | evaluated 102 times by 8 testsEvaluated by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - 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
| FALSE | evaluated 38 times by 6 testsEvaluated by:- tst_qdbusabstractadaptor - 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
|
| 38-102 |
618 | return we;executed 102 times by 8 tests: return we; Executed by:- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - 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
| 102 |
619 | | - |
620 | | - |
621 | if (parsed.isEmpty()) {TRUE | never evaluated | FALSE | evaluated 38 times by 6 testsEvaluated by:- tst_qdbusabstractadaptor - 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
|
| 0-38 |
622 | | - |
623 | we = new QDBusMetaObject; | - |
624 | QDBusMetaObjectGenerator generator(interface, 0); | - |
625 | generator.write(we); | - |
626 | we->cached = false; | - |
627 | return we; never executed: return we; | 0 |
628 | } else if (interface.isEmpty()) {TRUE | evaluated 5 times by 5 testsEvaluated by:- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbuscontext - unknown status
- tst_qdbusinterface - unknown status
| FALSE | evaluated 33 times by 1 testEvaluated by:- tst_qdbusabstractadaptor - unknown status
|
| 5-33 |
629 | | - |
630 | it = parsed.constBegin(); | - |
631 | QDBusIntrospection::Interface merged = *it.value().constData(); | - |
632 | | - |
633 | for (++it; it != end; ++it) {TRUE | evaluated 15 times by 5 testsEvaluated by:- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbuscontext - unknown status
- tst_qdbusinterface - unknown status
| FALSE | evaluated 5 times by 5 testsEvaluated by:- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbuscontext - unknown status
- tst_qdbusinterface - unknown status
|
| 5-15 |
634 | merged.annotations.unite(it.value()->annotations); | - |
635 | merged.methods.unite(it.value()->methods); | - |
636 | merged.signals_.unite(it.value()->signals_); | - |
637 | merged.properties.unite(it.value()->properties); | - |
638 | }executed 15 times by 5 tests: end of block Executed by:- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbuscontext - unknown status
- tst_qdbusinterface - unknown status
| 15 |
639 | | - |
640 | merged.name = QLatin1String("local.Merged"); | - |
641 | merged.introspection.clear(); | - |
642 | | - |
643 | we = new QDBusMetaObject; | - |
644 | QDBusMetaObjectGenerator generator(merged.name, &merged); | - |
645 | generator.write(we); | - |
646 | we->cached = false; | - |
647 | return we;executed 5 times by 5 tests: return we; Executed by:- tst_qdbusconnection - unknown status
- tst_qdbusconnection_no_app - unknown status
- tst_qdbusconnection_spyhook - unknown status
- tst_qdbuscontext - unknown status
- tst_qdbusinterface - unknown status
| 5 |
648 | } | - |
649 | | - |
650 | | - |
651 | error = QDBusError(QDBusError::UnknownInterface, | - |
652 | QString::fromLatin1("Interface '%1' was not found") | - |
653 | .arg(interface)); | - |
654 | return 0;executed 33 times by 1 test: return 0; Executed by:- tst_qdbusabstractadaptor - unknown status
| 33 |
655 | } | - |
656 | | - |
657 | QDBusMetaObject::QDBusMetaObject() | - |
658 | { | - |
659 | } | - |
660 | | - |
661 | static inline const QDBusMetaObjectPrivate *priv(const uint* data) | - |
662 | { | - |
663 | return reinterpret_cast<const QDBusMetaObjectPrivate *>(data);executed 64 times by 1 test: return reinterpret_cast<const QDBusMetaObjectPrivate *>(data); Executed by:- tst_qdbusinterface - unknown status
| 64 |
664 | } | - |
665 | | - |
666 | const int *QDBusMetaObject::inputTypesForMethod(int id) const | - |
667 | { | - |
668 | | - |
669 | if (id >= 0 && id < priv(d.data)->methodCount) {TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
| FALSE | never evaluated |
TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
| FALSE | never evaluated |
| 0-16 |
670 | int handle = priv(d.data)->methodDBusData + id*intsPerMethod; | - |
671 | return reinterpret_cast<const int*>(d.data + d.data[handle]);executed 16 times by 1 test: return reinterpret_cast<const int*>(d.data + d.data[handle]); Executed by:- tst_qdbusinterface - unknown status
| 16 |
672 | } | - |
673 | return 0; never executed: return 0; | 0 |
674 | } | - |
675 | | - |
676 | const int *QDBusMetaObject::outputTypesForMethod(int id) const | - |
677 | { | - |
678 | | - |
679 | if (id >= 0 && id < priv(d.data)->methodCount) {TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
| FALSE | never evaluated |
TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qdbusinterface - unknown status
| FALSE | never evaluated |
| 0-16 |
680 | int handle = priv(d.data)->methodDBusData + id*intsPerMethod; | - |
681 | return reinterpret_cast<const int*>(d.data + d.data[handle + 1]);executed 16 times by 1 test: return reinterpret_cast<const int*>(d.data + d.data[handle + 1]); Executed by:- tst_qdbusinterface - unknown status
| 16 |
682 | } | - |
683 | return 0; never executed: return 0; | 0 |
684 | } | - |
685 | | - |
686 | int QDBusMetaObject::propertyMetaType(int id) const | - |
687 | { | - |
688 | | - |
689 | if (id >= 0 && id < priv(d.data)->propertyCount) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
690 | int handle = priv(d.data)->propertyDBusData + id*intsPerProperty; | - |
691 | return d.data[handle + 1]; never executed: return d.data[handle + 1]; | 0 |
692 | } | - |
693 | return 0; never executed: return 0; | 0 |
694 | } | - |
695 | | - |
696 | QT_END_NAMESPACE | - |
697 | | - |
698 | #endif // QT_NO_DBUS | - |
| | |