Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | enum { StreamEOF = ~0U }; | - |
10 | QXmlStreamEntityResolver::~QXmlStreamEntityResolver() | - |
11 | { | - |
12 | } | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | QString QXmlStreamEntityResolver::resolveEntity(const QString& , const QString& ) | - |
20 | { | - |
21 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
22 | } | - |
23 | QString QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString & ) | - |
24 | { | - |
25 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
26 | } | - |
27 | | - |
28 | | - |
29 | | - |
30 | QString QXmlStreamReaderPrivate::resolveUndeclaredEntity(const QString &name) | - |
31 | { | - |
32 | if (entityResolverTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
33 | returnexecuted 2 times by 1 test: return entityResolver->resolveUndeclaredEntity(name); entityResolver->resolveUndeclaredEntity(name);executed 2 times by 1 test: return entityResolver->resolveUndeclaredEntity(name); | 2 |
34 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
35 | } | - |
36 | void 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 | 1 |
41 | QXmlStreamEntityResolver *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 | } | - |
46 | QXmlStreamReader::QXmlStreamReader() | - |
47 | : d_ptr(new QXmlStreamReaderPrivate(this)) | - |
48 | { | - |
49 | }executed 3174 times by 1 test: end of block | 3174 |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | QXmlStreamReader::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 | | - |
66 | QXmlStreamReader::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 | | - |
78 | QXmlStreamReader::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 | | - |
97 | QXmlStreamReader::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 | 6 |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | QXmlStreamReader::~QXmlStreamReader() | - |
108 | { | - |
109 | QXmlStreamReaderPrivate * const d = d_func(); | - |
110 | if (d->deleteDeviceTRUE | never evaluated | FALSE | evaluated 7351 times by 36 testsEvaluated 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 |
113 | void QXmlStreamReader::setDevice(QIODevice *device) | - |
114 | { | - |
115 | QXmlStreamReaderPrivate * const d = d_func(); | - |
116 | if (d->deleteDeviceTRUE | never evaluated | FALSE | evaluated 4669 times by 23 testsEvaluated 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 | | - |
131 | QIODevice *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 | } | - |
136 | void QXmlStreamReader::addData(const QByteArray &data) | - |
137 | { | - |
138 | QXmlStreamReaderPrivate * const d = d_func(); | - |
139 | if (d->deviceTRUE | never evaluated | FALSE | evaluated 57484 times by 1 test |
) { | 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 | 57484 |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | void 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 | 4 |
162 | | - |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | void QXmlStreamReader::addData(const char *data) | - |
170 | { | - |
171 | addData(QByteArray(data)); | - |
172 | }executed 2 times by 1 test: end of block | 2 |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | | - |
180 | void QXmlStreamReader::clear() | - |
181 | { | - |
182 | QXmlStreamReaderPrivate * const d = d_func(); | - |
183 | d->init(); | - |
184 | if (d->deviceTRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) { | 0-3 |
185 | if (d->deleteDeviceTRUE | never evaluated | FALSE | never 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 | 3 |
190 | bool QXmlStreamReader::atEnd() const | - |
191 | { | - |
192 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
193 | if (d->atEndTRUE | evaluated 118570 times by 15 testsEvaluated 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
| FALSE | evaluated 691847 times by 15 testsEvaluated 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::InvalidTRUE | evaluated 115547 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 3023 times by 15 testsEvaluated 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 == PrematureEndOfDocumentErrorTRUE | evaluated 115547 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | never evaluated |
) | 0-115547 |
195 | || (TRUE | evaluated 3023 times by 15 testsEvaluated 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
| FALSE | never evaluated |
d->type == QXmlStreamReader::EndDocument)TRUE | evaluated 3023 times by 15 testsEvaluated 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
| FALSE | never evaluated |
)) { | 0-3023 |
196 | if (d->deviceTRUE | evaluated 551 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 118019 times by 14 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | returnexecuted 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 | } | - |
203 | QXmlStreamReader::TokenType QXmlStreamReader::readNext() | - |
204 | { | - |
205 | QXmlStreamReaderPrivate * const d = d_func(); | - |
206 | if (d->type != InvalidTRUE | evaluated 1515198 times by 36 testsEvaluated 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 | evaluated 57494 times by 2 testsEvaluated by:- tst_QDBusMetaObject
- tst_QXmlStream
|
) { | 57494-1515198 |
207 | if (!d->hasCheckedStartDocumentTRUE | evaluated 8383 times by 36 testsEvaluated 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 | evaluated 1506815 times by 36 testsEvaluated 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()TRUE | evaluated 4669 times by 13 testsEvaluated 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 | evaluated 3714 times by 26 testsEvaluated 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 | returnexecuted 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->atEndTRUE | evaluated 58409 times by 15 testsEvaluated 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
| FALSE | evaluated 1452120 times by 36 testsEvaluated 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 != EndDocumentTRUE | evaluated 56038 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 2371 times by 15 testsEvaluated 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 != InvalidTRUE | evaluated 45171 times by 1 test | FALSE | evaluated 10867 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
|
) | 2371-1452120 |
212 | d->raiseError(PrematureEndOfDocumentError);executed 45171 times by 1 test: d->raiseError(PrematureEndOfDocumentError); | 45171 |
213 | else if (!d->atEndTRUE | evaluated 1452120 times by 36 testsEvaluated 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 | evaluated 13238 times by 15 testsEvaluated 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 == EndDocumentTRUE | evaluated 5 times by 1 test | FALSE | evaluated 1452115 times by 36 testsEvaluated 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.")); | 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 == PrematureEndOfDocumentErrorTRUE | evaluated 57482 times by 1 test | FALSE | evaluated 12 times by 1 test |
) { | 12-1510529 |
216 | | - |
217 | d->type = NoToken; | - |
218 | d->atEnd = false; | - |
219 | d->token = -1; | - |
220 | returnexecuted 57482 times by 1 test: return readNext(); readNext();executed 57482 times by 1 test: return readNext(); | 57482 |
221 | } | - |
222 | returnexecuted 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 | } | - |
224 | QXmlStreamReader::TokenType QXmlStreamReader::tokenType() const | - |
225 | { | - |
226 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
227 | returnexecuted 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 | } | - |
229 | bool QXmlStreamReader::readNextStartElement() | - |
230 | { | - |
231 | while (readNext() != InvalidTRUE | evaluated 263503 times by 35 testsEvaluated 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 | evaluated 12 times by 1 test |
) { | 12-263503 |
232 | if (isEndElement()TRUE | evaluated 5055 times by 35 testsEvaluated 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 | evaluated 258448 times by 35 testsEvaluated 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 | returnexecuted 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()TRUE | evaluated 124463 times by 35 testsEvaluated 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 | evaluated 133985 times by 33 testsEvaluated 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 | returnexecuted 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 | returnexecuted 12 times by 1 test: return false; false;executed 12 times by 1 test: return false; | 12 |
238 | } | - |
239 | void QXmlStreamReader::skipCurrentElement() | - |
240 | { | - |
241 | int depth = 1; | - |
242 | while (depthTRUE | evaluated 5120 times by 35 testsEvaluated 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 | evaluated 5076 times by 35 testsEvaluated 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() != InvalidTRUE | evaluated 5113 times by 35 testsEvaluated 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 | evaluated 7 times by 2 testsEvaluated by:- tst_QDBusMetaObject
- tst_QXmlStream
|
) { | 7-5120 |
243 | if (isEndElement()TRUE | evaluated 5089 times by 35 testsEvaluated 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 | evaluated 24 times by 3 testsEvaluated 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()TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 11 times by 2 testsEvaluated 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 |
249 | static 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 | | - |
262 | static const short QXmlStreamReader_tokenTypeString_indices[] = { | - |
263 | 0, 8, 16, 30, 42, 55, 66, 77, 85, 89, 105, 0 | - |
264 | }; | - |
265 | void QXmlStreamReader::setNamespaceProcessing(bool enable) | - |
266 | { | - |
267 | QXmlStreamReaderPrivate * const d = d_func(); | - |
268 | d->namespaceProcessing = enable; | - |
269 | } never executed: end of block | 0 |
270 | | - |
271 | bool 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 | | - |
281 | QString QXmlStreamReader::tokenString() const | - |
282 | { | - |
283 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
284 | returnexecuted 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]); QLatin1String(QXmlStreamReader_tokenTypeString_string +executed 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]); | 1903 |
285 | QXmlStreamReader_tokenTypeString_indices[d->type]);executed 1903 times by 1 test: return QLatin1String(QXmlStreamReader_tokenTypeString_string + QXmlStreamReader_tokenTypeString_indices[d->type]); | 1903 |
286 | } | - |
287 | | - |
288 | | - |
289 | | - |
290 | QXmlStreamPrivateTagStack::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 | | - |
303 | QXmlStreamReaderPrivate::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 | | - |
324 | void 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 | | - |
379 | void QXmlStreamReaderPrivate::parseEntity(const QString &value) | - |
380 | { | - |
381 | QXmlStreamReader * const q = q_func(); | - |
382 | | - |
383 | if (value.isEmpty()TRUE | evaluated 14 times by 1 test | FALSE | evaluated 124 times by 1 test |
) | 14-124 |
384 | return;executed 14 times by 1 test: return; | 14 |
385 | | - |
386 | | - |
387 | if (!entityParserTRUE | evaluated 91 times by 1 test | FALSE | evaluated 33 times by 1 test |
) | 33-91 |
388 | entityParser = new QXmlStreamReaderPrivate(q);executed 91 times by 1 test: entityParser = new QXmlStreamReaderPrivate(q); | 91 |
389 | else | - |
390 | entityParser->init();executed 33 times by 1 test: entityParser->init(); | 33 |
391 | entityParser->inParseEntity = true; | - |
392 | entityParser->readBuffer = value; | - |
393 | entityParser->injectToken(PARSE_ENTITY); | - |
394 | while (!entityParser->atEndTRUE | evaluated 215 times by 1 test | FALSE | evaluated 118 times by 1 test |
&& entityParser->type != QXmlStreamReader::InvalidTRUE | evaluated 209 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 6-215 |
395 | entityParser->parse();executed 209 times by 1 test: entityParser->parse(); | 209 |
396 | if (entityParser->type == QXmlStreamReader::InvalidTRUE | evaluated 16 times by 1 test | FALSE | evaluated 108 times by 1 test |
|| entityParser->tagStack.size()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 106 times by 1 test |
) | 2-108 |
397 | raiseWellFormedError(QXmlStream::tr("Invalid entity value."));executed 18 times by 1 test: raiseWellFormedError(QXmlStream::tr("Invalid entity value.")); | 18 |
398 | | - |
399 | }executed 124 times by 1 test: end of block | 124 |
400 | | - |
401 | inline 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)TRUE | never evaluated | FALSE | evaluated 7443 times by 36 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 7443 times by 36 testsEvaluated 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 | | - |
411 | QXmlStreamReaderPrivate::~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 | | - |
422 | inline uint QXmlStreamReaderPrivate::filterCarriageReturn() | - |
423 | { | - |
424 | uint peekc = peekChar(); | - |
425 | if (peekc == '\n'TRUE | evaluated 8307 times by 1 test | FALSE | evaluated 2158 times by 1 test |
) { | 2158-8307 |
426 | if (putStack.size()TRUE | never evaluated | FALSE | evaluated 8307 times by 1 test |
) | 0-8307 |
427 | putStack.pop(); never executed: putStack.pop(); | 0 |
428 | else | - |
429 | ++executed 8307 times by 1 test: ++readBufferPos; readBufferPos;executed 8307 times by 1 test: ++readBufferPos; | 8307 |
430 | returnexecuted 8307 times by 1 test: return peekc; peekc;executed 8307 times by 1 test: return peekc; | 8307 |
431 | } | - |
432 | if (peekc == StreamEOFTRUE | evaluated 2146 times by 1 test | FALSE | evaluated 12 times by 1 test |
) { | 12-2146 |
433 | putChar('\r'); | - |
434 | returnexecuted 2146 times by 1 test: return 0; 0;executed 2146 times by 1 test: return 0; | 2146 |
435 | } | - |
436 | returnexecuted 12 times by 1 test: return '\n'; '\n';executed 12 times by 1 test: return '\n'; | 12 |
437 | } | - |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | inline uint QXmlStreamReaderPrivate::getChar() | - |
444 | { | - |
445 | uint c; | - |
446 | if (putStack.size()TRUE | evaluated 2882731 times by 36 testsEvaluated 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 | evaluated 19625700 times by 36 testsEvaluated 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 = atEndTRUE | evaluated 4859 times by 1 test | FALSE | evaluated 2877872 times by 36 testsEvaluated 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()TRUE | evaluated 19508616 times by 36 testsEvaluated 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 | evaluated 117084 times by 36 testsEvaluated 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 | returnexecuted 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 | | - |
458 | inline uint QXmlStreamReaderPrivate::peekChar() | - |
459 | { | - |
460 | uint c; | - |
461 | if (putStack.size()TRUE | evaluated 14016 times by 13 testsEvaluated 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
| FALSE | evaluated 83809 times by 35 testsEvaluated 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()TRUE | evaluated 77127 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 6682 times by 1 test |
) { | 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 ((TRUE | evaluated 3331 times by 1 test | FALSE | evaluated 3351 times by 1 test |
c = getChar_helper()) != StreamEOFTRUE | evaluated 3331 times by 1 test | FALSE | evaluated 3351 times by 1 test |
) | 3331-3351 |
467 | --executed 3331 times by 1 test: --readBufferPos; readBufferPos;executed 3331 times by 1 test: --readBufferPos; | 3331 |
468 | }executed 6682 times by 1 test: end of block | 6682 |
469 | | - |
470 | returnexecuted 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 | } | - |
472 | bool QXmlStreamReaderPrivate::scanUntil(const char *str, short tokenToInject) | - |
473 | { | - |
474 | int pos = textBuffer.size(); | - |
475 | int oldLineNumber = lineNumber; | - |
476 | | - |
477 | uint c; | - |
478 | while ((TRUE | evaluated 1254415 times by 25 testsEvaluated 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 | evaluated 5870 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 1254415 times by 25 testsEvaluated 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 | evaluated 5870 times by 1 test |
) { | 5870-1254415 |
479 | | - |
480 | switch (c) { | - |
481 | caseexecuted 407 times by 1 test: case '\r': '\r':executed 407 times by 1 test: case '\r': | 407 |
482 | if ((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 404 times by 1 test |
c = filterCarriageReturn()) == 0TRUE | evaluated 3 times by 1 test | FALSE | evaluated 404 times by 1 test |
) | 3-404 |
483 | break;executed 3 times by 1 test: break; | 3 |
484 | | - |
485 | caseexecuted 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': | 404-1800 |
486 | ++lineNumber; | - |
487 | lastLineStart = characterOffset + readBufferPos; | - |
488 | | - |
489 | caseexecuted 723 times by 1 test: case '\t': '\t':executed 723 times by 1 test: case '\t': 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 | defaultexecuted 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 < 0x20TRUE | evaluated 36 times by 1 test | FALSE | evaluated 1251449 times by 25 testsEvaluated 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 > 0xFFFDTRUE | evaluated 5 times by 1 test | FALSE | evaluated 1251444 times by 25 testsEvaluated 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 < 0x10000TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
) || c > QChar::LastValidCodePointTRUE | never evaluated | FALSE | evaluated 1251444 times by 25 testsEvaluated 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 | returnexecuted 41 times by 1 test: return false; false;executed 41 times by 1 test: return false; | 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)TRUE | evaluated 71833 times by 25 testsEvaluated 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 | evaluated 1179614 times by 25 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 71833 times by 25 testsEvaluated 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 >= 0TRUE | never evaluated | FALSE | never 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)TRUE | evaluated 66081 times by 25 testsEvaluated 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 | evaluated 5752 times by 24 testsEvaluated 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 | returnexecuted 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 | returnexecuted 5870 times by 1 test: return false; false;executed 5870 times by 1 test: return false; | 5870 |
518 | } | - |
519 | | - |
520 | bool QXmlStreamReaderPrivate::scanString(const char *str, short tokenToInject, bool requireSpace) | - |
521 | { | - |
522 | int n = 0; | - |
523 | while (str[n]TRUE | evaluated 635395 times by 36 testsEvaluated 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 | evaluated 133216 times by 35 testsEvaluated 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])TRUE | evaluated 29730 times by 35 testsEvaluated 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 | evaluated 605665 times by 36 testsEvaluated 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 != StreamEOFTRUE | evaluated 11559 times by 35 testsEvaluated 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 | evaluated 18171 times by 2 testsEvaluated 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--TRUE | evaluated 39487 times by 13 testsEvaluated 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 | evaluated 29730 times by 35 testsEvaluated 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 | returnexecuted 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 < nTRUE | evaluated 566178 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 133216 times by 35 testsEvaluated 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 (requireSpaceTRUE | evaluated 13715 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 119501 times by 26 testsEvaluated 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 (!sTRUE | evaluated 1609 times by 1 test | FALSE | evaluated 12106 times by 35 testsEvaluated 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
- ...
|
|| atEndTRUE | evaluated 1435 times by 1 test | FALSE | evaluated 10671 times by 35 testsEvaluated 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 | returnexecuted 3044 times by 1 test: return false; false;executed 3044 times by 1 test: return false; | 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 >= 0TRUE | evaluated 64091 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 66081 times by 25 testsEvaluated 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 | returnexecuted 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 | | - |
551 | bool QXmlStreamReaderPrivate::scanAfterLangleBang() | - |
552 | { | - |
553 | switch (peekChar()) { | - |
554 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 382 times by 1 test: case 'N': 'N':executed 382 times by 1 test: case 'N': | 382 |
561 | returnexecuted 382 times by 1 test: return scanString(spell[NOTATION], NOTATION); scanString(spell[NOTATION], NOTATION);executed 382 times by 1 test: return scanString(spell[NOTATION], NOTATION); | 382 |
562 | caseexecuted 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)TRUE | evaluated 2196 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 4576 times by 1 test |
) | 2196-4576 |
564 | returnexecuted 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 | returnexecuted 4576 times by 1 test: return scanString(spell[ENTITY], ENTITY); scanString(spell[ENTITY], ENTITY);executed 4576 times by 1 test: return scanString(spell[ENTITY], ENTITY); | 4576 |
566 | | - |
567 | defaultexecuted 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 | returnexecuted 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 | | - |
573 | bool QXmlStreamReaderPrivate::scanPublicOrSystem() | - |
574 | { | - |
575 | switch (peekChar()) { | - |
576 | caseexecuted 440 times by 1 test: case 'S': 'S':executed 440 times by 1 test: case 'S': | 440 |
577 | returnexecuted 440 times by 1 test: return scanString(spell[SYSTEM], SYSTEM); scanString(spell[SYSTEM], SYSTEM);executed 440 times by 1 test: return scanString(spell[SYSTEM], SYSTEM); | 440 |
578 | caseexecuted 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 | returnexecuted 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 | defaultexecuted 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 | returnexecuted 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 | | - |
586 | bool QXmlStreamReaderPrivate::scanNData() | - |
587 | { | - |
588 | if (fastScanSpace()TRUE | evaluated 150 times by 1 test | FALSE | evaluated 48 times by 1 test |
) { | 48-150 |
589 | if (scanString(spell[NDATA], NDATA)TRUE | evaluated 47 times by 1 test | FALSE | evaluated 103 times by 1 test |
) | 47-103 |
590 | returnexecuted 47 times by 1 test: return true; true;executed 47 times by 1 test: return true; | 47 |
591 | putChar(' '); | - |
592 | }executed 103 times by 1 test: end of block | 103 |
593 | returnexecuted 151 times by 1 test: return false; false;executed 151 times by 1 test: return false; | 151 |
594 | } | - |
595 | | - |
596 | bool QXmlStreamReaderPrivate::scanAfterDefaultDecl() | - |
597 | { | - |
598 | switch (peekChar()) { | - |
599 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | defaultexecuted 200 times by 1 test: default: :executed 200 times by 1 test: default: | 200 |
606 | ; | - |
607 | }executed 200 times by 1 test: end of block | 200 |
608 | returnexecuted 200 times by 1 test: return false; false;executed 200 times by 1 test: return false; | 200 |
609 | } | - |
610 | | - |
611 | bool QXmlStreamReaderPrivate::scanAttType() | - |
612 | { | - |
613 | switch (peekChar()) { | - |
614 | caseexecuted 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 | returnexecuted 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 | caseexecuted 272 times by 1 test: case 'I': 'I':executed 272 times by 1 test: case 'I': | 272 |
617 | if (scanString(spell[ID], ID)TRUE | evaluated 70 times by 1 test | FALSE | evaluated 202 times by 1 test |
) | 70-202 |
618 | returnexecuted 70 times by 1 test: return true; true;executed 70 times by 1 test: return true; | 70 |
619 | if (scanString(spell[IDREF], IDREF)TRUE | evaluated 23 times by 1 test | FALSE | evaluated 179 times by 1 test |
) | 23-179 |
620 | returnexecuted 23 times by 1 test: return true; true;executed 23 times by 1 test: return true; | 23 |
621 | returnexecuted 179 times by 1 test: return scanString(spell[IDREFS], IDREFS); scanString(spell[IDREFS], IDREFS);executed 179 times by 1 test: return scanString(spell[IDREFS], IDREFS); | 179 |
622 | caseexecuted 163 times by 1 test: case 'E': 'E':executed 163 times by 1 test: case 'E': | 163 |
623 | if (scanString(spell[ENTITY], ENTITY)TRUE | evaluated 26 times by 1 test | FALSE | evaluated 137 times by 1 test |
) | 26-137 |
624 | returnexecuted 26 times by 1 test: return true; true;executed 26 times by 1 test: return true; | 26 |
625 | returnexecuted 137 times by 1 test: return scanString(spell[ENTITIES], ENTITIES); scanString(spell[ENTITIES], ENTITIES);executed 137 times by 1 test: return scanString(spell[ENTITIES], ENTITIES); | 137 |
626 | caseexecuted 334 times by 1 test: case 'N': 'N':executed 334 times by 1 test: case 'N': | 334 |
627 | if (scanString(spell[NOTATION], NOTATION)TRUE | evaluated 42 times by 1 test | FALSE | evaluated 292 times by 1 test |
) | 42-292 |
628 | returnexecuted 42 times by 1 test: return true; true;executed 42 times by 1 test: return true; | 42 |
629 | if (scanString(spell[NMTOKEN], NMTOKEN)TRUE | evaluated 24 times by 1 test | FALSE | evaluated 268 times by 1 test |
) | 24-268 |
630 | returnexecuted 24 times by 1 test: return true; true;executed 24 times by 1 test: return true; | 24 |
631 | returnexecuted 268 times by 1 test: return scanString(spell[NMTOKENS], NMTOKENS); scanString(spell[NMTOKENS], NMTOKENS);executed 268 times by 1 test: return scanString(spell[NMTOKENS], NMTOKENS); | 268 |
632 | defaultexecuted 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 | returnexecuted 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 | } | - |
637 | inline int QXmlStreamReaderPrivate::fastScanLiteralContent() | - |
638 | { | - |
639 | int n = 0; | - |
640 | uint c; | - |
641 | while ((TRUE | evaluated 1550595 times by 36 testsEvaluated 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 | evaluated 2235 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 1550595 times by 36 testsEvaluated 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 | evaluated 2235 times by 1 test |
) { | 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 | caseexecuted 82 times by 1 test: case 0: 0:executed 82 times by 1 test: case 0: | 82 |
646 | | - |
647 | | - |
648 | putChar(c); | - |
649 | returnexecuted 82 times by 1 test: return n; n;executed 82 times by 1 test: return n; | 82 |
650 | caseexecuted 24 times by 1 test: case '\r': '\r':executed 24 times by 1 test: case '\r': | 24 |
651 | if (filterCarriageReturn() == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 23 times by 1 test |
) | 1-23 |
652 | returnexecuted 1 time by 1 test: return n; n;executed 1 time by 1 test: return n; | 1 |
653 | | - |
654 | caseexecuted 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': | 23-534 |
655 | ++lineNumber; | - |
656 | lastLineStart = characterOffset + readBufferPos; | - |
657 | | - |
658 | caseexecuted 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 | caseexecuted 18 times by 1 test: case '\t': '\t':executed 18 times by 1 test: case '\t': | 18 |
660 | if (normalizeLiteralsTRUE | evaluated 15517 times by 4 testsEvaluated by:- tst_QDBusXmlParser
- tst_QMimeDatabase
- tst_QXmlStream
- tst_Selftests
| FALSE | evaluated 1049 times by 12 testsEvaluated 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 | caseexecuted 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 | caseexecuted 19 times by 1 test: case '<': '<':executed 19 times by 1 test: case '<': | 19 |
668 | caseexecuted 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 | caseexecuted 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)TRUE | evaluated 370962 times by 36 testsEvaluated 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 | never evaluated |
) { | 0-370962 |
671 | putChar(c); | - |
672 | returnexecuted 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 | defaultexecuted 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 < 0x20TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1162981 times by 36 testsEvaluated 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 | returnexecuted 3 times by 1 test: return n; n;executed 3 times by 1 test: return n; | 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 | returnexecuted 2235 times by 1 test: return n; n;executed 2235 times by 1 test: return n; | 2235 |
685 | } | - |
686 | | - |
687 | inline int QXmlStreamReaderPrivate::fastScanSpace() | - |
688 | { | - |
689 | int n = 0; | - |
690 | uint c; | - |
691 | while ((TRUE | evaluated 435917 times by 36 testsEvaluated 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 | evaluated 6683 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 435917 times by 36 testsEvaluated 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 | evaluated 6683 times by 1 test |
) { | 6683-435917 |
692 | switch (c) { | - |
693 | caseexecuted 323 times by 1 test: case '\r': '\r':executed 323 times by 1 test: case '\r': | 323 |
694 | if ((TRUE | evaluated 45 times by 1 test | FALSE | evaluated 278 times by 1 test |
c = filterCarriageReturn()) == 0TRUE | evaluated 45 times by 1 test | FALSE | evaluated 278 times by 1 test |
) | 45-278 |
695 | returnexecuted 45 times by 1 test: return n; n;executed 45 times by 1 test: return n; | 45 |
696 | | - |
697 | caseexecuted 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': | 135-278 |
698 | ++lineNumber; | - |
699 | lastLineStart = characterOffset + readBufferPos; | - |
700 | | - |
701 | caseexecuted 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 | caseexecuted 562 times by 1 test: case '\t': '\t':executed 562 times by 1 test: case '\t': | 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 | defaultexecuted 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 | returnexecuted 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 | returnexecuted 6683 times by 1 test: return n; n;executed 6683 times by 1 test: return n; | 6683 |
712 | } | - |
713 | | - |
714 | | - |
715 | | - |
716 | | - |
717 | | - |
718 | | - |
719 | | - |
720 | inline int QXmlStreamReaderPrivate::fastScanContentCharList() | - |
721 | { | - |
722 | int n = 0; | - |
723 | uint c; | - |
724 | while ((TRUE | evaluated 5116550 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 8002 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 5116550 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 8002 times by 1 test |
) { | 8002-5116550 |
725 | switch (ushort(c)) { | - |
726 | case never executed: case 0xfffe: 0xfffe:never executed: case 0xfffe: | 0 |
727 | caseexecuted 1 time by 1 test: case 0xffff: 0xffff:executed 1 time by 1 test: case 0xffff: | 1 |
728 | caseexecuted 60 times by 1 test: case 0: 0:executed 60 times by 1 test: case 0: | 60 |
729 | putChar(c); | - |
730 | returnexecuted 61 times by 1 test: return n; n;executed 61 times by 1 test: return n; | 61 |
731 | caseexecuted 17 times by 1 test: case ']': ']':executed 17 times by 1 test: case ']': { | 17 |
732 | isWhitespace = false; | - |
733 | int pos = textBuffer.size(); | - |
734 | textBuffer += QChar(ushort(c)); | - |
735 | ++n; | - |
736 | while ((TRUE | evaluated 11 times by 1 test | FALSE | evaluated 17 times by 1 test |
c = getChar()) == ']'TRUE | evaluated 11 times by 1 test | FALSE | evaluated 17 times by 1 test |
) { | 11-17 |
737 | textBuffer += QChar(ushort(c)); | - |
738 | ++n; | - |
739 | }executed 11 times by 1 test: end of block | 11 |
740 | if (c == 0TRUE | never evaluated | FALSE | evaluated 17 times by 1 test |
) { | 0-17 |
741 | putString(textBuffer, pos); | - |
742 | textBuffer.resize(pos); | - |
743 | } never executed: end of block else if (c == '>'TRUE | evaluated 9 times by 1 test | FALSE | evaluated 8 times by 1 test |
&& textBuffer.at(textBuffer.size()-2) == QLatin1Char(']')TRUE | evaluated 8 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 0-9 |
744 | raiseWellFormedError(QXmlStream::tr("Sequence ']]>' not allowed in content.")); | - |
745 | }executed 8 times by 1 test: end of block else { | 8 |
746 | putChar(c); | - |
747 | break;executed 9 times by 1 test: break; | 9 |
748 | } | - |
749 | returnexecuted 8 times by 1 test: return n; n;executed 8 times by 1 test: return n; | 8 |
750 | } break; dead code: break; | - |
751 | caseexecuted 389 times by 1 test: case '\r': '\r':executed 389 times by 1 test: case '\r': | 389 |
752 | if ((TRUE | evaluated 127 times by 1 test | FALSE | evaluated 262 times by 1 test |
c = filterCarriageReturn()) == 0TRUE | evaluated 127 times by 1 test | FALSE | evaluated 262 times by 1 test |
) | 127-262 |
753 | returnexecuted 127 times by 1 test: return n; n;executed 127 times by 1 test: return n; | 127 |
754 | | - |
755 | caseexecuted 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': | 262-439 |
756 | ++lineNumber; | - |
757 | lastLineStart = characterOffset + readBufferPos; | - |
758 | | - |
759 | caseexecuted 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 | caseexecuted 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 | caseexecuted 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)TRUE | evaluated 677426 times by 34 testsEvaluated 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
- ...
| FALSE | never evaluated |
) { | 0-677426 |
767 | putChar(c); | - |
768 | returnexecuted 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 | defaultexecuted 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 < 0x20TRUE | evaluated 5 times by 1 test | FALSE | evaluated 3004773 times by 24 testsEvaluated 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 | returnexecuted 5 times by 1 test: return n; n;executed 5 times by 1 test: return n; | 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 | returnexecuted 8002 times by 1 test: return n; n;executed 8002 times by 1 test: return n; | 8002 |
782 | } | - |
783 | | - |
784 | inline int QXmlStreamReaderPrivate::fastScanName(int *prefix) | - |
785 | { | - |
786 | int n = 0; | - |
787 | uint c; | - |
788 | while ((TRUE | evaluated 7714886 times by 36 testsEvaluated 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 | evaluated 9761 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 7714886 times by 36 testsEvaluated 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 | evaluated 9761 times by 1 test |
) { | 9761-7714886 |
789 | switch (c) { | - |
790 | caseexecuted 46 times by 1 test: case '\n': '\n':executed 46 times by 1 test: case '\n': | 46 |
791 | caseexecuted 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 | caseexecuted 63 times by 1 test: case '\t': '\t':executed 63 times by 1 test: case '\t': | 63 |
793 | caseexecuted 300 times by 1 test: case '\r': '\r':executed 300 times by 1 test: case '\r': | 300 |
794 | caseexecuted 1 time by 1 test: case '&': '&':executed 1 time by 1 test: case '&': | 1 |
795 | caseexecuted 1 time by 1 test: case '#': '#':executed 1 time by 1 test: case '#': | 1 |
796 | caseexecuted 1 time by 1 test: case '\'': '\'':executed 1 time by 1 test: case '\'': | 1 |
797 | caseexecuted 13 times by 1 test: case '\"': '\"':executed 13 times by 1 test: case '\"': | 13 |
798 | caseexecuted 2 times by 1 test: case '<': '<':executed 2 times by 1 test: case '<': | 2 |
799 | caseexecuted 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 | caseexecuted 1 time by 1 test: case '[': '[':executed 1 time by 1 test: case '[': | 1 |
801 | caseexecuted 2 times by 1 test: case ']': ']':executed 2 times by 1 test: case ']': | 2 |
802 | caseexecuted 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 | caseexecuted 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 | caseexecuted 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 | caseexecuted 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 | caseexecuted 2 times by 1 test: case '!': '!':executed 2 times by 1 test: case '!': | 2 |
808 | caseexecuted 2 times by 1 test: case '^': '^':executed 2 times by 1 test: case '^': | 2 |
809 | caseexecuted 102 times by 1 test: case '|': '|':executed 102 times by 1 test: case '|': | 102 |
810 | caseexecuted 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 | caseexecuted 7 times by 1 test: case '(': '(':executed 7 times by 1 test: case '(': | 7 |
812 | caseexecuted 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 | caseexecuted 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 | caseexecuted 31 times by 1 test: case '*': '*':executed 31 times by 1 test: case '*': | 31 |
815 | putChar(c); | - |
816 | if (prefixTRUE | evaluated 1079735 times by 36 testsEvaluated 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 | evaluated 3223 times by 4 testsEvaluated by:- tst_QDBusInterface
- tst_QMimeDatabase
- tst_QXmlStream
- tst_Selftests
|
&& *TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1079731 times by 36 testsEvaluated 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+1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1079731 times by 36 testsEvaluated 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 | 4 |
821 | returnexecuted 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 | caseexecuted 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 (prefixTRUE | evaluated 243736 times by 24 testsEvaluated 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
| FALSE | evaluated 7 times by 1 test |
) { | 7-243736 |
824 | if (*TRUE | evaluated 243734 times by 24 testsEvaluated 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
| FALSE | evaluated 2 times by 1 test |
prefix == 0TRUE | evaluated 243734 times by 24 testsEvaluated 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
| FALSE | evaluated 2 times by 1 test |
) { | 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 | returnexecuted 2 times by 1 test: return n; n;executed 2 times by 1 test: return n; | 2 |
829 | } | - |
830 | } else { | - |
831 | putChar(c); | - |
832 | returnexecuted 7 times by 1 test: return n; n;executed 7 times by 1 test: return n; | 7 |
833 | } | - |
834 | | - |
835 | defaultexecuted 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 (prefixTRUE | evaluated 8770 times by 1 test | FALSE | evaluated 991 times by 1 test |
) | 991-8770 |
842 | *executed 8770 times by 1 test: *prefix = 0; prefix = 0;executed 8770 times by 1 test: *prefix = 0; | 8770 |
843 | int pos = textBuffer.size() - n; | - |
844 | putString(textBuffer, pos); | - |
845 | textBuffer.resize(pos); | - |
846 | returnexecuted 9761 times by 1 test: return 0; 0;executed 9761 times by 1 test: return 0; | 9761 |
847 | } | - |
848 | | - |
849 | enum NameChar { NameBeginning, NameNotBeginning, NotName }; | - |
850 | | - |
851 | static const char Begi = static_cast<char>(NameBeginning); | - |
852 | static const char NtBg = static_cast<char>(NameNotBeginning); | - |
853 | static const char NotN = static_cast<char>(NotName); | - |
854 | | - |
855 | static 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 | | - |
883 | static inline NameChar fastDetermineNameChar(QChar ch) | - |
884 | { | - |
885 | ushort uc = ch.unicode(); | - |
886 | if (!(uc & ~0x7f)TRUE | evaluated 2874 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | never evaluated |
) | 0-2874 |
887 | returnexecuted 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_UppercaseTRUE | never evaluated | FALSE | never evaluated |
&& cat <= QChar::Letter_OtherTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
892 | || cat == QChar::Number_LetterTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
893 | return never executed: return NameBeginning; NameBeginning;never executed: return NameBeginning; | 0 |
894 | if ((cat >= QChar::Number_DecimalDigitTRUE | never evaluated | FALSE | never evaluated |
&& cat <= QChar::Number_OtherTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
895 | || (cat >= QChar::Mark_NonSpacingTRUE | never evaluated | FALSE | never evaluated |
&& cat <= QChar::Mark_EnclosingTRUE | never evaluated | FALSE | never 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 | | - |
900 | inline int QXmlStreamReaderPrivate::fastScanNMTOKEN() | - |
901 | { | - |
902 | int n = 0; | - |
903 | uint c; | - |
904 | while ((TRUE | evaluated 2874 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 229 times by 1 test |
c = getChar()) != StreamEOFTRUE | evaluated 2874 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 229 times by 1 test |
) { | 229-2874 |
905 | if (fastDetermineNameChar(c) == NotNameTRUE | evaluated 350 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 2524 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
) { | 350-2524 |
906 | putChar(c); | - |
907 | returnexecuted 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 | returnexecuted 229 times by 1 test: return n; n;executed 229 times by 1 test: return n; | 229 |
919 | } | - |
920 | | - |
921 | void QXmlStreamReaderPrivate::putString(const QString &s, int from) | - |
922 | { | - |
923 | putStack.reserve(s.size()); | - |
924 | for (int i = s.size()-1; i >= fromTRUE | evaluated 205554 times by 1 test | FALSE | evaluated 18909 times by 1 test |
; --i) | 18909-205554 |
925 | putStack.rawPush() = s.at(i).unicode();executed 205554 times by 1 test: putStack.rawPush() = s.at(i).unicode(); | 205554 |
926 | }executed 18909 times by 1 test: end of block | 18909 |
927 | | - |
928 | void QXmlStreamReaderPrivate::putStringLiteral(const QString &s) | - |
929 | { | - |
930 | putStack.reserve(s.size()); | - |
931 | for (int i = s.size()-1; i >= 0TRUE | evaluated 1805 times by 4 testsEvaluated by:- tst_QDBusInterface
- tst_QMimeDatabase
- tst_QXmlStream
- tst_Selftests
| FALSE | evaluated 1792 times by 4 testsEvaluated 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 | | - |
935 | void QXmlStreamReaderPrivate::putReplacement(const QString &s) | - |
936 | { | - |
937 | putStack.reserve(s.size()); | - |
938 | for (int i = s.size()-1; i >= 0TRUE | evaluated 1077 times by 1 test | FALSE | evaluated 117 times by 1 test |
; --i) { | 117-1077 |
939 | ushort c = s.at(i).unicode(); | - |
940 | if (c == '\n'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1075 times by 1 test |
|| c == '\r'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1073 times by 1 test |
) | 2-1075 |
941 | putStack.rawPush() = ((LETTER << 16) | c);executed 4 times by 1 test: putStack.rawPush() = ((LETTER << 16) | c); | 4 |
942 | else | - |
943 | putStack.rawPush() = c;executed 1073 times by 1 test: putStack.rawPush() = c; | 1073 |
944 | } | - |
945 | }executed 117 times by 1 test: end of block | 117 |
946 | void QXmlStreamReaderPrivate::putReplacementInAttributeValue(const QString &s) | - |
947 | { | - |
948 | putStack.reserve(s.size()); | - |
949 | for (int i = s.size()-1; i >= 0TRUE | evaluated 990 times by 1 test | FALSE | evaluated 98 times by 1 test |
; --i) { | 98-990 |
950 | ushort c = s.at(i).unicode(); | - |
951 | if (c == '&'TRUE | evaluated 49 times by 1 test | FALSE | evaluated 941 times by 1 test |
|| c == ';'TRUE | evaluated 60 times by 1 test | FALSE | evaluated 881 times by 1 test |
) | 49-941 |
952 | putStack.rawPush() = c;executed 109 times by 1 test: putStack.rawPush() = c; | 109 |
953 | else if (c == '\n'TRUE | evaluated 4 times by 1 test | FALSE | evaluated 877 times by 1 test |
|| c == '\r'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 875 times by 1 test |
) | 2-877 |
954 | putStack.rawPush() = ' ';executed 6 times by 1 test: putStack.rawPush() = ' '; | 6 |
955 | else | - |
956 | putStack.rawPush() = ((LETTER << 16) | c);executed 875 times by 1 test: putStack.rawPush() = ((LETTER << 16) | c); | 875 |
957 | } | - |
958 | }executed 98 times by 1 test: end of block | 98 |
959 | | - |
960 | uint QXmlStreamReaderPrivate::getChar_helper() | - |
961 | { | - |
962 | const int BUFFER_SIZE = 8192; | - |
963 | characterOffset += readBufferPos; | - |
964 | readBufferPos = 0; | - |
965 | readBuffer.resize(0); | - |
966 | | - |
967 | if (decoderTRUE | evaluated 116020 times by 15 testsEvaluated 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
| FALSE | evaluated 7746 times by 24 testsEvaluated 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 (deviceTRUE | evaluated 5829 times by 23 testsEvaluated 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
| FALSE | evaluated 117937 times by 14 testsEvaluated 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 (nbytesreadTRUE | evaluated 780 times by 1 test | FALSE | evaluated 117157 times by 14 testsEvaluated 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; | 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 (!nbytesreadTRUE | evaluated 59780 times by 15 testsEvaluated 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
| FALSE | evaluated 63986 times by 36 testsEvaluated 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 | returnexecuted 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 (!decoderTRUE | evaluated 6108 times by 24 testsEvaluated 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
| FALSE | evaluated 57878 times by 14 testsEvaluated 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 < 4TRUE | evaluated 782 times by 1 test | FALSE | evaluated 5326 times by 24 testsEvaluated 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 | returnexecuted 782 times by 1 test: return StreamEOF; StreamEOF;executed 782 times by 1 test: return StreamEOF; | 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 == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5325 times by 24 testsEvaluated 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 == 0TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& ch3 == 0xfeTRUE | never evaluated | FALSE | never evaluated |
&& ch4 == 0xffTRUE | never evaluated | FALSE | never evaluated |
) || | 0-5325 |
1003 | (ch1 == 0xffTRUE | evaluated 40 times by 1 test | FALSE | evaluated 5286 times by 24 testsEvaluated 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 == 0xfeTRUE | evaluated 40 times by 1 test | FALSE | never evaluated |
&& ch3 == 0TRUE | never evaluated | FALSE | evaluated 40 times by 1 test |
&& ch4 == 0TRUE | never evaluated | FALSE | never evaluated |
)) | 0-5286 |
1004 | mib = 1017; never executed: mib = 1017; | 0 |
1005 | else if (ch1 == 0x3cTRUE | evaluated 5248 times by 24 testsEvaluated 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
| FALSE | evaluated 78 times by 1 test |
&& ch2 == 0x00TRUE | never evaluated | FALSE | evaluated 5248 times by 24 testsEvaluated 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 == 0x00TRUE | never evaluated | FALSE | never evaluated |
&& ch4 == 0x00TRUE | never evaluated | FALSE | never evaluated |
) | 0-5248 |
1006 | mib = 1019; never executed: mib = 1019; | 0 |
1007 | else if (ch1 == 0x00TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5325 times by 24 testsEvaluated 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 == 0x00TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& ch3 == 0x00TRUE | never evaluated | FALSE | never evaluated |
&& ch4 == 0x3cTRUE | never evaluated | FALSE | never evaluated |
) | 0-5325 |
1008 | mib = 1018; never executed: mib = 1018; | 0 |
1009 | else if ((ch1 == 0xfeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 5325 times by 24 testsEvaluated 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 == 0xffTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) || (ch1 == 0xffTRUE | evaluated 40 times by 1 test | FALSE | evaluated 5285 times by 24 testsEvaluated 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 == 0xfeTRUE | evaluated 40 times by 1 test | FALSE | never evaluated |
)) | 0-5325 |
1010 | mib = 1015;executed 41 times by 1 test: mib = 1015; | 41 |
1011 | else if (ch1 == 0x3cTRUE | evaluated 5248 times by 24 testsEvaluated 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
| FALSE | evaluated 37 times by 1 test |
&& ch2 == 0x00TRUE | never evaluated | FALSE | evaluated 5248 times by 24 testsEvaluated 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 == 0x00TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5284 times by 24 testsEvaluated 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 == 0x3cTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-5284 |
1014 | mib = 1013;executed 1 time by 1 test: mib = 1013; | 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(lockEncodingTRUE | evaluated 55226 times by 14 testsEvaluated 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
| FALSE | evaluated 7978 times by 24 testsEvaluated 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()TRUE | never evaluated | FALSE | evaluated 55226 times by 14 testsEvaluated 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()TRUE | evaluated 62961 times by 36 testsEvaluated 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 | evaluated 243 times by 1 test |
) { | 243-62961 |
1034 | ushort c = readBuffer.at(readBufferPos++).unicode(); | - |
1035 | returnexecuted 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 | returnexecuted 243 times by 1 test: return StreamEOF; StreamEOF;executed 243 times by 1 test: return StreamEOF; | 243 |
1040 | } | - |
1041 | | - |
1042 | QStringRef QXmlStreamReaderPrivate::namespaceForPrefix(const QStringRef &prefix) | - |
1043 | { | - |
1044 | for (int j = namespaceDeclarations.size() - 1; j >= 0TRUE | evaluated 970435 times by 36 testsEvaluated 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 | evaluated 78711 times by 14 testsEvaluated 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 == prefixTRUE | evaluated 516892 times by 24 testsEvaluated 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
| FALSE | evaluated 453543 times by 36 testsEvaluated 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 | returnexecuted 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 (namespaceProcessingTRUE | evaluated 78711 times by 14 testsEvaluated 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
| FALSE | never evaluated |
&& !prefix.isEmpty()TRUE | evaluated 6 times by 1 test | FALSE | evaluated 78705 times by 14 testsEvaluated 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())); | 6 |
1054 | | - |
1055 | | - |
1056 | returnexecuted 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 | | - |
1062 | void QXmlStreamReaderPrivate::resolveTag() | - |
1063 | { | - |
1064 | int n = attributeStack.size(); | - |
1065 | | - |
1066 | if (namespaceProcessingTRUE | evaluated 352257 times by 36 testsEvaluated 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 | never evaluated |
) { | 0-352257 |
1067 | for (int a = 0; a < dtdAttributes.size()TRUE | evaluated 3832797 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 352257 times by 36 testsEvaluated 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.isNamespaceAttributeTRUE | evaluated 3679128 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 153669 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
| 153669-3679128 |
1070 | || dtdAttribute.defaultValue.isNull()TRUE | evaluated 91 times by 1 test | FALSE | evaluated 153578 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
| 91-153578 |
1071 | || dtdAttribute.tagName != qualifiedNameTRUE | evaluated 153569 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
| 9-153569 |
1072 | || dtdAttribute.attributeQualifiedName.isNull()TRUE | never evaluated | FALSE | evaluated 9 times by 2 testsEvaluated 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 < nTRUE | evaluated 3 times by 1 test | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
&& symName(attributeStack[i].key) != dtdAttribute.attributeQualifiedNameTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-9 |
1076 | ++executed 3 times by 1 test: ++i; i;executed 3 times by 1 test: ++i; | 3 |
1077 | if (i != nTRUE | never evaluated | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
) | 0-9 |
1078 | continue; never executed: continue; | 0 |
1079 | if (dtdAttribute.attributePrefix.isEmpty()TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 2 times by 1 test |
&& dtdAttribute.attributeName == QLatin1String("xmlns")TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | never 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/")TRUE | never evaluated | FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
|| | 0-7 |
1085 | ns == QLatin1String("http://www.w3.org/XML/1998/namespace")TRUE | never evaluated | FALSE | evaluated 7 times by 2 testsEvaluated 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")TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
1090 | NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push(); | - |
1091 | QStringRef namespacePrefix = dtdAttribute.attributeName; | - |
1092 | QStringRef namespaceUri = dtdAttribute.defaultValue; | - |
1093 | if (((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
namespacePrefix == QLatin1String("xml"))TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1094 | ^ (namespaceUri == QLatin1String("http://www.w3.org/XML/1998/namespace")))TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1095 | || namespaceUri == QLatin1String("http://www.w3.org/2000/xmlns/")TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1096 | || namespaceUri.isEmpty()TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1097 | || namespacePrefix == QLatin1String("xmlns")TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 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 | 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 < nTRUE | evaluated 386636 times by 36 testsEvaluated 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 | evaluated 352257 times by 36 testsEvaluated 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()TRUE | evaluated 243346 times by 23 testsEvaluated 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
| FALSE | evaluated 143290 times by 36 testsEvaluated 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 < iTRUE | evaluated 114648 times by 16 testsEvaluated 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
| FALSE | evaluated 386636 times by 36 testsEvaluated 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()TRUE | evaluated 38 times by 1 test | FALSE | evaluated 114610 times by 16 testsEvaluated 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()TRUE | evaluated 16 times by 1 test | FALSE | evaluated 22 times by 1 test |
| 16-22 |
1130 | && (namespaceProcessingTRUE | evaluated 16 times by 1 test | FALSE | never evaluated |
|| attributes[j].qualifiedName() == attribute.qualifiedName()TRUE | never evaluated | FALSE | never 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())); | 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()TRUE | evaluated 3832797 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 352257 times by 36 testsEvaluated 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.isNamespaceAttributeTRUE | evaluated 153669 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 3679128 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
|
| 153669-3679128 |
1138 | || dtdAttribute.defaultValue.isNull()TRUE | evaluated 3678960 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QXmlStream
| FALSE | evaluated 168 times by 1 test |
| 168-3678960 |
1139 | || dtdAttribute.tagName != qualifiedNameTRUE | evaluated 75 times by 1 test | FALSE | evaluated 93 times by 1 test |
| 75-93 |
1140 | || dtdAttribute.attributeQualifiedName.isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 91 times by 1 test |
) | 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 < nTRUE | evaluated 117 times by 1 test | FALSE | evaluated 36 times by 1 test |
&& symName(attributeStack[i].key) != dtdAttribute.attributeQualifiedNameTRUE | evaluated 62 times by 1 test | FALSE | evaluated 55 times by 1 test |
) | 36-117 |
1144 | ++executed 62 times by 1 test: ++i; i;executed 62 times by 1 test: ++i; | 62 |
1145 | if (i != nTRUE | evaluated 55 times by 1 test | FALSE | evaluated 36 times by 1 test |
) | 36-55 |
1146 | continue;executed 55 times by 1 test: continue; | 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()TRUE | never evaluated | FALSE | evaluated 36 times by 1 test |
) { | 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 | 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 | | - |
1166 | void 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 < nTRUE | evaluated 54 times by 1 test | FALSE | evaluated 446 times by 1 test |
; ++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 | 54 |
1177 | }executed 446 times by 1 test: end of block | 446 |
1178 | | - |
1179 | void QXmlStreamReaderPrivate::resolveDtd() | - |
1180 | { | - |
1181 | publicNotationDeclarations.resize(notationDeclarations.size()); | - |
1182 | for (int i = 0; i < notationDeclarations.size()TRUE | evaluated 79 times by 1 test | FALSE | evaluated 52 times by 1 test |
; ++i) { | 52-79 |
1183 | const QXmlStreamReaderPrivate::NotationDeclaration ¬ationDeclaration = 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 | 79 |
1190 | notationDeclarations.clear(); | - |
1191 | publicEntityDeclarations.resize(entityDeclarations.size()); | - |
1192 | for (int i = 0; i < entityDeclarations.size()TRUE | evaluated 44 times by 1 test | FALSE | evaluated 52 times by 1 test |
; ++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 | 44 |
1201 | entityDeclarations.clear(); | - |
1202 | parameterEntityHash.clear(); | - |
1203 | }executed 52 times by 1 test: end of block | 52 |
1204 | | - |
1205 | uint QXmlStreamReaderPrivate::resolveCharRef(int symbolIndex) | - |
1206 | { | - |
1207 | bool ok = true; | - |
1208 | uint s; | - |
1209 | | - |
1210 | if (sym(symbolIndex).c == 'x'TRUE | evaluated 1291 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
| FALSE | evaluated 143 times by 1 test |
) | 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); | 143 |
1214 | | - |
1215 | ok &= (s == 0x9TRUE | evaluated 14 times by 1 test | FALSE | evaluated 1420 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
|
|| s == 0xaTRUE | evaluated 18 times by 1 test | FALSE | evaluated 1402 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
|
|| s == 0xdTRUE | evaluated 13 times by 1 test | FALSE | evaluated 1389 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
|
|| (s >= 0x20TRUE | evaluated 1369 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
| FALSE | evaluated 20 times by 1 test |
&& s <= 0xd7ffTRUE | evaluated 1346 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
| FALSE | evaluated 23 times by 1 test |
) | 13-1420 |
1216 | || (s >= 0xe000TRUE | evaluated 21 times by 1 test | FALSE | evaluated 22 times by 1 test |
&& s <= 0xfffdTRUE | evaluated 4 times by 1 test | FALSE | evaluated 17 times by 1 test |
) || (s >= 0x10000TRUE | evaluated 14 times by 1 test | FALSE | evaluated 25 times by 1 test |
&& s <= QChar::LastValidCodePointTRUE | evaluated 13 times by 1 test | FALSE | evaluated 1 time by 1 test |
)); | 1-25 |
1217 | | - |
1218 | returnexecuted 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 | | - |
1222 | void 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 >= 0TRUE | evaluated 13888 times by 12 testsEvaluated 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
| FALSE | evaluated 295 times by 12 testsEvaluated 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] < 256TRUE | evaluated 13888 times by 12 testsEvaluated 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
| FALSE | never evaluated |
) | 0-13888 |
1231 | switch ((c = data[i])) { | - |
1232 | caseexecuted 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
casenever executed: case '\n': '\n':never executed: case '\n': caseexecuted 1 time by 1 test: case '\r': '\r':executed 1 time by 1 test: case '\r': caseexecuted 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
caseexecuted 3 times by 1 test: case '(': '(':executed 3 times by 1 test: case '(': caseexecuted 3 times by 1 test: case ')': ')':executed 3 times by 1 test: case ')': | 0-987 |
1233 | caseexecuted 3 times by 1 test: case '+': '+':executed 3 times by 1 test: case '+': caseexecuted 3 times by 1 test: case ',': ',':executed 3 times by 1 test: case ',': caseexecuted 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
caseexecuted 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
caseexecuted 3 times by 1 test: case ':': ':':executed 3 times by 1 test: case ':': caseexecuted 3 times by 1 test: case '=': '=':executed 3 times by 1 test: case '=': | 3-1546 |
1234 | caseexecuted 3 times by 1 test: case '?': '?':executed 3 times by 1 test: case '?': caseexecuted 5 times by 1 test: case ';': ';':executed 5 times by 1 test: case ';': caseexecuted 5 times by 1 test: case '!': '!':executed 5 times by 1 test: case '!': caseexecuted 5 times by 1 test: case '*': '*':executed 5 times by 1 test: case '*': caseexecuted 5 times by 1 test: case '#': '#':executed 5 times by 1 test: case '#': caseexecuted 5 times by 1 test: case '@': '@':executed 5 times by 1 test: case '@': | 3-5 |
1235 | caseexecuted 5 times by 1 test: case '$': '$':executed 5 times by 1 test: case '$': caseexecuted 5 times by 1 test: case '_': '_':executed 5 times by 1 test: case '_': caseexecuted 5 times by 1 test: case '%': '%':executed 5 times by 1 test: case '%': caseexecuted 3 times by 1 test: case '\'': '\'':executed 3 times by 1 test: case '\'': casenever 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 | defaultexecuted 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'TRUE | evaluated 7242 times by 12 testsEvaluated 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
| FALSE | evaluated 3301 times by 12 testsEvaluated 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'TRUE | evaluated 7242 times by 12 testsEvaluated 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
| FALSE | never evaluated |
) | 0-7242 |
1239 | || (c >= 'A'TRUE | evaluated 2782 times by 12 testsEvaluated 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
| FALSE | evaluated 519 times by 12 testsEvaluated 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'TRUE | evaluated 2782 times by 12 testsEvaluated 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
| FALSE | never evaluated |
) | 0-2782 |
1240 | || (c >= '0'TRUE | evaluated 519 times by 12 testsEvaluated 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
| FALSE | never evaluated |
&& c <= '9'TRUE | evaluated 519 times by 12 testsEvaluated 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
| FALSE | never 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 >= 0TRUE | never evaluated | FALSE | evaluated 295 times by 12 testsEvaluated 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 | | - |
1254 | bool QXmlStreamReaderPrivate::checkStartDocument() | - |
1255 | { | - |
1256 | hasCheckedStartDocument = true; | - |
1257 | | - |
1258 | if (scanString(spell[XML], XML)TRUE | evaluated 3714 times by 26 testsEvaluated 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
- ...
| FALSE | evaluated 4669 times by 13 testsEvaluated 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 | returnexecuted 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 (atEndTRUE | evaluated 2685 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 1984 times by 13 testsEvaluated 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 | returnexecuted 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 | | - |
1269 | void QXmlStreamReaderPrivate::startDocument() | - |
1270 | { | - |
1271 | QString err; | - |
1272 | if (documentVersion != QLatin1String("1.0")TRUE | evaluated 4 times by 1 test | FALSE | evaluated 3666 times by 26 testsEvaluated 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(' '))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
) | 1-3 |
1274 | err = QXmlStream::tr("Invalid XML version string.");executed 1 time by 1 test: err = QXmlStream::tr("Invalid XML version string."); | 1 |
1275 | else | - |
1276 | err = QXmlStream::tr("Unsupported XML version.");executed 3 times by 1 test: err = QXmlStream::tr("Unsupported XML version."); | 3 |
1277 | } | - |
1278 | int n = attributeStack.size(); | - |
1279 | | - |
1280 | | - |
1281 | | - |
1282 | | - |
1283 | | - |
1284 | bool hasStandalone = false; | - |
1285 | | - |
1286 | for (int i = 0; err.isNull()TRUE | evaluated 6760 times by 26 testsEvaluated 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
- ...
| FALSE | evaluated 31 times by 1 test |
&& i < nTRUE | evaluated 3121 times by 25 testsEvaluated 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 | evaluated 3639 times by 26 testsEvaluated 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()TRUE | evaluated 3121 times by 25 testsEvaluated 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 | never evaluated |
&& key == QLatin1String("encoding")TRUE | evaluated 3088 times by 25 testsEvaluated 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 | evaluated 33 times by 1 test |
) { | 0-3121 |
1293 | const QString name(value.toString()); | - |
1294 | documentEncoding = value; | - |
1295 | | - |
1296 | if(hasStandaloneTRUE | evaluated 1 time by 1 test | FALSE | evaluated 3087 times by 25 testsEvaluated 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."); | 1 |
1298 | if(!QXmlUtils::isEncName(name)TRUE | evaluated 16 times by 1 test | FALSE | evaluated 3072 times by 25 testsEvaluated 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); | 16 |
1300 | else { | - |
1301 | | - |
1302 | | - |
1303 | | - |
1304 | QTextCodec *const newCodec = QTextCodec::codecForName(name.toLatin1()); | - |
1305 | if (!newCodecTRUE | never evaluated | FALSE | evaluated 3072 times by 25 testsEvaluated 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 != codecTRUE | evaluated 4 times by 1 test | FALSE | evaluated 3068 times by 25 testsEvaluated 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
|
&& !lockEncodingTRUE | evaluated 4 times by 1 test | FALSE | never 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 | 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()TRUE | evaluated 33 times by 1 test | FALSE | never evaluated |
&& key == QLatin1String("standalone")TRUE | evaluated 29 times by 1 test | FALSE | evaluated 4 times by 1 test |
) { | 0-33 |
1316 | hasStandalone = true; | - |
1317 | if (value == QLatin1String("yes")TRUE | evaluated 21 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 8-21 |
1318 | standalone = true;executed 21 times by 1 test: standalone = true; | 21 |
1319 | else if (value == QLatin1String("no")TRUE | evaluated 2 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 2-6 |
1320 | standalone = false;executed 2 times by 1 test: standalone = false; | 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."); | 6 |
1323 | } else { | - |
1324 | err = QXmlStream::tr("Invalid attribute in XML declaration."); | - |
1325 | }executed 4 times by 1 test: end of block | 4 |
1326 | } | - |
1327 | | - |
1328 | if (!err.isNull()TRUE | evaluated 31 times by 1 test | FALSE | evaluated 3639 times by 26 testsEvaluated 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); | 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 | | - |
1334 | void QXmlStreamReaderPrivate::raiseError(QXmlStreamReader::Error error, const QString& message) | - |
1335 | { | - |
1336 | this->error = error; | - |
1337 | errorString = message; | - |
1338 | if (errorString.isNull()TRUE | evaluated 58733 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 1235 times by 2 testsEvaluated by:- tst_QDBusMetaObject
- tst_QXmlStream
|
) { | 1235-58733 |
1339 | if (error == QXmlStreamReader::PrematureEndOfDocumentErrorTRUE | evaluated 58733 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | never 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::CustomErrorTRUE | never evaluated | FALSE | never 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 | | - |
1348 | void 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 | | - |
1353 | void QXmlStreamReaderPrivate::parseError() | - |
1354 | { | - |
1355 | | - |
1356 | if (token == EOF_SYMBOLTRUE | evaluated 6305 times by 1 test | FALSE | evaluated 613 times by 1 test |
) { | 613-6305 |
1357 | raiseError(QXmlStreamReader::PrematureEndOfDocumentError); | - |
1358 | return;executed 6305 times by 1 test: return; | 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 != ERRORTRUE | evaluated 606 times by 1 test | FALSE | evaluated 7 times by 1 test |
) | 7-606 |
1366 | for (int tk = 0; tk < TERMINAL_COUNTTRUE | evaluated 34542 times by 1 test | FALSE | evaluated 606 times by 1 test |
; ++tk) { | 606-34542 |
1367 | int k = t_action(ers, tk); | - |
1368 | if (k <= 0TRUE | evaluated 31219 times by 1 test | FALSE | evaluated 3323 times by 1 test |
) | 3323-31219 |
1369 | continue;executed 31219 times by 1 test: continue; | 31219 |
1370 | if (spell[tk]TRUE | evaluated 3227 times by 1 test | FALSE | evaluated 96 times by 1 test |
) { | 96-3227 |
1371 | if (nexpected < nmaxTRUE | evaluated 1391 times by 1 test | FALSE | evaluated 1836 times by 1 test |
) | 1391-1836 |
1372 | expected[nexpected++] = tk;executed 1391 times by 1 test: expected[nexpected++] = tk; | 1391 |
1373 | }executed 3227 times by 1 test: end of block | 3227 |
1374 | }executed 3323 times by 1 test: end of block | 3323 |
1375 | | - |
1376 | error_message.clear (); | - |
1377 | if (nexpectedTRUE | evaluated 606 times by 1 test | FALSE | evaluated 7 times by 1 test |
&& nexpected < nmaxTRUE | evaluated 448 times by 1 test | FALSE | evaluated 158 times by 1 test |
) { | 7-606 |
1378 | bool first = true; | - |
1379 | | - |
1380 | for (int s = 0; s < nexpectedTRUE | evaluated 759 times by 1 test | FALSE | evaluated 448 times by 1 test |
; ++s) { | 448-759 |
1381 | if (firstTRUE | evaluated 448 times by 1 test | FALSE | evaluated 311 times by 1 test |
) | 311-448 |
1382 | error_message += QXmlStream::tr ("Expected ");executed 448 times by 1 test: error_message += QXmlStream::tr ("Expected "); | 448 |
1383 | else if (s == nexpected - 1TRUE | evaluated 222 times by 1 test | FALSE | evaluated 89 times by 1 test |
) | 89-222 |
1384 | error_message += QLatin1String (nexpected > 2 ? ", or " : " or ");executed 222 times by 1 test: error_message += QLatin1String (nexpected > 2 ? ", or " : " or "); | 222 |
1385 | else | - |
1386 | error_message += QLatin1String (", ");executed 89 times by 1 test: error_message += QLatin1String (", "); | 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 | 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 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 | 165 |
1401 | error_message += QLatin1Char('.'); | - |
1402 | | - |
1403 | raiseWellFormedError(error_message); | - |
1404 | }executed 613 times by 1 test: end of block | 613 |
1405 | | - |
1406 | void QXmlStreamReaderPrivate::resume(int rule) { | - |
1407 | resumeReduction = rule; | - |
1408 | if (error == QXmlStreamReader::NoErrorTRUE | evaluated 26 times by 1 test | FALSE | evaluated 44571 times by 1 test |
) | 26-44571 |
1409 | raiseError(QXmlStreamReader::PrematureEndOfDocumentError);executed 26 times by 1 test: raiseError(QXmlStreamReader::PrematureEndOfDocumentError); | 26 |
1410 | }executed 44597 times by 1 test: end of block | 44597 |
1411 | | - |
1412 | | - |
1413 | | - |
1414 | | - |
1415 | | - |
1416 | qint64 QXmlStreamReader::lineNumber() const | - |
1417 | { | - |
1418 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1419 | returnexecuted 584 times by 1 test: return d->lineNumber + 1; d->lineNumber + 1;executed 584 times by 1 test: return d->lineNumber + 1; | 584 |
1420 | } | - |
1421 | | - |
1422 | | - |
1423 | | - |
1424 | | - |
1425 | | - |
1426 | qint64 QXmlStreamReader::columnNumber() const | - |
1427 | { | - |
1428 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1429 | returnexecuted 584 times by 1 test: return d->characterOffset - d->lastLineStart + d->readBufferPos; d->characterOffset - d->lastLineStart + d->readBufferPos;executed 584 times by 1 test: return d->characterOffset - d->lastLineStart + d->readBufferPos; | 584 |
1430 | } | - |
1431 | | - |
1432 | | - |
1433 | | - |
1434 | | - |
1435 | | - |
1436 | qint64 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 | | - |
1446 | QStringRef QXmlStreamReader::text() const | - |
1447 | { | - |
1448 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1449 | returnexecuted 3556 times by 1 test: return d->text; d->text;executed 3556 times by 1 test: return d->text; | 3556 |
1450 | } | - |
1451 | QXmlStreamNotationDeclarations QXmlStreamReader::notationDeclarations() const | - |
1452 | { | - |
1453 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1454 | if (d->notationDeclarations.size()TRUE | evaluated 47 times by 1 test | FALSE | evaluated 2545 times by 1 test |
) | 47-2545 |
1455 | const_cast<executed 47 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd(); QXmlStreamReaderPrivate *>(d)->resolveDtd();executed 47 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd(); | 47 |
1456 | returnexecuted 2592 times by 1 test: return d->publicNotationDeclarations; d->publicNotationDeclarations;executed 2592 times by 1 test: return d->publicNotationDeclarations; | 2592 |
1457 | } | - |
1458 | QXmlStreamEntityDeclarations QXmlStreamReader::entityDeclarations() const | - |
1459 | { | - |
1460 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1461 | if (d->entityDeclarations.size()TRUE | evaluated 5 times by 1 test | FALSE | evaluated 1903 times by 1 test |
) | 5-1903 |
1462 | const_cast<executed 5 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd(); QXmlStreamReaderPrivate *>(d)->resolveDtd();executed 5 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolveDtd(); | 5 |
1463 | returnexecuted 1908 times by 1 test: return d->publicEntityDeclarations; d->publicEntityDeclarations;executed 1908 times by 1 test: return d->publicEntityDeclarations; | 1908 |
1464 | } | - |
1465 | QStringRef QXmlStreamReader::dtdName() const | - |
1466 | { | - |
1467 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1468 | if (d->type == QXmlStreamReader::DTDTRUE | evaluated 50 times by 1 test | FALSE | evaluated 1878 times by 1 test |
) | 50-1878 |
1469 | returnexecuted 50 times by 1 test: return d->dtdName; d->dtdName;executed 50 times by 1 test: return d->dtdName; | 50 |
1470 | returnexecuted 1878 times by 1 test: return QStringRef(); QStringRef();executed 1878 times by 1 test: return QStringRef(); | 1878 |
1471 | } | - |
1472 | QStringRef QXmlStreamReader::dtdPublicId() const | - |
1473 | { | - |
1474 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1475 | if (d->type == QXmlStreamReader::DTDTRUE | evaluated 27 times by 1 test | FALSE | evaluated 1878 times by 1 test |
) | 27-1878 |
1476 | returnexecuted 27 times by 1 test: return d->dtdPublicId; d->dtdPublicId;executed 27 times by 1 test: return d->dtdPublicId; | 27 |
1477 | returnexecuted 1878 times by 1 test: return QStringRef(); QStringRef();executed 1878 times by 1 test: return QStringRef(); | 1878 |
1478 | } | - |
1479 | QStringRef QXmlStreamReader::dtdSystemId() const | - |
1480 | { | - |
1481 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1482 | if (d->type == QXmlStreamReader::DTDTRUE | evaluated 27 times by 1 test | FALSE | evaluated 1878 times by 1 test |
) | 27-1878 |
1483 | returnexecuted 27 times by 1 test: return d->dtdSystemId; d->dtdSystemId;executed 27 times by 1 test: return d->dtdSystemId; | 27 |
1484 | returnexecuted 1878 times by 1 test: return QStringRef(); QStringRef();executed 1878 times by 1 test: return QStringRef(); | 1878 |
1485 | } | - |
1486 | QXmlStreamNamespaceDeclarations QXmlStreamReader::namespaceDeclarations() const | - |
1487 | { | - |
1488 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1489 | if (d->publicNamespaceDeclarations.isEmpty()TRUE | evaluated 1907 times by 1 test | FALSE | evaluated 38 times by 1 test |
&& d->type == StartElementTRUE | evaluated 446 times by 1 test | FALSE | evaluated 1461 times by 1 test |
) | 38-1907 |
1490 | const_cast<executed 446 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces(); QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces();executed 446 times by 1 test: const_cast<QXmlStreamReaderPrivate *>(d)->resolvePublicNamespaces(); | 446 |
1491 | returnexecuted 1945 times by 1 test: return d->publicNamespaceDeclarations; d->publicNamespaceDeclarations;executed 1945 times by 1 test: return d->publicNamespaceDeclarations; | 1945 |
1492 | } | - |
1493 | void 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 | 2 |
1500 | void QXmlStreamReader::addExtraNamespaceDeclarations(const QXmlStreamNamespaceDeclarations &extraNamespaceDeclarations) | - |
1501 | { | - |
1502 | for (int i = 0; i < extraNamespaceDeclarations.size()TRUE | never evaluated | FALSE | never evaluated |
; ++i) | 0 |
1503 | addExtraNamespaceDeclaration(extraNamespaceDeclarations.at(i)); never executed: addExtraNamespaceDeclaration(extraNamespaceDeclarations.at(i)); | 0 |
1504 | } never executed: end of block | 0 |
1505 | QString QXmlStreamReader::readElementText(ReadElementTextBehaviour behaviour) | - |
1506 | { | - |
1507 | QXmlStreamReaderPrivate * const d = d_func(); | - |
1508 | if (isStartElement()TRUE | evaluated 249021 times by 23 testsEvaluated 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
| FALSE | never evaluated |
) { | 0-249021 |
1509 | QString result; | - |
1510 | for(;;) { | - |
1511 | switch (readNext()) { | - |
1512 | caseexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 2 times by 1 test: case Comment: Comment:executed 2 times by 1 test: case Comment: | 2 |
1520 | break;executed 2 times by 1 test: break; | 2 |
1521 | caseexecuted 6 times by 1 test: case StartElement: StartElement:executed 6 times by 1 test: case StartElement: | 6 |
1522 | if (behaviour == SkipChildElementsTRUE | evaluated 2 times by 1 test | FALSE | evaluated 4 times by 1 test |
) { | 2-4 |
1523 | skipCurrentElement(); | - |
1524 | break;executed 2 times by 1 test: break; | 2 |
1525 | } else if (behaviour == IncludeChildElementsTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 2 |
1526 | result += readElementText(behaviour); | - |
1527 | break;executed 2 times by 1 test: break; | 2 |
1528 | } | - |
1529 | | - |
1530 | defaultexecuted 5 times by 1 test: default: :executed 5 times by 1 test: default: code before this statement executed 2 times by 1 test: default: | 2-5 |
1531 | if (d->error || behaviour == ErrorOnUnexpectedElementTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
1532 | if (!d->errorTRUE | evaluated 2 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 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.")); | 2 |
1534 | returnexecuted 5 times by 1 test: return result; result;executed 5 times by 1 test: return result; | 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 | | - |
1546 | void 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 | | - |
1557 | QString QXmlStreamReader::errorString() const | - |
1558 | { | - |
1559 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1560 | if (d->type == QXmlStreamReader::InvalidTRUE | evaluated 39 times by 1 test | FALSE | evaluated 586 times by 2 testsEvaluated by:- tst_QXmlStream
- tst_Selftests
|
) | 39-586 |
1561 | returnexecuted 39 times by 1 test: return d->errorString; d->errorString;executed 39 times by 1 test: return d->errorString; | 39 |
1562 | returnexecuted 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 | | - |
1569 | QXmlStreamReader::Error QXmlStreamReader::error() const | - |
1570 | { | - |
1571 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1572 | if (d->type == QXmlStreamReader::InvalidTRUE | evaluated 59946 times by 3 testsEvaluated by:- tst_QDBusMetaObject
- tst_QDBusXmlParser
- tst_QXmlStream
| FALSE | evaluated 2921 times by 15 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1580 | QStringRef QXmlStreamReader::processingInstructionTarget() const | - |
1581 | { | - |
1582 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1583 | returnexecuted 1988 times by 1 test: return d->processingInstructionTarget; d->processingInstructionTarget;executed 1988 times by 1 test: return d->processingInstructionTarget; | 1988 |
1584 | } | - |
1585 | | - |
1586 | | - |
1587 | | - |
1588 | | - |
1589 | QStringRef QXmlStreamReader::processingInstructionData() const | - |
1590 | { | - |
1591 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1592 | returnexecuted 2024 times by 1 test: return d->processingInstructionData; d->processingInstructionData;executed 2024 times by 1 test: return d->processingInstructionData; | 2024 |
1593 | } | - |
1594 | QStringRef QXmlStreamReader::name() const | - |
1595 | { | - |
1596 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1597 | returnexecuted 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 | | - |
1605 | QStringRef QXmlStreamReader::namespaceUri() const | - |
1606 | { | - |
1607 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1608 | returnexecuted 3754 times by 1 test: return d->namespaceUri; d->namespaceUri;executed 3754 times by 1 test: return d->namespaceUri; | 3754 |
1609 | } | - |
1610 | QStringRef QXmlStreamReader::qualifiedName() const | - |
1611 | { | - |
1612 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1613 | returnexecuted 3055 times by 1 test: return d->qualifiedName; d->qualifiedName;executed 3055 times by 1 test: return d->qualifiedName; | 3055 |
1614 | } | - |
1615 | QStringRef QXmlStreamReader::prefix() const | - |
1616 | { | - |
1617 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1618 | returnexecuted 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 | | - |
1624 | QXmlStreamAttributes QXmlStreamReader::attributes() const | - |
1625 | { | - |
1626 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1627 | returnexecuted 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 | } | - |
1629 | QXmlStreamAttribute::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 | | - |
1637 | QXmlStreamAttribute::~QXmlStreamAttribute() | - |
1638 | { | - |
1639 | } | - |
1640 | | - |
1641 | | - |
1642 | | - |
1643 | | - |
1644 | QXmlStreamAttribute::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 | | - |
1655 | QXmlStreamAttribute::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 |
1664 | QXmlStreamAttribute::QXmlStreamAttribute(const QXmlStreamAttribute &other) | - |
1665 | { | - |
1666 | *this = other; | - |
1667 | }executed 2543 times by 1 test: end of block | 2543 |
1668 | | - |
1669 | | - |
1670 | | - |
1671 | | - |
1672 | QXmlStreamAttribute& 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 | returnexecuted 2552 times by 1 test: return *this; *this;executed 2552 times by 1 test: return *this; | 2552 |
1680 | } | - |
1681 | QXmlStreamNotationDeclaration::QXmlStreamNotationDeclaration() | - |
1682 | { | - |
1683 | } | - |
1684 | | - |
1685 | | - |
1686 | | - |
1687 | QXmlStreamNotationDeclaration::QXmlStreamNotationDeclaration(const QXmlStreamNotationDeclaration &other) | - |
1688 | { | - |
1689 | *this = other; | - |
1690 | }executed 304 times by 1 test: end of block | 304 |
1691 | | - |
1692 | | - |
1693 | | - |
1694 | | - |
1695 | QXmlStreamNotationDeclaration& 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 | returnexecuted 304 times by 1 test: return *this; *this;executed 304 times by 1 test: return *this; | 304 |
1701 | } | - |
1702 | | - |
1703 | | - |
1704 | | - |
1705 | | - |
1706 | QXmlStreamNotationDeclaration::~QXmlStreamNotationDeclaration() | - |
1707 | { | - |
1708 | } | - |
1709 | QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration() | - |
1710 | { | - |
1711 | } | - |
1712 | | - |
1713 | | - |
1714 | | - |
1715 | | - |
1716 | | - |
1717 | | - |
1718 | QXmlStreamNamespaceDeclaration::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 | 2 |
1723 | | - |
1724 | | - |
1725 | | - |
1726 | | - |
1727 | QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration &other) | - |
1728 | { | - |
1729 | *this = other; | - |
1730 | }executed 54 times by 1 test: end of block | 54 |
1731 | | - |
1732 | | - |
1733 | | - |
1734 | | - |
1735 | QXmlStreamNamespaceDeclaration& QXmlStreamNamespaceDeclaration::operator=(const QXmlStreamNamespaceDeclaration &other) | - |
1736 | { | - |
1737 | m_prefix = other.m_prefix; | - |
1738 | m_namespaceUri = other.m_namespaceUri; | - |
1739 | returnexecuted 54 times by 1 test: return *this; *this;executed 54 times by 1 test: return *this; | 54 |
1740 | } | - |
1741 | | - |
1742 | | - |
1743 | | - |
1744 | QXmlStreamNamespaceDeclaration::~QXmlStreamNamespaceDeclaration() | - |
1745 | { | - |
1746 | } | - |
1747 | QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration() | - |
1748 | { | - |
1749 | } | - |
1750 | | - |
1751 | | - |
1752 | | - |
1753 | | - |
1754 | QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration(const QXmlStreamEntityDeclaration &other) | - |
1755 | { | - |
1756 | *this = other; | - |
1757 | }executed 10 times by 1 test: end of block | 10 |
1758 | | - |
1759 | | - |
1760 | | - |
1761 | | - |
1762 | QXmlStreamEntityDeclaration& 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 | returnexecuted 10 times by 1 test: return *this; *this;executed 10 times by 1 test: return *this; | 10 |
1770 | } | - |
1771 | | - |
1772 | | - |
1773 | | - |
1774 | | - |
1775 | QXmlStreamEntityDeclaration::~QXmlStreamEntityDeclaration() | - |
1776 | { | - |
1777 | } | - |
1778 | QStringRef QXmlStreamAttributes::value(const QString &namespaceUri, const QString &name) const | - |
1779 | { | - |
1780 | for (int i = 0; i < size()TRUE | evaluated 28 times by 1 test | FALSE | evaluated 6 times by 1 test |
; ++i) { | 6-28 |
1781 | const QXmlStreamAttribute &attribute = at(i); | - |
1782 | if (attribute.name() == nameTRUE | evaluated 7 times by 1 test | FALSE | evaluated 21 times by 1 test |
&& attribute.namespaceUri() == namespaceUriTRUE | evaluated 5 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-21 |
1783 | returnexecuted 5 times by 1 test: return attribute.value(); attribute.value();executed 5 times by 1 test: return attribute.value(); | 5 |
1784 | }executed 23 times by 1 test: end of block | 23 |
1785 | returnexecuted 6 times by 1 test: return QStringRef(); QStringRef();executed 6 times by 1 test: return QStringRef(); | 6 |
1786 | } | - |
1787 | | - |
1788 | | - |
1789 | | - |
1790 | | - |
1791 | | - |
1792 | | - |
1793 | QStringRef QXmlStreamAttributes::value(const QString &namespaceUri, QLatin1String name) const | - |
1794 | { | - |
1795 | for (int i = 0; i < size()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
1796 | const QXmlStreamAttribute &attribute = at(i); | - |
1797 | if (attribute.name() == nameTRUE | never evaluated | FALSE | never evaluated |
&& attribute.namespaceUri() == namespaceUriTRUE | never evaluated | FALSE | never 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 | | - |
1808 | QStringRef QXmlStreamAttributes::value(QLatin1String namespaceUri, QLatin1String name) const | - |
1809 | { | - |
1810 | for (int i = 0; i < size()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
1811 | const QXmlStreamAttribute &attribute = at(i); | - |
1812 | if (attribute.name() == nameTRUE | never evaluated | FALSE | never evaluated |
&& attribute.namespaceUri() == namespaceUriTRUE | never evaluated | FALSE | never 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 | } | - |
1817 | QStringRef QXmlStreamAttributes::value(const QString &qualifiedName) const | - |
1818 | { | - |
1819 | for (int i = 0; i < size()TRUE | evaluated 19 times by 1 test | FALSE | evaluated 3 times by 1 test |
; ++i) { | 3-19 |
1820 | const QXmlStreamAttribute &attribute = at(i); | - |
1821 | if (attribute.qualifiedName() == qualifiedNameTRUE | evaluated 5 times by 1 test | FALSE | evaluated 14 times by 1 test |
) | 5-14 |
1822 | returnexecuted 5 times by 1 test: return attribute.value(); attribute.value();executed 5 times by 1 test: return attribute.value(); | 5 |
1823 | }executed 14 times by 1 test: end of block | 14 |
1824 | returnexecuted 3 times by 1 test: return QStringRef(); QStringRef();executed 3 times by 1 test: return QStringRef(); | 3 |
1825 | } | - |
1826 | QStringRef QXmlStreamAttributes::value(QLatin1String qualifiedName) const | - |
1827 | { | - |
1828 | for (int i = 0; i < size()TRUE | evaluated 340807 times by 35 testsEvaluated 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 | evaluated 19261 times by 35 testsEvaluated 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() == qualifiedNameTRUE | evaluated 289780 times by 35 testsEvaluated 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 | evaluated 51027 times by 14 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1840 | void 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 | | - |
1849 | void QXmlStreamAttributes::append(const QString &qualifiedName, const QString &value) | - |
1850 | { | - |
1851 | append(QXmlStreamAttribute(qualifiedName, value)); | - |
1852 | } never executed: end of block | 0 |
1853 | bool QXmlStreamReader::isWhitespace() const | - |
1854 | { | - |
1855 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1856 | returnexecuted 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isWhitespace; d->type == QXmlStreamReader::Characters && d->isWhitespace;executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isWhitespace; | 1903 |
1857 | } | - |
1858 | | - |
1859 | | - |
1860 | | - |
1861 | | - |
1862 | | - |
1863 | | - |
1864 | bool QXmlStreamReader::isCDATA() const | - |
1865 | { | - |
1866 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1867 | returnexecuted 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isCDATA; d->type == QXmlStreamReader::Characters && d->isCDATA;executed 1903 times by 1 test: return d->type == QXmlStreamReader::Characters && d->isCDATA; | 1903 |
1868 | } | - |
1869 | bool QXmlStreamReader::isStandaloneDocument() const | - |
1870 | { | - |
1871 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1872 | returnexecuted 77 times by 1 test: return d->standalone; d->standalone;executed 77 times by 1 test: return d->standalone; | 77 |
1873 | } | - |
1874 | QStringRef QXmlStreamReader::documentVersion() const | - |
1875 | { | - |
1876 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1877 | if (d->type == QXmlStreamReader::StartDocumentTRUE | evaluated 133 times by 1 test | FALSE | evaluated 1826 times by 1 test |
) | 133-1826 |
1878 | returnexecuted 133 times by 1 test: return d->documentVersion; d->documentVersion;executed 133 times by 1 test: return d->documentVersion; | 133 |
1879 | returnexecuted 1826 times by 1 test: return QStringRef(); QStringRef();executed 1826 times by 1 test: return QStringRef(); | 1826 |
1880 | } | - |
1881 | QStringRef QXmlStreamReader::documentEncoding() const | - |
1882 | { | - |
1883 | const QXmlStreamReaderPrivate * const d = d_func(); | - |
1884 | if (d->type == QXmlStreamReader::StartDocumentTRUE | evaluated 83 times by 1 test | FALSE | evaluated 1826 times by 1 test |
) | 83-1826 |
1885 | returnexecuted 83 times by 1 test: return d->documentEncoding; d->documentEncoding;executed 83 times by 1 test: return d->documentEncoding; | 83 |
1886 | returnexecuted 1826 times by 1 test: return QStringRef(); QStringRef();executed 1826 times by 1 test: return QStringRef(); | 1826 |
1887 | } | - |
1888 | class 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; | - |
1891 | public: | - |
1892 | QXmlStreamWriterPrivate(QXmlStreamWriter *q); | - |
1893 | ~QXmlStreamWriterPrivate() { | - |
1894 | if (deleteDeviceTRUE | evaluated 710 times by 1 test | FALSE | evaluated 34 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 34-710 |
1895 | delete device;executed 710 times by 1 test: delete device; | 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 | | - |
1937 | QXmlStreamWriterPrivate::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 | | - |
1958 | void 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 = (TRUE | evaluated 757 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
bytesA.count() == 1)TRUE | evaluated 757 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
&& (TRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
bytesA[0] == 0x61)TRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
; | 1-757 |
1966 | QChar letterLess = QLatin1Char('<'); | - |
1967 | const QByteArray bytesLess = encoder->fromUnicode(&letterLess, 1); | - |
1968 | const bool isCodecASCIICompatibleLess = (TRUE | evaluated 757 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
bytesLess.count() == 1)TRUE | evaluated 757 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
&& (TRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
bytesLess[0] == 0x3C)TRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1 time by 1 test |
; | 1-757 |
1969 | isCodecASCIICompatible = isCodecASCIICompatibleATRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 2 times by 1 test |
&& isCodecASCIICompatibleLessTRUE | evaluated 756 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | never 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 | | - |
1975 | void QXmlStreamWriterPrivate::write(const QStringRef &s) | - |
1976 | { | - |
1977 | if (deviceTRUE | evaluated 3151 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 8 times by 1 test |
) { | 8-3151 |
1978 | if (hasErrorTRUE | evaluated 4 times by 1 test | FALSE | evaluated 3147 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 4-3147 |
1979 | return;executed 4 times by 1 test: return; | 4 |
1980 | | - |
1981 | | - |
1982 | | - |
1983 | QByteArray bytes = encoder->fromUnicode(s.constData(), s.size()); | - |
1984 | | - |
1985 | if (device->write(bytes) != bytes.size()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3146 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 1-3146 |
1986 | hasError = true;executed 1 time by 1 test: hasError = true; | 1 |
1987 | }executed 3147 times by 3 tests: end of block Executed by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| 3147 |
1988 | else if (stringDeviceTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) | 0-8 |
1989 | s.appendTo(stringDevice);executed 8 times by 1 test: s.appendTo(stringDevice); | 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 | | - |
1994 | void QXmlStreamWriterPrivate::write(const QString &s) | - |
1995 | { | - |
1996 | if (deviceTRUE | evaluated 5148 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 72 times by 1 test |
) { | 72-5148 |
1997 | if (hasErrorTRUE | evaluated 1 time by 1 test | FALSE | evaluated 5147 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 1-5147 |
1998 | return;executed 1 time by 1 test: return; | 1 |
1999 | | - |
2000 | | - |
2001 | | - |
2002 | QByteArray bytes = encoder->fromUnicode(s); | - |
2003 | | - |
2004 | if (device->write(bytes) != bytes.size()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5146 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 1-5146 |
2005 | hasError = true;executed 1 time by 1 test: hasError = true; | 1 |
2006 | }executed 5147 times by 3 tests: end of block Executed by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| 5147 |
2007 | else if (stringDeviceTRUE | evaluated 72 times by 1 test | FALSE | never evaluated |
) | 0-72 |
2008 | stringDevice->append(s);executed 72 times by 1 test: stringDevice->append(s); | 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 | | - |
2013 | void QXmlStreamWriterPrivate::writeEscaped(const QString &s, bool escapeWhitespace) | - |
2014 | { | - |
2015 | QString escaped; | - |
2016 | escaped.reserve(s.size()); | - |
2017 | for ( int i = 0; i < s.size()TRUE | evaluated 20852 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 3437 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
; ++i ) { | 3437-20852 |
2018 | QChar c = s.at(i); | - |
2019 | if (c.unicode() == '<'TRUE | evaluated 50 times by 1 test | FALSE | evaluated 20802 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 50-20802 |
2020 | escaped.append(QLatin1String("<"));executed 50 times by 1 test: escaped.append(QLatin1String("<")); | 50 |
2021 | else if (c.unicode() == '>'TRUE | evaluated 52 times by 1 test | FALSE | evaluated 20750 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 52-20750 |
2022 | escaped.append(QLatin1String(">"));executed 52 times by 1 test: escaped.append(QLatin1String(">")); | 52 |
2023 | else if (c.unicode() == '&'TRUE | evaluated 29 times by 1 test | FALSE | evaluated 20721 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 29-20721 |
2024 | escaped.append(QLatin1String("&"));executed 29 times by 1 test: escaped.append(QLatin1String("&")); | 29 |
2025 | else if (c.unicode() == '\"'TRUE | evaluated 21 times by 1 test | FALSE | evaluated 20700 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 21-20700 |
2026 | escaped.append(QLatin1String("""));executed 21 times by 1 test: escaped.append(QLatin1String(""")); | 21 |
2027 | else if (escapeWhitespaceTRUE | evaluated 4056 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 16644 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
&& c.isSpace()TRUE | evaluated 173 times by 1 test | FALSE | evaluated 3883 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) { | 173-16644 |
2028 | if (c.unicode() == '\n'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 171 times by 1 test |
) | 2-171 |
2029 | escaped.append(QLatin1String(" "));executed 2 times by 1 test: escaped.append(QLatin1String(" ")); | 2 |
2030 | else if (c.unicode() == '\r'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 169 times by 1 test |
) | 2-169 |
2031 | escaped.append(QLatin1String(" "));executed 2 times by 1 test: escaped.append(QLatin1String(" ")); | 2 |
2032 | else if (c.unicode() == '\t'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 166 times by 1 test |
) | 3-166 |
2033 | escaped.append(QLatin1String("	"));executed 3 times by 1 test: escaped.append(QLatin1String("	")); | 3 |
2034 | else | - |
2035 | escaped += c;executed 166 times by 1 test: escaped += c; | 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 | | - |
2044 | void QXmlStreamWriterPrivate::write(const char *s, int len) | - |
2045 | { | - |
2046 | if (deviceTRUE | evaluated 10239 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 64 times by 1 test |
) { | 64-10239 |
2047 | if (hasErrorTRUE | evaluated 14 times by 1 test | FALSE | evaluated 10225 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 14-10225 |
2048 | return;executed 14 times by 1 test: return; | 14 |
2049 | if (isCodecASCIICompatibleTRUE | evaluated 10211 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 14 times by 1 test |
) { | 14-10211 |
2050 | if (device->write(s, len) != lenTRUE | evaluated 2 times by 1 test | FALSE | evaluated 10209 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 2-10209 |
2051 | hasError = true;executed 2 times by 1 test: hasError = true; | 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 | 14 |
2055 | | - |
2056 | write(QString::fromLatin1(s, len)); | - |
2057 | }executed 78 times by 1 test: end of block | 78 |
2058 | | - |
2059 | void QXmlStreamWriterPrivate::writeNamespaceDeclaration(const NamespaceDeclaration &namespaceDeclaration) { | - |
2060 | if (namespaceDeclaration.prefix.isEmpty()TRUE | never evaluated | FALSE | evaluated 102 times by 3 testsEvaluated 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 | | - |
2073 | bool QXmlStreamWriterPrivate::finishStartElement(bool contents) | - |
2074 | { | - |
2075 | bool hadSomethingWritten = wroteSomething; | - |
2076 | wroteSomething = contents; | - |
2077 | if (!inStartElementTRUE | evaluated 5103 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1276 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 1276-5103 |
2078 | returnexecuted 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 (inEmptyElementTRUE | evaluated 39 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1237 times by 3 testsEvaluated 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 | returnexecuted 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 | | - |
2093 | QXmlStreamPrivateTagStack::NamespaceDeclaration &QXmlStreamWriterPrivate::findNamespace(const QString &namespaceUri, bool writeDeclaration, bool noDefault) | - |
2094 | { | - |
2095 | for (int j = namespaceDeclarations.size() - 1; j >= 0TRUE | evaluated 2565 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1162 times by 1 test |
; --j) { | 1162-2565 |
2096 | NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations[j]; | - |
2097 | if (namespaceDeclaration.namespaceUri == namespaceUriTRUE | evaluated 302 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 2263 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) { | 302-2263 |
2098 | if (!noDefaultTRUE | evaluated 134 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 168 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
|| !namespaceDeclaration.prefix.isEmpty()TRUE | evaluated 168 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | never evaluated |
) | 0-168 |
2099 | returnexecuted 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()TRUE | evaluated 1143 times by 1 test | FALSE | evaluated 19 times by 1 test |
) | 19-1143 |
2103 | returnexecuted 1143 times by 1 test: return emptyNamespace; emptyNamespace;executed 1143 times by 1 test: return emptyNamespace; | 1143 |
2104 | NamespaceDeclaration &namespaceDeclaration = namespaceDeclarations.push(); | - |
2105 | if (namespaceUri.isEmpty()TRUE | never evaluated | FALSE | evaluated 19 times by 1 test |
) { | 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 >= 0TRUE | evaluated 22 times by 1 test | FALSE | evaluated 19 times by 1 test |
&& namespaceDeclarations.at(j).prefix != sTRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
) | 0-22 |
2114 | --executed 22 times by 1 test: --j; j;executed 22 times by 1 test: --j; | 22 |
2115 | if (j < 0TRUE | evaluated 19 times by 1 test | FALSE | never evaluated |
) | 0-19 |
2116 | break;executed 19 times by 1 test: break; | 19 |
2117 | } never executed: end of block | 0 |
2118 | namespaceDeclaration.prefix = addToStringStorage(s); | - |
2119 | }executed 19 times by 1 test: end of block | 19 |
2120 | namespaceDeclaration.namespaceUri = addToStringStorage(namespaceUri); | - |
2121 | if (writeDeclarationTRUE | evaluated 4 times by 1 test | FALSE | evaluated 15 times by 1 test |
) | 4-15 |
2122 | writeNamespaceDeclaration(namespaceDeclaration);executed 4 times by 1 test: writeNamespaceDeclaration(namespaceDeclaration); | 4 |
2123 | returnexecuted 19 times by 1 test: return namespaceDeclaration; namespaceDeclaration;executed 19 times by 1 test: return namespaceDeclaration; | 19 |
2124 | } | - |
2125 | | - |
2126 | | - |
2127 | | - |
2128 | void QXmlStreamWriterPrivate::indent(int level) | - |
2129 | { | - |
2130 | write("\n"); | - |
2131 | for (int i = level; i > 0TRUE | evaluated 332 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 218 times by 3 testsEvaluated 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 | | - |
2141 | QXmlStreamWriter::QXmlStreamWriter() | - |
2142 | : d_ptr(new QXmlStreamWriterPrivate(this)) | - |
2143 | { | - |
2144 | } never executed: end of block | 0 |
2145 | | - |
2146 | | - |
2147 | | - |
2148 | | - |
2149 | QXmlStreamWriter::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 | | - |
2160 | QXmlStreamWriter::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 | 710 |
2168 | | - |
2169 | | - |
2170 | | - |
2171 | | - |
2172 | QXmlStreamWriter::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 | 2 |
2178 | | - |
2179 | | - |
2180 | | - |
2181 | | - |
2182 | QXmlStreamWriter::~QXmlStreamWriter() | - |
2183 | { | - |
2184 | } | - |
2185 | void QXmlStreamWriter::setDevice(QIODevice *device) | - |
2186 | { | - |
2187 | QXmlStreamWriterPrivate * const d = d_func(); | - |
2188 | if (device == d->deviceTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2189 | return; never executed: return; | 0 |
2190 | d->stringDevice = 0; | - |
2191 | if (d->deleteDeviceTRUE | never evaluated | FALSE | never 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 | | - |
2204 | QIODevice *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 | } | - |
2209 | void QXmlStreamWriter::setCodec(QTextCodec *codec) | - |
2210 | { | - |
2211 | QXmlStreamWriterPrivate * const d = d_func(); | - |
2212 | if (codecTRUE | evaluated 14 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | never 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 |
2219 | void QXmlStreamWriter::setCodec(const char *codecName) | - |
2220 | { | - |
2221 | setCodec(QTextCodec::codecForName(codecName)); | - |
2222 | }executed 1 time by 1 test: end of block | 1 |
2223 | | - |
2224 | | - |
2225 | | - |
2226 | | - |
2227 | | - |
2228 | | - |
2229 | QTextCodec *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 | } | - |
2234 | void 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 | | - |
2245 | bool 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 | } | - |
2250 | void 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 | | - |
2256 | int QXmlStreamWriter::autoFormattingIndent() const | - |
2257 | { | - |
2258 | const QXmlStreamWriterPrivate * const d = d_func(); | - |
2259 | returnexecuted 1 time by 1 test: return d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t'); d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t');executed 1 time by 1 test: return d->autoFormattingIndent.count(' ') - d->autoFormattingIndent.count('\t'); | 1 |
2260 | } | - |
2261 | | - |
2262 | | - |
2263 | | - |
2264 | | - |
2265 | | - |
2266 | | - |
2267 | | - |
2268 | bool QXmlStreamWriter::hasError() const | - |
2269 | { | - |
2270 | const QXmlStreamWriterPrivate * const d = d_func(); | - |
2271 | returnexecuted 6 times by 1 test: return d->hasError; d->hasError;executed 6 times by 1 test: return d->hasError; | 6 |
2272 | } | - |
2273 | void 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 | 440 |
2284 | void 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()TRUE | evaluated 172 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | never 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 |
2300 | void QXmlStreamWriter::writeAttribute(const QXmlStreamAttribute& attribute) | - |
2301 | { | - |
2302 | if (attribute.namespaceUri().isEmpty()TRUE | evaluated 433 times by 1 test | FALSE | evaluated 34 times by 1 test |
) | 34-433 |
2303 | writeAttribute(attribute.qualifiedName().toString(),executed 433 times by 1 test: writeAttribute(attribute.qualifiedName().toString(), attribute.value().toString()); | 433 |
2304 | attribute.value().toString());executed 433 times by 1 test: writeAttribute(attribute.qualifiedName().toString(), attribute.value().toString()); | 433 |
2305 | else | - |
2306 | writeAttribute(attribute.namespaceUri().toString(),executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString()); | 34 |
2307 | attribute.name().toString(),executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString()); | 34 |
2308 | attribute.value().toString());executed 34 times by 1 test: writeAttribute(attribute.namespaceUri().toString(), attribute.name().toString(), attribute.value().toString()); | 34 |
2309 | } | - |
2310 | void 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()TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
; ++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 | 4 |
2318 | void 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 |
2328 | void 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 | | - |
2340 | void 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)TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
&& d->autoFormattingTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
) | 0-7 |
2345 | d->indent(d->tagStack.size());executed 7 times by 1 test: d->indent(d->tagStack.size()); | 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 | 7 |
2351 | | - |
2352 | | - |
2353 | | - |
2354 | | - |
2355 | | - |
2356 | void QXmlStreamWriter::writeDTD(const QString &dtd) | - |
2357 | { | - |
2358 | QXmlStreamWriterPrivate * const d = d_func(); | - |
2359 | d->finishStartElement(); | - |
2360 | if (d->autoFormattingTRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
) | 0-46 |
2361 | d->write("\n"); never executed: d->write("\n"); | 0 |
2362 | d->write(dtd); | - |
2363 | if (d->autoFormattingTRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
) | 0-46 |
2364 | d->write("\n"); never executed: d->write("\n"); | 0 |
2365 | }executed 46 times by 1 test: end of block | 46 |
2366 | | - |
2367 | | - |
2368 | | - |
2369 | | - |
2370 | | - |
2371 | | - |
2372 | | - |
2373 | void 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 | 5 |
2380 | void 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 |
2387 | void 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 | 1 |
2393 | void 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 | | - |
2406 | void QXmlStreamWriter::writeEndDocument() | - |
2407 | { | - |
2408 | QXmlStreamWriterPrivate * const d = d_func(); | - |
2409 | while (d->tagStack.size()TRUE | evaluated 14 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 33 times by 3 testsEvaluated 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 | | - |
2419 | void QXmlStreamWriter::writeEndElement() | - |
2420 | { | - |
2421 | QXmlStreamWriterPrivate * const d = d_func(); | - |
2422 | if (d->tagStack.isEmpty()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1255 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 1-1255 |
2423 | return;executed 1 time by 1 test: return; | 1 |
2424 | | - |
2425 | | - |
2426 | if (d->inStartElementTRUE | evaluated 42 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1213 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
&& !d->inEmptyElementTRUE | evaluated 14 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 28 times by 3 testsEvaluated 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)TRUE | evaluated 145 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1096 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
&& !d->lastWasStartElementTRUE | evaluated 138 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 7 times by 1 test |
&& d->autoFormattingTRUE | evaluated 77 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 61 times by 1 test |
) | 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()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1237 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
) | 4-1237 |
2437 | return;executed 4 times by 1 test: return; | 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()TRUE | evaluated 105 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1132 times by 1 test |
) { | 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 | | - |
2455 | void 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 | 857 |
2463 | void 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()TRUE | never evaluated | FALSE | evaluated 83 times by 3 testsEvaluated 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->inStartElementTRUE | evaluated 2 times by 1 test | FALSE | evaluated 81 times by 2 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
|
) | 2-81 |
2477 | d->writeNamespaceDeclaration(namespaceDeclaration);executed 2 times by 1 test: d->writeNamespaceDeclaration(namespaceDeclaration); | 2 |
2478 | }executed 83 times by 3 tests: end of block Executed by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| 83 |
2479 | } | - |
2480 | void 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->inStartElementTRUE | never evaluated | FALSE | never 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 | | - |
2497 | void 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)TRUE | evaluated 61 times by 1 test | FALSE | evaluated 11 times by 1 test |
&& d->autoFormattingTRUE | evaluated 1 time by 1 test | FALSE | evaluated 60 times by 1 test |
) | 1-61 |
2502 | d->indent(d->tagStack.size());executed 1 time by 1 test: d->indent(d->tagStack.size()); | 1 |
2503 | d->write("<?"); | - |
2504 | d->write(target); | - |
2505 | if (!data.isNull()TRUE | evaluated 72 times by 1 test | FALSE | never evaluated |
) { | 0-72 |
2506 | d->write(" "); | - |
2507 | d->write(data); | - |
2508 | }executed 72 times by 1 test: end of block | 72 |
2509 | d->write("?>"); | - |
2510 | }executed 72 times by 1 test: end of block | 72 |
2511 | void 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 | | - |
2522 | void 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->deviceTRUE | evaluated 35 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 2 times by 1 test |
) { | 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 | | - |
2546 | void 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->deviceTRUE | evaluated 2 times by 1 test | FALSE | never 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 | 2 |
2561 | if (standaloneTRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1 |
2562 | d->write("\" standalone=\"yes\"?>");executed 1 time by 1 test: d->write("\" standalone=\"yes\"?>"); | 1 |
2563 | else | - |
2564 | d->write("\" standalone=\"no\"?>");executed 1 time by 1 test: d->write("\" standalone=\"no\"?>"); | 1 |
2565 | } | - |
2566 | void 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 | 10 |
2572 | void 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 | | - |
2579 | void QXmlStreamWriterPrivate::writeStartElement(const QString &namespaceUri, const QString &name) | - |
2580 | { | - |
2581 | if (!finishStartElement(false)TRUE | evaluated 845 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 447 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
|
&& autoFormattingTRUE | evaluated 133 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 712 times by 1 test |
) | 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()TRUE | evaluated 149 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1143 times by 1 test |
) { | 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()TRUE | evaluated 96 times by 3 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextEdit
- tst_QXmlStream
| FALSE | evaluated 1292 times by 3 testsEvaluated 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 |
2599 | void 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 | caseexecuted 2 times by 1 test: case QXmlStreamReader::StartDocument: QXmlStreamReader::StartDocument:executed 2 times by 1 test: case QXmlStreamReader::StartDocument: | 2 |
2605 | writeStartDocument(); | - |
2606 | break;executed 2 times by 1 test: break; | 2 |
2607 | caseexecuted 2 times by 1 test: case QXmlStreamReader::EndDocument: QXmlStreamReader::EndDocument:executed 2 times by 1 test: case QXmlStreamReader::EndDocument: | 2 |
2608 | writeEndDocument(); | - |
2609 | break;executed 2 times by 1 test: break; | 2 |
2610 | caseexecuted 4 times by 1 test: case QXmlStreamReader::StartElement: QXmlStreamReader::StartElement:executed 4 times by 1 test: case QXmlStreamReader::StartElement: { | 4 |
2611 | QXmlStreamNamespaceDeclarations namespaceDeclarations = reader.namespaceDeclarations(); | - |
2612 | for (int i = 0; i < namespaceDeclarations.size()TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
; ++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; | 4 |
2620 | caseexecuted 1144 times by 1 test: case QXmlStreamReader::EndElement: QXmlStreamReader::EndElement:executed 1144 times by 1 test: case QXmlStreamReader::EndElement: | 1144 |
2621 | writeEndElement(); | - |
2622 | break;executed 1144 times by 1 test: break; | 1144 |
2623 | case never executed: case QXmlStreamReader::Characters: QXmlStreamReader::Characters:never executed: case QXmlStreamReader::Characters: | 0 |
2624 | if (reader.isCDATA()TRUE | never evaluated | FALSE | never 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 | caseexecuted 6 times by 1 test: case QXmlStreamReader::Comment: QXmlStreamReader::Comment:executed 6 times by 1 test: case QXmlStreamReader::Comment: | 6 |
2630 | writeComment(reader.text().toString()); | - |
2631 | break;executed 6 times by 1 test: break; | 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 | caseexecuted 1 time by 1 test: case QXmlStreamReader::EntityReference: QXmlStreamReader::EntityReference:executed 1 time by 1 test: case QXmlStreamReader::EntityReference: | 1 |
2636 | writeEntityReference(reader.name().toString()); | - |
2637 | break;executed 1 time by 1 test: break; | 1 |
2638 | caseexecuted 48 times by 1 test: case QXmlStreamReader::ProcessingInstruction: QXmlStreamReader::ProcessingInstruction:executed 48 times by 1 test: case QXmlStreamReader::ProcessingInstruction: | 48 |
2639 | writeProcessingInstruction(reader.processingInstructionTarget().toString(), | - |
2640 | reader.processingInstructionData().toString()); | - |
2641 | break;executed 48 times by 1 test: break; | 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 | | - |
| | |