qdbusutil.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusutil.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10static inline bool isValidCharacterNoDash(QChar c)-
11{-
12 ushort u = c.unicode();-
13 return (u >= 'a' && u <= 'z')-
14 || (u >= 'A' && u <= 'Z')-
15 || (u >= '0' && u <= '9')-
16 || (u == '_');-
17}-
18-
19static inline bool isValidCharacter(QChar c)-
20{-
21 ushort u = c.unicode();-
22 return (u >= 'a' && u <= 'z')-
23 || (u >= 'A' && u <= 'Z')-
24 || (u >= '0' && u <= '9')-
25 || (u == '_') || (u == '-');-
26}-
27-
28static inline bool isValidNumber(QChar c)-
29{-
30 ushort u = c.unicode();-
31 return (u >= '0' && u <= '9');-
32}-
33-
34-
35static bool argToString(const QDBusArgument &arg, QString &out);-
36-
37static bool variantToString(const QVariant &arg, QString &out)-
38{-
39 int argType = arg.userType();-
40-
41 if (argType == QVariant::StringList
argType == QVa...nt::StringListDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 599 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
9-599
42 out += QLatin1Char('{');-
43 const QStringList list = arg.toStringList();-
44 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(list)>::type> _container_((list)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1)for (const QString &item = *_container_.i; _container_.control; _container_.control = 0: list)-
45 out += QLatin1Char('\"') + item + QLatin1String("\", ");
executed 14 times by 1 test: out += QLatin1Char('\"') + item + QLatin1String("\", ");
Executed by:
  • tst_qdbusmarshall - unknown status
14
46 if (!list.isEmpty()
!list.isEmpty()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
)
3-6
47 out.chop(2);
executed 6 times by 1 test: out.chop(2);
Executed by:
  • tst_qdbusmarshall - unknown status
6
48 out += QLatin1Char('}');-
49 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == QVariant::ByteArray
argType == QVariant::ByteArrayDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 582 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
9-582
50 out += QLatin1Char('{');-
51 QByteArray list = arg.toByteArray();-
52 for (int i = 0; i < list.count()
i < list.count()Description
TRUEevaluated 49 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
; ++i) {
17-49
53 out += QString::number(list.at(i));-
54 out += QLatin1String(", ");-
55 }
executed 49 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
49
56 if (!list.isEmpty()
!list.isEmpty()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
)
6-11
57 out.chop(2);
executed 11 times by 1 test: out.chop(2);
Executed by:
  • tst_qdbusmarshall - unknown status
11
58 out += QLatin1Char('}');-
59 }
executed 17 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == QVariant::List
argType == QVariant::ListDescription
TRUEnever evaluated
FALSEevaluated 582 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
0-582
60 out += QLatin1Char('{');-
61 const QList<QVariant> list = arg.toList();-
62 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(list)>::type> _container_((list)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1)for (const QVariant &item = *_container_.i; _container_.control; _container_.control = 0: list) {-
63 if (!variantToString(item, out)
!variantToString(item, out)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
64 return
never executed: return false;
false;
never executed: return false;
0
65 out += QLatin1String(", ");-
66 }
never executed: end of block
0
67 if (!list.isEmpty()
!list.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
68 out.chop(2);
never executed: out.chop(2);
0
69 out += QLatin1Char('}');-
70 }
never executed: end of block
else if (argType == QMetaType::Char
argType == QMetaType::CharDescription
TRUEnever evaluated
FALSEevaluated 582 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::Short
argType == QMetaType::ShortDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 562 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::Int
argType == QMetaType::IntDescription
TRUEevaluated 179 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 383 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
0-582
71 || argType == QMetaType::Long
argType == QMetaType::LongDescription
TRUEnever evaluated
FALSEevaluated 383 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::LongLong
argType == QMetaType::LongLongDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 366 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
0-383
72 out += QString::number(arg.toLongLong());-
73 }
executed 216 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == QMetaType::UChar
argType == QMetaType::UCharDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 365 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::UShort
argType == QMetaType::UShortDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 354 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::UInt
argType == QMetaType::UIntDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 338 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
1-365
74 || argType == QMetaType::ULong
argType == QMetaType::ULongDescription
TRUEnever evaluated
FALSEevaluated 338 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
|| argType == QMetaType::ULongLong
argType == QMe...ype::ULongLongDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 329 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
0-338
75 out += QString::number(arg.toULongLong());-
76 }
executed 37 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == QMetaType::Double
argType == QMetaType::DoubleDescription
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 300 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
29-300
77 out += QString::number(arg.toDouble());-
78 }
executed 29 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == QMetaType::Bool
argType == QMetaType::BoolDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 290 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
10-290
79 out += QLatin1String(arg.toBool() ? "true" : "false");-
80 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == qMetaTypeId<QDBusArgument>()
argType == qMe...BusArgument>()Description
TRUEevaluated 105 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 185 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
10-185
81 argToString(qvariant_cast<QDBusArgument>(arg), out);-
82 }
executed 105 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == qMetaTypeId<QDBusObjectPath>()
argType == qMe...sObjectPath>()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 175 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
10-175
83 const QString path = qvariant_cast<QDBusObjectPath>(arg).path();-
84 out += QLatin1String("[ObjectPath: ");-
85 out += path;-
86 out += QLatin1Char(']');-
87 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == qMetaTypeId<QDBusSignature>()
argType == qMe...usSignature>()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 164 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
10-164
88 out += QLatin1String("[Signature: ") + qvariant_cast<QDBusSignature>(arg).signature();-
89 out += QLatin1Char(']');-
90 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == qMetaTypeId<QDBusUnixFileDescriptor>()
argType == qMe...eDescriptor>()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
6-158
91 out += QLatin1String("[Unix FD: ");-
92 out += QLatin1String(qvariant_cast<QDBusUnixFileDescriptor>(arg).isValid() ? "valid" : "not valid");-
93 out += QLatin1Char(']');-
94 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (argType == qMetaTypeId<QDBusVariant>()
argType == qMe...DBusVariant>()Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 94 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
) {
6-94
95 const QVariant v = qvariant_cast<QDBusVariant>(arg).variant();-
96 out += QLatin1String("[Variant");-
97 int vUserType = v.userType();-
98 if (vUserType != qMetaTypeId<QDBusVariant>()
vUserType != q...DBusVariant>()Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
4-60
99 && vUserType != qMetaTypeId<QDBusSignature>()
vUserType != q...usSignature>()Description
TRUEevaluated 59 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
1-59
100 && vUserType != qMetaTypeId<QDBusObjectPath>()
vUserType != q...sObjectPath>()Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
1-58
101 && vUserType != qMetaTypeId<QDBusArgument>()
vUserType != q...BusArgument>()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
)
13-45
102 out += QLatin1Char('(') + QLatin1String(v.typeName()) + QLatin1Char(')');
executed 45 times by 1 test: out += QLatin1Char('(') + QLatin1String(v.typeName()) + QLatin1Char(')');
Executed by:
  • tst_qdbusmarshall - unknown status
45
103 out += QLatin1String(": ");-
104 if (!variantToString(v, out)
!variantToString(v, out)Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
)
0-64
105 return
never executed: return false;
false;
never executed: return false;
0
106 out += QLatin1Char(']');-
107 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else if (arg.canConvert(QVariant::String)
arg.canConvert...riant::String)Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
) {
0-94
108 out += QLatin1Char('\"') + arg.toString() + QLatin1Char('\"');-
109 }
executed 94 times by 1 test: end of block
Executed by:
  • tst_qdbusmarshall - unknown status
