OpenCoverage

qxmlstream.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/xml/qxmlstream.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9enum { StreamEOF = ~0U };-
10QXmlStreamEntityResolver::~QXmlStreamEntityResolver()-
11{-
12}-
13-
14-
15-
16-
17-
18-
19QString QXmlStreamEntityResolver::resolveEntity(const QString& , const QString& )-
20{-
21 return
never executed: return QString();
QString();
never executed: return QString();
0
22}-
23QString QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString & )-
24{-
25 return
never executed: return QString();
QString();
never executed: return QString();
0
26}-
27-
28-
29-
30QString QXmlStreamReaderPrivate::resolveUndeclaredEntity(const QString &name)-
31{-
32 if (entityResolver
entityResolverDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-2
33 return
executed 2 times by 1 test: return entityResolver->resolveUndeclaredEntity(name);
Executed by:
  • tst_QXmlStream
entityResolver->resolveUndeclaredEntity(name);
executed 2 times by 1 test: return entityResolver->resolveUndeclaredEntity(name);
Executed by:
  • tst_QXmlStream
2
34 return
never executed: return QString();
QString();
never executed: return QString();
0
35}-
36void QXmlStreamReader::setEntityResolver(QXmlStreamEntityResolver *resolver)-
37{-
38 QXmlStreamReaderPrivate * const d = d_func();-
39 d->entityResolver = resolver;-
40}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QXmlStream
1
41QXmlStreamEntityResolver *QXmlStreamReader::entityResolver() const-
42{-
43 const QXmlStreamReaderPrivate * const d = d_func();-
44 return
never executed: return d->entityResolver;
d->entityResolver;
never executed: return d->entityResolver;
0
45}-
46QXmlStreamReader::QXmlStreamReader()-
47 : d_ptr(new QXmlStreamReaderPrivate(this))-
48{-
49}
executed 3174 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
3174
50-
51-
52-
53-
54-
55QXmlStreamReader::QXmlStreamReader(QIODevice *device)-
56 : d_ptr(new QXmlStreamReaderPrivate(this))-
57{-
58 setDevice(device);-
59}
executed 2948 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
2948
60-
61-
62-
63-
64-
65-
66QXmlStreamReader::QXmlStreamReader(const QByteArray &data)-
67 : d_ptr(new QXmlStreamReaderPrivate(this))-
68{-
69 QXmlStreamReaderPrivate * const d = d_func();-
70 d->dataBuffer = data;-
71}
executed 845 times by 2 tests: end of block
Executed by:
  • tst_QXmlStream
  • tst_Selftests
845
72-
73-
74-
75-
76-
77-
78QXmlStreamReader::QXmlStreamReader(const QString &data)-
79 : d_ptr(new QXmlStreamReaderPrivate(this))-
80{-
81 QXmlStreamReaderPrivate * const d = d_func();-
82-
83-
84-
85 d->dataBuffer = d->codec->fromUnicode(data);-
86 d->decoder = d->codec->makeDecoder();-
87-
88 d->lockEncoding = true;-
89-
90}
executed 378 times by 13 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
378
91-
92-
93-
94-
95-
96-
97QXmlStreamReader::QXmlStreamReader(const char *data)-
98 : d_ptr(new QXmlStreamReaderPrivate(this))-
99{-
100 QXmlStreamReaderPrivate * const d = d_func();-
101 d->dataBuffer = QByteArray(data);-
102}
executed 6 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
6
103-
104-
105-
106-
107QXmlStreamReader::~QXmlStreamReader()-
108{-
109 QXmlStreamReaderPrivate * const d = d_func();-
110 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEevaluated 7351 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
)
0-7351
111 delete d->device;
never executed: delete d->device;
0
112}
executed 7351 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
7351
113void QXmlStreamReader::setDevice(QIODevice *device)-
114{-
115 QXmlStreamReaderPrivate * const d = d_func();-
116 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEevaluated 4669 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
) {
0-4669
117 delete d->device;-
118 d->deleteDevice = false;-
119 }
never executed: end of block
0
120 d->device = device;-
121 d->init();-
122-
123}
executed 4669 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
4669
124-
125-
126-
127-
128-
129-
130-
131QIODevice *QXmlStreamReader::device() const-
132{-
133 const QXmlStreamReaderPrivate * const d = d_func();-
134 return
never executed: return d->device;
d->device;
never executed: return d->device;
0
135}-
136void QXmlStreamReader::addData(const QByteArray &data)-
137{-
138 QXmlStreamReaderPrivate * const d = d_func();-
139 if (d->device
d->deviceDescription
TRUEnever evaluated
FALSEevaluated 57484 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-57484
140 QMessageLogger(__FILE__, 497, __PRETTY_FUNCTION__).warning("QXmlStreamReader: addData() with device()");-
141 return;
never executed: return;
0
142 }-
143 d->dataBuffer += data;-
144}
executed 57484 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
57484
145-
146-
147-
148-
149-
150-
151-
152void QXmlStreamReader::addData(const QString &data)-
153{-
154 QXmlStreamReaderPrivate * const d = d_func();-
155 d->lockEncoding = true;-
156-
157-
158-
159 addData(d->codec->fromUnicode(data));-
160-
161}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
4
162-
163-
164-
165-
166-
167-
168-
169void QXmlStreamReader::addData(const char *data)-
170{-
171 addData(QByteArray(data));-
172}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
173-
174-
175-
176-
177-
178-
179-
180void QXmlStreamReader::clear()-
181{-
182 QXmlStreamReaderPrivate * const d = d_func();-
183 d->init();-
184 if (d->device
d->deviceDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-3
185 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
186 delete d->device;
never executed: delete d->device;
0
187 d->device = 0;-
188 }
never executed: end of block
0
189}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
3
190bool QXmlStreamReader::atEnd() const-
191{-
192 const QXmlStreamReaderPrivate * const d = d_func();-
193 if (d->atEnd
d->atEndDescription
TRUEevaluated 118570 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 691847 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
118570-691847
194 && ((d->type == QXmlStreamReader::Invalid
d->type == QXm...eader::InvalidDescription
TRUEevaluated 115547 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 3023 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
&& d->error == PrematureEndOfDocumentError
d->error == Pr...fDocumentErrorDescription
TRUEevaluated 115547 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEnever evaluated
)
0-115547
195 || (
(d->type == QX...::EndDocument)Description
TRUEevaluated 3023 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
d->type == QXmlStreamReader::EndDocument)
(d->type == QX...::EndDocument)Description
TRUEevaluated 3023 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
)) {
0-3023
196 if (d->device
d->deviceDescription
TRUEevaluated 551 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 118019 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
)
551-118019
197 return
executed 551 times by 2 tests: return d->device->atEnd();
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
d->device->atEnd();
executed 551 times by 2 tests: return d->device->atEnd();
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
551
198 else-
199 return
executed 118019 times by 14 tests: return !d->dataBuffer.size();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
!d->dataBuffer.size();
executed 118019 times by 14 tests: return !d->dataBuffer.size();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
118019
200 }-
201 return
executed 691847 times by 15 tests: return (d->atEnd || d->type == QXmlStreamReader::Invalid);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
(d->atEnd || d->type == QXmlStreamReader::Invalid);
executed 691847 times by 15 tests: return (d->atEnd || d->type == QXmlStreamReader::Invalid);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
691847
202}-
203QXmlStreamReader::TokenType QXmlStreamReader::readNext()-
204{-
205 QXmlStreamReaderPrivate * const d = d_func();-
206 if (d->type != Invalid
d->type != InvalidDescription
TRUEevaluated 1515198 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 57494 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QXmlStream
) {
57494-1515198
207 if (!d->hasCheckedStartDocument
!d->hasCheckedStartDocumentDescription
TRUEevaluated 8383 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 1506815 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
)
8383-1506815
208 if (!d->checkStartDocument()
!d->checkStartDocument()Description
TRUEevaluated 4669 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 3714 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
)
3714-4669
209 return
executed 4669 times by 13 tests: return d->type;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
d->type;
executed 4669 times by 13 tests: return d->type;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
4669
210 d->parse();-
211 if (d->atEnd
d->atEndDescription
TRUEevaluated 58409 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 1452120 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
&& d->type != EndDocument
d->type != EndDocumentDescription
TRUEevaluated 56038 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 2371 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
&& d->type != Invalid
d->type != InvalidDescription
TRUEevaluated 45171 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 10867 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
)
2371-1452120
212 d->raiseError(PrematureEndOfDocumentError);
executed 45171 times by 1 test: d->raiseError(PrematureEndOfDocumentError);
Executed by:
  • tst_QXmlStream
45171
213 else if (!d->atEnd
!d->atEndDescription
TRUEevaluated 1452120 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 13238 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
&& d->type == EndDocument
d->type == EndDocumentDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1452115 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
)
5-1452120
214 d->raiseWellFormedError(QXmlStream::tr("Extra content at end of document."));
executed 5 times by 1 test: d->raiseWellFormedError(QXmlStream::tr("Extra content at end of document."));
Executed by:
  • tst_QXmlStream
5
215 }
executed 1510529 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
else if (d->error == PrematureEndOfDocumentError
d->error == Pr...fDocumentErrorDescription
TRUEevaluated 57482 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDBusMetaObject
) {
12-1510529
216-
217 d->type = NoToken;-
218 d->atEnd = false;-
219 d->token = -1;-
220 return
executed 57482 times by 1 test: return readNext();
Executed by:
  • tst_QXmlStream
readNext();
executed 57482 times by 1 test: return readNext();
Executed by:
  • tst_QXmlStream
57482
221 }-
222 return
executed 1510541 times by 36 tests: return d->type;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
d->type;
executed 1510541 times by 36 tests: return d->type;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1510541
223}-
224QXmlStreamReader::TokenType QXmlStreamReader::tokenType() const-
225{-
226 const QXmlStreamReaderPrivate * const d = d_func();-
227 return
executed 1214190 times by 35 tests: return d->type;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
d->type;
executed 1214190 times by 35 tests: return d->type;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1214190
228}-
229bool QXmlStreamReader::readNextStartElement()-
230{-
231 while (readNext() != Invalid
readNext() != InvalidDescription
TRUEevaluated 263503 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDBusMetaObject
) {
12-263503
232 if (isEndElement()
isEndElement()Description
TRUEevaluated 5055 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 258448 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
)
5055-258448
233 return
executed 5055 times by 35 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
false;
executed 5055 times by 35 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
5055
234 else if (isStartElement()
isStartElement()Description
TRUEevaluated 124463 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 133985 times by 33 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
)
124463-133985
235 return
executed 124463 times by 35 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
true;
executed 124463 times by 35 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
124463
236 }
executed 133985 times by 33 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
133985
237 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDBusMetaObject
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDBusMetaObject
12
238}-
239void QXmlStreamReader::skipCurrentElement()-
240{-
241 int depth = 1;-
242 while (depth
depthDescription
TRUEevaluated 5120 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 5076 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
&& readNext() != Invalid
readNext() != InvalidDescription
TRUEevaluated 5113 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QXmlStream
) {
7-5120
243 if (isEndElement()
isEndElement()Description
TRUEevaluated 5089 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
)
24-5089
244 --
executed 5089 times by 35 tests: --depth;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
depth;
executed 5089 times by 35 tests: --depth;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
5089
245 else if (isStartElement()
isStartElement()Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
)
11-13
246 ++
executed 13 times by 2 tests: ++depth;
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
depth;
executed 13 times by 2 tests: ++depth;
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
13
247 }
executed 5113 times by 35 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
5113
248}
executed 5083 times by 35 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
5083
249static const char QXmlStreamReader_tokenTypeString_string[] =-
250 "NoToken\0"-
251 "Invalid\0"-
252 "StartDocument\0"-
253 "EndDocument\0"-
254 "StartElement\0"-
255 "EndElement\0"-
256 "Characters\0"-
257 "Comment\0"-
258 "DTD\0"-
259 "EntityReference\0"-
260 "ProcessingInstruction\0";-
261-
262static const short QXmlStreamReader_tokenTypeString_indices[] = {-
263 0, 8, 16, 30, 42, 55, 66, 77, 85, 89, 105, 0-
264};-
265void QXmlStreamReader::setNamespaceProcessing(bool enable)-
266{-
267 QXmlStreamReaderPrivate * const d = d_func();-
268 d->namespaceProcessing = enable;-
269}
never executed: end of block
0
270-
271bool QXmlStreamReader::namespaceProcessing() const-
272{-
273 const QXmlStreamReaderPrivate * const d = d_func();-
274 return
never executed: return d->namespaceProcessing;
d->namespaceProcessing;
never executed: return d->namespaceProcessing;
0
275}-
276-
277-
278-
279-
280-
281QString QXmlStreamReader::tokenString() const-
282{-
283 const QXmlStreamReaderPrivate * const d = d_func();-
284 return
executed 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]);
Executed by:
  • tst_QXmlStream
QLatin1String(QXmlStreamReader_tokenTypeString_string +
executed 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]);
Executed by:
  • tst_QXmlStream
1903
285 QXmlStreamReader_tokenTypeString_indices[d->type]);
executed 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]);
Executed by:
  • tst_QXmlStream
