qdbusxmlgenerator.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusxmlgenerator.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8extern __attribute__((visibility("default"))) QString qDBusGenerateMetaObjectXml(QString interface, const QMetaObject *mo,-
9 const QMetaObject *base, int flags);-
10-
11static inline QString typeNameToXml(const char *typeName)-
12{-
13-
14-
15 QString plain = QLatin1String(typeName);-
16 QString rich;-
17 rich.reserve(int(plain.length() * 1.1));-
18 for (int i = 0; i < plain.length()
i < plain.length()Description
TRUEevaluated 20705 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 2591 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
; ++i) {
2591-20705
19 if (plain.at(i) == QLatin1Char('<')
plain.at(i) ==...atin1Char('<')Description
TRUEevaluated 720 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 19985 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
)
720-19985
20 rich += QLatin1String("&lt;");
executed 720 times by 1 test: rich += QLatin1String("&lt;");
Executed by:
  • tst_qdbuscpp2xml - unknown status
720
21 else if (plain.at(i) == QLatin1Char('>')
plain.at(i) ==...atin1Char('>')Description
TRUEevaluated 720 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 19265 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
)
720-19265
22 rich += QLatin1String("&gt;");
executed 720 times by 1 test: rich += QLatin1String("&gt;");
Executed by:
  • tst_qdbuscpp2xml - unknown status
720
23 else if (plain.at(i) == QLatin1Char('&')
plain.at(i) ==...atin1Char('&')Description
TRUEnever evaluated
FALSEevaluated 19265 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
)
0-19265
24 rich += QLatin1String("&amp;");
never executed: rich += QLatin1String("&amp;");
0
25 else-
26 rich += plain.at(i);
executed 19265 times by 9 tests: rich += plain.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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
19265
27 }-
28 return
executed 2591 times by 9 tests: return rich;
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
rich;
executed 2591 times by 9 tests: return rich;
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
2591
29}-
30-
31static inline QLatin1String accessAsString(bool read, bool write)-
32{-
33 if (read
readDescription
TRUEevaluated 175 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
)
0-175
34 return
executed 175 times by 3 tests: return write ? QLatin1String("readwrite") : QLatin1String("read") ;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
write ? QLatin1String("readwrite") : QLatin1String("read") ;
executed 175 times by 3 tests: return write ? QLatin1String("readwrite") : QLatin1String("read") ;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
175
35 else-
36 return
never executed: return write ? QLatin1String("write") : QLatin1String("") ;
write ? QLatin1String("write") : QLatin1String("") ;
never executed: return write ? QLatin1String("write") : QLatin1String("") ;
0
37}-
38-
39-
40-
41-
42static QString generateInterfaceXml(const QMetaObject *mo, int flags, int methodOffset, int propOffset)-
43{-
44 QString retval;-
45-
46-
47 if (flags & (QDBusConnection::ExportScriptableProperties |
flags & (QDBus...bleProperties)Description
TRUEevaluated 146 times by 10 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 30 times by 3 tests
Evaluated by:
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
30-146
48 QDBusConnection::ExportNonScriptableProperties)
flags & (QDBus...bleProperties)Description
TRUEevaluated 146 times by 10 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 30 times by 3 tests
Evaluated by:
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
) {
30-146
49 for (int i = propOffset; i < mo->propertyCount()
i < mo->propertyCount()Description
TRUEevaluated 187 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 146 times by 10 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
; ++i) {
146-187
50-
51 QMetaProperty mp = mo->property(i);-
52-
53 if (!((mp.isScriptable()
mp.isScriptable()Description
TRUEevaluated 187 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
&& (
(flags & QDBus...bleProperties)Description
TRUEevaluated 187 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
flags & QDBusConnection::ExportScriptableProperties)
(flags & QDBus...bleProperties)Description
TRUEevaluated 187 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
) ||
0-187
54 (!mp.isScriptable()
!mp.isScriptable()Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(flags & QDBus...bleProperties)Description
TRUEnever evaluated
FALSEnever evaluated
flags & QDBusConnection::ExportNonScriptableProperties)
(flags & QDBus...bleProperties)Description
TRUEnever evaluated
FALSEnever evaluated
)))
0
55 continue;
never executed: continue;
0
56-
57 int typeId = mp.userType();-
58 if (!typeId
!typeIdDescription
TRUEnever evaluated
FALSEevaluated 187 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
)
0-187
59 continue;
never executed: continue;
0
60 const char *signature = QDBusMetaType::typeToSignature(typeId);-
61 if (!signature
!signatureDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
FALSEevaluated 175 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
)
12-175
62 continue;
executed 12 times by 1 test: continue;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
12
63-
64 retval += QString::fromLatin1(" <property name=\"%1\" type=\"%2\" access=\"%3\"")-
65 .arg(QLatin1String(mp.name()),-
66 QLatin1String(signature),-
67 accessAsString(mp.isReadable(), mp.isWritable()));-
68-
69 if (QDBusMetaType::signatureToType(signature) == QVariant::Invalid
QDBusMetaType:...riant::InvalidDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 174 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
) {
1-174
70 const char *typeName = QMetaType::typeName(typeId);-
71 retval += QString::fromLatin1(">\n <annotation name=\"org.qtproject.QtDBus.QtTypeName\" value=\"%3\"/>\n </property>\n")-
72 .arg(typeNameToXml(typeName));-
73 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
else {
1
74 retval += QLatin1String("/>\n");-
75 }
executed 174 times by 3 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
174
76 }-
77 }
executed 146 times by 10 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
146
78-
79-
80 for (int i = methodOffset; i < mo->methodCount()
i < mo->methodCount()Description
TRUEevaluated 3923 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 176 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
; ++i) {
176-3923
81 QMetaMethod mm = mo->method(i);-
82-
83 bool isSignal;-
84 if (mm.methodType() == QMetaMethod::Signal
mm.methodType(...Method::SignalDescription
TRUEevaluated 1641 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 2282 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
1641-2282
85-
86 isSignal = true;
executed 1641 times by 4 tests: isSignal = true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
1641
87 else if (mm.access() == QMetaMethod::Public
mm.access() ==...Method::PublicDescription
TRUEevaluated 1334 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 948 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
&& (mm.methodType() == QMetaMethod::Slot
mm.methodType(...taMethod::SlotDescription
TRUEevaluated 1176 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
|| mm.methodType() == QMetaMethod::Method
mm.methodType(...Method::MethodDescription
TRUEevaluated 158 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
))
0-1334
88 isSignal = false;
executed 1334 times by 11 tests: isSignal = false;
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
1334
89 else-
90 continue;
executed 948 times by 1 test: continue;
Executed by:
  • tst_qdbuscpp2xml - unknown status
948
91-
92 if (isSignal
isSignalDescription
TRUEevaluated 1641 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1334 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
&& !(flags & (QDBusConnection::ExportScriptableSignals |
!(flags & (QDB...tableSignals))Description
TRUEevaluated 520 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 1121 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
520-1641
93 QDBusConnection::ExportNonScriptableSignals))
!(flags & (QDB...tableSignals))Description
TRUEevaluated 520 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 1121 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
)
520-1121
94 continue;
executed 520 times by 1 test: continue;
Executed by:
  • tst_qdbuscpp2xml - unknown status
520
95 if (!isSignal
!isSignalDescription
TRUEevaluated 1334 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1121 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
&& (!(flags & (QDBusConnection::ExportScriptableSlots | QDBusConnection::ExportNonScriptableSlots))
!(flags & (QDB...iptableSlots))Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 1286 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
&&
48-1334
96 !(flags & (QDBusConnection::ExportScriptableInvokables | QDBusConnection::ExportNonScriptableInvokables))
!(flags & (QDB...leInvokables))Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEnever evaluated
))
0-48
97 continue;
executed 48 times by 1 test: continue;
Executed by:
  • tst_qdbuscpp2xml - unknown status
48
98-
99-
100-
101 bool isScriptable = mm.attributes() & QMetaMethod::Scriptable;-
102 if (!isScriptable
!isScriptableDescription
TRUEevaluated 1573 times by 10 tests
Evaluated 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 834 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
&& !(flags & (isSignal ? QDBusConnection::ExportNonScriptableSignals : QDBusConnection::ExportNonScriptableInvokables | QDBusConnection::ExportNonScriptableSlots))
!(flags & (isS...iptableSlots))Description
TRUEevaluated 312 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 1261 times by 10 tests
Evaluated 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
312-1573
103 continue;
executed 312 times by 1 test: continue;
Executed by:
  • tst_qdbuscpp2xml - unknown status
312
104-
105 QString xml = QString::fromLatin1(" <%1 name=\"%2\">\n")-
106 .arg(isSignal ? QLatin1String("signal") : QLatin1String("method"))-
107 .arg(QString::fromLatin1(mm.name()));-
108-
109-
110 int typeId = mm.returnType();-
111 if (typeId != QMetaType::UnknownType
typeId != QMet...e::UnknownTypeDescription
TRUEevaluated 2091 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
&& typeId != QMetaType::Void
typeId != QMetaType::VoidDescription
TRUEevaluated 681 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 1410 times by 10 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
) {
4-2091
112 const char *typeName = QDBusMetaType::typeToSignature(typeId);-
113 if (typeName
typeNameDescription
TRUEevaluated 681 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEnever evaluated
) {
0-681
114 xml += QString::fromLatin1(" <arg type=\"%1\" direction=\"out\"/>\n")-
115 .arg(typeNameToXml(typeName));-
116-
117-
118 if (QDBusMetaType::signatureToType(typeName) == QVariant::Invalid
QDBusMetaType:...riant::InvalidDescription
TRUEevaluated 75 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 606 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
)
75-606
119 xml += QString::fromLatin1(" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"%1\"/>\n")
executed 75 times by 4 tests: xml += QString::fromLatin1(" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"%1\"/>\n") .arg(typeNameToXml(QMetaType::typeName(typeId)));
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
75
120 .arg(typeNameToXml(QMetaType::typeName(typeId)));
executed 75 times by 4 tests: xml += QString::fromLatin1(" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"%1\"/>\n") .arg(typeNameToXml(QMetaType::typeName(typeId)));
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
75
121 }
executed 681 times by 9 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
else {
681
122 QMessageLogger(__FILE__, 169, __PRETTY_FUNCTION__).warning() << "Unsupported return type" << typeId << QMetaType::typeName(typeId) << "in method" << mm.name();-
123 continue;
never executed: continue;
0
124 }-
125 }-
126 else if (typeId == QMetaType::UnknownType
typeId == QMet...e::UnknownTypeDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 1410 times by 10 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
) {
4-1410
127 QMessageLogger(__FILE__, 174, __PRETTY_FUNCTION__).warning() << "Invalid return type in method" << mm.name();-
128 continue;
executed 4 times by 2 tests: continue;
Executed by:
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
4
129 }-
130-
131 QList<QByteArray> names = mm.parameterNames();-
132 QVector<int> types;-
133 QString errorMsg;-
134 int inputCount = qDBusParametersForMethod(mm, types, errorMsg);-
135 if (inputCount == -1
inputCount == -1Description
TRUEnever evaluated
FALSEevaluated 2091 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
) {
0-2091
136 QMessageLogger(__FILE__, 183, __PRETTY_FUNCTION__).warning() << "Skipped method" << mm.name() << ":" << QString(errorMsg).toLocal8Bit().constData();-
137 continue;
never executed: continue;
0
138 }-
139 if (isSignal
isSignalDescription
TRUEevaluated 861 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1230 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
&& inputCount + 1 != types.count()
inputCount + 1... types.count()Description
TRUEnever evaluated
FALSEevaluated 861 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
)
0-1230
140 continue;
never executed: continue;
0
141 if (isSignal
isSignalDescription
TRUEevaluated 861 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1230 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
&& types.at(inputCount) == QDBusMetaTypeId::message()
types.at(input...eId::message()Description
TRUEnever evaluated
FALSEevaluated 861 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
)
0-1230
142 continue;
never executed: continue;
0
143 if (isSignal
isSignalDescription
TRUEevaluated 861 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1230 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
&& mm.attributes() & QMetaMethod::Cloned
mm.attributes(...Method::ClonedDescription
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 781 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
)
80-1230
144 continue;
executed 80 times by 1 test: continue;
Executed by:
  • tst_qdbuscpp2xml - unknown status
80
145-
146 int j;-
147 for (j = 1; j < types.count()
j < types.count()Description
TRUEevaluated 3487 times by 8 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 2011 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
; ++j) {
2011-3487
148-
149 if (types.at(j) == QDBusMetaTypeId::message()
types.at(j) ==...eId::message()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 3485 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingreply - unknown status
) {
2-3485
150 isScriptable = true;-
151 continue;
executed 2 times by 2 tests: continue;
Executed by:
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
2
152 }-
153-
154 QString name;-
155 if (!names.at(j - 1).isEmpty()
!names.at(j - 1).isEmpty()Description
TRUEevaluated 3426 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 59 times by 2 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
)
59-3426
156 name = QString::fromLatin1("name=\"%1\" ").arg(QLatin1String(names.at(j - 1)));
executed 3426 times by 7 tests: name = QString::fromLatin1("name=\"%1\" ").arg(QLatin1String(names.at(j - 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingreply - unknown status
3426
157-
158 bool isOutput = isSignal
isSignalDescription
TRUEevaluated 3070 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 415 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuspendingreply - unknown status
|| j > inputCount
j > inputCountDescription
TRUEevaluated 11 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 404 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
;
11-3070
159-
160 const char *signature = QDBusMetaType::typeToSignature(types.at(j));-
161 xml += QString::fromLatin1(" <arg %1type=\"%2\" direction=\"%3\"/>\n")-
162 .arg(name)-
163 .arg(QLatin1String(signature))-
164 .arg(isOutput ? QLatin1String("out") : QLatin1String("in"));-
165-
166-
167 if (QDBusMetaType::signatureToType(signature) == QVariant::Invalid
QDBusMetaType:...riant::InvalidDescription
TRUEevaluated 1834 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 1651 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingreply - unknown status
) {
1651-1834
168 const char *typeName = QMetaType::typeName(types.at(j));-
169 xml += QString::fromLatin1(" <annotation name=\"org.qtproject.QtDBus.QtTypeName.%1%2\" value=\"%3\"/>\n")-
170 .arg(isOutput ? QLatin1String("Out") : QLatin1String("In"))-
171 .arg(isOutput && !isSignal ? j - inputCount : j - 1)-
172 .arg(typeNameToXml(typeName));-
173 }
executed 1834 times by 3 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
1834
174 }
executed 3485 times by 7 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingreply - unknown status
3485
175-
176 int wantedMask;-
177 if (isScriptable
isScriptableDescription
TRUEevaluated 783 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 1228 times by 10 tests
Evaluated 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
783-1228
178 wantedMask = isSignal
isSignalDescription
TRUEevaluated 480 times by 2 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 303 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
? QDBusConnection::ExportScriptableSignals
executed 783 times by 5 tests: wantedMask = isSignal ? QDBusConnection::ExportScriptableSignals : QDBusConnection::ExportScriptableSlots;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
303-783
179 : QDBusConnection::ExportScriptableSlots;
executed 783 times by 5 tests: wantedMask = isSignal ? QDBusConnection::ExportScriptableSignals : QDBusConnection::ExportScriptableSlots;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
783
180 else-
181 wantedMask = isSignal
isSignalDescription
TRUEevaluated 301 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 927 times by 10 tests
Evaluated 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
? QDBusConnection::ExportNonScriptableSignals
executed 1228 times by 10 tests: wantedMask = isSignal ? QDBusConnection::ExportNonScriptableSignals : QDBusConnection::ExportNonScriptableSlots;
Executed 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
301-1228
182 : QDBusConnection::ExportNonScriptableSlots;
executed 1228 times by 10 tests: wantedMask = isSignal ? QDBusConnection::ExportNonScriptableSignals : QDBusConnection::ExportNonScriptableSlots;
Executed 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
1228
183 if ((
(flags & wante... != wantedMaskDescription
TRUEnever evaluated
FALSEevaluated 2011 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
flags & wantedMask) != wantedMask
(flags & wante... != wantedMaskDescription
TRUEnever evaluated
FALSEevaluated 2011 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
0-2011
184 continue;
never executed: continue;
0
185-
186 if (qDBusCheckAsyncTag(mm.tag())
qDBusCheckAsyncTag(mm.tag())Description
TRUEnever evaluated
FALSEevaluated 2011 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
0-2011
187-
188 xml += QLatin1String(" <annotation name=\"" "org.freedesktop.DBus.Method.NoReply" "\""
never executed: xml += QLatin1String(" <annotation name=\"" "org.freedesktop.DBus.Method.NoReply" "\"" " value=\"true\"/>\n");
0
189 " value=\"true\"/>\n");
never executed: xml += QLatin1String(" <annotation name=\"" "org.freedesktop.DBus.Method.NoReply" "\"" " value=\"true\"/>\n");
0
190-
191 retval += xml;-
192 retval += QString::fromLatin1(" </%1>\n")-
193 .arg(isSignal ? QLatin1String("signal") : QLatin1String("method"));-
194 }
executed 2011 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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
2011
195-
196 return
executed 176 times by 11 tests: return retval;
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
retval;
executed 176 times by 11 tests: return retval;
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
176
197}-
198-
199QString qDBusGenerateMetaObjectXml(QString interface, const QMetaObject *mo,-
200 const QMetaObject *base, int flags)-
201{-
202 if (interface.
interface.isEmpty()Description
TRUEevaluated 91 times by 8 tests
Evaluated by:
  • 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_qdbusthreading - unknown status
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
isEmpty()
interface.isEmpty()Description
TRUEevaluated 91 times by 8 tests
Evaluated by:
  • 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_qdbusthreading - unknown status
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
89-91
203-
204 interface
executed 91 times by 8 tests: interface = qDBusInterfaceFromMetaObject(mo);
Executed by:
  • 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_qdbusthreading - unknown status
= qDBusInterfaceFromMetaObject(mo);
executed 91 times by 8 tests: interface = qDBusInterfaceFromMetaObject(mo);
Executed by:
  • 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_qdbusthreading - unknown status
91
205-
206 QString xml;-
207 int idx = mo->indexOfClassInfo("D-Bus Introspection");-
208 if (idx >= mo->classInfoOffset()
idx >= mo->classInfoOffset()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qdbusinterface - unknown status
FALSEevaluated 176 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
4-176
209 return
executed 4 times by 1 test: return QString::fromUtf8(mo->classInfo(idx).value());
Executed by:
  • tst_qdbusinterface - unknown status
QString::fromUtf8(mo->classInfo(idx).value());
executed 4 times by 1 test: return QString::fromUtf8(mo->classInfo(idx).value());
Executed by:
  • tst_qdbusinterface - unknown status
4
210 else-
211 xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
executed 176 times by 11 tests: xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
176
212-
213 if (xml.isEmpty()
xml.isEmpty()Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
FALSEevaluated 135 times by 11 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
41-135
214 return
executed 41 times by 1 test: return QString();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
QString();
executed 41 times by 1 test: return QString();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
41
215 return
executed 135 times by 11 tests: return QString::fromLatin1(" <interface name=\"%1\">\n%2 </interface>\n") .arg(interface, xml);
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
QString::fromLatin1(" <interface name=\"%1\">\n%2 </interface>\n")
executed 135 times by 11 tests: return QString::fromLatin1(" <interface name=\"%1\">\n%2 </interface>\n") .arg(interface, xml);
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
135
216 .arg(interface, xml);
executed 135 times by 11 tests: return QString::fromLatin1(" <interface name=\"%1\">\n%2 </interface>\n") .arg(interface, xml);
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_qdbuscpp2xml - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
135
217}-
218-
Switch to Source codePreprocessed file

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