else {
94
110 out += QLatin1Char('[');-
111 out += QLatin1String(arg.typeName());-
112 out += QLatin1Char(']');-
113 }
never executed: end of block
0
114-
115 return
executed 608 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
true;
executed 608 times by 1 test: return true;
Executed by:
  • tst_qdbusmarshall - unknown status
608
116}-
117-
118bool argToString(const QDBusArgument &busArg, QString &out)-
119{-
120 QString busSig = busArg.currentSignature();-
121 bool doIterate = false;-
122 QDBusArgument::ElementType elementType = busArg.currentType();-
123-
124 if (elementType != QDBusArgument::BasicType && elementType != QDBusArgument::VariantType-
125 && elementType != QDBusArgument::MapEntryType)-
126 out += QLatin1String("[Argument: ") + busSig + QLatin1Char(' ');-
127-
128 switch (elementType) {-
129 case QDBusArgument::BasicType:-
130 case QDBusArgument::VariantType:-
131 if (!variantToString(busArg.asVariant(), out))-
132 return false;-
133 break;-
134 case QDBusArgument::StructureType:-
135 busArg.beginStructure();-
136 doIterate = true;-
137 break;-
138 case QDBusArgument::ArrayType:-
139 busArg.beginArray();-
140 out += QLatin1Char('{');-
141 doIterate = true;-
142 break;-
143 case QDBusArgument::MapType:-
144 busArg.beginMap();-
145 out += QLatin1Char('{');-
146 doIterate = true;-
147 break;-
148 case QDBusArgument::MapEntryType:-
149 busArg.beginMapEntry();-
150 if (!variantToString(busArg.asVariant(), out))-
151 return false;-
152 out += QLatin1String(" = ");-
153 if (!argToString(busArg, out))-
154 return false;-
155 busArg.endMapEntry();-
156 break;-
157 case QDBusArgument::UnknownType:-
158 default:-
159 out += QLatin1String("<ERROR - Unknown Type>");-
160 return false;-
161 }-
162 if (doIterate && !busArg.atEnd()) {-
163 while (!busArg.atEnd()) {-
164 if (!argToString(busArg, out))-
165 return false;-
166 out += QLatin1String(", ");-
167 }-
168 out.chop(2);-
169 }-
170 switch (elementType) {-
171 case QDBusArgument::BasicType:-
172 case QDBusArgument::VariantType:-
173 case QDBusArgument::UnknownType:-
174 case QDBusArgument::MapEntryType:-
175-
176 break;-
177 case QDBusArgument::StructureType:-
178 busArg.endStructure();-
179 break;-
180 case QDBusArgument::ArrayType:-
181 out += QLatin1Char('}');-
182 busArg.endArray();-
183 break;-
184 case QDBusArgument::MapType:-
185 out += QLatin1Char('}');-
186 busArg.endMap();-
187 break;-
188 }-
189-
190 if (elementType != QDBusArgument::BasicType && elementType != QDBusArgument::VariantType-
191 && elementType != QDBusArgument::MapEntryType)-
192 out += QLatin1Char(']');-
193-
194 return true;-
195}-
196-
197-
198-
199static const char oneLetterTypes[] = "vsogybnqiuxtdh";-
200static const char basicTypes[] = "sogybnqiuxtdh";-
201static const char fixedTypes[] = "ybnqiuxtdh";-
202-
203static bool isBasicType(int c)-
204{-
205 return c != ((int) '\0') && strchr(basicTypes, c) != __null;-
206}-
207-
208static bool isFixedType(int c)-
209{-
210 return c != ((int) '\0') && strchr(fixedTypes, c) != __null;-
211}-
212-
213-
214-
215static const char *validateSingleType(const char *signature)-
216{-
217 char c = *signature;-
218 if (c == ((int) '\0'))-
219 return 0;-
220-
221-
222 if (strchr(oneLetterTypes, c) != __null)-
223 return signature + 1;-
224-
225-
226 if (c == ((int) 'a')) {-
227-
228-
229 c = *++signature;-
230 if (c == ((int) '{')) {-
231-
232-
233-
234 c = *++signature;-
235 if (!isBasicType(c))-
236 return 0;-
237 signature = validateSingleType(signature + 1);-
238 return signature && *signature == ((int) '}') ? signature + 1 : 0;-
239 }-
240-
241 return validateSingleType(signature);-
242 }-
243-
244 if (c == ((int) '(')) {-
245-
246 ++signature;-
247 while (true) {-
248 signature = validateSingleType(signature);-
249 if (!signature)-
250 return 0;-
251 if (*signature == ((int) ')'))-
252 return signature + 1;-
253 }-
254 }-
255-
256-
257 return 0;-
258}-
259namespace QDBusUtil-
260{-
261-
262-
263-
264-
265-
266 QString argumentToString(const QVariant &arg)-
267 {-
268 QString out;-
269-
270-
271 variantToString(arg, out);-
272-
273-
274-
275-
276 return out;-
277 }-
278-
279-
280-
281-
282-
283-
284 bool isValidPartOfObjectPath(const QStringQStringRef &part)-
285 {-
286 if (part.isEmpty()
part.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 10229 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-10229
287 return
never executed: return false;
false;
never executed: return false;
0
288-
289 const QChar *c = part.unicode();-
290 for (int i = 0; i < part.length()
i < part.length()Description
TRUEevaluated 63128 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 10229 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
; ++i)
10229-63128
291 if (!isValidCharacterNoDash(c[i])
!isValidCharacterNoDash(c[i])Description
TRUEnever evaluated
FALSEevaluated 63128 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-63128
292 return
never executed: return false;
false;
never executed: return false;
0
293-
294 return
executed 10229 times by 161 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
true;
executed 10229 times by 161 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
10229
295 }-
296 bool isValidInterfaceName(const QString& ifaceName)-
297 {-
298 if (ifaceName.isEmpty()
ifaceName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 3572 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
|| ifaceName.length() > 255
ifaceName.length() > 255Description
TRUEnever evaluated
FALSEevaluated 3572 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-3572
299 return
never executed: return false;
false;
never executed: return false;
0
300-
301 QStringListconst auto parts = ifaceName.splitsplitRef(QLatin1Char('.'));-
302 if (parts.count() < 2
parts.count() < 2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3571 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
1-3571
303 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
1
304-
305 for (int i = 0; i <const QStringRef &part : parts.count(); ++i)-
306 if (!isValidMemberName(parts.at(i)))part)
!isValidMemberName(part)Description
TRUEnever evaluated
FALSEevaluated 13109 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-13109
307 return
never executed: return false;
false;
never executed: return false;
0
308-
309 return
executed 3571 times by 181 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
true;
executed 3571 times by 181 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
3571
310 }-
311 bool isValidUniqueConnectionName(const QStringQStringRef &connName)-
312 {-
313 if (connName.isEmpty()
connName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1148 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
|| connName.length() > 255
connName.length() > 255Description
TRUEnever evaluated
FALSEevaluated 1148 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
||
0-1148
314 !connName.startsWith(QLatin1Char(':'))
!connName.star...tin1Char(':'))Description
TRUEevaluated 799 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 349 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
349-799
315 return
executed 799 times by 158 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
false;
executed 799 times by 158 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
799
316-
317 QStringListconst auto parts = connName.mid(1).split(QLatin1Char('.'));-
318 if (parts.count() < 1
parts.count() < 1Description
TRUEnever evaluated
FALSEevaluated 349 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
0-349
319 return
never executed: return false;
false;
never executed: return false;
0
320-
321 for (int i = 0; i < parts.count(); ++i) {const QStringQStringRef &part =: parts.at(i);) {-
322 if (part.isEmpty()
part.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 698 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
0-698
323 return
never executed: return false;
false;
never executed: return false;
0
324-
325 const QChar* c = part.unicode();-
326 for (int j = 0; j < part.length()
j < part.length()Description
TRUEevaluated 1396 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 698 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
; ++j)
698-1396
327 if (!isValidCharacter(c[j])
!isValidCharacter(c[j])Description
TRUEnever evaluated
FALSEevaluated 1396 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
)
0-1396
328 return
never executed: return false;
false;
never executed: return false;
0
329 }
executed 698 times by 12 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
698
330-
331 return
executed 349 times by 12 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
true;
executed 349 times by 12 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
349
332 }-
333 bool isValidBusName(const QString &busName)-
334 {-
335 if (busName.isEmpty()
busName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2238 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
|| busName.length() > 255
busName.length() > 255Description
TRUEnever evaluated
FALSEevaluated 2238 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-2238
336 return
never executed: return false;
false;
never executed: return false;
0
337-
338 if (busName.startsWith(QLatin1Char(':'))
busName.starts...tin1Char(':'))Description
TRUEevaluated 234 times by 12 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 2004 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
234-2004
339 return
executed 234 times by 12 tests: return isValidUniqueConnectionName(busName);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
isValidUniqueConnectionName(busName);
executed 234 times by 12 tests: return isValidUniqueConnectionName(busName);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
234
340-
341 QStringListconst auto parts = busName.splitsplitRef(QLatin1Char('.'));-
342 if (parts.count() < 1
parts.count() < 1Description
TRUEnever evaluated
FALSEevaluated 2004 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-2004
343 return
never executed: return false;
false;
never executed: return false;
0
344-
345 for (int i = 0; i < parts.count(); ++i) {const QStringQStringRef &part =: parts.at(i);) {-
346 if (part.isEmpty()
part.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 6726 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-6726
347 return
never executed: return false;
false;
never executed: return false;
0
348-
349 const QChar *c = part.unicode();-
350 if (isValidNumber(c[0])
isValidNumber(c[0])Description
TRUEnever evaluated
FALSEevaluated 6726 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-6726
351 return
never executed: return false;
false;
never executed: return false;
0
352 for (int j = 0; j < part.length()
j < part.length()Description
TRUEevaluated 46499 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 6718 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
; ++j)
6718-46499
353 if (!isValidCharacter(c[j])
!isValidCharacter(c[j])Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 46491 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
8-46491
354 return
executed 8 times by 2 tests: return false;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
false;
executed 8 times by 2 tests: return false;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
8
355 }
executed 6718 times by 160 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
6718
356-
357 return
executed 1996 times by 160 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
true;
executed 1996 times by 160 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1996
358 }-
359-
360-
361-
362-
363-
364-
365-
366 bool isValidMemberName(const QStringQStringRef &memberName)-
367 {-
368 if (memberName.isEmpty()
memberName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 16225 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
|| memberName.length() > 255
memberName.length() > 255Description
TRUEnever evaluated
FALSEevaluated 16225 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-16225
369 return
never executed: return false;
false;
never executed: return false;
0
370-
371 const QChar* c = memberName.unicode();-
372 if (isValidNumber(c[0])
isValidNumber(c[0])Description
TRUEnever evaluated
FALSEevaluated 16225 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-16225
373 return
never executed: return false;
false;
never executed: return false;
0
374 for (int j = 0; j < memberName.length()
j < memberName.length()Description
TRUEevaluated 118633 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 16224 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
; ++j)
16224-118633
375 if (!isValidCharacterNoDash(c[j])
!isValidCharacterNoDash(c[j])Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 118632 times by 181 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
1-118632
376 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qdbusmarshall - unknown status
1
377 return
executed 16224 times by 181 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
true;
executed 16224 times by 181 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
16224
378 }-
379 bool isValidErrorName(const QString &errorName)-
380 {-
381 return isValidInterfaceName(errorName);-
382 }-
383 bool isValidObjectPath(const QString &path)-
384 {-
385 if (path == QLatin1String("/")
path == QLatin1String("/")Description
TRUEevaluated 1517 times by 32 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
FALSEevaluated 3312 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
1517-3312
386 return
executed 1517 times by 32 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
true;
executed 1517 times by 32 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
1517
387-
388 if (!path.startsWith(QLatin1Char('/'))
!path.startsWi...tin1Char('/'))Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3293 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
|| path.indexOf(QLatin1String("//")) != -1
path.indexOf(Q...g("//")) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 3292 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
||
1-3293
389 path.endsWith(QLatin1Char('/'))
path.endsWith(...tin1Char('/'))Description
TRUEnever evaluated
FALSEevaluated 3292 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-3292
390 return
executed 20 times by 2 tests: return false;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
false;
executed 20 times by 2 tests: return false;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
20
391-
392-
393 QStringListconst auto parts = path.midRef(1).split(QLatin1Char('/'));-
394 ((!(parts.count() >= 1)) ? qt_assert("parts.count() >= 1",__FILE__,499) : qt_noop());-
parts.removeFirst();for (int i = 0; i <const QStringRef &part : parts.count(); ++i)
395 if (!isValidPartOfObjectPath(parts.at(i)))part)
!isValidPartOfObjectPath(part)Description
TRUEnever evaluated
FALSEevaluated 10229 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
)
0-10229
396 return
never executed: return false;
false;
never executed: return false;
0
397-
398 return
executed 3292 times by 161 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
true;
executed 3292 times by 161 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
3292
399 }-
400-
401-
402-
403-
404-
405 bool isValidBasicType(int c)-
406 {-
407 return isBasicType(c);-
408 }-
409-
410-
411-
412-
413-
414 bool isValidFixedType(int c)-
415 {-
416 return isFixedType(c);-
417 }-
418 bool isValidSignature(const QString &signature)-
419 {-
420 QByteArray ba = signature.toLatin1();-
421 const char *data = ba.constData();-
422 while (true) {-
423 data = validateSingleType(data);-
424 if (!data)-
425 return false;-
426 if (*data == '\0')-
427 return true;-
428 }-
429 }-
430-
431-
432-
433-
434-
435-
436-
437 bool isValidSingleSignature(const QString &signature)-
438 {-
439 QByteArray ba = signature.toLatin1();-
440 const char *data = validateSingleType(ba.constData());-
441 return data && *data == '\0';-
442 }-
443-
444}-
445-
446-
Switch to Source codePreprocessed file

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