1903
286}-
287-
288-
289-
290QXmlStreamPrivateTagStack::QXmlStreamPrivateTagStack()-
291{-
292 tagStack.reserve(16);-
293 tagStackStringStorage.reserve(32);-
294 tagStackStringStorageSize = 0;-
295 NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push();-
296 namespaceDeclaration.prefix = addToStringStorage(QLatin1String("xml"));-
297 namespaceDeclaration.namespaceUri = addToStringStorage(QLatin1String("http://www.w3.org/XML/1998/namespace"));-
298 initialTagStackStringStorageSize = tagStackStringStorageSize;-
299}
executed 8186 times by 38 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
8186
300-
301-
302-
303QXmlStreamReaderPrivate::QXmlStreamReaderPrivate(QXmlStreamReader *q)-
304 :q_ptr(q)-
305{-
306 device = 0;-
307 deleteDevice = false;-
308-
309 decoder = 0;-
310-
311 stack_size = 64;-
312 sym_stack = 0;-
313 state_stack = 0;-
314 reallocateStack();-
315 entityResolver = 0;-
316 init();-
317 entityHash.insert(QLatin1String("lt"), Entity::createLiteral(QLatin1String("<")));-
318 entityHash.insert(QLatin1String("gt"), Entity::createLiteral(QLatin1String(">")));-
319 entityHash.insert(QLatin1String("amp"), Entity::createLiteral(QLatin1String("&")));-
320 entityHash.insert(QLatin1String("apos"), Entity::createLiteral(QLatin1String("'")));-
321 entityHash.insert(QLatin1String("quot"), Entity::createLiteral(QLatin1String("\"")));-
322}
executed 7442 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
7442
323-
324void QXmlStreamReaderPrivate::init()-
325{-
326 scanDtd = false;-
327 token = -1;-
328 token_char = 0;-
329 isEmptyElement = false;-
330 isWhitespace = true;-
331 isCDATA = false;-
332 standalone = false;-
333 tos = 0;-
334 resumeReduction = 0;-
335 state_stack[tos++] = 0;-
336 state_stack[tos] = 0;-
337 putStack.clear();-
338 putStack.reserve(32);-
339 textBuffer.clear();-
340 textBuffer.reserve(256);-
341 tagStack.clear();-
342 tagsDone = false;-
343 attributes.clear();-
344 attributes.reserve(16);-
345 lineNumber = lastLineStart = characterOffset = 0;-
346 readBufferPos = 0;-
347 nbytesread = 0;-
348-
349 codec = QTextCodec::codecForMib(106);-
350 delete decoder;-
351 decoder = 0;-
352-
353 attributeStack.clear();-
354 attributeStack.reserve(16);-
355 entityParser = 0;-
356 hasCheckedStartDocument = false;-
357 normalizeLiterals = false;-
358 hasSeenTag = false;-
359 atEnd = false;-
360 inParseEntity = false;-
361 referenceToUnparsedEntityDetected = false;-
362 referenceToParameterEntityDetected = false;-
363 hasExternalDtdSubset = false;-
364 lockEncoding = false;-
365 namespaceProcessing = true;-
366 rawReadBuffer.clear();-
367 dataBuffer.clear();-
368 readBuffer.clear();-
369 tagStackStringStorageSize = initialTagStackStringStorageSize;-
370-
371 type = QXmlStreamReader::NoToken;-
372 error = QXmlStreamReader::NoError;-
373}
executed 12147 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
12147
374-
375-
376-
377-
378-
379void QXmlStreamReaderPrivate::parseEntity(const QString &value)-
380{-
381 QXmlStreamReader * const q = q_func();-
382-
383 if (value.isEmpty()
value.isEmpty()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
14-124
384 return;
executed 14 times by 1 test: return;
Executed by:
  • tst_QXmlStream
14
385-
386-
387 if (!entityParser
!entityParserDescription
TRUEevaluated 91 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 33 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
33-91
388 entityParser = new QXmlStreamReaderPrivate(q);
executed 91 times by 1 test: entityParser = new QXmlStreamReaderPrivate(q);
Executed by:
  • tst_QXmlStream
91
389 else-
390 entityParser->init();
executed 33 times by 1 test: entityParser->init();
Executed by:
  • tst_QXmlStream
33
391 entityParser->inParseEntity = true;-
392 entityParser->readBuffer = value;-
393 entityParser->injectToken(PARSE_ENTITY);-
394 while (!entityParser->atEnd
!entityParser->atEndDescription
TRUEevaluated 215 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& entityParser->type != QXmlStreamReader::Invalid
entityParser->...eader::InvalidDescription
TRUEevaluated 209 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
6-215
395 entityParser->parse();
executed 209 times by 1 test: entityParser->parse();
Executed by:
  • tst_QXmlStream
209
396 if (entityParser->type == QXmlStreamReader::Invalid
entityParser->...eader::InvalidDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_QXmlStream
|| entityParser->tagStack.size()
entityParser->tagStack.size()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 106 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-108
397 raiseWellFormedError(QXmlStream::tr("Invalid entity value."));
executed 18 times by 1 test: raiseWellFormedError(QXmlStream::tr("Invalid entity value."));
Executed by:
  • tst_QXmlStream
18
398-
399}
executed 124 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
124
400-
401inline void QXmlStreamReaderPrivate::reallocateStack()-
402{-
403 stack_size <<= 1;-
404 sym_stack = reinterpret_cast<Value*> (realloc(sym_stack, stack_size * sizeof(Value)));-
405 do { if (!(sym_stack)
!(sym_stack)Description
TRUEnever evaluated
FALSEevaluated 7443 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-7443
406 state_stack = reinterpret_cast<int*> (realloc(state_stack, stack_size * sizeof(int)));-
407 do { if (!(state_stack)
!(state_stack)Description
TRUEnever evaluated
FALSEevaluated 7443 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-7443
408}
executed 7443 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
7443
409-
410-
411QXmlStreamReaderPrivate::~QXmlStreamReaderPrivate()-
412{-
413-
414 delete decoder;-
415-
416 free(sym_stack);-
417 free(state_stack);-
418 delete entityParser;-
419}
executed 7442 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
7442
420-
421-
422inline uint QXmlStreamReaderPrivate::filterCarriageReturn()-
423{-
424 uint peekc = peekChar();-
425 if (peekc == '\n'
peekc == '\n'Description
TRUEevaluated 8307 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 2158 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2158-8307
426 if (putStack.size()
putStack.size()Description
TRUEnever evaluated
FALSEevaluated 8307 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-8307
427 putStack.pop();
never executed: putStack.pop();
0
428 else-
429 ++
executed 8307 times by 1 test: ++readBufferPos;
Executed by:
  • tst_QXmlStream
readBufferPos;
executed 8307 times by 1 test: ++readBufferPos;
Executed by:
  • tst_QXmlStream
8307
430 return
executed 8307 times by 1 test: return peekc;
Executed by:
  • tst_QXmlStream
peekc;
executed 8307 times by 1 test: return peekc;
Executed by:
  • tst_QXmlStream
8307
431 }-
432 if (peekc == StreamEOF
peekc == StreamEOFDescription
TRUEevaluated 2146 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
12-2146
433 putChar('\r');-
434 return
executed 2146 times by 1 test: return 0;
Executed by:
  • tst_QXmlStream
0;
executed 2146 times by 1 test: return 0;
Executed by:
  • tst_QXmlStream
2146
435 }-
436 return
executed 12 times by 1 test: return '\n';
Executed by:
  • tst_QXmlStream
'\n';
executed 12 times by 1 test: return '\n';
Executed by:
  • tst_QXmlStream
12
437}-
438-
439-
440-
441-
442-
443inline uint QXmlStreamReaderPrivate::getChar()-
444{-
445 uint c;-
446 if (putStack.size()
putStack.size()Description
TRUEevaluated 2882731 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 19625700 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
2882731-19625700
447 c = atEnd
atEndDescription
TRUEevaluated 4859 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 2877872 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
? StreamEOF : putStack.pop();
4859-2877872
448 }
executed 2882731 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
else {
2882731
449 if (readBufferPos < readBuffer.size()
readBufferPos ...dBuffer.size()Description
TRUEevaluated 19508616 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 117084 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
)
117084-19508616
450 c = readBuffer.at(readBufferPos++).unicode();
executed 19508616 times by 36 tests: c = readBuffer.at(readBufferPos++).unicode();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
19508616
451 else-
452 c = getChar_helper();
executed 117084 times by 36 tests: c = getChar_helper();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
117084
453 }-
454-
455 return
executed 22508431 times by 36 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
c;
executed 22508431 times by 36 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
22508431
456}-
457-
458inline uint QXmlStreamReaderPrivate::peekChar()-
459{-
460 uint c;-
461 if (putStack.size()
putStack.size()Description
TRUEevaluated 14016 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 83809 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
) {
14016-83809
462 c = putStack.top();-
463 }
executed 14016 times by 13 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
else if (readBufferPos < readBuffer.size()
readBufferPos ...dBuffer.size()Description
TRUEevaluated 77127 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
FALSEevaluated 6682 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
6682-77127
464 c = readBuffer.at(readBufferPos).unicode();-
465 }
executed 77127 times by 35 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
else {
77127
466 if ((
(c = getChar_h...) != StreamEOFDescription
TRUEevaluated 3331 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3351 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar_helper()) != StreamEOF
(c = getChar_h...) != StreamEOFDescription
TRUEevaluated 3331 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3351 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
3331-3351
467 --
executed 3331 times by 1 test: --readBufferPos;
Executed by:
  • tst_QXmlStream
readBufferPos;
executed 3331 times by 1 test: --readBufferPos;
Executed by:
  • tst_QXmlStream
3331
468 }
executed 6682 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
6682
469-
470 return
executed 97825 times by 35 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
c;
executed 97825 times by 35 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
97825
471}-
472bool QXmlStreamReaderPrivate::scanUntil(const char *str, short tokenToInject)-
473{-
474 int pos = textBuffer.size();-
475 int oldLineNumber = lineNumber;-
476-
477 uint c;-
478 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 1254415 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 5870 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 1254415 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 5870 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
5870-1254415
479-
480 switch (c) {-
481 case
executed 407 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 407 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
407
482 if ((
(c = filterCar...Return()) == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 404 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = filterCarriageReturn()) == 0
(c = filterCar...Return()) == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 404 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
3-404
483 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QXmlStream
3
484-
485 case
executed 1800 times by 3 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
'\n':
executed 1800 times by 3 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
code before this statement executed 404 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
404-1800
486 ++lineNumber;-
487 lastLineStart = characterOffset + readBufferPos;-
488-
489 case
executed 723 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
'\t':
executed 723 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
code before this statement executed 2204 times by 3 tests: case '\t':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
723-2204
490 textBuffer += QChar(c);-
491 continue;
executed 2927 times by 3 tests: continue;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
2927
492 default
executed 1251485 times by 25 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
:
executed 1251485 times by 25 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
1251485
493 if (c < 0x20
c < 0x20Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1251449 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
|| (c > 0xFFFD
c > 0xFFFDDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1251444 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
&& c < 0x10000
c < 0x10000Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) || c > QChar::LastValidCodePoint
c > QChar::LastValidCodePointDescription
TRUEnever evaluated
FALSEevaluated 1251444 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
) {
0-1251449
494 raiseWellFormedError(QXmlStream::tr("Invalid XML character."));-
495 lineNumber = oldLineNumber;-
496 return
executed 41 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
false;
executed 41 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
41
497 }-
498 textBuffer += QChar(c);-
499 }
executed 1251444 times by 25 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
1251444
500-
501-
502-
503 if (c == uint(*str)
c == uint(*str)Description
TRUEevaluated 71833 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 1179614 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
) {
71833-1179614
504 if (!*(str + 1)
!*(str + 1)Description
TRUEnever evaluated
FALSEevaluated 71833 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
) {
0-71833
505 if (tokenToInject >= 0
tokenToInject >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
506 injectToken(tokenToInject);
never executed: injectToken(tokenToInject);
0
507 return
never executed: return true;
true;
never executed: return true;
0
508 } else {-
509 if (scanString(str + 1, tokenToInject, false)
scanString(str...Inject, false)Description
TRUEevaluated 66081 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 5752 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
)
5752-66081
510 return
executed 66081 times by 25 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
true;
executed 66081 times by 25 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
66081
511 }
executed 5752 times by 24 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
5752
512 }-
513 }
executed 1185366 times by 25 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
1185366
514 putString(textBuffer, pos);-
515 textBuffer.resize(pos);-
516 lineNumber = oldLineNumber;-
517 return
executed 5870 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
false;
executed 5870 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
5870
518}-
519-
520bool QXmlStreamReaderPrivate::scanString(const char *str, short tokenToInject, bool requireSpace)-
521{-
522 int n = 0;-
523 while (str[n]
str[n]Description
TRUEevaluated 635395 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 133216 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
) {
133216-635395
524 uint c = getChar();-
525 if (c != ushort(str[n])
c != ushort(str[n])Description
TRUEevaluated 29730 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 605665 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
29730-605665
526 if (c != StreamEOF
c != StreamEOFDescription
TRUEevaluated 11559 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 18171 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
)
11559-18171
527 putChar(c);
executed 11559 times by 35 tests: putChar(c);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
11559
528 while (n--
n--Description
TRUEevaluated 39487 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 29730 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
29730-39487
529 putChar(ushort(str[n]));-
530 }
executed 39487 times by 13 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
39487
531 return
executed 29730 times by 35 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
false;
executed 29730 times by 35 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
29730
532 }-
533 ++n;-
534 }
executed 605665 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
605665
535 for (int i = 0; i < n
i < nDescription
TRUEevaluated 566178 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
FALSEevaluated 133216 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
; ++i)
133216-566178
536 textBuffer += QChar(ushort(str[i]));
executed 566178 times by 35 tests: textBuffer += QChar(ushort(str[i]));
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
566178
537 if (requireSpace
requireSpaceDescription
TRUEevaluated 13715 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
FALSEevaluated 119501 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
) {
13715-119501
538 int s = fastScanSpace();-
539 if (!s
!sDescription
TRUEevaluated 1609 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 12106 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
|| atEnd
atEndDescription
TRUEevaluated 1435 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 10671 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
) {
1435-12106
540 int pos = textBuffer.size() - n - s;-
541 putString(textBuffer, pos);-
542 textBuffer.resize(pos);-
543 return
executed 3044 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
false;
executed 3044 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
3044
544 }-
545 }
executed 10671 times by 35 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
10671
546 if (tokenToInject >= 0
tokenToInject >= 0Description
TRUEevaluated 64091 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
FALSEevaluated 66081 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
)
64091-66081
547 injectToken(tokenToInject);
executed 64091 times by 35 tests: injectToken(tokenToInject);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
64091
548 return
executed 130172 times by 35 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
true;
executed 130172 times by 35 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
130172
549}-
550-
551bool QXmlStreamReaderPrivate::scanAfterLangleBang()-
552{-
553 switch (peekChar()) {-
554 case
executed 46996 times by 2 tests: case '[':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
'[':
executed 46996 times by 2 tests: case '[':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
46996
555 return
executed 46996 times by 2 tests: return scanString(spell[CDATA_START], CDATA_START, false);
Executed by:
  • tst_QXmlStream
  • tst_Selftests
scanString(spell[CDATA_START], CDATA_START, false);
executed 46996 times by 2 tests: return scanString(spell[CDATA_START], CDATA_START, false);
Executed by:
  • tst_QXmlStream
  • tst_Selftests
46996
556 case
executed 3815 times by 13 tests: case 'D':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'D':
executed 3815 times by 13 tests: case 'D':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
3815
557 return
executed 3815 times by 13 tests: return scanString(spell[DOCTYPE], DOCTYPE);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
scanString(spell[DOCTYPE], DOCTYPE);
executed 3815 times by 13 tests: return scanString(spell[DOCTYPE], DOCTYPE);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
3815
558 case
executed 2355 times by 2 tests: case 'A':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'A':
executed 2355 times by 2 tests: case 'A':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
2355
559 return
executed 2355 times by 2 tests: return scanString(spell[ATTLIST], ATTLIST);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
scanString(spell[ATTLIST], ATTLIST);
executed 2355 times by 2 tests: return scanString(spell[ATTLIST], ATTLIST);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
2355
560 case
executed 382 times by 1 test: case 'N':
Executed by:
  • tst_QXmlStream
'N':
executed 382 times by 1 test: case 'N':
Executed by:
  • tst_QXmlStream
382
561 return
executed 382 times by 1 test: return scanString(spell[NOTATION], NOTATION);
Executed by:
  • tst_QXmlStream
scanString(spell[NOTATION], NOTATION);
executed 382 times by 1 test: return scanString(spell[NOTATION], NOTATION);
Executed by:
  • tst_QXmlStream
382
562 case
executed 6772 times by 2 tests: case 'E':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'E':
executed 6772 times by 2 tests: case 'E':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
6772
563 if (scanString(spell[ELEMENT], ELEMENT)
scanString(spe...ENT], ELEMENT)Description
TRUEevaluated 2196 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 4576 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2196-4576
564 return
executed 2196 times by 2 tests: return true;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
true;
executed 2196 times by 2 tests: return true;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
2196
565 return
executed 4576 times by 1 test: return scanString(spell[ENTITY], ENTITY);
Executed by:
  • tst_QXmlStream
scanString(spell[ENTITY], ENTITY);
executed 4576 times by 1 test: return scanString(spell[ENTITY], ENTITY);
Executed by:
  • tst_QXmlStream
4576
566-
567 default
executed 19837 times by 25 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
:
executed 19837 times by 25 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
19837
568 ;-
569 }
executed 19837 times by 25 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
;
19837
570 return
executed 19837 times by 25 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
false;
executed 19837 times by 25 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
19837
571}-
572-
573bool QXmlStreamReaderPrivate::scanPublicOrSystem()-
574{-
575 switch (peekChar()) {-
576 case
executed 440 times by 1 test: case 'S':
Executed by:
  • tst_QXmlStream
'S':
executed 440 times by 1 test: case 'S':
Executed by:
  • tst_QXmlStream
440
577 return
executed 440 times by 1 test: return scanString(spell[SYSTEM], SYSTEM);
Executed by:
  • tst_QXmlStream
scanString(spell[SYSTEM], SYSTEM);
executed 440 times by 1 test: return scanString(spell[SYSTEM], SYSTEM);
Executed by:
  • tst_QXmlStream
440
578 case
executed 386 times by 12 tests: case 'P':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'P':
executed 386 times by 12 tests: case 'P':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
386
579 return
executed 386 times by 12 tests: return scanString(spell[PUBLIC], PUBLIC);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
scanString(spell[PUBLIC], PUBLIC);
executed 386 times by 12 tests: return scanString(spell[PUBLIC], PUBLIC);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
386
580 default
executed 1864 times by 2 tests: default:
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
:
executed 1864 times by 2 tests: default:
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1864
581 ;-
582 }
executed 1864 times by 2 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1864
583 return
executed 1864 times by 2 tests: return false;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
false;
executed 1864 times by 2 tests: return false;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1864
584}-
585-
586bool QXmlStreamReaderPrivate::scanNData()-
587{-
588 if (fastScanSpace()
fastScanSpace()Description
TRUEevaluated 150 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
48-150
589 if (scanString(spell[NDATA], NDATA)
scanString(spe...NDATA], NDATA)Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 103 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
47-103
590 return
executed 47 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 47 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
47
591 putChar(' ');-
592 }
executed 103 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
103
593 return
executed 151 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
false;
executed 151 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
151
594}-
595-
596bool QXmlStreamReaderPrivate::scanAfterDefaultDecl()-
597{-
598 switch (peekChar()) {-
599 case
executed 615 times by 2 tests: case 'R':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'R':
executed 615 times by 2 tests: case 'R':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
615
600 return
executed 615 times by 2 tests: return scanString(spell[REQUIRED], REQUIRED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
scanString(spell[REQUIRED], REQUIRED, false);
executed 615 times by 2 tests: return scanString(spell[REQUIRED], REQUIRED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
615
601 case
executed 1387 times by 2 tests: case 'I':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'I':
executed 1387 times by 2 tests: case 'I':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1387
602 return
executed 1387 times by 2 tests: return scanString(spell[IMPLIED], IMPLIED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
scanString(spell[IMPLIED], IMPLIED, false);
executed 1387 times by 2 tests: return scanString(spell[IMPLIED], IMPLIED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1387
603 case
executed 77 times by 2 tests: case 'F':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'F':
executed 77 times by 2 tests: case 'F':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
77
604 return
executed 77 times by 2 tests: return scanString(spell[FIXED], FIXED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
scanString(spell[FIXED], FIXED, false);
executed 77 times by 2 tests: return scanString(spell[FIXED], FIXED, false);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
77
605 default
executed 200 times by 1 test: default:
Executed by:
  • tst_QXmlStream
:
executed 200 times by 1 test: default:
Executed by:
  • tst_QXmlStream
200
606 ;-
607 }
executed 200 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
200
608 return
executed 200 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
false;
executed 200 times by 1 test: return false;
Executed by:
  • tst_QXmlStream
200
609}-
610-
611bool QXmlStreamReaderPrivate::scanAttType()-
612{-
613 switch (peekChar()) {-
614 case
executed 1351 times by 2 tests: case 'C':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'C':
executed 1351 times by 2 tests: case 'C':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1351
615 return
executed 1351 times by 2 tests: return scanString(spell[CDATA], CDATA);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
scanString(spell[CDATA], CDATA);
executed 1351 times by 2 tests: return scanString(spell[CDATA], CDATA);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
1351
616 case
executed 272 times by 1 test: case 'I':
Executed by:
  • tst_QXmlStream
'I':
executed 272 times by 1 test: case 'I':
Executed by:
  • tst_QXmlStream
272
617 if (scanString(spell[ID], ID)
scanString(spell[ID], ID)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 202 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
70-202
618 return
executed 70 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 70 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
70
619 if (scanString(spell[IDREF], IDREF)
scanString(spe...IDREF], IDREF)Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 179 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
23-179
620 return
executed 23 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 23 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
23
621 return
executed 179 times by 1 test: return scanString(spell[IDREFS], IDREFS);
Executed by:
  • tst_QXmlStream
scanString(spell[IDREFS], IDREFS);
executed 179 times by 1 test: return scanString(spell[IDREFS], IDREFS);
Executed by:
  • tst_QXmlStream
179
622 case
executed 163 times by 1 test: case 'E':
Executed by:
  • tst_QXmlStream
'E':
executed 163 times by 1 test: case 'E':
Executed by:
  • tst_QXmlStream
163
623 if (scanString(spell[ENTITY], ENTITY)
scanString(spe...TITY], ENTITY)Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 137 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
26-137
624 return
executed 26 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 26 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
26
625 return
executed 137 times by 1 test: return scanString(spell[ENTITIES], ENTITIES);
Executed by:
  • tst_QXmlStream
scanString(spell[ENTITIES], ENTITIES);
executed 137 times by 1 test: return scanString(spell[ENTITIES], ENTITIES);
Executed by:
  • tst_QXmlStream
137
626 case
executed 334 times by 1 test: case 'N':
Executed by:
  • tst_QXmlStream
'N':
executed 334 times by 1 test: case 'N':
Executed by:
  • tst_QXmlStream
334
627 if (scanString(spell[NOTATION], NOTATION)
scanString(spe...ON], NOTATION)Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 292 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
42-292
628 return
executed 42 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 42 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
42
629 if (scanString(spell[NMTOKEN], NMTOKEN)
scanString(spe...KEN], NMTOKEN)Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 268 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
24-268
630 return
executed 24 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
true;
executed 24 times by 1 test: return true;
Executed by:
  • tst_QXmlStream
24
631 return
executed 268 times by 1 test: return scanString(spell[NMTOKENS], NMTOKENS);
Executed by:
  • tst_QXmlStream
scanString(spell[NMTOKENS], NMTOKENS);
executed 268 times by 1 test: return scanString(spell[NMTOKENS], NMTOKENS);
Executed by:
  • tst_QXmlStream
268
632 default
executed 114 times by 2 tests: default:
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
:
executed 114 times by 2 tests: default:
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
114
633 ;-
634 }
executed 114 times by 2 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
114
635 return
executed 114 times by 2 tests: return false;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
false;
executed 114 times by 2 tests: return false;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
114
636}-
637inline int QXmlStreamReaderPrivate::fastScanLiteralContent()-
638{-
639 int n = 0;-
640 uint c;-
641 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 1550595 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 2235 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 1550595 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 2235 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2235-1550595
642 switch (ushort(c)) {-
643 case
never executed: case 0xfffe:
0xfffe:
never executed: case 0xfffe:
0
644 case
never executed: case 0xffff:
0xffff:
never executed: case 0xffff:
0
645 case
executed 82 times by 1 test: case 0:
Executed by:
  • tst_QXmlStream
0:
executed 82 times by 1 test: case 0:
Executed by:
  • tst_QXmlStream
82
646-
647-
648 putChar(c);-
649 return
executed 82 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 82 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
82
650 case
executed 24 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 24 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
24
651 if (filterCarriageReturn() == 0
filterCarriageReturn() == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
1-23
652 return
executed 1 time by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 1 time by 1 test: return n;
Executed by:
  • tst_QXmlStream
1
653-
654 case
executed 534 times by 2 tests: case '\n':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
'\n':
executed 534 times by 2 tests: case '\n':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
code before this statement executed 23 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
23-534
655 ++lineNumber;-
656 lastLineStart = characterOffset + readBufferPos;-
657-
658 case
executed 15991 times by 14 tests: case ' ':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
' ':
executed 15991 times by 14 tests: case ' ':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
code before this statement executed 557 times by 2 tests: case ' ':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
557-15991
659 case
executed 18 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
'\t':
executed 18 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
18
660 if (normalizeLiterals
normalizeLiteralsDescription
TRUEevaluated 15517 times by 4 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 1049 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
)
1049-15517
661 textBuffer += QLatin1Char(' ');
executed 15517 times by 4 tests: textBuffer += QLatin1Char(' ');
Executed by:
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
15517
662 else-
663 textBuffer += QChar(c);
executed 1049 times by 12 tests: textBuffer += QChar(c);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
1049
664 ++n;-
665 break;
executed 16566 times by 14 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
16566
666 case
executed 1664 times by 4 tests: case '&':
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
'&':
executed 1664 times by 4 tests: case '&':
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
1664
667 case
executed 19 times by 1 test: case '<':
Executed by:
  • tst_QXmlStream
'<':
executed 19 times by 1 test: case '<':
Executed by:
  • tst_QXmlStream
19
668 case
executed 369034 times by 36 tests: case '\"':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
'\"':
executed 369034 times by 36 tests: case '\"':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
369034
669 case
executed 245 times by 2 tests: case '\'':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'\'':
executed 245 times by 2 tests: case '\'':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
245
670 if (!(c & 0xff0000)
!(c & 0xff0000)Description
TRUEevaluated 370962 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEnever evaluated
) {
0-370962
671 putChar(c);-
672 return
executed 370962 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
n;
executed 370962 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
370962
673 }-
674-
675 default
executed 1162984 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
code before this statement never executed: default:
executed 1162984 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
:
code before this statement never executed: default:
executed 1162984 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
0-1162984
676 if (c < 0x20
c < 0x20Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1162981 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
3-1162981
677 putChar(c);-
678 return
executed 3 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 3 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
3
679 }-
680 textBuffer += QChar(c);-
681 ++n;-
682 }
executed 1162981 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1162981
683 }-
684 return
executed 2235 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 2235 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
2235
685}-
686-
687inline int QXmlStreamReaderPrivate::fastScanSpace()-
688{-
689 int n = 0;-
690 uint c;-
691 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 435917 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 6683 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 435917 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 6683 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
6683-435917
692 switch (c) {-
693 case
executed 323 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 323 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
323
694 if ((
(c = filterCar...Return()) == 0Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 278 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = filterCarriageReturn()) == 0
(c = filterCar...Return()) == 0Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 278 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
45-278
695 return
executed 45 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 45 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
45
696-
697 case
executed 135 times by 2 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'\n':
executed 135 times by 2 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
code before this statement executed 278 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
135-278
698 ++lineNumber;-
699 lastLineStart = characterOffset + readBufferPos;-
700-
701 case
executed 16432 times by 35 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
' ':
executed 16432 times by 35 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
code before this statement executed 413 times by 2 tests: case ' ':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
413-16432
702 case
executed 562 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
'\t':
executed 562 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
562
703 textBuffer += QChar(c);-
704 ++n;-
705 break;
executed 17407 times by 35 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
17407
706 default
executed 418465 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
:
executed 418465 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
418465
707 putChar(c);-
708 return
executed 418465 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
n;
executed 418465 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
418465
709 }-
710 }-
711 return
executed 6683 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 6683 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
6683
712}-
713-
714-
715-
716-
717-
718-
719-
720inline int QXmlStreamReaderPrivate::fastScanContentCharList()-
721{-
722 int n = 0;-
723 uint c;-
724 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 5116550 times by 34 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
FALSEevaluated 8002 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 5116550 times by 34 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
FALSEevaluated 8002 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
8002-5116550
725 switch (ushort(c)) {-
726 case
never executed: case 0xfffe:
0xfffe:
never executed: case 0xfffe:
0
727 case
executed 1 time by 1 test: case 0xffff:
Executed by:
  • tst_QXmlStream
0xffff:
executed 1 time by 1 test: case 0xffff:
Executed by:
  • tst_QXmlStream
1
728 case
executed 60 times by 1 test: case 0:
Executed by:
  • tst_QXmlStream
0:
executed 60 times by 1 test: case 0:
Executed by:
  • tst_QXmlStream
60
729 putChar(c);-
730 return
executed 61 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 61 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
61
731 case
executed 17 times by 1 test: case ']':
Executed by:
  • tst_QXmlStream
']':
executed 17 times by 1 test: case ']':
Executed by:
  • tst_QXmlStream
{
17
732 isWhitespace = false;-
733 int pos = textBuffer.size();-
734 textBuffer += QChar(ushort(c));-
735 ++n;-
736 while ((
(c = getChar()) == ']'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) == ']'
(c = getChar()) == ']'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
11-17
737 textBuffer += QChar(ushort(c));-
738 ++n;-
739 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
11
740 if (c == 0
c == 0Description
TRUEnever evaluated
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-17
741 putString(textBuffer, pos);-
742 textBuffer.resize(pos);-
743 }
never executed: end of block
else if (c == '>'
c == '>'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& textBuffer.at(textBuffer.size()-2) == QLatin1Char(']')
textBuffer.at(...atin1Char(']')Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-9
744 raiseWellFormedError(QXmlStream::tr("Sequence ']]>' not allowed in content."));-
745 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
else {
8
746 putChar(c);-
747 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_QXmlStream
9
748 }-
749 return
executed 8 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 8 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
8
750 } break;
dead code: break;
-
751 case
executed 389 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 389 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
389
752 if ((
(c = filterCar...Return()) == 0Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 262 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = filterCarriageReturn()) == 0
(c = filterCar...Return()) == 0Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 262 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
127-262
753 return
executed 127 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 127 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
127
754-
755 case
executed 439 times by 3 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'\n':
executed 439 times by 3 tests: case '\n':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
code before this statement executed 262 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
262-439
756 ++lineNumber;-
757 lastLineStart = characterOffset + readBufferPos;-
758-
759 case
executed 1433440 times by 34 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
' ':
executed 1433440 times by 34 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
code before this statement executed 701 times by 3 tests: case ' ':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
701-1433440
760 case
never executed: case '\t':
'\t':
never executed: case '\t':
0
761 textBuffer += QChar(ushort(c));-
762 ++n;-
763 break;
executed 1434141 times by 34 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
1434141
764 case
executed 967 times by 2 tests: case '&':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
'&':
executed 967 times by 2 tests: case '&':
Executed by:
  • tst_QXmlStream
  • tst_Selftests
967
765 case
executed 676459 times by 34 tests: case '<':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
'<':
executed 676459 times by 34 tests: case '<':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
676459
766 if (!(c & 0xff0000)
!(c & 0xff0000)Description
TRUEevaluated 677426 times by 34 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
FALSEnever evaluated
) {
0-677426
767 putChar(c);-
768 return
executed 677426 times by 34 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
n;
executed 677426 times by 34 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • ...
677426
769 }-
770-
771 default
executed 3004778 times by 24 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
code before this statement never executed: default:
executed 3004778 times by 24 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
:
code before this statement never executed: default:
executed 3004778 times by 24 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
0-3004778
772 if (c < 0x20
c < 0x20Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3004773 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
) {
5-3004773
773 putChar(c);-
774 return
executed 5 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 5 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
5
775 }-
776 isWhitespace = false;-
777 textBuffer += QChar(ushort(c));-
778 ++n;-
779 }
executed 3004773 times by 24 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
3004773
780 }-
781 return
executed 8002 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 8002 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
8002
782}-
783-
784inline int QXmlStreamReaderPrivate::fastScanName(int *prefix)-
785{-
786 int n = 0;-
787 uint c;-
788 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 7714886 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 9761 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 7714886 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 9761 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
9761-7714886
789 switch (c) {-
790 case
executed 46 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
'\n':
executed 46 times by 1 test: case '\n':
Executed by:
  • tst_QXmlStream
46
791 case
executed 316372 times by 36 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
' ':
executed 316372 times by 36 tests: case ' ':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
316372
792 case
executed 63 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
'\t':
executed 63 times by 1 test: case '\t':
Executed by:
  • tst_QXmlStream
63
793 case
executed 300 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 300 times by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
300
794 case
executed 1 time by 1 test: case '&':
Executed by:
  • tst_QXmlStream
'&':
executed 1 time by 1 test: case '&':
Executed by:
  • tst_QXmlStream
1
795 case
executed 1 time by 1 test: case '#':
Executed by:
  • tst_QXmlStream
'#':
executed 1 time by 1 test: case '#':
Executed by:
  • tst_QXmlStream
1
796 case
executed 1 time by 1 test: case '\'':
Executed by:
  • tst_QXmlStream
'\'':
executed 1 time by 1 test: case '\'':
Executed by:
  • tst_QXmlStream
1
797 case
executed 13 times by 1 test: case '\"':
Executed by:
  • tst_QXmlStream
'\"':
executed 13 times by 1 test: case '\"':
Executed by:
  • tst_QXmlStream
13
798 case
executed 2 times by 1 test: case '<':
Executed by:
  • tst_QXmlStream
'<':
executed 2 times by 1 test: case '<':
Executed by:
  • tst_QXmlStream
2
799 case
executed 370821 times by 36 tests: case '>':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
'>':
executed 370821 times by 36 tests: case '>':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
370821
800 case
executed 1 time by 1 test: case '[':
Executed by:
  • tst_QXmlStream
'[':
executed 1 time by 1 test: case '[':
Executed by:
  • tst_QXmlStream
1
801 case
executed 2 times by 1 test: case ']':
Executed by:
  • tst_QXmlStream
']':
executed 2 times by 1 test: case ']':
Executed by:
  • tst_QXmlStream
2
802 case
executed 392288 times by 36 tests: case '=':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
'=':
executed 392288 times by 36 tests: case '=':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
392288
803 case
never executed: case '%':
'%':
never executed: case '%':
0
804 case
executed 374 times by 4 tests: case '/':
Executed by:
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
'/':
executed 374 times by 4 tests: case '/':
Executed by:
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
374
805 case
executed 2130 times by 4 tests: case ';':
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
';':
executed 2130 times by 4 tests: case ';':
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
2130
806 case
executed 61 times by 2 tests: case '?':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'?':
executed 61 times by 2 tests: case '?':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
61
807 case
executed 2 times by 1 test: case '!':
Executed by:
  • tst_QXmlStream
'!':
executed 2 times by 1 test: case '!':
Executed by:
  • tst_QXmlStream
2
808 case
executed 2 times by 1 test: case '^':
Executed by:
  • tst_QXmlStream
'^':
executed 2 times by 1 test: case '^':
Executed by:
  • tst_QXmlStream
2
809 case
executed 102 times by 1 test: case '|':
Executed by:
  • tst_QXmlStream
'|':
executed 102 times by 1 test: case '|':
Executed by:
  • tst_QXmlStream
102
810 case
executed 97 times by 2 tests: case ',':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
',':
executed 97 times by 2 tests: case ',':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
97
811 case
executed 7 times by 1 test: case '(':
Executed by:
  • tst_QXmlStream
'(':
executed 7 times by 1 test: case '(':
Executed by:
  • tst_QXmlStream
7
812 case
executed 227 times by 2 tests: case ')':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
')':
executed 227 times by 2 tests: case ')':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
227
813 case
executed 14 times by 2 tests: case '+':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
'+':
executed 14 times by 2 tests: case '+':
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
14
814 case
executed 31 times by 1 test: case '*':
Executed by:
  • tst_QXmlStream
'*':
executed 31 times by 1 test: case '*':
Executed by:
  • tst_QXmlStream
31
815 putChar(c);-
816 if (prefix
prefixDescription
TRUEevaluated 1079735 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 3223 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
&& *
*prefix == n+1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1079731 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
prefix == n+1
*prefix == n+1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1079731 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
4-1079735
817 *prefix = 0;-
818 putChar(':');-
819 --n;-
820 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
4
821 return
executed 1082958 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
n;
executed 1082958 times by 36 tests: return n;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1082958
822 case
executed 243743 times by 24 tests: case ':':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
':':
executed 243743 times by 24 tests: case ':':
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
243743
823 if (prefix
prefixDescription
TRUEevaluated 243736 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
7-243736
824 if (*
*prefix == 0Description
TRUEevaluated 243734 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
prefix == 0
*prefix == 0Description
TRUEevaluated 243734 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2-243734
825 *prefix = n+2;-
826 }
executed 243734 times by 24 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
else {
243734
827 putChar(c);-
828 return
executed 2 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 2 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
2
829 }-
830 } else {-
831 putChar(c);-
832 return
executed 7 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 7 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
7
833 }-
834-
835 default
executed 6388185 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
:
executed 6388185 times by 36 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
code before this statement executed 243734 times by 24 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
243734-6388185
836 textBuffer += QChar(c);-
837 ++n;-
838 }
executed 6631919 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
6631919
839 }-
840-
841 if (prefix
prefixDescription
TRUEevaluated 8770 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 991 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
991-8770
842 *
executed 8770 times by 1 test: *prefix = 0;
Executed by:
  • tst_QXmlStream
prefix = 0;
executed 8770 times by 1 test: *prefix = 0;
Executed by:
  • tst_QXmlStream
8770
843 int pos = textBuffer.size() - n;-
844 putString(textBuffer, pos);-
845 textBuffer.resize(pos);-
846 return
executed 9761 times by 1 test: return 0;
Executed by:
  • tst_QXmlStream
0;
executed 9761 times by 1 test: return 0;
Executed by:
  • tst_QXmlStream
9761
847}-
848-
849enum NameChar { NameBeginning, NameNotBeginning, NotName };-
850-
851static const char Begi = static_cast<char>(NameBeginning);-
852static const char NtBg = static_cast<char>(NameNotBeginning);-
853static const char NotN = static_cast<char>(NotName);-
854-
855static const char nameCharTable[128] =-
856{-
857-
858 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
859 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
860-
861 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
862 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
863-
864 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
865 NotN, NotN, NotN, NotN, NotN, NtBg, NtBg, NotN,-
866-
867 NtBg, NtBg, NtBg, NtBg, NtBg, NtBg, NtBg, NtBg,-
868 NtBg, NtBg, Begi, NotN, NotN, NotN, NotN, NotN,-
869-
870 NotN, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
871 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
872-
873 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
874 Begi, Begi, Begi, NotN, NotN, NotN, NotN, Begi,-
875-
876 NotN, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
877 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
878-
879 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
880 Begi, Begi, Begi, NotN, NotN, NotN, NotN, NotN-
881};-
882-
883static inline NameChar fastDetermineNameChar(QChar ch)-
884{-
885 ushort uc = ch.unicode();-
886 if (!(uc & ~0x7f)
!(uc & ~0x7f)Description
TRUEevaluated 2874 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEnever evaluated
)
0-2874
887 return
executed 2874 times by 2 tests: return static_cast<NameChar>(nameCharTable[uc]);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
static_cast<NameChar>(nameCharTable[uc]);
executed 2874 times by 2 tests: return static_cast<NameChar>(nameCharTable[uc]);
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
2874
888-
889 QChar::Category cat = ch.category();-
890-
891 if ((cat >= QChar::Letter_Uppercase
cat >= QChar::Letter_UppercaseDescription
TRUEnever evaluated
FALSEnever evaluated
&& cat <= QChar::Letter_Other
cat <= QChar::Letter_OtherDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
892 || cat == QChar::Number_Letter
cat == QChar::Number_LetterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
893 return
never executed: return NameBeginning;
NameBeginning;
never executed: return NameBeginning;
0
894 if ((cat >= QChar::Number_DecimalDigit
cat >= QChar::...r_DecimalDigitDescription
TRUEnever evaluated
FALSEnever evaluated
&& cat <= QChar::Number_Other
cat <= QChar::Number_OtherDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
895 || (cat >= QChar::Mark_NonSpacing
cat >= QChar::Mark_NonSpacingDescription
TRUEnever evaluated
FALSEnever evaluated
&& cat <= QChar::Mark_Enclosing
cat <= QChar::Mark_EnclosingDescription
TRUEnever evaluated
FALSEnever evaluated
))
0
896 return
never executed: return NameNotBeginning;
NameNotBeginning;
never executed: return NameNotBeginning;
0
897 return
never executed: return NotName;
NotName;
never executed: return NotName;
0
898}-
899-
900inline int QXmlStreamReaderPrivate::fastScanNMTOKEN()-
901{-
902 int n = 0;-
903 uint c;-
904 while ((
(c = getChar()) != StreamEOFDescription
TRUEevaluated 2874 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 229 times by 1 test
Evaluated by:
  • tst_QXmlStream
c = getChar()) != StreamEOF
(c = getChar()) != StreamEOFDescription
TRUEevaluated 2874 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 229 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
229-2874
905 if (fastDetermineNameChar(c) == NotName
fastDetermineN...(c) == NotNameDescription
TRUEevaluated 350 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 2524 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
) {
350-2524
906 putChar(c);-
907 return
executed 350 times by 2 tests: return n;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
n;
executed 350 times by 2 tests: return n;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
350
908 } else {-
909 ++n;-
910 textBuffer += QChar(c);-
911 }
executed 2524 times by 2 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
2524
912 }-
913-
914 int pos = textBuffer.size() - n;-
915 putString(textBuffer, pos);-
916 textBuffer.resize(pos);-
917-
918 return
executed 229 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
n;
executed 229 times by 1 test: return n;
Executed by:
  • tst_QXmlStream
229
919}-
920-
921void QXmlStreamReaderPrivate::putString(const QString &s, int from)-
922{-
923 putStack.reserve(s.size());-
924 for (int i = s.size()-1; i >= from
i >= fromDescription
TRUEevaluated 205554 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 18909 times by 1 test
Evaluated by:
  • tst_QXmlStream
; --i)
18909-205554
925 putStack.rawPush() = s.at(i).unicode();
executed 205554 times by 1 test: putStack.rawPush() = s.at(i).unicode();
Executed by:
  • tst_QXmlStream
205554
926}
executed 18909 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
18909
927-
928void QXmlStreamReaderPrivate::putStringLiteral(const QString &s)-
929{-
930 putStack.reserve(s.size());-
931 for (int i = s.size()-1; i >= 0
i >= 0Description
TRUEevaluated 1805 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 1792 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
; --i)
1792-1805
932 putStack.rawPush() = ((LETTER << 16) | s.at(i).unicode());
executed 1805 times by 4 tests: putStack.rawPush() = ((LETTER << 16) | s.at(i).unicode());
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
1805
933}
executed 1792 times by 4 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
1792
934-
935void QXmlStreamReaderPrivate::putReplacement(const QString &s)-
936{-
937 putStack.reserve(s.size());-
938 for (int i = s.size()-1; i >= 0
i >= 0Description
TRUEevaluated 1077 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 117 times by 1 test
Evaluated by:
  • tst_QXmlStream
; --i) {
117-1077
939 ushort c = s.at(i).unicode();-
940 if (c == '\n'
c == '\n'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1075 times by 1 test
Evaluated by:
  • tst_QXmlStream
|| c == '\r'
c == '\r'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1073 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-1075
941 putStack.rawPush() = ((LETTER << 16) | c);
executed 4 times by 1 test: putStack.rawPush() = ((LETTER << 16) | c);
Executed by:
  • tst_QXmlStream
4
942 else-
943 putStack.rawPush() = c;
executed 1073 times by 1 test: putStack.rawPush() = c;
Executed by:
  • tst_QXmlStream
1073
944 }-
945}
executed 117 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
117
946void QXmlStreamReaderPrivate::putReplacementInAttributeValue(const QString &s)-
947{-
948 putStack.reserve(s.size());-
949 for (int i = s.size()-1; i >= 0
i >= 0Description
TRUEevaluated 990 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 98 times by 1 test
Evaluated by:
  • tst_QXmlStream
; --i) {
98-990
950 ushort c = s.at(i).unicode();-
951 if (c == '&'
c == '&'Description
TRUEevaluated 49 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 941 times by 1 test
Evaluated by:
  • tst_QXmlStream
|| c == ';'
c == ';'Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 881 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
49-941
952 putStack.rawPush() = c;
executed 109 times by 1 test: putStack.rawPush() = c;
Executed by:
  • tst_QXmlStream
109
953 else if (c == '\n'
c == '\n'Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 877 times by 1 test
Evaluated by:
  • tst_QXmlStream
|| c == '\r'
c == '\r'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 875 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-877
954 putStack.rawPush() = ' ';
executed 6 times by 1 test: putStack.rawPush() = ' ';
Executed by:
  • tst_QXmlStream
6
955 else-
956 putStack.rawPush() = ((LETTER << 16) | c);
executed 875 times by 1 test: putStack.rawPush() = ((LETTER << 16) | c);
Executed by:
  • tst_QXmlStream
875
957 }-
958}
executed 98 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
98
959-
960uint QXmlStreamReaderPrivate::getChar_helper()-
961{-
962 const int BUFFER_SIZE = 8192;-
963 characterOffset += readBufferPos;-
964 readBufferPos = 0;-
965 readBuffer.resize(0);-
966-
967 if (decoder
decoderDescription
TRUEevaluated 116020 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 7746 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
)
7746-116020
968-
969 nbytesread = 0;
executed 116020 times by 15 tests: nbytesread = 0;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
116020
970 if (device
deviceDescription
TRUEevaluated 5829 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 117937 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
) {
5829-117937
971 rawReadBuffer.resize(BUFFER_SIZE);-
972 int nbytesreadOrMinus1 = device->read(rawReadBuffer.data() + nbytesread, BUFFER_SIZE - nbytesread);-
973 nbytesread += qMax(nbytesreadOrMinus1, 0);-
974 }
executed 5829 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
else {
5829
975 if (nbytesread
nbytesreadDescription
TRUEevaluated 780 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 117157 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
)
780-117157
976 rawReadBuffer += dataBuffer;
executed 780 times by 1 test: rawReadBuffer += dataBuffer;
Executed by:
  • tst_QXmlStream
780
977 else-
978 rawReadBuffer = dataBuffer;
executed 117157 times by 14 tests: rawReadBuffer = dataBuffer;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
117157
979 nbytesread = rawReadBuffer.size();-
980 dataBuffer.clear();-
981 }
executed 117937 times by 14 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
117937
982 if (!nbytesread
!nbytesreadDescription
TRUEevaluated 59780 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 63986 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
59780-63986
983 atEnd = true;-
984 return
executed 59780 times by 15 tests: return StreamEOF;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
StreamEOF;
executed 59780 times by 15 tests: return StreamEOF;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
59780
985 }-
986-
987-
988 if (!decoder
!decoderDescription
TRUEevaluated 6108 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
FALSEevaluated 57878 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
) {
6108-57878
989 if (nbytesread < 4
nbytesread < 4Description
TRUEevaluated 782 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5326 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
) {
782-5326
990-
991 atEnd = true;-
992 return
executed 782 times by 1 test: return StreamEOF;
Executed by:
  • tst_QXmlStream
StreamEOF;
executed 782 times by 1 test: return StreamEOF;
Executed by:
  • tst_QXmlStream
782
993 }-
994 int mib = 106;-
995-
996-
997 uchar ch1 = rawReadBuffer.at(0);-
998 uchar ch2 = rawReadBuffer.at(1);-
999 uchar ch3 = rawReadBuffer.at(2);-
1000 uchar ch4 = rawReadBuffer.at(3);-
1001-
1002 if ((ch1 == 0
ch1 == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5325 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0
ch2 == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
&& ch3 == 0xfe
ch3 == 0xfeDescription
TRUEnever evaluated
FALSEnever evaluated
&& ch4 == 0xff
ch4 == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
) ||
0-5325
1003 (ch1 == 0xff
ch1 == 0xffDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5286 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0xfe
ch2 == 0xfeDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
&& ch3 == 0
ch3 == 0Description
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& ch4 == 0
ch4 == 0Description
TRUEnever evaluated
FALSEnever evaluated
))
0-5286
1004 mib = 1017;
never executed: mib = 1017;
0
1005 else if (ch1 == 0x3c
ch1 == 0x3cDescription
TRUEevaluated 5248 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
FALSEevaluated 78 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& ch2 == 0x00
ch2 == 0x00Description
TRUEnever evaluated
FALSEevaluated 5248 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch3 == 0x00
ch3 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
&& ch4 == 0x00
ch4 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
)
0-5248
1006 mib = 1019;
never executed: mib = 1019;
0
1007 else if (ch1 == 0x00
ch1 == 0x00Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5325 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0x00
ch2 == 0x00Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
&& ch3 == 0x00
ch3 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
&& ch4 == 0x3c
ch4 == 0x3cDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-5325
1008 mib = 1018;
never executed: mib = 1018;
0
1009 else if ((ch1 == 0xfe
ch1 == 0xfeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5325 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0xff
ch2 == 0xffDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) || (ch1 == 0xff
ch1 == 0xffDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5285 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0xfe
ch2 == 0xfeDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
))
0-5325
1010 mib = 1015;
executed 41 times by 1 test: mib = 1015;
Executed by:
  • tst_QXmlStream
41
1011 else if (ch1 == 0x3c
ch1 == 0x3cDescription
TRUEevaluated 5248 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& ch2 == 0x00
ch2 == 0x00Description
TRUEnever evaluated
FALSEevaluated 5248 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
)
0-5248
1012 mib = 1014;
never executed: mib = 1014;
0
1013 else if (ch1 == 0x00
ch1 == 0x00Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5284 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& ch2 == 0x3c
ch2 == 0x3cDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-5284
1014 mib = 1013;
executed 1 time by 1 test: mib = 1013;
Executed by:
  • tst_QXmlStream
1
1015 codec = QTextCodec::codecForMib(mib);-
1016 ((!(codec)) ? qt_assert("codec",__FILE__,1524) : qt_noop());-
1017 decoder = codec->makeDecoder();-
1018 }
executed 5326 times by 24 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
5326
1019-
1020 decoder->toUnicode(&readBuffer, rawReadBuffer.constData(), nbytesread);-
1021-
1022 if(lockEncoding
lockEncodingDescription
TRUEevaluated 55226 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 7978 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
&& decoder->hasFailure()
decoder->hasFailure()Description
TRUEnever evaluated
FALSEevaluated 55226 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
) {
0-55226
1023 raiseWellFormedError(QXmlStream::tr("Encountered incorrectly encoded content."));-
1024 readBuffer.clear();-
1025 return
never executed: return StreamEOF;
StreamEOF;
never executed: return StreamEOF;
0
1026 }-
1027-
1028-
1029-
1030-
1031 readBuffer.reserve(1);-
1032-
1033 if (readBufferPos < readBuffer.size()
readBufferPos ...dBuffer.size()Description
TRUEevaluated 62961 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
243-62961
1034 ushort c = readBuffer.at(readBufferPos++).unicode();-
1035 return
executed 62961 times by 36 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
c;
executed 62961 times by 36 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
62961
1036 }-
1037-
1038 atEnd = true;-
1039 return
executed 243 times by 1 test: return StreamEOF;
Executed by:
  • tst_QXmlStream
StreamEOF;
executed 243 times by 1 test: return StreamEOF;
Executed by:
  • tst_QXmlStream
243
1040}-
1041-
1042QStringRef QXmlStreamReaderPrivate::namespaceForPrefix(const QStringRef &prefix)-
1043{-
1044 for (int j = namespaceDeclarations.size() - 1; j >= 0
j >= 0Description
TRUEevaluated 970435 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 78711 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
; --j) {
78711-970435
1045 const NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.at(j);-
1046 if (namespaceDeclaration.prefix == prefix
namespaceDecla...efix == prefixDescription
TRUEevaluated 516892 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 453543 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
453543-516892
1047 return
executed 516892 times by 24 tests: return namespaceDeclaration.namespaceUri;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
namespaceDeclaration.namespaceUri;
executed 516892 times by 24 tests: return namespaceDeclaration.namespaceUri;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
516892
1048 }-
1049 }
executed 453543 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
453543
1050-
1051-
1052 if (namespaceProcessing
namespaceProcessingDescription
TRUEevaluated 78711 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
&& !prefix.isEmpty()
!prefix.isEmpty()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 78705 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
)
0-78711
1053 raiseWellFormedError(QXmlStream::tr("Namespace prefix '%1' not declared").arg(prefix.toString()));
executed 6 times by 1 test: raiseWellFormedError(QXmlStream::tr("Namespace prefix '%1' not declared").arg(prefix.toString()));
Executed by:
  • tst_QXmlStream
6
1054-
1055-
1056 return
executed 78711 times by 14 tests: return QStringRef();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
QStringRef();
executed 78711 times by 14 tests: return QStringRef();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
78711
1057}-
1058-
1059-
1060-
1061-
1062void QXmlStreamReaderPrivate::resolveTag()-
1063{-
1064 int n = attributeStack.size();-
1065-
1066 if (namespaceProcessing
namespaceProcessingDescription
TRUEevaluated 352257 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEnever evaluated
) {
0-352257
1067 for (int a = 0; a < dtdAttributes.size()
a < dtdAttributes.size()Description
TRUEevaluated 3832797 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 352257 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
; ++a) {
352257-3832797
1068 DtdAttribute &dtdAttribute = dtdAttributes[a];-
1069 if (!dtdAttribute.isNamespaceAttribute
!dtdAttribute....spaceAttributeDescription
TRUEevaluated 3679128 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 153669 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
153669-3679128
1070 || dtdAttribute.defaultValue.isNull()
dtdAttribute.d...Value.isNull()Description
TRUEevaluated 91 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 153578 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
91-153578
1071 || dtdAttribute.tagName != qualifiedName
dtdAttribute.t... qualifiedNameDescription
TRUEevaluated 153569 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
9-153569
1072 || dtdAttribute.attributeQualifiedName.isNull()
dtdAttribute.a...dName.isNull()Description
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
)
0-9
1073 continue;
executed 3832788 times by 2 tests: continue;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
3832788
1074 int i = 0;-
1075 while (i < n
i < nDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
&& symName(attributeStack[i].key) != dtdAttribute.attributeQualifiedName
symName(attrib...eQualifiedNameDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-9
1076 ++
executed 3 times by 1 test: ++i;
Executed by:
  • tst_QXmlStream
i;
executed 3 times by 1 test: ++i;
Executed by:
  • tst_QXmlStream
3
1077 if (i != n
i != nDescription
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
)
0-9
1078 continue;
never executed: continue;
0
1079 if (dtdAttribute.attributePrefix.isEmpty()
dtdAttribute.a...efix.isEmpty()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& dtdAttribute.attributeName == QLatin1String("xmlns")
dtdAttribute.a...tring("xmlns")Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEnever evaluated
) {
0-7
1080 NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push();-
1081 namespaceDeclaration.prefix.clear();-
1082-
1083 const QStringRef ns(dtdAttribute.defaultValue);-
1084 if(ns == QLatin1String("http://www.w3.org/2000/xmlns/")
ns == QLatin1S.../2000/xmlns/")Description
TRUEnever evaluated
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
||
0-7
1085 ns == QLatin1String("http://www.w3.org/XML/1998/namespace")
ns == QLatin1S...98/namespace")Description
TRUEnever evaluated
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
)
0-7
1086 raiseWellFormedError(QXmlStream::tr("Illegal namespace declaration."));
never executed: raiseWellFormedError(QXmlStream::tr("Illegal namespace declaration."));
0
1087 else-
1088 namespaceDeclaration.namespaceUri = ns;
executed 7 times by 2 tests: namespaceDeclaration.namespaceUri = ns;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
7
1089 } else if (dtdAttribute.attributePrefix == QLatin1String("xmlns")
dtdAttribute.a...tring("xmlns")Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) {
0-2
1090 NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push();-
1091 QStringRef namespacePrefix = dtdAttribute.attributeName;-
1092 QStringRef namespaceUri = dtdAttribute.defaultValue;-
1093 if (((
((namespacePre.../namespace")))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
namespacePrefix == QLatin1String("xml"))
((namespacePre.../namespace")))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
0-2
1094 ^ (namespaceUri == QLatin1String("http://www.w3.org/XML/1998/namespace")))
((namespacePre.../namespace")))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
0-2
1095 || namespaceUri == QLatin1String("http://www.w3.org/2000/xmlns/")
namespaceUri =.../2000/xmlns/")Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
0-2
1096 || namespaceUri.isEmpty()
namespaceUri.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
0-2
1097 || namespacePrefix == QLatin1String("xmlns")
namespacePrefi...tring("xmlns")Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-2
1098 raiseWellFormedError(QXmlStream::tr("Illegal namespace declaration."));
never executed: raiseWellFormedError(QXmlStream::tr("Illegal namespace declaration."));
0
1099-
1100 namespaceDeclaration.prefix = namespacePrefix;-
1101 namespaceDeclaration.namespaceUri = namespaceUri;-
1102 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
1103 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
9
1104 }
executed 352257 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
352257
1105-
1106 tagStack.top().namespaceDeclaration.namespaceUri = namespaceUri = namespaceForPrefix(prefix);-
1107-
1108 attributes.resize(n);-
1109-
1110 for (int i = 0; i < n
i < nDescription
TRUEevaluated 386636 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 352257 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
; ++i) {
352257-386636
1111 QXmlStreamAttribute &attribute = attributes[i];-
1112 Attribute &attrib = attributeStack[i];-
1113 QStringRef prefix(symPrefix(attrib.key));-
1114 QStringRef name(symString(attrib.key));-
1115 QStringRef qualifiedName(symName(attrib.key));-
1116 QStringRef value(symString(attrib.value));-
1117-
1118 attribute.m_name = QXmlStreamStringRef(name);-
1119 attribute.m_qualifiedName = QXmlStreamStringRef(qualifiedName);-
1120 attribute.m_value = QXmlStreamStringRef(value);-
1121-
1122 if (!prefix.isEmpty()
!prefix.isEmpty()Description
TRUEevaluated 243346 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 143290 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
) {
143290-243346
1123 QStringRef attributeNamespaceUri = namespaceForPrefix(prefix);-
1124 attribute.m_namespaceUri = QXmlStreamStringRef(attributeNamespaceUri);-
1125 }
executed 243346 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
243346
1126-
1127 for (int j = 0; j < i
j < iDescription
TRUEevaluated 114648 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 386636 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
; ++j) {
114648-386636
1128 if (attributes[j].name() == attribute.name()
attributes[j]....tribute.name()Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 114610 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
38-114610
1129 && attributes[j].namespaceUri() == attribute.namespaceUri()
attributes[j]....namespaceUri()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QXmlStream
16-22
1130 && (namespaceProcessing
namespaceProcessingDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
|| attributes[j].qualifiedName() == attribute.qualifiedName()
attributes[j]....ualifiedName()Description
TRUEnever evaluated
FALSEnever evaluated
))
0-16
1131 raiseWellFormedError(QXmlStream::tr("Attribute '%1' redefined.").arg(attribute.qualifiedName().toString()));
executed 16 times by 1 test: raiseWellFormedError(QXmlStream::tr("Attribute '%1' redefined.").arg(attribute.qualifiedName().toString()));
Executed by:
  • tst_QXmlStream
16
1132 }
executed 114648 times by 16 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
114648
1133 }
executed 386636 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
386636
1134-
1135 for (int a = 0; a < dtdAttributes.size()
a < dtdAttributes.size()Description
TRUEevaluated 3832797 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 352257 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
; ++a) {
352257-3832797
1136 DtdAttribute &dtdAttribute = dtdAttributes[a];-
1137 if (dtdAttribute.isNamespaceAttribute
dtdAttribute.i...spaceAttributeDescription
TRUEevaluated 153669 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 3679128 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
153669-3679128
1138 || dtdAttribute.defaultValue.isNull()
dtdAttribute.d...Value.isNull()Description
TRUEevaluated 3678960 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QXmlStream
FALSEevaluated 168 times by 1 test
Evaluated by:
  • tst_QXmlStream
168-3678960
1139 || dtdAttribute.tagName != qualifiedName
dtdAttribute.t... qualifiedNameDescription
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 93 times by 1 test
Evaluated by:
  • tst_QXmlStream
75-93
1140 || dtdAttribute.attributeQualifiedName.isNull()
dtdAttribute.a...dName.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 91 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-91
1141 continue;
executed 3832706 times by 2 tests: continue;
Executed by:
  • tst_QMimeDatabase
  • tst_QXmlStream
3832706
1142 int i = 0;-
1143 while (i < n
i < nDescription
TRUEevaluated 117 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& symName(attributeStack[i].key) != dtdAttribute.attributeQualifiedName
symName(attrib...eQualifiedNameDescription
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
36-117
1144 ++
executed 62 times by 1 test: ++i;
Executed by:
  • tst_QXmlStream
i;
executed 62 times by 1 test: ++i;
Executed by:
  • tst_QXmlStream
62
1145 if (i != n
i != nDescription
TRUEevaluated 55 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
36-55
1146 continue;
executed 55 times by 1 test: continue;
Executed by:
  • tst_QXmlStream
55
1147-
1148-
1149-
1150 QXmlStreamAttribute attribute;-
1151 attribute.m_name = QXmlStreamStringRef(dtdAttribute.attributeName);-
1152 attribute.m_qualifiedName = QXmlStreamStringRef(dtdAttribute.attributeQualifiedName);-
1153 attribute.m_value = QXmlStreamStringRef(dtdAttribute.defaultValue);-
1154-
1155 if (!dtdAttribute.attributePrefix.isEmpty()
!dtdAttribute....efix.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-36
1156 QStringRef attributeNamespaceUri = namespaceForPrefix(dtdAttribute.attributePrefix);-
1157 attribute.m_namespaceUri = QXmlStreamStringRef(attributeNamespaceUri);-
1158 }
never executed: end of block
0
1159 attribute.m_isDefault = true;-
1160 attributes.append(attribute);-
1161 }
executed 36 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
36
1162-
1163 attributeStack.clear();-
1164}
executed 352257 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
352257
1165-
1166void QXmlStreamReaderPrivate::resolvePublicNamespaces()-
1167{-
1168 const Tag &tag = tagStack.top();-
1169 int n = namespaceDeclarations.size() - tag.namespaceDeclarationsSize;-
1170 publicNamespaceDeclarations.resize(n);-
1171 for (int i = 0; i < n
i < nDescription
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 446 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
54-446
1172 const NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.at(tag.namespaceDeclarationsSize + i);-
1173 QXmlStreamNamespaceDeclaration &publicNamespaceDeclaration = publicNamespaceDeclarations[i];-
1174 publicNamespaceDeclaration.m_prefix = QXmlStreamStringRef(namespaceDeclaration.prefix);-
1175 publicNamespaceDeclaration.m_namespaceUri = QXmlStreamStringRef(namespaceDeclaration.namespaceUri);-
1176 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
54
1177}
executed 446 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
446
1178-
1179void QXmlStreamReaderPrivate::resolveDtd()-
1180{-
1181 publicNotationDeclarations.resize(notationDeclarations.size());-
1182 for (int i = 0; i < notationDeclarations.size()
i < notationDe...rations.size()Description
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
52-79
1183 const QXmlStreamReaderPrivate::NotationDeclaration &notationDeclaration = notationDeclarations.at(i);-
1184 QXmlStreamNotationDeclaration &publicNotationDeclaration = publicNotationDeclarations[i];-
1185 publicNotationDeclaration.m_name = QXmlStreamStringRef(notationDeclaration.name);-
1186 publicNotationDeclaration.m_systemId = QXmlStreamStringRef(notationDeclaration.systemId);-
1187 publicNotationDeclaration.m_publicId = QXmlStreamStringRef(notationDeclaration.publicId);-
1188-
1189 }
executed 79 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
79
1190 notationDeclarations.clear();-
1191 publicEntityDeclarations.resize(entityDeclarations.size());-
1192 for (int i = 0; i < entityDeclarations.size()
i < entityDeclarations.size()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
44-52
1193 const QXmlStreamReaderPrivate::EntityDeclaration &entityDeclaration = entityDeclarations.at(i);-
1194 QXmlStreamEntityDeclaration &publicEntityDeclaration = publicEntityDeclarations[i];-
1195 publicEntityDeclaration.m_name = QXmlStreamStringRef(entityDeclaration.name);-
1196 publicEntityDeclaration.m_notationName = QXmlStreamStringRef(entityDeclaration.notationName);-
1197 publicEntityDeclaration.m_systemId = QXmlStreamStringRef(entityDeclaration.systemId);-
1198 publicEntityDeclaration.m_publicId = QXmlStreamStringRef(entityDeclaration.publicId);-
1199 publicEntityDeclaration.m_value = QXmlStreamStringRef(entityDeclaration.value);-
1200 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
44
1201 entityDeclarations.clear();-
1202 parameterEntityHash.clear();-
1203}
executed 52 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
52
1204-
1205uint QXmlStreamReaderPrivate::resolveCharRef(int symbolIndex)-
1206{-
1207 bool ok = true;-
1208 uint s;-
1209-
1210 if (sym(symbolIndex).c == 'x'
sym(symbolIndex).c == 'x'Description
TRUEevaluated 1291 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 143 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
143-1291
1211 s = symString(symbolIndex, 1).toUInt(&ok, 16);
executed 1291 times by 2 tests: s = symString(symbolIndex, 1).toUInt(&ok, 16);
Executed by:
  • tst_QXmlStream
  • tst_Selftests
1291
1212 else-
1213 s = symString(symbolIndex).toUInt(&ok, 10);
executed 143 times by 1 test: s = symString(symbolIndex).toUInt(&ok, 10);
Executed by:
  • tst_QXmlStream
143
1214-
1215 ok &= (s == 0x9
s == 0x9Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1420 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
|| s == 0xa
s == 0xaDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1402 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
|| s == 0xd
s == 0xdDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1389 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
|| (s >= 0x20
s >= 0x20Description
TRUEevaluated 1369 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& s <= 0xd7ff
s <= 0xd7ffDescription
TRUEevaluated 1346 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
13-1420
1216 || (s >= 0xe000
s >= 0xe000Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& s <= 0xfffd
s <= 0xfffdDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_QXmlStream
) || (s >= 0x10000
s >= 0x10000Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& s <= QChar::LastValidCodePoint
s <= QChar::LastValidCodePointDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
));
1-25
1217-
1218 return
executed 1434 times by 2 tests: return ok ? s : 0;
Executed by:
  • tst_QXmlStream
  • tst_Selftests
ok ? s : 0;
executed 1434 times by 2 tests: return ok ? s : 0;
Executed by:
  • tst_QXmlStream
  • tst_Selftests
1434
1219}-
1220-
1221-
1222void QXmlStreamReaderPrivate::checkPublicLiteral(const QStringRef &publicId)-
1223{-
1224-
1225-
1226 const ushort *data = reinterpret_cast<const ushort *>(publicId.constData());-
1227 uchar c = 0;-
1228 int i;-
1229 for (i = publicId.size() - 1; i >= 0
i >= 0Description
TRUEevaluated 13888 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 295 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
; --i) {
295-13888
1230 if (data[i] < 256
data[i] < 256Description
TRUEevaluated 13888 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
)
0-13888
1231 switch ((c = data[i])) {-
1232 case
executed 987 times by 12 tests: case ' ':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
' ':
executed 987 times by 12 tests: case ' ':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
case
never executed: case '\n':
'\n':
never executed: case '\n':
case
executed 1 time by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
'\r':
executed 1 time by 1 test: case '\r':
Executed by:
  • tst_QXmlStream
case
executed 501 times by 12 tests: case '-':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'-':
executed 501 times by 12 tests: case '-':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
case
executed 3 times by 1 test: case '(':
Executed by:
  • tst_QXmlStream
'(':
executed 3 times by 1 test: case '(':
Executed by:
  • tst_QXmlStream
case
executed 3 times by 1 test: case ')':
Executed by:
  • tst_QXmlStream
')':
executed 3 times by 1 test: case ')':
Executed by:
  • tst_QXmlStream
0-987
1233 case
executed 3 times by 1 test: case '+':
Executed by:
  • tst_QXmlStream
'+':
executed 3 times by 1 test: case '+':
Executed by:
  • tst_QXmlStream
case
executed 3 times by 1 test: case ',':
Executed by:
  • tst_QXmlStream
',':
executed 3 times by 1 test: case ',':
Executed by:
  • tst_QXmlStream
case
executed 246 times by 12 tests: case '.':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'.':
executed 246 times by 12 tests: case '.':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
case
executed 1546 times by 12 tests: case '/':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
'/':
executed 1546 times by 12 tests: case '/':
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
case
executed 3 times by 1 test: case ':':
Executed by:
  • tst_QXmlStream
':':
executed 3 times by 1 test: case ':':
Executed by:
  • tst_QXmlStream
case
executed 3 times by 1 test: case '=':
Executed by:
  • tst_QXmlStream
'=':
executed 3 times by 1 test: case '=':
Executed by:
  • tst_QXmlStream
3-1546
1234 case
executed 3 times by 1 test: case '?':
Executed by:
  • tst_QXmlStream
'?':
executed 3 times by 1 test: case '?':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case ';':
Executed by:
  • tst_QXmlStream
';':
executed 5 times by 1 test: case ';':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '!':
Executed by:
  • tst_QXmlStream
'!':
executed 5 times by 1 test: case '!':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '*':
Executed by:
  • tst_QXmlStream
'*':
executed 5 times by 1 test: case '*':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '#':
Executed by:
  • tst_QXmlStream
'#':
executed 5 times by 1 test: case '#':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '@':
Executed by:
  • tst_QXmlStream
'@':
executed 5 times by 1 test: case '@':
Executed by:
  • tst_QXmlStream
3-5
1235 case
executed 5 times by 1 test: case '$':
Executed by:
  • tst_QXmlStream
'$':
executed 5 times by 1 test: case '$':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '_':
Executed by:
  • tst_QXmlStream
'_':
executed 5 times by 1 test: case '_':
Executed by:
  • tst_QXmlStream
case
executed 5 times by 1 test: case '%':
Executed by:
  • tst_QXmlStream
'%':
executed 5 times by 1 test: case '%':
Executed by:
  • tst_QXmlStream
case
executed 3 times by 1 test: case '\'':
Executed by:
  • tst_QXmlStream
'\'':
executed 3 times by 1 test: case '\'':
Executed by:
  • tst_QXmlStream
case
never executed: case '\"':
'\"':
never executed: case '\"':
0-5
1236 continue;
executed 3345 times by 12 tests: continue;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
3345
1237 default
executed 10543 times by 12 tests: default:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
:
executed 10543 times by 12 tests: default:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
10543
1238 if ((c >= 'a'
c >= 'a'Description
TRUEevaluated 7242 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 3301 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
&& c <= 'z'
c <= 'z'Description
TRUEevaluated 7242 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
)
0-7242
1239 || (c >= 'A'
c >= 'A'Description
TRUEevaluated 2782 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 519 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
&& c <= 'Z'
c <= 'Z'Description
TRUEevaluated 2782 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
)
0-2782
1240 || (c >= '0'
c >= '0'Description
TRUEevaluated 519 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
&& c <= '9'
c <= '9'Description
TRUEevaluated 519 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
))
0-519
1241 continue;
executed 10543 times by 12 tests: continue;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
10543
1242 }
never executed: end of block
0
1243 break;
never executed: break;
0
1244 }-
1245 if (i >= 0
i >= 0Description
TRUEnever evaluated
FALSEevaluated 295 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
)
0-295
1246 raiseWellFormedError(QXmlStream::tr("Unexpected character '%1' in public id literal.").arg(QChar(QLatin1Char(c))));
never executed: raiseWellFormedError(QXmlStream::tr("Unexpected character '%1' in public id literal.").arg(QChar(QLatin1Char(c))));
0
1247}
executed 295 times by 12 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
295
1248-
1249-
1250-
1251-
1252-
1253-
1254bool QXmlStreamReaderPrivate::checkStartDocument()-
1255{-
1256 hasCheckedStartDocument = true;-
1257-
1258 if (scanString(spell[XML], XML)
scanString(spell[XML], XML)Description
TRUEevaluated 3714 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
FALSEevaluated 4669 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
)
3714-4669
1259 return
executed 3714 times by 26 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
true;
executed 3714 times by 26 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
3714
1260-
1261 type = QXmlStreamReader::StartDocument;-
1262 if (atEnd
atEndDescription
TRUEevaluated 2685 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 1984 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
) {
1984-2685
1263 hasCheckedStartDocument = false;-
1264 raiseError(QXmlStreamReader::PrematureEndOfDocumentError);-
1265 }
executed 2685 times by 2 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
2685
1266 return
executed 4669 times by 13 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
false;
executed 4669 times by 13 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QXmlStream
  • tst_Selftests
4669
1267}-
1268-
1269void QXmlStreamReaderPrivate::startDocument()-
1270{-
1271 QString err;-
1272 if (documentVersion != QLatin1String("1.0")
documentVersio...1String("1.0")Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3666 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
) {
4-3666
1273 if (documentVersion.contains(QLatin1Char(' '))
documentVersio...tin1Char(' '))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
1-3
1274 err = QXmlStream::tr("Invalid XML version string.");
executed 1 time by 1 test: err = QXmlStream::tr("Invalid XML version string.");
Executed by:
  • tst_QXmlStream
1
1275 else-
1276 err = QXmlStream::tr("Unsupported XML version.");
executed 3 times by 1 test: err = QXmlStream::tr("Unsupported XML version.");
Executed by:
  • tst_QXmlStream
3
1277 }-
1278 int n = attributeStack.size();-
1279-
1280-
1281-
1282-
1283-
1284 bool hasStandalone = false;-
1285-
1286 for (int i = 0; err.isNull()
err.isNull()Description
TRUEevaluated 6760 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& i < n
i < nDescription
TRUEevaluated 3121 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 3639 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
; ++i) {
31-6760
1287 Attribute &attrib = attributeStack[i];-
1288 QStringRef prefix(symPrefix(attrib.key));-
1289 QStringRef key(symString(attrib.key));-
1290 QStringRef value(symString(attrib.value));-
1291-
1292 if (prefix.isEmpty()
prefix.isEmpty()Description
TRUEevaluated 3121 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEnever evaluated
&& key == QLatin1String("encoding")
key == QLatin1...ng("encoding")Description
TRUEevaluated 3088 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 33 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-3121
1293 const QString name(value.toString());-
1294 documentEncoding = value;-
1295-
1296 if(hasStandalone
hasStandaloneDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3087 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
)
1-3087
1297 err = QXmlStream::tr("The standalone pseudo attribute must appear after the encoding.");
executed 1 time by 1 test: err = QXmlStream::tr("The standalone pseudo attribute must appear after the encoding.");
Executed by:
  • tst_QXmlStream
1
1298 if(!QXmlUtils::isEncName(name)
!QXmlUtils::isEncName(name)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3072 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
)
16-3072
1299 err = QXmlStream::tr("%1 is an invalid encoding name.").arg(name);
executed 16 times by 1 test: err = QXmlStream::tr("%1 is an invalid encoding name.").arg(name);
Executed by:
  • tst_QXmlStream
16
1300 else {-
1301-
1302-
1303-
1304 QTextCodec *const newCodec = QTextCodec::codecForName(name.toLatin1());-
1305 if (!newCodec
!newCodecDescription
TRUEnever evaluated
FALSEevaluated 3072 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
)
0-3072
1306 err = QXmlStream::tr("Encoding %1 is unsupported").arg(name);
never executed: err = QXmlStream::tr("Encoding %1 is unsupported").arg(name);
0
1307 else if (newCodec != codec
newCodec != codecDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3068 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
&& !lockEncoding
!lockEncodingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) {
0-3068
1308 codec = newCodec;-
1309 delete decoder;-
1310 decoder = codec->makeDecoder();-
1311 decoder->toUnicode(&readBuffer, rawReadBuffer.data(), nbytesread);-
1312 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
4
1313-
1314 }
executed 3072 times by 25 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
3072
1315 } else if (prefix.isEmpty()
prefix.isEmpty()Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
&& key == QLatin1String("standalone")
key == QLatin1...("standalone")Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-33
1316 hasStandalone = true;-
1317 if (value == QLatin1String("yes")
value == QLatin1String("yes")Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
8-21
1318 standalone = true;
executed 21 times by 1 test: standalone = true;
Executed by:
  • tst_QXmlStream
21
1319 else if (value == QLatin1String("no")
value == QLatin1String("no")Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-6
1320 standalone = false;
executed 2 times by 1 test: standalone = false;
Executed by:
  • tst_QXmlStream
2
1321 else-
1322 err = QXmlStream::tr("Standalone accepts only yes or no.");
executed 6 times by 1 test: err = QXmlStream::tr("Standalone accepts only yes or no.");
Executed by:
  • tst_QXmlStream
6
1323 } else {-
1324 err = QXmlStream::tr("Invalid attribute in XML declaration.");-
1325 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
4
1326 }-
1327-
1328 if (!err.isNull()
!err.isNull()Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3639 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
)
31-3639
1329 raiseWellFormedError(err);
executed 31 times by 1 test: raiseWellFormedError(err);
Executed by:
  • tst_QXmlStream
31
1330 attributeStack.clear();-
1331}
executed 3670 times by 26 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
  • ...
3670
1332-
1333-
1334void QXmlStreamReaderPrivate::raiseError(QXmlStreamReader::Error error, const QString& message)-
1335{-
1336 this->error = error;-
1337 errorString = message;-
1338 if (errorString.isNull()
errorString.isNull()Description
TRUEevaluated 58733 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 1235 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QXmlStream
) {
1235-58733
1339 if (error == QXmlStreamReader::PrematureEndOfDocumentError
error == QXmlS...fDocumentErrorDescription
TRUEevaluated 58733 times by 2 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEnever evaluated
)
0-58733
1340 errorString = QXmlStream::tr("Premature end of document.");
executed 58733 times by 2 tests: errorString = QXmlStream::tr("Premature end of document.");
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
58733
1341 else if (error == QXmlStreamReader::CustomError
error == QXmlS...r::CustomErrorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1342 errorString = QXmlStream::tr("Invalid document.");
never executed: errorString = QXmlStream::tr("Invalid document.");
0
1343 }
executed 58733 times by 2 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
58733
1344-
1345 type = QXmlStreamReader::Invalid;-
1346}
executed 59968 times by 3 tests: end of block
Executed by:
  • tst_QDBusMetaObject
  • tst_QDBusXmlParser
  • tst_QXmlStream
59968
1347-
1348void QXmlStreamReaderPrivate::raiseWellFormedError(const QString &message)-
1349{-
1350 raiseError(QXmlStreamReader::NotWellFormedError, message);-
1351}
executed 1196 times by 2 tests: end of block
Executed by:
  • tst_QDBusMetaObject
  • tst_QXmlStream
1196
1352-
1353void QXmlStreamReaderPrivate::parseError()-
1354{-
1355-
1356 if (token == EOF_SYMBOL
token == EOF_SYMBOLDescription
TRUEevaluated 6305 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 613 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
613-6305
1357 raiseError(QXmlStreamReader::PrematureEndOfDocumentError);-
1358 return;
executed 6305 times by 1 test: return;
Executed by:
  • tst_QXmlStream
6305
1359 }-
1360 const int nmax = 4;-
1361 QString error_message;-
1362 int ers = state_stack[tos];-
1363 int nexpected = 0;-
1364 int expected[nmax];-
1365 if (token != ERROR
token != ERRORDescription
TRUEevaluated 606 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
7-606
1366 for (int tk = 0; tk < TERMINAL_COUNT
tk < TERMINAL_COUNTDescription
TRUEevaluated 34542 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 606 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++tk) {
606-34542
1367 int k = t_action(ers, tk);-
1368 if (k <= 0
k <= 0Description
TRUEevaluated 31219 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3323 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
3323-31219
1369 continue;
executed 31219 times by 1 test: continue;
Executed by:
  • tst_QXmlStream
31219
1370 if (spell[tk]
spell[tk]Description
TRUEevaluated 3227 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 96 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
96-3227
1371 if (nexpected < nmax
nexpected < nmaxDescription
TRUEevaluated 1391 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1836 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
1391-1836
1372 expected[nexpected++] = tk;
executed 1391 times by 1 test: expected[nexpected++] = tk;
Executed by:
  • tst_QXmlStream
1391
1373 }
executed 3227 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
3227
1374 }
executed 3323 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
3323
1375-
1376 error_message.clear ();-
1377 if (nexpected
nexpectedDescription
TRUEevaluated 606 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& nexpected < nmax
nexpected < nmaxDescription
TRUEevaluated 448 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
7-606
1378 bool first = true;-
1379-
1380 for (int s = 0; s < nexpected
s < nexpectedDescription
TRUEevaluated 759 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 448 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++s) {
448-759
1381 if (first
firstDescription
TRUEevaluated 448 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 311 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
311-448
1382 error_message += QXmlStream::tr ("Expected ");
executed 448 times by 1 test: error_message += QXmlStream::tr ("Expected ");
Executed by:
  • tst_QXmlStream
448
1383 else if (s == nexpected - 1
s == nexpected - 1Description
TRUEevaluated 222 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 89 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
89-222
1384 error_message += QLatin1String (nexpected > 2 ? ", or " : " or ");
executed 222 times by 1 test: error_message += QLatin1String (nexpected > 2 ? ", or " : " or ");
Executed by:
  • tst_QXmlStream
222
1385 else-
1386 error_message += QLatin1String (", ");
executed 89 times by 1 test: error_message += QLatin1String (", ");
Executed by:
  • tst_QXmlStream
89
1387-
1388 first = false;-
1389 error_message += QLatin1String("\'");-
1390 error_message += QLatin1String (spell [expected[s]]);-
1391 error_message += QLatin1String("\'");-
1392 }
executed 759 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
759
1393 error_message += QXmlStream::tr(", but got \'");-
1394 error_message += QLatin1String(spell [token]);-
1395 error_message += QLatin1String("\'");-
1396 }
executed 448 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
else {
448
1397 error_message += QXmlStream::tr("Unexpected \'");-
1398 error_message += QLatin1String(spell [token]);-
1399 error_message += QLatin1String("\'");-
1400 }
executed 165 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
165
1401 error_message += QLatin1Char('.');-
1402-
1403 raiseWellFormedError(error_message);-
1404}
executed 613 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
613
1405-
1406void QXmlStreamReaderPrivate::resume(int rule) {-
1407 resumeReduction = rule;-
1408 if (error == QXmlStreamReader::NoError
error == QXmlS...eader::NoErrorDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 44571 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
26-44571
1409 raiseError(QXmlStreamReader::PrematureEndOfDocumentError);
executed 26 times by 1 test: raiseError(QXmlStreamReader::PrematureEndOfDocumentError);
Executed by:
  • tst_QXmlStream
26
1410}
executed 44597 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
44597
1411-
1412-
1413-
1414-
1415-
1416qint64 QXmlStreamReader::lineNumber() const-
1417{-
1418 const QXmlStreamReaderPrivate * const d = d_func();-
1419 return
executed 584 times by 1 test: return d->lineNumber + 1;
Executed by:
  • tst_Selftests
d->lineNumber + 1;
executed 584 times by 1 test: return d->lineNumber + 1;
Executed by:
  • tst_Selftests
584
1420}-
1421-
1422-
1423-
1424-
1425-
1426qint64 QXmlStreamReader::columnNumber() const-
1427{-
1428 const QXmlStreamReaderPrivate * const d = d_func();-
1429 return
executed 584 times by 1 test: return d->characterOffset - d->lastLineStart + d->readBufferPos;
Executed by:
  • tst_Selftests
d->characterOffset - d->lastLineStart + d->readBufferPos;
executed 584 times by 1 test: return d->characterOffset - d->lastLineStart + d->readBufferPos;
Executed by:
  • tst_Selftests
584
1430}-
1431-
1432-
1433-
1434-
1435-
1436qint64 QXmlStreamReader::characterOffset() const-
1437{-
1438 const QXmlStreamReaderPrivate * const d = d_func();-
1439 return
never executed: return d->characterOffset + d->readBufferPos;
d->characterOffset + d->readBufferPos;
never executed: return d->characterOffset + d->readBufferPos;
0
1440}-
1441-
1442-
1443-
1444-
1445-
1446QStringRef QXmlStreamReader::text() const-
1447{-
1448 const QXmlStreamReaderPrivate * const d = d_func();-
1449 return
executed 3556 times by 1 test: return d->text;
Executed by:
  • tst_QXmlStream
d->text;
executed 3556 times by 1 test: return d->text;
Executed by:
  • tst_QXmlStream
3556
1450}-
1451QXmlStreamNotationDeclarations QXmlStreamReader::notationDeclarations() const-
1452{-
1453 const QXmlStreamReaderPrivate * const d = d_func();-
1454 if (d->notationDeclarations.size()
d->notationDeclarations.size()Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 2545 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
47-2545
1455 const_cast<
executed 47 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd();
Executed by:
  • tst_QXmlStream
QXmlStreamReaderPrivate *>(d)->resolveDtd();
executed 47 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd();
Executed by:
  • tst_QXmlStream
47
1456 return
executed 2592 times by 1 test: return d->publicNotationDeclarations;
Executed by:
  • tst_QXmlStream
d->publicNotationDeclarations;
executed 2592 times by 1 test: return d->publicNotationDeclarations;
Executed by:
  • tst_QXmlStream
2592
1457}-
1458QXmlStreamEntityDeclarations QXmlStreamReader::entityDeclarations() const-
1459{-
1460 const QXmlStreamReaderPrivate * const d = d_func();-
1461 if (d->entityDeclarations.size()
d->entityDeclarations.size()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1903 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
5-1903
1462 const_cast<
executed 5 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd();
Executed by:
  • tst_QXmlStream
QXmlStreamReaderPrivate *>(d)->resolveDtd();
executed 5 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd();
Executed by:
  • tst_QXmlStream
5
1463 return
executed 1908 times by 1 test: return d->publicEntityDeclarations;
Executed by:
  • tst_QXmlStream
d->publicEntityDeclarations;
executed 1908 times by 1 test: return d->publicEntityDeclarations;
Executed by:
  • tst_QXmlStream
1908
1464}-
1465QStringRef QXmlStreamReader::dtdName() const-
1466{-
1467 const QXmlStreamReaderPrivate * const d = d_func();-
1468 if (d->type == QXmlStreamReader::DTD
d->type == QXm...eamReader::DTDDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1878 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
50-1878
1469 return
executed 50 times by 1 test: return d->dtdName;
Executed by:
  • tst_QXmlStream
d->dtdName;
executed 50 times by 1 test: return d->dtdName;
Executed by:
  • tst_QXmlStream
50
1470 return
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
1878
1471}-
1472QStringRef QXmlStreamReader::dtdPublicId() const-
1473{-
1474 const QXmlStreamReaderPrivate * const d = d_func();-
1475 if (d->type == QXmlStreamReader::DTD
d->type == QXm...eamReader::DTDDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1878 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
27-1878
1476 return
executed 27 times by 1 test: return d->dtdPublicId;
Executed by:
  • tst_QXmlStream
d->dtdPublicId;
executed 27 times by 1 test: return d->dtdPublicId;
Executed by:
  • tst_QXmlStream
27
1477 return
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
1878
1478}-
1479QStringRef QXmlStreamReader::dtdSystemId() const-
1480{-
1481 const QXmlStreamReaderPrivate * const d = d_func();-
1482 if (d->type == QXmlStreamReader::DTD
d->type == QXm...eamReader::DTDDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1878 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
27-1878
1483 return
executed 27 times by 1 test: return d->dtdSystemId;
Executed by:
  • tst_QXmlStream
d->dtdSystemId;
executed 27 times by 1 test: return d->dtdSystemId;
Executed by:
  • tst_QXmlStream
27
1484 return
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 1878 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
1878
1485}-
1486QXmlStreamNamespaceDeclarations QXmlStreamReader::namespaceDeclarations() const-
1487{-
1488 const QXmlStreamReaderPrivate * const d = d_func();-
1489 if (d->publicNamespaceDeclarations.isEmpty()
d->publicNames...ions.isEmpty()Description
TRUEevaluated 1907 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& d->type == StartElement
d->type == StartElementDescription
TRUEevaluated 446 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1461 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
38-1907
1490 const_cast<
executed 446 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces();
Executed by:
  • tst_QXmlStream
QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces();
executed 446 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces();
Executed by:
  • tst_QXmlStream
446
1491 return
executed 1945 times by 1 test: return d->publicNamespaceDeclarations;
Executed by:
  • tst_QXmlStream
d->publicNamespaceDeclarations;
executed 1945 times by 1 test: return d->publicNamespaceDeclarations;
Executed by:
  • tst_QXmlStream
1945
1492}-
1493void QXmlStreamReader::addExtraNamespaceDeclaration(const QXmlStreamNamespaceDeclaration &extraNamespaceDeclaration)-
1494{-
1495 QXmlStreamReaderPrivate * const d = d_func();-
1496 QXmlStreamReaderPrivate::NamespaceDeclaration &namespaceDeclaration = d->namespaceDeclarations.push();-
1497 namespaceDeclaration.prefix = d->addToStringStorage(extraNamespaceDeclaration.prefix());-
1498 namespaceDeclaration.namespaceUri = d->addToStringStorage(extraNamespaceDeclaration.namespaceUri());-
1499}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
1500void QXmlStreamReader::addExtraNamespaceDeclarations(const QXmlStreamNamespaceDeclarations &extraNamespaceDeclarations)-
1501{-
1502 for (int i = 0; i < extraNamespaceDeclarations.size()
i < extraNames...rations.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
1503 addExtraNamespaceDeclaration(extraNamespaceDeclarations.at(i));
never executed: addExtraNamespaceDeclaration(extraNamespaceDeclarations.at(i));
0
1504}
never executed: end of block
0
1505QString QXmlStreamReader::readElementText(ReadElementTextBehaviour behaviour)-
1506{-
1507 QXmlStreamReaderPrivate * const d = d_func();-
1508 if (isStartElement()
isStartElement()Description
TRUEevaluated 249021 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
FALSEnever evaluated
) {
0-249021
1509 QString result;-
1510 for(;;) {-
1511 switch (readNext()) {-
1512 case
executed 249024 times by 23 tests: case Characters:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
Characters:
executed 249024 times by 23 tests: case Characters:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
249024
1513 case
never executed: case EntityReference:
EntityReference:
never executed: case EntityReference:
0
1514 result.insert(result.size(), d->text.unicode(), d->text.size());-
1515 break;
executed 249024 times by 23 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
249024
1516 case
executed 249016 times by 23 tests: case EndElement:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
EndElement:
executed 249016 times by 23 tests: case EndElement:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
249016
1517 return
executed 249016 times by 23 tests: return result;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
result;
executed 249016 times by 23 tests: return result;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_QXmlStream
  • tst_languageChange
249016
1518 case
never executed: case ProcessingInstruction:
ProcessingInstruction:
never executed: case ProcessingInstruction:
0
1519 case
executed 2 times by 1 test: case Comment:
Executed by:
  • tst_QXmlStream
Comment:
executed 2 times by 1 test: case Comment:
Executed by:
  • tst_QXmlStream
2
1520 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QXmlStream
2
1521 case
executed 6 times by 1 test: case StartElement:
Executed by:
  • tst_QXmlStream
StartElement:
executed 6 times by 1 test: case StartElement:
Executed by:
  • tst_QXmlStream
6
1522 if (behaviour == SkipChildElements
behaviour == SkipChildElementsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2-4
1523 skipCurrentElement();-
1524 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QXmlStream
2
1525 } else if (behaviour == IncludeChildElements
behaviour == I...eChildElementsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2
1526 result += readElementText(behaviour);-
1527 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QXmlStream
2
1528 }-
1529-
1530 default
executed 5 times by 1 test: default:
Executed by:
  • tst_QXmlStream
:
executed 5 times by 1 test: default:
Executed by:
  • tst_QXmlStream
code before this statement executed 2 times by 1 test: default:
Executed by:
  • tst_QXmlStream
2-5
1531 if (d->error || behaviour == ErrorOnUnexpectedElement
behaviour == E...xpectedElementDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) {
0-2
1532 if (!d->error
!d->errorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-3
1533 d->raiseError(UnexpectedElementError, QXmlStream::tr("Expected character data."));
executed 2 times by 1 test: d->raiseError(UnexpectedElementError, QXmlStream::tr("Expected character data."));
Executed by:
  • tst_QXmlStream
2
1534 return
executed 5 times by 1 test: return result;
Executed by:
  • tst_QXmlStream
result;
executed 5 times by 1 test: return result;
Executed by:
  • tst_QXmlStream
5
1535 }-
1536 }
never executed: end of block
0
1537 }-
1538 }
never executed: end of block
0
1539 return
never executed: return QString();
QString();
never executed: return QString();
0
1540}-
1541-
1542-
1543-
1544-
1545-
1546void QXmlStreamReader::raiseError(const QString& message)-
1547{-
1548 QXmlStreamReaderPrivate * const d = d_func();-
1549 d->raiseError(CustomError, message);-
1550}
never executed: end of block
0
1551-
1552-
1553-
1554-
1555-
1556-
1557QString QXmlStreamReader::errorString() const-
1558{-
1559 const QXmlStreamReaderPrivate * const d = d_func();-
1560 if (d->type == QXmlStreamReader::Invalid
d->type == QXm...eader::InvalidDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 586 times by 2 tests
Evaluated by:
  • tst_QXmlStream
  • tst_Selftests
)
39-586
1561 return
executed 39 times by 1 test: return d->errorString;
Executed by:
  • tst_QXmlStream
d->errorString;
executed 39 times by 1 test: return d->errorString;
Executed by:
  • tst_QXmlStream
39
1562 return
executed 586 times by 2 tests: return QString();
Executed by:
  • tst_QXmlStream
  • tst_Selftests
QString();
executed 586 times by 2 tests: return QString();
Executed by:
  • tst_QXmlStream
  • tst_Selftests
586
1563}-
1564-
1565-
1566-
1567-
1568-
1569QXmlStreamReader::Error QXmlStreamReader::error() const-
1570{-
1571 const QXmlStreamReaderPrivate * const d = d_func();-
1572 if (d->type == QXmlStreamReader::Invalid
d->type == QXm...eader::InvalidDescription
TRUEevaluated 59946 times by 3 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QDBusXmlParser
  • tst_QXmlStream
FALSEevaluated 2921 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
)
2921-59946
1573 return
executed 59946 times by 3 tests: return d->error;
Executed by:
  • tst_QDBusMetaObject
  • tst_QDBusXmlParser
  • tst_QXmlStream
d->error;
executed 59946 times by 3 tests: return d->error;
Executed by:
  • tst_QDBusMetaObject
  • tst_QDBusXmlParser
  • tst_QXmlStream
59946
1574 return
executed 2921 times by 15 tests: return NoError;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
NoError;
executed 2921 times by 15 tests: return NoError;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
2921
1575}-
1576-
1577-
1578-
1579-
1580QStringRef QXmlStreamReader::processingInstructionTarget() const-
1581{-
1582 const QXmlStreamReaderPrivate * const d = d_func();-
1583 return
executed 1988 times by 1 test: return d->processingInstructionTarget;
Executed by:
  • tst_QXmlStream
d->processingInstructionTarget;
executed 1988 times by 1 test: return d->processingInstructionTarget;
Executed by:
  • tst_QXmlStream
1988
1584}-
1585-
1586-
1587-
1588-
1589QStringRef QXmlStreamReader::processingInstructionData() const-
1590{-
1591 const QXmlStreamReaderPrivate * const d = d_func();-
1592 return
executed 2024 times by 1 test: return d->processingInstructionData;
Executed by:
  • tst_QXmlStream
d->processingInstructionData;
executed 2024 times by 1 test: return d->processingInstructionData;
Executed by:
  • tst_QXmlStream
2024
1593}-
1594QStringRef QXmlStreamReader::name() const-
1595{-
1596 const QXmlStreamReaderPrivate * const d = d_func();-
1597 return
executed 311578 times by 35 tests: return d->name;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
d->name;
executed 311578 times by 35 tests: return d->name;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
311578
1598}-
1599-
1600-
1601-
1602-
1603-
1604-
1605QStringRef QXmlStreamReader::namespaceUri() const-
1606{-
1607 const QXmlStreamReaderPrivate * const d = d_func();-
1608 return
executed 3754 times by 1 test: return d->namespaceUri;
Executed by:
  • tst_QXmlStream
d->namespaceUri;
executed 3754 times by 1 test: return d->namespaceUri;
Executed by:
  • tst_QXmlStream
3754
1609}-
1610QStringRef QXmlStreamReader::qualifiedName() const-
1611{-
1612 const QXmlStreamReaderPrivate * const d = d_func();-
1613 return
executed 3055 times by 1 test: return d->qualifiedName;
Executed by:
  • tst_QXmlStream
d->qualifiedName;
executed 3055 times by 1 test: return d->qualifiedName;
Executed by:
  • tst_QXmlStream
3055
1614}-
1615QStringRef QXmlStreamReader::prefix() const-
1616{-
1617 const QXmlStreamReaderPrivate * const d = d_func();-
1618 return
executed 1943 times by 2 tests: return d->prefix;
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
d->prefix;
executed 1943 times by 2 tests: return d->prefix;
Executed by:
  • tst_QDBusXmlParser
  • tst_QXmlStream
1943
1619}-
1620-
1621-
1622-
1623-
1624QXmlStreamAttributes QXmlStreamReader::attributes() const-
1625{-
1626 const QXmlStreamReaderPrivate * const d = d_func();-
1627 return
executed 282020 times by 35 tests: return d->attributes;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
d->attributes;
executed 282020 times by 35 tests: return d->attributes;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
282020
1628}-
1629QXmlStreamAttribute::QXmlStreamAttribute()-
1630{-
1631 m_isDefault = false;-
1632}
executed 386672 times by 36 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
386672
1633-
1634-
1635-
1636-
1637QXmlStreamAttribute::~QXmlStreamAttribute()-
1638{-
1639}-
1640-
1641-
1642-
1643-
1644QXmlStreamAttribute::QXmlStreamAttribute(const QString &namespaceUri, const QString &name, const QString &value)-
1645{-
1646 m_namespaceUri = QXmlStreamStringRef(QStringRef(&namespaceUri));-
1647 m_name = m_qualifiedName = QXmlStreamStringRef(QStringRef(&name));-
1648 m_value = QXmlStreamStringRef(QStringRef(&value));-
1649 m_namespaceUri = QXmlStreamStringRef(QStringRef(&namespaceUri));-
1650}
never executed: end of block
0
1651-
1652-
1653-
1654-
1655QXmlStreamAttribute::QXmlStreamAttribute(const QString &qualifiedName, const QString &value)-
1656{-
1657 int colon = qualifiedName.indexOf(QLatin1Char(':'));-
1658 m_name = QXmlStreamStringRef(QStringRef(&qualifiedName,-
1659 colon + 1,-
1660 qualifiedName.size() - (colon + 1)));-
1661 m_qualifiedName = QXmlStreamStringRef(QStringRef(&qualifiedName));-
1662 m_value = QXmlStreamStringRef(QStringRef(&value));-
1663}
never executed: end of block
0
1664QXmlStreamAttribute::QXmlStreamAttribute(const QXmlStreamAttribute &other)-
1665{-
1666 *this = other;-
1667}
executed 2543 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2543
1668-
1669-
1670-
1671-
1672QXmlStreamAttribute& QXmlStreamAttribute::operator=(const QXmlStreamAttribute &other)-
1673{-
1674 m_name = other.m_name;-
1675 m_namespaceUri = other.m_namespaceUri;-
1676 m_qualifiedName = other.m_qualifiedName;-
1677 m_value = other.m_value;-
1678 m_isDefault = other.m_isDefault;-
1679 return
executed 2552 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
*this;
executed 2552 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
2552
1680}-
1681QXmlStreamNotationDeclaration::QXmlStreamNotationDeclaration()-
1682{-
1683}-
1684-
1685-
1686-
1687QXmlStreamNotationDeclaration::QXmlStreamNotationDeclaration(const QXmlStreamNotationDeclaration &other)-
1688{-
1689 *this = other;-
1690}
executed 304 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
304
1691-
1692-
1693-
1694-
1695QXmlStreamNotationDeclaration& QXmlStreamNotationDeclaration::operator=(const QXmlStreamNotationDeclaration &other)-
1696{-
1697 m_name = other.m_name;-
1698 m_systemId = other.m_systemId;-
1699 m_publicId = other.m_publicId;-
1700 return
executed 304 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
*this;
executed 304 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
304
1701}-
1702-
1703-
1704-
1705-
1706QXmlStreamNotationDeclaration::~QXmlStreamNotationDeclaration()-
1707{-
1708}-
1709QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()-
1710{-
1711}-
1712-
1713-
1714-
1715-
1716-
1717-
1718QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)-
1719{-
1720 m_prefix = prefix;-
1721 m_namespaceUri = namespaceUri;-
1722}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
1723-
1724-
1725-
1726-
1727QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration &other)-
1728{-
1729 *this = other;-
1730}
executed 54 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
54
1731-
1732-
1733-
1734-
1735QXmlStreamNamespaceDeclaration& QXmlStreamNamespaceDeclaration::operator=(const QXmlStreamNamespaceDeclaration &other)-
1736{-
1737 m_prefix = other.m_prefix;-
1738 m_namespaceUri = other.m_namespaceUri;-
1739 return
executed 54 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
*this;
executed 54 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
54
1740}-
1741-
1742-
1743-
1744QXmlStreamNamespaceDeclaration::~QXmlStreamNamespaceDeclaration()-
1745{-
1746}-
1747QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration()-
1748{-
1749}-
1750-
1751-
1752-
1753-
1754QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration(const QXmlStreamEntityDeclaration &other)-
1755{-
1756 *this = other;-
1757}
executed 10 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
10
1758-
1759-
1760-
1761-
1762QXmlStreamEntityDeclaration& QXmlStreamEntityDeclaration::operator=(const QXmlStreamEntityDeclaration &other)-
1763{-
1764 m_name = other.m_name;-
1765 m_notationName = other.m_notationName;-
1766 m_systemId = other.m_systemId;-
1767 m_publicId = other.m_publicId;-
1768 m_value = other.m_value;-
1769 return
executed 10 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
*this;
executed 10 times by 1 test: return *this;
Executed by:
  • tst_QXmlStream
10
1770}-
1771-
1772-
1773-
1774-
1775QXmlStreamEntityDeclaration::~QXmlStreamEntityDeclaration()-
1776{-
1777}-
1778QStringRef QXmlStreamAttributes::value(const QString &namespaceUri, const QString &name) const-
1779{-
1780 for (int i = 0; i < size()
i < size()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
6-28
1781 const QXmlStreamAttribute &attribute = at(i);-
1782 if (attribute.name() == name
attribute.name() == nameDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& attribute.namespaceUri() == namespaceUri
attribute.name...= namespaceUriDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-21
1783 return
executed 5 times by 1 test: return attribute.value();
Executed by:
  • tst_QXmlStream
attribute.value();
executed 5 times by 1 test: return attribute.value();
Executed by:
  • tst_QXmlStream
5
1784 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
23
1785 return
executed 6 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 6 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
6
1786}-
1787-
1788-
1789-
1790-
1791-
1792-
1793QStringRef QXmlStreamAttributes::value(const QString &namespaceUri, QLatin1String name) const-
1794{-
1795 for (int i = 0; i < size()
i < size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1796 const QXmlStreamAttribute &attribute = at(i);-
1797 if (attribute.name() == name
attribute.name() == nameDescription
TRUEnever evaluated
FALSEnever evaluated
&& attribute.namespaceUri() == namespaceUri
attribute.name...= namespaceUriDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1798 return
never executed: return attribute.value();
attribute.value();
never executed: return attribute.value();
0
1799 }
never executed: end of block
0
1800 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
1801}-
1802-
1803-
1804-
1805-
1806-
1807-
1808QStringRef QXmlStreamAttributes::value(QLatin1String namespaceUri, QLatin1String name) const-
1809{-
1810 for (int i = 0; i < size()
i < size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1811 const QXmlStreamAttribute &attribute = at(i);-
1812 if (attribute.name() == name
attribute.name() == nameDescription
TRUEnever evaluated
FALSEnever evaluated
&& attribute.namespaceUri() == namespaceUri
attribute.name...= namespaceUriDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1813 return
never executed: return attribute.value();
attribute.value();
never executed: return attribute.value();
0
1814 }
never executed: end of block
0
1815 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
1816}-
1817QStringRef QXmlStreamAttributes::value(const QString &qualifiedName) const-
1818{-
1819 for (int i = 0; i < size()
i < size()Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
3-19
1820 const QXmlStreamAttribute &attribute = at(i);-
1821 if (attribute.qualifiedName() == qualifiedName
attribute.qual... qualifiedNameDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
5-14
1822 return
executed 5 times by 1 test: return attribute.value();
Executed by:
  • tst_QXmlStream
attribute.value();
executed 5 times by 1 test: return attribute.value();
Executed by:
  • tst_QXmlStream
5
1823 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
14
1824 return
executed 3 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 3 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
3
1825}-
1826QStringRef QXmlStreamAttributes::value(QLatin1String qualifiedName) const-
1827{-
1828 for (int i = 0; i < size()
i < size()Description
TRUEevaluated 340807 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 19261 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
; ++i) {
19261-340807
1829 const QXmlStreamAttribute &attribute = at(i);-
1830 if (attribute.qualifiedName() == qualifiedName
attribute.qual... qualifiedNameDescription
TRUEevaluated 289780 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 51027 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
)
51027-289780
1831 return
executed 289780 times by 35 tests: return attribute.value();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
attribute.value();
executed 289780 times by 35 tests: return attribute.value();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
289780
1832 }
executed 51027 times by 14 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
51027
1833 return
executed 19261 times by 35 tests: return QStringRef();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
QStringRef();
executed 19261 times by 35 tests: return QStringRef();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
19261
1834}-
1835-
1836-
1837-
1838-
1839-
1840void QXmlStreamAttributes::append(const QString &namespaceUri, const QString &name, const QString &value)-
1841{-
1842 append(QXmlStreamAttribute(namespaceUri, name, value));-
1843}
never executed: end of block
0
1844-
1845-
1846-
1847-
1848-
1849void QXmlStreamAttributes::append(const QString &qualifiedName, const QString &value)-
1850{-
1851 append(QXmlStreamAttribute(qualifiedName, value));-
1852}
never executed: end of block
0
1853bool QXmlStreamReader::isWhitespace() const-
1854{-
1855 const QXmlStreamReaderPrivate * const d = d_func();-
1856 return
executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isWhitespace;
Executed by:
  • tst_QXmlStream
d->type == QXmlStreamReader::Characters && d->isWhitespace;
executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isWhitespace;
Executed by:
  • tst_QXmlStream
1903
1857}-
1858-
1859-
1860-
1861-
1862-
1863-
1864bool QXmlStreamReader::isCDATA() const-
1865{-
1866 const QXmlStreamReaderPrivate * const d = d_func();-
1867 return
executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isCDATA;
Executed by:
  • tst_QXmlStream
d->type == QXmlStreamReader::Characters && d->isCDATA;
executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isCDATA;
Executed by:
  • tst_QXmlStream
1903
1868}-
1869bool QXmlStreamReader::isStandaloneDocument() const-
1870{-
1871 const QXmlStreamReaderPrivate * const d = d_func();-
1872 return
executed 77 times by 1 test: return d->standalone;
Executed by:
  • tst_QXmlStream
d->standalone;
executed 77 times by 1 test: return d->standalone;
Executed by:
  • tst_QXmlStream
77
1873}-
1874QStringRef QXmlStreamReader::documentVersion() const-
1875{-
1876 const QXmlStreamReaderPrivate * const d = d_func();-
1877 if (d->type == QXmlStreamReader::StartDocument
d->type == QXm...:StartDocumentDescription
TRUEevaluated 133 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1826 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
133-1826
1878 return
executed 133 times by 1 test: return d->documentVersion;
Executed by:
  • tst_QXmlStream
d->documentVersion;
executed 133 times by 1 test: return d->documentVersion;
Executed by:
  • tst_QXmlStream
133
1879 return
executed 1826 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 1826 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
1826
1880}-
1881QStringRef QXmlStreamReader::documentEncoding() const-
1882{-
1883 const QXmlStreamReaderPrivate * const d = d_func();-
1884 if (d->type == QXmlStreamReader::StartDocument
d->type == QXm...:StartDocumentDescription
TRUEevaluated 83 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1826 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
83-1826
1885 return
executed 83 times by 1 test: return d->documentEncoding;
Executed by:
  • tst_QXmlStream
d->documentEncoding;
executed 83 times by 1 test: return d->documentEncoding;
Executed by:
  • tst_QXmlStream
83
1886 return
executed 1826 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
QStringRef();
executed 1826 times by 1 test: return QStringRef();
Executed by:
  • tst_QXmlStream
1826
1887}-
1888class QXmlStreamWriterPrivate : public QXmlStreamPrivateTagStack {-
1889 QXmlStreamWriter *q_ptr;-
1890 inline QXmlStreamWriter* q_func() { return static_cast<QXmlStreamWriter *>(q_ptr); } inline const QXmlStreamWriter* q_func() const { return static_cast<const QXmlStreamWriter *>(q_ptr); } friend class QXmlStreamWriter;-
1891public:-
1892 QXmlStreamWriterPrivate(QXmlStreamWriter *q);-
1893 ~QXmlStreamWriterPrivate() {-
1894 if (deleteDevice
deleteDeviceDescription
TRUEevaluated 710 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
34-710
1895 delete device;
executed 710 times by 1 test: delete device;
Executed by:
  • tst_QXmlStream
710
1896-
1897 delete encoder;-
1898-
1899 }
executed 744 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
744
1900-
1901 void write(const QStringRef &);-
1902 void write(const QString &);-
1903 void writeEscaped(const QString &, bool escapeWhitespace = false);-
1904 void write(const char *s, int len);-
1905 template <int N> void write(const char (&s)[N]) { write(s, N - 1); }
executed 9934 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
9934
1906 bool finishStartElement(bool contents = true);-
1907 void writeStartElement(const QString &namespaceUri, const QString &name);-
1908 QIODevice *device;-
1909 QString *stringDevice;-
1910 uint deleteDevice :1;-
1911 uint inStartElement :1;-
1912 uint inEmptyElement :1;-
1913 uint lastWasStartElement :1;-
1914 uint wroteSomething :1;-
1915 uint hasError :1;-
1916 uint autoFormatting :1;-
1917 uint isCodecASCIICompatible :1;-
1918 QByteArray autoFormattingIndent;-
1919 NamespaceDeclaration emptyNamespace;-
1920 int lastNamespaceDeclaration;-
1921-
1922-
1923 QTextCodec *codec;-
1924 QTextEncoder *encoder;-
1925-
1926 void checkIfASCIICompatibleCodec();-
1927-
1928 NamespaceDeclaration &findNamespace(const QString &namespaceUri, bool writeDeclaration = false, bool noDefault = false);-
1929 void writeNamespaceDeclaration(const NamespaceDeclaration &namespaceDeclaration);-
1930-
1931 int namespacePrefixCount;-
1932-
1933 void indent(int level);-
1934};-
1935-
1936-
1937QXmlStreamWriterPrivate::QXmlStreamWriterPrivate(QXmlStreamWriter *q)-
1938 :autoFormattingIndent(4, ' ')-
1939{-
1940 q_ptr = q;-
1941 device = 0;-
1942 stringDevice = 0;-
1943 deleteDevice = false;-
1944-
1945 codec = QTextCodec::codecForMib(106);-
1946 encoder = codec->makeEncoder(QTextCodec::IgnoreHeader);-
1947-
1948 checkIfASCIICompatibleCodec();-
1949 inStartElement = inEmptyElement = false;-
1950 wroteSomething = false;-
1951 hasError = false;-
1952 lastWasStartElement = false;-
1953 lastNamespaceDeclaration = 1;-
1954 autoFormatting = false;-
1955 namespacePrefixCount = 0;-
1956}
executed 744 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
744
1957-
1958void QXmlStreamWriterPrivate::checkIfASCIICompatibleCodec()-
1959{-
1960-
1961 ((!(encoder)) ? qt_assert("encoder",__FILE__,3031) : qt_noop());-
1962-
1963 QChar letterA = QLatin1Char('a');-
1964 const QByteArray bytesA = encoder->fromUnicode(&letterA, 1);-
1965 const bool isCodecASCIICompatibleA = (
(bytesA.count() == 1)Description
TRUEevaluated 757 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
bytesA.count() == 1)
(bytesA.count() == 1)Description
TRUEevaluated 757 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
&& (
(bytesA[0] == 0x61)Description
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
bytesA[0] == 0x61)
(bytesA[0] == 0x61)Description
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
;
1-757
1966 QChar letterLess = QLatin1Char('<');-
1967 const QByteArray bytesLess = encoder->fromUnicode(&letterLess, 1);-
1968 const bool isCodecASCIICompatibleLess = (
(bytesLess.count() == 1)Description
TRUEevaluated 757 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
bytesLess.count() == 1)
(bytesLess.count() == 1)Description
TRUEevaluated 757 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
&& (
(bytesLess[0] == 0x3C)Description
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
bytesLess[0] == 0x3C)
(bytesLess[0] == 0x3C)Description
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
;
1-757
1969 isCodecASCIICompatible = isCodecASCIICompatibleA
isCodecASCIICompatibleADescription
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& isCodecASCIICompatibleLess
isCodecASCIICompatibleLessDescription
TRUEevaluated 756 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEnever evaluated
;
0-756
1970-
1971-
1972-
1973}
executed 758 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
758
1974-
1975void QXmlStreamWriterPrivate::write(const QStringRef &s)-
1976{-
1977 if (device
deviceDescription
TRUEevaluated 3151 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
8-3151
1978 if (hasError
hasErrorDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3147 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
4-3147
1979 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_QXmlStream
4
1980-
1981-
1982-
1983 QByteArray bytes = encoder->fromUnicode(s.constData(), s.size());-
1984-
1985 if (device->write(bytes) != bytes.size()
device->write(...= bytes.size()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3146 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
1-3146
1986 hasError = true;
executed 1 time by 1 test: hasError = true;
Executed by:
  • tst_QXmlStream
1
1987 }
executed 3147 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
3147
1988 else if (stringDevice
stringDeviceDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-8
1989 s.appendTo(stringDevice);
executed 8 times by 1 test: s.appendTo(stringDevice);
Executed by:
  • tst_QXmlStream
8
1990 else-
1991 QMessageLogger(__FILE__, 3061, __PRETTY_FUNCTION__).warning("QXmlStreamWriter: No device");
never executed: QMessageLogger(__FILE__, 3061, __PRETTY_FUNCTION__).warning("QXmlStreamWriter: No device");
0
1992}-
1993-
1994void QXmlStreamWriterPrivate::write(const QString &s)-
1995{-
1996 if (device
deviceDescription
TRUEevaluated 5148 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
72-5148
1997 if (hasError
hasErrorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5147 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
1-5147
1998 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QXmlStream
1
1999-
2000-
2001-
2002 QByteArray bytes = encoder->fromUnicode(s);-
2003-
2004 if (device->write(bytes) != bytes.size()
device->write(...= bytes.size()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 5146 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
1-5146
2005 hasError = true;
executed 1 time by 1 test: hasError = true;
Executed by:
  • tst_QXmlStream
1
2006 }
executed 5147 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
5147
2007 else if (stringDevice
stringDeviceDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-72
2008 stringDevice->append(s);
executed 72 times by 1 test: stringDevice->append(s);
Executed by:
  • tst_QXmlStream
72
2009 else-
2010 QMessageLogger(__FILE__, 3080, __PRETTY_FUNCTION__).warning("QXmlStreamWriter: No device");
never executed: QMessageLogger(__FILE__, 3080, __PRETTY_FUNCTION__).warning("QXmlStreamWriter: No device");
0
2011}-
2012-
2013void QXmlStreamWriterPrivate::writeEscaped(const QString &s, bool escapeWhitespace)-
2014{-
2015 QString escaped;-
2016 escaped.reserve(s.size());-
2017 for ( int i = 0; i < s.size()
i < s.size()Description
TRUEevaluated 20852 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 3437 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
; ++i ) {
3437-20852
2018 QChar c = s.at(i);-
2019 if (c.unicode() == '<'
c.unicode() == '<'Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 20802 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
50-20802
2020 escaped.append(QLatin1String("&lt;"));
executed 50 times by 1 test: escaped.append(QLatin1String("&lt;"));
Executed by:
  • tst_QXmlStream
50
2021 else if (c.unicode() == '>'
c.unicode() == '>'Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 20750 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
52-20750
2022 escaped.append(QLatin1String("&gt;"));
executed 52 times by 1 test: escaped.append(QLatin1String("&gt;"));
Executed by:
  • tst_QXmlStream
52
2023 else if (c.unicode() == '&'
c.unicode() == '&'Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 20721 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
29-20721
2024 escaped.append(QLatin1String("&amp;"));
executed 29 times by 1 test: escaped.append(QLatin1String("&amp;"));
Executed by:
  • tst_QXmlStream
29
2025 else if (c.unicode() == '\"'
c.unicode() == '\"'Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 20700 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
21-20700
2026 escaped.append(QLatin1String("&quot;"));
executed 21 times by 1 test: escaped.append(QLatin1String("&quot;"));
Executed by:
  • tst_QXmlStream
21
2027 else if (escapeWhitespace
escapeWhitespaceDescription
TRUEevaluated 4056 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 16644 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
&& c.isSpace()
c.isSpace()Description
TRUEevaluated 173 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 3883 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
173-16644
2028 if (c.unicode() == '\n'
c.unicode() == '\n'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 171 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-171
2029 escaped.append(QLatin1String("&#10;"));
executed 2 times by 1 test: escaped.append(QLatin1String("&#10;"));
Executed by:
  • tst_QXmlStream
2
2030 else if (c.unicode() == '\r'
c.unicode() == '\r'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 169 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
2-169
2031 escaped.append(QLatin1String("&#13;"));
executed 2 times by 1 test: escaped.append(QLatin1String("&#13;"));
Executed by:
  • tst_QXmlStream
2
2032 else if (c.unicode() == '\t'
c.unicode() == '\t'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 166 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
3-166
2033 escaped.append(QLatin1String("&#9;"));
executed 3 times by 1 test: escaped.append(QLatin1String("&#9;"));
Executed by:
  • tst_QXmlStream
3
2034 else-
2035 escaped += c;
executed 166 times by 1 test: escaped += c;
Executed by:
  • tst_QXmlStream
166
2036 } else {-
2037 escaped += QChar(c);-
2038 }
executed 20527 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
20527
2039 }-
2040 write(escaped);-
2041}
executed 3437 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
3437
2042-
2043-
2044void QXmlStreamWriterPrivate::write(const char *s, int len)-
2045{-
2046 if (device
deviceDescription
TRUEevaluated 10239 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
64-10239
2047 if (hasError
hasErrorDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 10225 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
14-10225
2048 return;
executed 14 times by 1 test: return;
Executed by:
  • tst_QXmlStream
14
2049 if (isCodecASCIICompatible
isCodecASCIICompatibleDescription
TRUEevaluated 10211 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
14-10211
2050 if (device->write(s, len) != len
device->write(s, len) != lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 10209 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
2-10209
2051 hasError = true;
executed 2 times by 1 test: hasError = true;
Executed by:
  • tst_QXmlStream
2
2052 return;
executed 10211 times by 3 tests: return;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
10211
2053 }-
2054 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
14
2055-
2056 write(QString::fromLatin1(s, len));-
2057}
executed 78 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
78
2058-
2059void QXmlStreamWriterPrivate::writeNamespaceDeclaration(const NamespaceDeclaration &namespaceDeclaration) {-
2060 if (namespaceDeclaration.prefix.isEmpty()
namespaceDecla...efix.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 102 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
0-102
2061 write(" xmlns=\"");-
2062 write(namespaceDeclaration.namespaceUri);-
2063 write("\"");-
2064 }
never executed: end of block
else {
0
2065 write(" xmlns:");-
2066 write(namespaceDeclaration.prefix);-
2067 write("=\"");-
2068 write(namespaceDeclaration.namespaceUri);-
2069 write("\"");-
2070 }
executed 102 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
102
2071}-
2072-
2073bool QXmlStreamWriterPrivate::finishStartElement(bool contents)-
2074{-
2075 bool hadSomethingWritten = wroteSomething;-
2076 wroteSomething = contents;-
2077 if (!inStartElement
!inStartElementDescription
TRUEevaluated 5103 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1276 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
1276-5103
2078 return
executed 5103 times by 3 tests: return hadSomethingWritten;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
hadSomethingWritten;
executed 5103 times by 3 tests: return hadSomethingWritten;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
5103
2079-
2080 if (inEmptyElement
inEmptyElementDescription
TRUEevaluated 39 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1237 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
39-1237
2081 write("/>");-
2082 QXmlStreamWriterPrivate::Tag &tag = tagStack_pop();-
2083 lastNamespaceDeclaration = tag.namespaceDeclarationsSize;-
2084 lastWasStartElement = false;-
2085 }
executed 39 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
else {
39
2086 write(">");-
2087 }
executed 1237 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
1237
2088 inStartElement = inEmptyElement = false;-
2089 lastNamespaceDeclaration = namespaceDeclarations.size();-
2090 return
executed 1276 times by 3 tests: return hadSomethingWritten;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
hadSomethingWritten;
executed 1276 times by 3 tests: return hadSomethingWritten;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
1276
2091}-
2092-
2093QXmlStreamPrivateTagStack::NamespaceDeclaration &QXmlStreamWriterPrivate::findNamespace(const QString &namespaceUri, bool writeDeclaration, bool noDefault)-
2094{-
2095 for (int j = namespaceDeclarations.size() - 1; j >= 0
j >= 0Description
TRUEevaluated 2565 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1162 times by 1 test
Evaluated by:
  • tst_QXmlStream
; --j) {
1162-2565
2096 NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations[j];-
2097 if (namespaceDeclaration.namespaceUri == namespaceUri
namespaceDecla...= namespaceUriDescription
TRUEevaluated 302 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 2263 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
302-2263
2098 if (!noDefault
!noDefaultDescription
TRUEevaluated 134 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 168 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
|| !namespaceDeclaration.prefix.isEmpty()
!namespaceDecl...efix.isEmpty()Description
TRUEevaluated 168 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEnever evaluated
)
0-168
2099 return
executed 302 times by 3 tests: return namespaceDeclaration;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
namespaceDeclaration;
executed 302 times by 3 tests: return namespaceDeclaration;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
302
2100 }
never executed: end of block
0
2101 }
executed 2263 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
2263
2102 if (namespaceUri.isEmpty()
namespaceUri.isEmpty()Description
TRUEevaluated 1143 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
19-1143
2103 return
executed 1143 times by 1 test: return emptyNamespace;
Executed by:
  • tst_QXmlStream
emptyNamespace;
executed 1143 times by 1 test: return emptyNamespace;
Executed by:
  • tst_QXmlStream
1143
2104 NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push();-
2105 if (namespaceUri.isEmpty()
namespaceUri.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
0-19
2106 namespaceDeclaration.prefix.clear();-
2107 }
never executed: end of block
else {
0
2108 QString s;-
2109 int n = ++namespacePrefixCount;-
2110 for(;;) {-
2111 s = QLatin1Char('n') + QString::number(n++);-
2112 int j = namespaceDeclarations.size() - 2;-
2113 while (j >= 0
j >= 0Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& namespaceDeclarations.at(j).prefix != s
namespaceDecla...j).prefix != sDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-22
2114 --
executed 22 times by 1 test: --j;
Executed by:
  • tst_QXmlStream
j;
executed 22 times by 1 test: --j;
Executed by:
  • tst_QXmlStream
22
2115 if (j < 0
j < 0Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-19
2116 break;
executed 19 times by 1 test: break;
Executed by:
  • tst_QXmlStream
19
2117 }
never executed: end of block
0
2118 namespaceDeclaration.prefix = addToStringStorage(s);-
2119 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
19
2120 namespaceDeclaration.namespaceUri = addToStringStorage(namespaceUri);-
2121 if (writeDeclaration
writeDeclarationDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
4-15
2122 writeNamespaceDeclaration(namespaceDeclaration);
executed 4 times by 1 test: writeNamespaceDeclaration(namespaceDeclaration);
Executed by:
  • tst_QXmlStream
4
2123 return
executed 19 times by 1 test: return namespaceDeclaration;
Executed by:
  • tst_QXmlStream
namespaceDeclaration;
executed 19 times by 1 test: return namespaceDeclaration;
Executed by:
  • tst_QXmlStream
19
2124}-
2125-
2126-
2127-
2128void QXmlStreamWriterPrivate::indent(int level)-
2129{-
2130 write("\n");-
2131 for (int i = level; i > 0
i > 0Description
TRUEevaluated 332 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 218 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
; --i)
218-332
2132 write(autoFormattingIndent.constData(), autoFormattingIndent.length());
executed 332 times by 3 tests: write(autoFormattingIndent.constData(), autoFormattingIndent.length());
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
332
2133}
executed 218 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
218
2134-
2135-
2136-
2137-
2138-
2139-
2140-
2141QXmlStreamWriter::QXmlStreamWriter()-
2142 : d_ptr(new QXmlStreamWriterPrivate(this))-
2143{-
2144}
never executed: end of block
0
2145-
2146-
2147-
2148-
2149QXmlStreamWriter::QXmlStreamWriter(QIODevice *device)-
2150 : d_ptr(new QXmlStreamWriterPrivate(this))-
2151{-
2152 QXmlStreamWriterPrivate * const d = d_func();-
2153 d->device = device;-
2154}
executed 32 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
32
2155-
2156-
2157-
2158-
2159-
2160QXmlStreamWriter::QXmlStreamWriter(QByteArray *array)-
2161 : d_ptr(new QXmlStreamWriterPrivate(this))-
2162{-
2163 QXmlStreamWriterPrivate * const d = d_func();-
2164 d->device = new QBuffer(array);-
2165 d->device->open(QIODevice::WriteOnly);-
2166 d->deleteDevice = true;-
2167}
executed 710 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
710
2168-
2169-
2170-
2171-
2172QXmlStreamWriter::QXmlStreamWriter(QString *string)-
2173 : d_ptr(new QXmlStreamWriterPrivate(this))-
2174{-
2175 QXmlStreamWriterPrivate * const d = d_func();-
2176 d->stringDevice = string;-
2177}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
2178-
2179-
2180-
2181-
2182QXmlStreamWriter::~QXmlStreamWriter()-
2183{-
2184}-
2185void QXmlStreamWriter::setDevice(QIODevice *device)-
2186{-
2187 QXmlStreamWriterPrivate * const d = d_func();-
2188 if (device == d->device
device == d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2189 return;
never executed: return;
0
2190 d->stringDevice = 0;-
2191 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2192 delete d->device;-
2193 d->deleteDevice = false;-
2194 }
never executed: end of block
0
2195 d->device = device;-
2196}
never executed: end of block
0
2197-
2198-
2199-
2200-
2201-
2202-
2203-
2204QIODevice *QXmlStreamWriter::device() const-
2205{-
2206 const QXmlStreamWriterPrivate * const d = d_func();-
2207 return
never executed: return d->device;
d->device;
never executed: return d->device;
0
2208}-
2209void QXmlStreamWriter::setCodec(QTextCodec *codec)-
2210{-
2211 QXmlStreamWriterPrivate * const d = d_func();-
2212 if (codec
codecDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEnever evaluated
) {
0-14
2213 d->codec = codec;-
2214 delete d->encoder;-
2215 d->encoder = codec->makeEncoder(QTextCodec::IgnoreHeader);-
2216 d->checkIfASCIICompatibleCodec();-
2217 }
executed 14 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
14
2218}
executed 14 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
14
2219void QXmlStreamWriter::setCodec(const char *codecName)-
2220{-
2221 setCodec(QTextCodec::codecForName(codecName));-
2222}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QXmlStream
1
2223-
2224-
2225-
2226-
2227-
2228-
2229QTextCodec *QXmlStreamWriter::codec() const-
2230{-
2231 const QXmlStreamWriterPrivate * const d = d_func();-
2232 return
never executed: return d->codec;
d->codec;
never executed: return d->codec;
0
2233}-
2234void QXmlStreamWriter::setAutoFormatting(bool enable)-
2235{-
2236 QXmlStreamWriterPrivate * const d = d_func();-
2237 d->autoFormatting = enable;-
2238}
executed 28 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
28
2239-
2240-
2241-
2242-
2243-
2244-
2245bool QXmlStreamWriter::autoFormatting() const-
2246{-
2247 const QXmlStreamWriterPrivate * const d = d_func();-
2248 return
never executed: return d->autoFormatting;
d->autoFormatting;
never executed: return d->autoFormatting;
0
2249}-
2250void QXmlStreamWriter::setAutoFormattingIndent(int spacesOrTabs)-
2251{-
2252 QXmlStreamWriterPrivate * const d = d_func();-
2253 d->autoFormattingIndent = QByteArray(qAbs(spacesOrTabs), spacesOrTabs >= 0 ? ' ' : '\t');-
2254}
executed 21 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
21
2255-
2256int QXmlStreamWriter::autoFormattingIndent() const-
2257{-
2258 const QXmlStreamWriterPrivate * const d = d_func();-
2259 return
executed 1 time by 1 test: return d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t');
Executed by:
  • tst_QXmlStream
d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t');
executed 1 time by 1 test: return d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t');
Executed by:
  • tst_QXmlStream
1
2260}-
2261-
2262-
2263-
2264-
2265-
2266-
2267-
2268bool QXmlStreamWriter::hasError() const-
2269{-
2270 const QXmlStreamWriterPrivate * const d = d_func();-
2271 return
executed 6 times by 1 test: return d->hasError;
Executed by:
  • tst_QXmlStream
d->hasError;
executed 6 times by 1 test: return d->hasError;
Executed by:
  • tst_QXmlStream
6
2272}-
2273void QXmlStreamWriter::writeAttribute(const QString &qualifiedName, const QString &value)-
2274{-
2275 QXmlStreamWriterPrivate * const d = d_func();-
2276 ((!(d->inStartElement)) ? qt_assert("d->inStartElement",__FILE__,3427) : qt_noop());-
2277 ((!(qualifiedName.count(QLatin1Char(':')) <= 1)) ? qt_assert("qualifiedName.count(QLatin1Char(':')) <= 1",__FILE__,3428) : qt_noop());-
2278 d->write(" ");-
2279 d->write(qualifiedName);-
2280 d->write("=\"");-
2281 d->writeEscaped(value, true);-
2282 d->write("\"");-
2283}
executed 440 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
440
2284void QXmlStreamWriter::writeAttribute(const QString &namespaceUri, const QString &name, const QString &value)-
2285{-
2286 QXmlStreamWriterPrivate * const d = d_func();-
2287 ((!(d->inStartElement)) ? qt_assert("d->inStartElement",__FILE__,3447) : qt_noop());-
2288 ((!(!name.contains(QLatin1Char(':')))) ? qt_assert("!name.contains(QLatin1Char(':'))",__FILE__,3448) : qt_noop());-
2289 QXmlStreamWriterPrivate::NamespaceDeclaration &namespaceDeclaration = d->findNamespace(namespaceUri, true, true);-
2290 d->write(" ");-
2291 if (!namespaceDeclaration.prefix.isEmpty()
!namespaceDecl...efix.isEmpty()Description
TRUEevaluated 172 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEnever evaluated
) {
0-172
2292 d->write(namespaceDeclaration.prefix);-
2293 d->write(":");-
2294 }
executed 172 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
172
2295 d->write(name);-
2296 d->write("=\"");-
2297 d->writeEscaped(value, true);-
2298 d->write("\"");-
2299}
executed 172 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
172
2300void QXmlStreamWriter::writeAttribute(const QXmlStreamAttribute& attribute)-
2301{-
2302 if (attribute.namespaceUri().isEmpty()
attribute.name...ri().isEmpty()Description
TRUEevaluated 433 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
34-433
2303 writeAttribute(attribute.qualifiedName().toString(),
executed 433 times by 1 test: writeAttribute(attribute.qualifiedName().toString(), attribute.value().toString());
Executed by:
  • tst_QXmlStream
433
2304 attribute.value().toString());
executed 433 times by 1 test: writeAttribute(attribute.qualifiedName().toString(), attribute.value().toString());
Executed by:
  • tst_QXmlStream
433
2305 else-
2306 writeAttribute(attribute.namespaceUri().toString(),
executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString());
Executed by:
  • tst_QXmlStream
34
2307 attribute.name().toString(),
executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString());
Executed by:
  • tst_QXmlStream
34
2308 attribute.value().toString());
executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString());
Executed by:
  • tst_QXmlStream
34
2309}-
2310void QXmlStreamWriter::writeAttributes(const QXmlStreamAttributes& attributes)-
2311{-
2312 QXmlStreamWriterPrivate * const d = d_func();-
2313 ((!(d->inStartElement)) ? qt_assert("d->inStartElement",__FILE__,3493) : qt_noop());-
2314 (void)d;;-
2315 for (int i = 0; i < attributes.size()
i < attributes.size()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i)
0-4
2316 writeAttribute(attributes.at(i));
never executed: writeAttribute(attributes.at(i));
0
2317}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
4
2318void QXmlStreamWriter::writeCDATA(const QString &text)-
2319{-
2320 QXmlStreamWriterPrivate * const d = d_func();-
2321 d->finishStartElement();-
2322 QString copy(text);-
2323 copy.replace(QLatin1String("]]>"), QLatin1String("]]]]><![CDATA[>"));-
2324 d->write("<![CDATA[");-
2325 d->write(copy);-
2326 d->write("]]>");-
2327}
never executed: end of block
0
2328void QXmlStreamWriter::writeCharacters(const QString &text)-
2329{-
2330 QXmlStreamWriterPrivate * const d = d_func();-
2331 d->finishStartElement();-
2332 d->writeEscaped(text);-
2333}
executed 2825 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
2825
2334-
2335-
2336-
2337-
2338-
2339-
2340void QXmlStreamWriter::writeComment(const QString &text)-
2341{-
2342 QXmlStreamWriterPrivate * const d = d_func();-
2343 ((!(!text.contains(QLatin1String("--")) && !text.endsWith(QLatin1Char('-')))) ? qt_assert("!text.contains(QLatin1String(\"--\")) && !text.endsWith(QLatin1Char('-'))",__FILE__,3541) : qt_noop());-
2344 if (!d->finishStartElement(false)
!d->finishStartElement(false)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
&& d->autoFormatting
d->autoFormattingDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
)
0-7
2345 d->indent(d->tagStack.size());
executed 7 times by 1 test: d->indent(d->tagStack.size());
Executed by:
  • tst_QXmlStream
7
2346 d->write("<!--");-
2347 d->write(text);-
2348 d->write("-->");-
2349 d->inStartElement = d->lastWasStartElement = false;-
2350}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
7
2351-
2352-
2353-
2354-
2355-
2356void QXmlStreamWriter::writeDTD(const QString &dtd)-
2357{-
2358 QXmlStreamWriterPrivate * const d = d_func();-
2359 d->finishStartElement();-
2360 if (d->autoFormatting
d->autoFormattingDescription
TRUEnever evaluated
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-46
2361 d->write("\n");
never executed: d->write("\n");
0
2362 d->write(dtd);-
2363 if (d->autoFormatting
d->autoFormattingDescription
TRUEnever evaluated
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-46
2364 d->write("\n");
never executed: d->write("\n");
0
2365}
executed 46 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
46
2366-
2367-
2368-
2369-
2370-
2371-
2372-
2373void QXmlStreamWriter::writeEmptyElement(const QString &qualifiedName)-
2374{-
2375 QXmlStreamWriterPrivate * const d = d_func();-
2376 ((!(qualifiedName.count(QLatin1Char(':')) <= 1)) ? qt_assert("qualifiedName.count(QLatin1Char(':')) <= 1",__FILE__,3574) : qt_noop());-
2377 d->writeStartElement(QString(), qualifiedName);-
2378 d->inEmptyElement = true;-
2379}
executed 5 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
5
2380void QXmlStreamWriter::writeEmptyElement(const QString &namespaceUri, const QString &name)-
2381{-
2382 QXmlStreamWriterPrivate * const d = d_func();-
2383 ((!(!name.contains(QLatin1Char(':')))) ? qt_assert("!name.contains(QLatin1Char(':'))",__FILE__,3590) : qt_noop());-
2384 d->writeStartElement(namespaceUri, name);-
2385 d->inEmptyElement = true;-
2386}
executed 34 times by 2 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
34
2387void QXmlStreamWriter::writeTextElement(const QString &qualifiedName, const QString &text)-
2388{-
2389 writeStartElement(qualifiedName);-
2390 writeCharacters(text);-
2391 writeEndElement();-
2392}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QXmlStream
1
2393void QXmlStreamWriter::writeTextElement(const QString &namespaceUri, const QString &name, const QString &text)-
2394{-
2395 writeStartElement(namespaceUri, name);-
2396 writeCharacters(text);-
2397 writeEndElement();-
2398}
never executed: end of block
0
2399-
2400-
2401-
2402-
2403-
2404-
2405-
2406void QXmlStreamWriter::writeEndDocument()-
2407{-
2408 QXmlStreamWriterPrivate * const d = d_func();-
2409 while (d->tagStack.size()
d->tagStack.size()Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
14-33
2410 writeEndElement();
executed 14 times by 3 tests: writeEndElement();
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
14
2411 d->write("\n");-
2412}
executed 33 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
33
2413-
2414-
2415-
2416-
2417-
2418-
2419void QXmlStreamWriter::writeEndElement()-
2420{-
2421 QXmlStreamWriterPrivate * const d = d_func();-
2422 if (d->tagStack.isEmpty()
d->tagStack.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1255 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
1-1255
2423 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QXmlStream
1
2424-
2425-
2426 if (d->inStartElement
d->inStartElementDescription
TRUEevaluated 42 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1213 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
&& !d->inEmptyElement
!d->inEmptyElementDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
14-1213
2427 d->write("/>");-
2428 d->lastWasStartElement = d->inStartElement = false;-
2429 QXmlStreamWriterPrivate::Tag &tag = d->tagStack_pop();-
2430 d->lastNamespaceDeclaration = tag.namespaceDeclarationsSize;-
2431 return;
executed 14 times by 3 tests: return;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
14
2432 }-
2433-
2434 if (!d->finishStartElement(false)
!d->finishStartElement(false)Description
TRUEevaluated 145 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1096 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
&& !d->lastWasStartElement
!d->lastWasStartElementDescription
TRUEevaluated 138 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& d->autoFormatting
d->autoFormattingDescription
TRUEevaluated 77 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 61 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
7-1096
2435 d->indent(d->tagStack.size()-1);
executed 77 times by 3 tests: d->indent(d->tagStack.size()-1);
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
77
2436 if (d->tagStack.isEmpty()
d->tagStack.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1237 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
)
4-1237
2437 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_QXmlStream
4
2438 d->lastWasStartElement = false;-
2439 QXmlStreamWriterPrivate::Tag &tag = d->tagStack_pop();-
2440 d->lastNamespaceDeclaration = tag.namespaceDeclarationsSize;-
2441 d->write("</");-
2442 if (!tag.namespaceDeclaration.prefix.isEmpty()
!tag.namespace...efix.isEmpty()Description
TRUEevaluated 105 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1132 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
105-1132
2443 d->write(tag.namespaceDeclaration.prefix);-
2444 d->write(":");-
2445 }
executed 105 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
105
2446 d->write(tag.name);-
2447 d->write(">");-
2448}
executed 1237 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
1237
2449-
2450-
2451-
2452-
2453-
2454-
2455void QXmlStreamWriter::writeEntityReference(const QString &name)-
2456{-
2457 QXmlStreamWriterPrivate * const d = d_func();-
2458 d->finishStartElement();-
2459 d->write("&");-
2460 d->write(name);-
2461 d->write(";");-
2462}
executed 857 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
857
2463void QXmlStreamWriter::writeNamespace(const QString &namespaceUri, const QString &prefix)-
2464{-
2465 QXmlStreamWriterPrivate * const d = d_func();-
2466 ((!(!namespaceUri.isEmpty())) ? qt_assert("!namespaceUri.isEmpty()",__FILE__,3711) : qt_noop());-
2467 ((!(prefix != QLatin1String("xmlns"))) ? qt_assert("prefix != QLatin1String(\"xmlns\")",__FILE__,3712) : qt_noop());-
2468 if (prefix.isEmpty()
prefix.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 83 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
) {
0-83
2469 d->findNamespace(namespaceUri, d->inStartElement);-
2470 }
never executed: end of block
else {
0
2471 ((!(!((prefix == QLatin1String("xml")) ^ (namespaceUri == QLatin1String("http://www.w3.org/XML/1998/namespace"))))) ? qt_assert("!((prefix == QLatin1String(\"xml\")) ^ (namespaceUri == QLatin1String(\"http://www.w3.org/XML/1998/namespace\")))",__FILE__,3716) : qt_noop());-
2472 ((!(namespaceUri != QLatin1String("http://www.w3.org/2000/xmlns/"))) ? qt_assert("namespaceUri != QLatin1String(\"http://www.w3.org/2000/xmlns/\")",__FILE__,3717) : qt_noop());-
2473 QXmlStreamWriterPrivate::NamespaceDeclaration &namespaceDeclaration = d->namespaceDeclarations.push();-
2474 namespaceDeclaration.prefix = d->addToStringStorage(prefix);-
2475 namespaceDeclaration.namespaceUri = d->addToStringStorage(namespaceUri);-
2476 if (d->inStartElement
d->inStartElementDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
)
2-81
2477 d->writeNamespaceDeclaration(namespaceDeclaration);
executed 2 times by 1 test: d->writeNamespaceDeclaration(namespaceDeclaration);
Executed by:
  • tst_QXmlStream
2
2478 }
executed 83 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
83
2479}-
2480void QXmlStreamWriter::writeDefaultNamespace(const QString &namespaceUri)-
2481{-
2482 QXmlStreamWriterPrivate * const d = d_func();-
2483 ((!(namespaceUri != QLatin1String("http://www.w3.org/XML/1998/namespace"))) ? qt_assert("namespaceUri != QLatin1String(\"http://www.w3.org/XML/1998/namespace\")",__FILE__,3740) : qt_noop());-
2484 ((!(namespaceUri != QLatin1String("http://www.w3.org/2000/xmlns/"))) ? qt_assert("namespaceUri != QLatin1String(\"http://www.w3.org/2000/xmlns/\")",__FILE__,3741) : qt_noop());-
2485 QXmlStreamWriterPrivate::NamespaceDeclaration &namespaceDeclaration = d->namespaceDeclarations.push();-
2486 namespaceDeclaration.prefix.clear();-
2487 namespaceDeclaration.namespaceUri = d->addToStringStorage(namespaceUri);-
2488 if (d->inStartElement
d->inStartElementDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2489 d->writeNamespaceDeclaration(namespaceDeclaration);
never executed: d->writeNamespaceDeclaration(namespaceDeclaration);
0
2490}
never executed: end of block
0
2491-
2492-
2493-
2494-
2495-
2496-
2497void QXmlStreamWriter::writeProcessingInstruction(const QString &target, const QString &data)-
2498{-
2499 QXmlStreamWriterPrivate * const d = d_func();-
2500 ((!(!data.contains(QLatin1String("?>")))) ? qt_assert("!data.contains(QLatin1String(\"?>\"))",__FILE__,3757) : qt_noop());-
2501 if (!d->finishStartElement(false)
!d->finishStartElement(false)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QXmlStream
&& d->autoFormatting
d->autoFormattingDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
1-61
2502 d->indent(d->tagStack.size());
executed 1 time by 1 test: d->indent(d->tagStack.size());
Executed by:
  • tst_QXmlStream
1
2503 d->write("<?");-
2504 d->write(target);-
2505 if (!data.isNull()
!data.isNull()Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) {
0-72
2506 d->write(" ");-
2507 d->write(data);-
2508 }
executed 72 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
72
2509 d->write("?>");-
2510}
executed 72 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
72
2511void QXmlStreamWriter::writeStartDocument()-
2512{-
2513 writeStartDocument(QLatin1String("1.0"));-
2514}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
34
2515-
2516-
2517-
2518-
2519-
2520-
2521-
2522void QXmlStreamWriter::writeStartDocument(const QString &version)-
2523{-
2524 QXmlStreamWriterPrivate * const d = d_func();-
2525 d->finishStartElement(false);-
2526 d->write("<?xml version=\"");-
2527 d->write(version);-
2528 if (d->device
d->deviceDescription
TRUEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
2-35
2529 d->write("\" encoding=\"");-
2530-
2531-
2532-
2533 const QByteArray name = d->codec->name();-
2534 d->write(name.constData(), name.length());-
2535-
2536 }
executed 35 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
35
2537 d->write("\"?>");-
2538}
executed 37 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
37
2539-
2540-
2541-
2542-
2543-
2544-
2545-
2546void QXmlStreamWriter::writeStartDocument(const QString &version, bool standalone)-
2547{-
2548 QXmlStreamWriterPrivate * const d = d_func();-
2549 d->finishStartElement(false);-
2550 d->write("<?xml version=\"");-
2551 d->write(version);-
2552 if (d->device
d->deviceDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEnever evaluated
) {
0-2
2553 d->write("\" encoding=\"");-
2554-
2555-
2556-
2557 const QByteArray name = d->codec->name();-
2558 d->write(name.constData(), name.length());-
2559-
2560 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
2
2561 if (standalone
standaloneDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QXmlStream
)
1
2562 d->write("\" standalone=\"yes\"?>");
executed 1 time by 1 test: d->write("\" standalone=\"yes\"?>");
Executed by:
  • tst_QXmlStream
1
2563 else-
2564 d->write("\" standalone=\"no\"?>");
executed 1 time by 1 test: d->write("\" standalone=\"no\"?>");
Executed by:
  • tst_QXmlStream
1
2565}-
2566void QXmlStreamWriter::writeStartElement(const QString &qualifiedName)-
2567{-
2568 QXmlStreamWriterPrivate * const d = d_func();-
2569 ((!(qualifiedName.count(QLatin1Char(':')) <= 1)) ? qt_assert("qualifiedName.count(QLatin1Char(':')) <= 1",__FILE__,3846) : qt_noop());-
2570 d->writeStartElement(QString(), qualifiedName);-
2571}
executed 10 times by 1 test: end of block
Executed by:
  • tst_QXmlStream
10
2572void QXmlStreamWriter::writeStartElement(const QString &namespaceUri, const QString &name)-
2573{-
2574 QXmlStreamWriterPrivate * const d = d_func();-
2575 ((!(!name.contains(QLatin1Char(':')))) ? qt_assert("!name.contains(QLatin1Char(':'))",__FILE__,3862) : qt_noop());-
2576 d->writeStartElement(namespaceUri, name);-
2577}
executed 1243 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
1243
2578-
2579void QXmlStreamWriterPrivate::writeStartElement(const QString &namespaceUri, const QString &name)-
2580{-
2581 if (!finishStartElement(false)
!finishStartElement(false)Description
TRUEevaluated 845 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 447 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
&& autoFormatting
autoFormattingDescription
TRUEevaluated 133 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 712 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
133-845
2582 indent(tagStack.size());
executed 133 times by 3 tests: indent(tagStack.size());
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
133
2583-
2584 Tag &tag = tagStack_push();-
2585 tag.name = addToStringStorage(name);-
2586 tag.namespaceDeclaration = findNamespace(namespaceUri);-
2587 write("<");-
2588 if (!tag.namespaceDeclaration.prefix.isEmpty()
!tag.namespace...efix.isEmpty()Description
TRUEevaluated 149 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1143 times by 1 test
Evaluated by:
  • tst_QXmlStream
) {
149-1143
2589 write(tag.namespaceDeclaration.prefix);-
2590 write(":");-
2591 }
executed 149 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
149
2592 write(tag.name);-
2593 inStartElement = lastWasStartElement = true;-
2594-
2595 for (int i = lastNamespaceDeclaration; i < namespaceDeclarations.size()
i < namespaceD...rations.size()Description
TRUEevaluated 96 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
FALSEevaluated 1292 times by 3 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
; ++i)
96-1292
2596 writeNamespaceDeclaration(namespaceDeclarations[i]);
executed 96 times by 3 tests: writeNamespaceDeclaration(namespaceDeclarations[i]);
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
96
2597 tag.namespaceDeclarationsSize = lastNamespaceDeclaration;-
2598}
executed 1292 times by 3 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
1292
2599void QXmlStreamWriter::writeCurrentToken(const QXmlStreamReader &reader)-
2600{-
2601 switch (reader.tokenType()) {-
2602 case
never executed: case QXmlStreamReader::NoToken:
QXmlStreamReader::NoToken:
never executed: case QXmlStreamReader::NoToken:
0
2603 break;
never executed: break;
0
2604 case
executed 2 times by 1 test: case QXmlStreamReader::StartDocument:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::StartDocument:
executed 2 times by 1 test: case QXmlStreamReader::StartDocument:
Executed by:
  • tst_QXmlStream
2
2605 writeStartDocument();-
2606 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QXmlStream
2
2607 case
executed 2 times by 1 test: case QXmlStreamReader::EndDocument:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::EndDocument:
executed 2 times by 1 test: case QXmlStreamReader::EndDocument:
Executed by:
  • tst_QXmlStream
2
2608 writeEndDocument();-
2609 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QXmlStream
2
2610 case
executed 4 times by 1 test: case QXmlStreamReader::StartElement:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::StartElement:
executed 4 times by 1 test: case QXmlStreamReader::StartElement:
Executed by:
  • tst_QXmlStream
{
4
2611 QXmlStreamNamespaceDeclarations namespaceDeclarations = reader.namespaceDeclarations();-
2612 for (int i = 0; i < namespaceDeclarations.size()
i < namespaceD...rations.size()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QXmlStream
; ++i) {
0-4
2613 const QXmlStreamNamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.at(i);-
2614 writeNamespace(namespaceDeclaration.namespaceUri().toString(),-
2615 namespaceDeclaration.prefix().toString());-
2616 }
never executed: end of block
0
2617 writeStartElement(reader.namespaceUri().toString(), reader.name().toString());-
2618 writeAttributes(reader.attributes());-
2619 } break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QXmlStream
4
2620 case
executed 1144 times by 1 test: case QXmlStreamReader::EndElement:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::EndElement:
executed 1144 times by 1 test: case QXmlStreamReader::EndElement:
Executed by:
  • tst_QXmlStream
1144
2621 writeEndElement();-
2622 break;
executed 1144 times by 1 test: break;
Executed by:
  • tst_QXmlStream
1144
2623 case
never executed: case QXmlStreamReader::Characters:
QXmlStreamReader::Characters:
never executed: case QXmlStreamReader::Characters:
0
2624 if (reader.isCDATA()
reader.isCDATA()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2625 writeCDATA(reader.text().toString());
never executed: writeCDATA(reader.text().toString());
0
2626 else-
2627 writeCharacters(reader.text().toString());
never executed: writeCharacters(reader.text().toString());
0
2628 break;
never executed: break;
0
2629 case
executed 6 times by 1 test: case QXmlStreamReader::Comment:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::Comment:
executed 6 times by 1 test: case QXmlStreamReader::Comment:
Executed by:
  • tst_QXmlStream
6
2630 writeComment(reader.text().toString());-
2631 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QXmlStream
6
2632 case
never executed: case QXmlStreamReader::DTD:
QXmlStreamReader::DTD:
never executed: case QXmlStreamReader::DTD:
0
2633 writeDTD(reader.text().toString());-
2634 break;
never executed: break;
0
2635 case
executed 1 time by 1 test: case QXmlStreamReader::EntityReference:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::EntityReference:
executed 1 time by 1 test: case QXmlStreamReader::EntityReference:
Executed by:
  • tst_QXmlStream
1
2636 writeEntityReference(reader.name().toString());-
2637 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QXmlStream
1
2638 case
executed 48 times by 1 test: case QXmlStreamReader::ProcessingInstruction:
Executed by:
  • tst_QXmlStream
QXmlStreamReader::ProcessingInstruction:
executed 48 times by 1 test: case QXmlStreamReader::ProcessingInstruction:
Executed by:
  • tst_QXmlStream
48
2639 writeProcessingInstruction(reader.processingInstructionTarget().toString(),-
2640 reader.processingInstructionData().toString());-
2641 break;
executed 48 times by 1 test: break;
Executed by:
  • tst_QXmlStream
48
2642 default
never executed: default:
:
never executed: default:
0
2643 ((!(reader.tokenType() != QXmlStreamReader::Invalid)) ? qt_assert("reader.tokenType() != QXmlStreamReader::Invalid",__FILE__,3939) : qt_noop());-
2644 QMessageLogger(__FILE__, 3940, __PRETTY_FUNCTION__).warning("QXmlStreamWriter: writeCurrentToken() with invalid state.");-
2645 break;
never executed: break;
0
2646 }-
2647}-
2648-
Switch to Source codePreprocessed file

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