OpenCoverage

qxml.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/xml/sax/qxml.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3namespace {-
4-
5-
6template <typename Container>-
7void clear(Container &c) { c = Container(); }
executed 2261 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2261
8-
9}-
10-
11-
12static const signed char cltWS = 0;-
13static const signed char cltPer = 1;-
14static const signed char cltAmp = 2;-
15static const signed char cltGt = 3;-
16static const signed char cltLt = 4;-
17static const signed char cltSlash = 5;-
18static const signed char cltQm = 6;-
19static const signed char cltEm = 7;-
20static const signed char cltDash = 8;-
21static const signed char cltCB = 9;-
22static const signed char cltOB = 10;-
23static const signed char cltEq = 11;-
24static const signed char cltDq = 12;-
25static const signed char cltSq = 13;-
26static const signed char cltUnknown = 14;-
27-
28-
29static const signed char charLookupTable[256]={-
30 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
31 cltUnknown,-
32 cltWS,-
33 cltWS,-
34 cltUnknown,-
35 cltUnknown,-
36 cltWS,-
37 cltUnknown,-
38 cltUnknown,-
39 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
40 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
41 cltWS,-
42 cltEm,-
43 cltDq,-
44 cltUnknown,-
45 cltUnknown,-
46 cltPer,-
47 cltAmp,-
48 cltSq,-
49 cltUnknown,-
50 cltUnknown,-
51 cltUnknown,-
52 cltUnknown,-
53 cltUnknown,-
54 cltDash,-
55 cltUnknown,-
56 cltSlash,-
57 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
58 cltUnknown,-
59 cltUnknown,-
60 cltUnknown,-
61 cltUnknown,-
62 cltLt,-
63 cltEq,-
64 cltGt,-
65 cltQm,-
66 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
67 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
68 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
69 cltUnknown,-
70 cltUnknown,-
71 cltUnknown,-
72 cltOB,-
73 cltUnknown,-
74 cltCB,-
75 cltUnknown,-
76 cltUnknown,-
77 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
78 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
79 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
80 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
81 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
82 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
83 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
84 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
85 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
86 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
87 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
88 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
89 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
90 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
91 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
92 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
93 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
94 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
95 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown,-
96 cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown, cltUnknown-
97};-
98static bool stripTextDecl(QString& str)-
99{-
100 QString textDeclStart(QLatin1String("<?xml"));-
101 if (str.startsWith(textDeclStart)
str.startsWith(textDeclStart)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
102 QRegExp textDecl(QString::fromLatin1(-
103 "^<\\?xml\\s+"-
104 "(version\\s*=\\s*((['\"])[-a-zA-Z0-9_.:]+\\3))?"-
105 "\\s*"-
106 "(encoding\\s*=\\s*((['\"])[A-Za-z][-a-zA-Z0-9_.]*\\6))?"-
107 "\\s*\\?>"-
108 ));-
109 QString strTmp = str.replace(textDecl, QLatin1String(""));-
110 if (strTmp.length() != str.length()
strTmp.length(...= str.length()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
111 return
never executed: return false;
false;
never executed: return false;
0
112 str = strTmp;-
113 }
never executed: end of block
0
114 return
never executed: return true;
true;
never executed: return true;
0
115}-
116-
117-
118class QXmlAttributesPrivate-
119{-
120};-
121class QXmlInputSourcePrivate-
122{-
123public:-
124 QIODevice *inputDevice;-
125 QTextStream *inputStream;-
126-
127 QString str;-
128 const QChar *unicode;-
129 int pos;-
130 int length;-
131 bool nextReturnedEndOfData;-
132-
133 QTextDecoder *encMapper;-
134-
135-
136 QByteArray encodingDeclBytes;-
137 QString encodingDeclChars;-
138 bool lookingForEncodingDecl;-
139};-
140class QXmlParseExceptionPrivate-
141{-
142public:-
143 QXmlParseExceptionPrivate()-
144 : column(-1), line(-1)-
145 {-
146 }
executed 155 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
155
147 QXmlParseExceptionPrivate(const QXmlParseExceptionPrivate &other)-
148 : msg(other.msg), column(other.column), line(other.line),-
149 pub(other.pub), sys(other.sys)-
150 {-
151 }
never executed: end of block
0
152-
153 QString msg;-
154 int column;-
155 int line;-
156 QString pub;-
157 QString sys;-
158-
159};-
160-
161class QXmlLocatorPrivate-
162{-
163};-
164-
165class QXmlDefaultHandlerPrivate-
166{-
167};-
168QXmlParseException::QXmlParseException(const QString& name, int c, int l,-
169 const QString& p, const QString& s)-
170 : d(new QXmlParseExceptionPrivate)-
171{-
172 d->msg = name;-
173 d->column = c;-
174 d->line = l;-
175 d->pub = p;-
176 d->sys = s;-
177}
executed 155 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
155
178-
179-
180-
181-
182QXmlParseException::QXmlParseException(const QXmlParseException& other) :-
183 d(new QXmlParseExceptionPrivate(*other.d))-
184{-
185-
186}
never executed: end of block
0
187-
188-
189-
190-
191QXmlParseException::~QXmlParseException()-
192{-
193}-
194-
195-
196-
197-
198QString QXmlParseException::message() const-
199{-
200 return
executed 300 times by 1 test: return d->msg;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->msg;
executed 300 times by 1 test: return d->msg;
Executed by:
  • tst_qxmlsimplereader - unknown status
300
201}-
202-
203-
204-
205int QXmlParseException::columnNumber() const-
206{-
207 return
executed 300 times by 1 test: return d->column;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->column;
executed 300 times by 1 test: return d->column;
Executed by:
  • tst_qxmlsimplereader - unknown status
300
208}-
209-
210-
211-
212int QXmlParseException::lineNumber() const-
213{-
214 return
executed 300 times by 1 test: return d->line;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->line;
executed 300 times by 1 test: return d->line;
Executed by:
  • tst_qxmlsimplereader - unknown status
300
215}-
216-
217-
218-
219QString QXmlParseException::publicId() const-
220{-
221 return
executed 152 times by 1 test: return d->pub;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->pub;
executed 152 times by 1 test: return d->pub;
Executed by:
  • tst_qxmlsimplereader - unknown status
152
222}-
223-
224-
225-
226QString QXmlParseException::systemId() const-
227{-
228 return
executed 152 times by 1 test: return d->sys;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->sys;
executed 152 times by 1 test: return d->sys;
Executed by:
  • tst_qxmlsimplereader - unknown status
152
229}-
230QXmlLocator::QXmlLocator()-
231{-
232}-
233-
234-
235-
236-
237QXmlLocator::~QXmlLocator()-
238{-
239}-
240class QXmlSimpleReaderLocator : public QXmlLocator-
241{-
242public:-
243 QXmlSimpleReaderLocator(QXmlSimpleReader* parent)-
244 {-
245 reader = parent;-
246 }
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
247 ~QXmlSimpleReaderLocator()-
248 {-
249 }-
250-
251 int columnNumber() const override-
252 {-
253 return
executed 2993 times by 5 tests: return (reader->d_ptr->columnNr == -1 ? -1 : reader->d_ptr->columnNr + 1);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
(reader->d_ptr->columnNr == -1 ? -1 : reader->d_ptr->columnNr + 1);
executed 2993 times by 5 tests: return (reader->d_ptr->columnNr == -1 ? -1 : reader->d_ptr->columnNr + 1);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2993
254 }-
255 int lineNumber() const override-
256 {-
257 return
executed 2993 times by 5 tests: return (reader->d_ptr->lineNr == -1 ? -1 : reader->d_ptr->lineNr + 1);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
(reader->d_ptr->lineNr == -1 ? -1 : reader->d_ptr->lineNr + 1);
executed 2993 times by 5 tests: return (reader->d_ptr->lineNr == -1 ? -1 : reader->d_ptr->lineNr + 1);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2993
258 }-
259-
260-
261-
262private:-
263 QXmlSimpleReader *reader;-
264};-
265-
266-
267-
268-
269-
270-
271-
272typedef QMap<QString, QString> NamespaceMap;-
273-
274class QXmlNamespaceSupportPrivate-
275{-
276public:-
277 QXmlNamespaceSupportPrivate()-
278 {-
279 ns.insert(QLatin1String("xml"), QLatin1String("http://www.w3.org/XML/1998/namespace"));-
280 }
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
281-
282 ~QXmlNamespaceSupportPrivate()-
283 {-
284 }-
285-
286 QStack<NamespaceMap> nsStack;-
287 NamespaceMap ns;-
288};-
289QXmlNamespaceSupport::QXmlNamespaceSupport()-
290{-
291 d = new QXmlNamespaceSupportPrivate;-
292}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
293-
294-
295-
296-
297QXmlNamespaceSupport::~QXmlNamespaceSupport()-
298{-
299 delete d;-
300}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
301void QXmlNamespaceSupport::setPrefix(const QString& pre, const QString& uri)-
302{-
303 if(pre.isNull()
pre.isNull()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-4
304 d->ns.insert(QLatin1String(""), uri);-
305 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
3
306 d->ns.insert(pre, uri);-
307 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4
308}-
309QString QXmlNamespaceSupport::prefix(const QString& uri) const-
310{-
311 NamespaceMap::const_iterator itc, it = d->ns.constBegin();-
312 while ((
(itc=it) != d->ns.constEnd()Description
TRUEnever evaluated
FALSEnever evaluated
itc=it) != d->ns.constEnd()
(itc=it) != d->ns.constEnd()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
313 ++it;-
314 if (*
*itc == uriDescription
TRUEnever evaluated
FALSEnever evaluated
itc == uri
*itc == uriDescription
TRUEnever evaluated
FALSEnever evaluated
&& !itc.key().isEmpty()
!itc.key().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
315 return
never executed: return itc.key();
itc.key();
never executed: return itc.key();
0
316 }
never executed: end of block
0
317 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
318}-
319-
320-
321-
322-
323-
324-
325QString QXmlNamespaceSupport::uri(const QString& prefix) const-
326{-
327 return
executed 27 times by 2 tests: return d->ns[prefix];
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
d->ns[prefix];
executed 27 times by 2 tests: return d->ns[prefix];
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
27
328}-
329-
330-
331-
332-
333-
334-
335-
336void QXmlNamespaceSupport::splitName(const QString& qname, QString& prefix,-
337 QString& localname) const-
338{-
339 int pos = qname.indexOf(QLatin1Char(':'));-
340 if (pos == -1
pos == -1Description
TRUEevaluated 11998 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
30-11998
341 pos = qname.size();
executed 11998 times by 3 tests: pos = qname.size();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
11998
342-
343 prefix = qname.left(pos);-
344 localname = qname.mid(pos+1);-
345}
executed 12028 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12028
346void QXmlNamespaceSupport::processName(const QString& qname,-
347 bool isAttribute,-
348 QString& nsuri, QString& localname) const-
349{-
350 int len = qname.size();-
351 const QChar *data = qname.constData();-
352 for (int pos = 0; pos < len
pos < lenDescription
TRUEevaluated 96470 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 21219 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
; ++pos) {
21219-96470
353 if (data[pos] == QLatin1Char(':')
data[pos] == QLatin1Char(':')Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 96443 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
27-96443
354 nsuri = uri(qname.left(pos));-
355 localname = qname.mid(pos + 1);-
356 return;
executed 27 times by 2 tests: return;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
27
357 }-
358 }
executed 96443 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
96443
359-
360-
361 nsuri.clear();-
362-
363 if (!isAttribute
!isAttributeDescription
TRUEevaluated 9224 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 11995 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& !d->ns.isEmpty()
!d->ns.isEmpty()Description
TRUEevaluated 9224 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-11995
364-
365-
366-
367-
368-
369 NamespaceMap::const_iterator first = d->ns.constBegin();-
370 if (first.key().isEmpty()
first.key().isEmpty()Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9203 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
21-9203
371 nsuri = first.value();
executed 21 times by 1 test: nsuri = first.value();
Executed by:
  • tst_qxmlsimplereader - unknown status
21
372 }
executed 9224 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9224
373 localname = qname;-
374}
executed 21219 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
21219
375QStringList QXmlNamespaceSupport::prefixes() const-
376{-
377 QStringList list;-
378-
379 NamespaceMap::const_iterator itc, it = d->ns.constBegin();-
380 while ((
(itc=it) != d->ns.constEnd()Description
TRUEevaluated 439 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 434 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
itc=it) != d->ns.constEnd()
(itc=it) != d->ns.constEnd()Description
TRUEevaluated 439 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 434 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
434-439
381 ++it;-
382 if (!itc.key().isEmpty()
!itc.key().isEmpty()Description
TRUEevaluated 438 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
1-438
383 list.append(itc.key());
executed 438 times by 2 tests: list.append(itc.key());
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
438
384 }
executed 439 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
439
385 return
executed 434 times by 2 tests: return list;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
list;
executed 434 times by 2 tests: return list;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
434
386}-
387QStringList QXmlNamespaceSupport::prefixes(const QString& uri) const-
388{-
389 QStringList list;-
390-
391 NamespaceMap::const_iterator itc, it = d->ns.constBegin();-
392 while ((
(itc=it) != d->ns.constEnd()Description
TRUEnever evaluated
FALSEnever evaluated
itc=it) != d->ns.constEnd()
(itc=it) != d->ns.constEnd()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
393 ++it;-
394 if (*
*itc == uriDescription
TRUEnever evaluated
FALSEnever evaluated
itc == uri
*itc == uriDescription
TRUEnever evaluated
FALSEnever evaluated
&& !itc.key().isEmpty()
!itc.key().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
395 list.append(itc.key());
never executed: list.append(itc.key());
0
396 }
never executed: end of block
0
397 return
never executed: return list;
list;
never executed: return list;
0
398}-
399void QXmlNamespaceSupport::pushContext()-
400{-
401 d->nsStack.push(d->ns);-
402}
executed 4781 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4781
403void QXmlNamespaceSupport::popContext()-
404{-
405 d->ns.clear();-
406 if(!d->nsStack.isEmpty()
!d->nsStack.isEmpty()Description
TRUEevaluated 4705 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
)
0-4705
407 d->ns = d->nsStack.pop();
executed 4705 times by 3 tests: d->ns = d->nsStack.pop();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4705
408}
executed 4705 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4705
409-
410-
411-
412-
413void QXmlNamespaceSupport::reset()-
414{-
415 QXmlNamespaceSupportPrivate *newD = new QXmlNamespaceSupportPrivate;-
416 delete d;-
417 d = newD;-
418}
never executed: end of block
0
419QXmlAttributes::QXmlAttributes()-
420{-
421-
422-
423 (void)d;;-
424}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
425-
426-
427-
428-
429-
430-
431QXmlAttributes::~QXmlAttributes()-
432{-
433}-
434int QXmlAttributes::index(const QString& qName) const-
435{-
436 for (int i = 0; i < attList.size()
i < attList.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
437 if (attList.at(i).qname == qName
attList.at(i).qname == qNameDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
438 return
never executed: return i;
i;
never executed: return i;
0
439 }
never executed: end of block
0
440 return
never executed: return -1;
-1;
never executed: return -1;
0
441}-
442-
443-
444-
445int QXmlAttributes::index(QLatin1String qName) const-
446{-
447 for (int i = 0; i < attList.size()
i < attList.size()Description
TRUEevaluated 11810 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 2589 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
; ++i) {
2589-11810
448 if (attList.at(i).qname == qName
attList.at(i).qname == qNameDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 11786 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
)
24-11786
449 return
executed 24 times by 1 test: return i;
Executed by:
  • tst_qxmlstream - unknown status
i;
executed 24 times by 1 test: return i;
Executed by:
  • tst_qxmlstream - unknown status
24
450 }
executed 11786 times by 1 test: end of block
Executed by:
  • tst_qxmlstream - unknown status
11786
451 return
executed 2589 times by 1 test: return -1;
Executed by:
  • tst_qxmlstream - unknown status
-1;
executed 2589 times by 1 test: return -1;
Executed by:
  • tst_qxmlstream - unknown status
2589
452}-
453int QXmlAttributes::index(const QString& uri, const QString& localPart) const-
454{-
455 for (int i = 0; i < attList.size()
i < attList.size()Description
TRUEevaluated 51512 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 5843 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
; ++i) {
5843-51512
456 const Attribute &att = attList.at(i);-
457 if (att.uri == uri
att.uri == uriDescription
TRUEevaluated 51512 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&& att.localname == localPart
att.localname == localPartDescription
TRUEevaluated 8130 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 43382 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
)
0-51512
458 return
executed 8130 times by 1 test: return i;
Executed by:
  • tst_qxmlstream - unknown status
i;
executed 8130 times by 1 test: return i;
Executed by:
  • tst_qxmlstream - unknown status
8130
459 }
executed 43382 times by 1 test: end of block
Executed by:
  • tst_qxmlstream - unknown status
43382
460 return
executed 5843 times by 1 test: return -1;
Executed by:
  • tst_qxmlstream - unknown status
-1;
executed 5843 times by 1 test: return -1;
Executed by:
  • tst_qxmlstream - unknown status
5843
461}-
462-
463-
464-
465-
466-
467-
468int QXmlAttributes::length() const-
469{-
470 return
executed 4017 times by 5 tests: return attList.count();
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
attList.count();
executed 4017 times by 5 tests: return attList.count();
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
4017
471}-
472QString QXmlAttributes::localName(int index) const-
473{-
474 return
executed 407 times by 1 test: return attList.at(index).localname;
Executed by:
  • tst_qxmlsimplereader - unknown status
attList.at(index).localname;
executed 407 times by 1 test: return attList.at(index).localname;
Executed by:
  • tst_qxmlsimplereader - unknown status
407
475}-
476-
477-
478-
479-
480-
481-
482-
483QString QXmlAttributes::qName(int index) const-
484{-
485 return
executed 1275 times by 4 tests: return attList.at(index).qname;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
attList.at(index).qname;
executed 1275 times by 4 tests: return attList.at(index).qname;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
1275
486}-
487QString QXmlAttributes::uri(int index) const-
488{-
489 return
executed 409 times by 1 test: return attList.at(index).uri;
Executed by:
  • tst_qxmlsimplereader - unknown status
attList.at(index).uri;
executed 409 times by 1 test: return attList.at(index).uri;
Executed by:
  • tst_qxmlsimplereader - unknown status
409
490}-
491-
492-
493-
494-
495-
496-
497-
498QString QXmlAttributes::type(int) const-
499{-
500 return
executed 407 times by 1 test: return QLatin1String("CDATA");
Executed by:
  • tst_qxmlsimplereader - unknown status
QLatin1String("CDATA");
executed 407 times by 1 test: return QLatin1String("CDATA");
Executed by:
  • tst_qxmlsimplereader - unknown status
407
501}-
502QString QXmlAttributes::type(const QString&) const-
503{-
504 return
never executed: return QLatin1String("CDATA");
QLatin1String("CDATA");
never executed: return QLatin1String("CDATA");
0
505}-
506QString QXmlAttributes::type(const QString&, const QString&) const-
507{-
508 return
never executed: return QLatin1String("CDATA");
QLatin1String("CDATA");
never executed: return QLatin1String("CDATA");
0
509}-
510-
511-
512-
513-
514-
515-
516QString QXmlAttributes::value(int index) const-
517{-
518 return
executed 1287 times by 5 tests: return attList.at(index).value;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
attList.at(index).value;
executed 1287 times by 5 tests: return attList.at(index).value;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1287
519}-
520QString QXmlAttributes::value(const QString& qName) const-
521{-
522 int i = index(qName);-
523 if (i == -1
i == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
524 return
never executed: return QString();
QString();
never executed: return QString();
0
525 return
never executed: return attList.at(i).value;
attList.at(i).value;
never executed: return attList.at(i).value;
0
526}-
527QString QXmlAttributes::value(QLatin1String qName) const-
528{-
529 int i = index(qName);-
530 if (i == -1
i == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
531 return
never executed: return QString();
QString();
never executed: return QString();
0
532 return
never executed: return attList.at(i).value;
attList.at(i).value;
never executed: return attList.at(i).value;
0
533}-
534QString QXmlAttributes::value(const QString& uri, const QString& localName) const-
535{-
536 int i = index(uri, localName);-
537 if (i == -1
i == -1Description
TRUEevaluated 4320 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 7751 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
)
4320-7751
538 return
executed 4320 times by 1 test: return QString();
Executed by:
  • tst_qxmlstream - unknown status
QString();
executed 4320 times by 1 test: return QString();
Executed by:
  • tst_qxmlstream - unknown status
4320
539 return
executed 7751 times by 1 test: return attList.at(i).value;
Executed by:
  • tst_qxmlstream - unknown status
attList.at(i).value;
executed 7751 times by 1 test: return attList.at(i).value;
Executed by:
  • tst_qxmlstream - unknown status
7751
540}-
541-
542-
543-
544-
545-
546-
547void QXmlAttributes::clear()-
548{-
549 attList.clear();-
550}
executed 5802 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5802
551void QXmlAttributes::append(const QString &qName, const QString &uri, const QString &localPart, const QString &value)-
552{-
553 Attribute att;-
554 att.qname = qName;-
555 att.uri = uri;-
556 att.localname = localPart;-
557 att.value = value;-
558-
559 attList.append(att);-
560}
executed 12887 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12887
561const ushort QXmlInputSource::EndOfData = 0xfffe;-
562const ushort QXmlInputSource::EndOfDocument = 0xffff;-
563-
564-
565-
566-
567void QXmlInputSource::init()-
568{-
569 d = new QXmlInputSourcePrivate;-
570-
571 if (true) {-
572 d->inputDevice = 0;-
573 d->inputStream = 0;-
574-
575 setData(QString());-
576-
577 d->encMapper = 0;-
578-
579 d->nextReturnedEndOfData = true;-
580-
581 d->encodingDeclBytes.clear();-
582 d->encodingDeclChars.clear();-
583 d->lookingForEncodingDecl = true;-
584 }
executed 2106 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
dead code: { delete(d); qt_noop(); }
-
585 delete(d);
dead code: { delete(d); qt_noop(); }
-
586 qt_noop();
dead code: { delete(d); qt_noop(); }
-
587 }
dead code: { delete(d); qt_noop(); }
-
588}-
589-
590-
591-
592-
593-
594-
595QXmlInputSource::QXmlInputSource()-
596{-
597 init();-
598}
executed 1734 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
1734
599QXmlInputSource::QXmlInputSource(QIODevice *dev)-
600{-
601 init();-
602 d->inputDevice = dev;-
603 if (dev->isOpen()
dev->isOpen()Description
TRUEevaluated 363 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
)
9-363
604 d->inputDevice->setTextModeEnabled(false);
executed 363 times by 2 tests: d->inputDevice->setTextModeEnabled(false);
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
363
605}
executed 372 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
372
606-
607-
608-
609-
610QXmlInputSource::~QXmlInputSource()-
611{-
612-
613-
614 delete d->encMapper;-
615-
616 delete d;-
617}
executed 2106 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2106
618QChar QXmlInputSource::next()-
619{-
620 if (d->pos >= d->length
d->pos >= d->lengthDescription
TRUEevaluated 48748 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 744723 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
48748-744723
621 if (d->nextReturnedEndOfData
d->nextReturnedEndOfDataDescription
TRUEevaluated 2851 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 45897 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2851-45897
622 d->nextReturnedEndOfData = false;-
623 fetchData();-
624 if (d->pos >= d->length
d->pos >= d->lengthDescription
TRUEevaluated 1961 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 890 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
890-1961
625 return
executed 1961 times by 6 tests: return EndOfDocument;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EndOfDocument;
executed 1961 times by 6 tests: return EndOfDocument;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1961
626 }-
627 return
executed 890 times by 3 tests: return next();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
next();
executed 890 times by 3 tests: return next();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
890
628 }-
629 d->nextReturnedEndOfData = true;-
630 return
executed 45897 times by 6 tests: return EndOfData;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EndOfData;
executed 45897 times by 6 tests: return EndOfData;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
45897
631 }-
632-
633-
634-
635-
636 QChar c = d->unicode[d->pos++];-
637 if (c.unicode() == EndOfData
c.unicode() == EndOfDataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 744722 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
1-744722
638 c = EndOfDocument;
executed 1 time by 1 test: c = EndOfDocument;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
639 return
executed 744723 times by 6 tests: return c;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
c;
executed 744723 times by 6 tests: return c;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
744723
640}-
641void QXmlInputSource::reset()-
642{-
643 d->nextReturnedEndOfData = false;-
644 d->pos = 0;-
645}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
4
646-
647-
648-
649-
650-
651-
652-
653QString QXmlInputSource::data() const-
654{-
655 if (d->nextReturnedEndOfData
d->nextReturnedEndOfDataDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlinputsource - unknown status
) {
0-4
656 QXmlInputSource *that = const_cast<QXmlInputSource*>(this);-
657 that->d->nextReturnedEndOfData = false;-
658 that->fetchData();-
659 }
never executed: end of block
0
660 return
executed 4 times by 1 test: return d->str;
Executed by:
  • tst_qxmlinputsource - unknown status
d->str;
executed 4 times by 1 test: return d->str;
Executed by:
  • tst_qxmlinputsource - unknown status
4
661}-
662void QXmlInputSource::setData(const QString& dat)-
663{-
664 d->str = dat;-
665 d->unicode = dat.unicode();-
666 d->pos = 0;-
667 d->length = d->str.length();-
668 d->nextReturnedEndOfData = false;-
669}
executed 48375 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
48375
670-
671-
672-
673-
674-
675-
676-
677void QXmlInputSource::setData(const QByteArray& dat)-
678{-
679 setData(fromRawData(dat));-
680}
executed 44908 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
44908
681void QXmlInputSource::fetchData()-
682{-
683 enum-
684 {-
685 BufferSize = 1024-
686 };-
687-
688 QByteArray rawData;-
689-
690 if (d->inputDevice
d->inputDeviceDescription
TRUEevaluated 1117 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1734 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
|| d->inputStream
d->inputStreamDescription
TRUEnever evaluated
FALSEevaluated 1734 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-1734
691 QIODevice *device = d->inputDevice
d->inputDeviceDescription
TRUEevaluated 1117 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
? d->inputDevice : d->inputStream->device();
0-1117
692-
693 if (!device
!deviceDescription
TRUEnever evaluated
FALSEevaluated 1117 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-1117
694 if (d->inputStream
d->inputStreamDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->inputStream->string()
d->inputStream->string()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
695 QString *s = d->inputStream->string();-
696 rawData = QByteArray((const char *) s->constData(), s->size() * sizeof(QChar));-
697 }
never executed: end of block
0
698 }
never executed: end of block
else if (device->isOpen()
device->isOpen()Description
TRUEevaluated 1108 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
|| device->open(QIODevice::ReadOnly)
device->open(Q...ice::ReadOnly)Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1108
699 rawData.resize(BufferSize);-
700 qint64 size = device->read(rawData.data(), BufferSize);-
701-
702 if (size != -1
size != -1Description
TRUEevaluated 1117 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-1117
703-
704 while (size < 4
size < 4Description
TRUEevaluated 235 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 890 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
235-890
705 if (!device->waitForReadyRead(-1)
!device->waitForReadyRead(-1)Description
TRUEevaluated 227 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
8-227
706 break;
executed 227 times by 3 tests: break;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
227
707 int ret = device->read(rawData.data() + size, BufferSize - size);-
708 if (ret <= 0
ret <= 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-8
709 break;
never executed: break;
0
710 size += ret;-
711 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
8
712 }
executed 1117 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1117
713-
714 rawData.resize(qMax(qint64(0), size));-
715 }
executed 1117 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1117
716-
717-
718-
719-
720-
721 setData(fromRawData(rawData));-
722 }
executed 1117 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1117
723}
executed 2851 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2851
724-
725-
726static QString extractEncodingDecl(const QString &text, bool *needMoreText)-
727{-
728 *needMoreText = false;-
729-
730 int l = text.length();-
731 const QLatin1String snip("<?xml", std::min(l, 5));-
732 if (l > 0
l > 0Description
TRUEevaluated 3097 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& !text.startsWith(snip)
!text.startsWith(snip)Description
TRUEevaluated 1742 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1355 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
6-3097
733 return
executed 1742 times by 2 tests: return QString();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
QString();
executed 1742 times by 2 tests: return QString();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
1742
734-
735 int endPos = text.indexOf(QLatin1Char('>'));-
736 if (endPos == -1
endPos == -1Description
TRUEevaluated 1242 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 119 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
119-1242
737 *needMoreText = l < 255;-
738 return
executed 1242 times by 1 test: return QString();
Executed by:
  • tst_qxmlsimplereader - unknown status
QString();
executed 1242 times by 1 test: return QString();
Executed by:
  • tst_qxmlsimplereader - unknown status
1242
739 }-
740-
741 int pos = text.indexOf(QLatin1String("encoding"));-
742 if (pos == -1
pos == -1Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
|| pos >= endPos
pos >= endPosDescription
TRUEnever evaluated
FALSEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-67
743 return
executed 52 times by 1 test: return QString();
Executed by:
  • tst_qxmlsimplereader - unknown status
QString();
executed 52 times by 1 test: return QString();
Executed by:
  • tst_qxmlsimplereader - unknown status
52
744-
745 while (pos < endPos
pos < endPosDescription
TRUEevaluated 670 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-670
746 ushort uc = text.at(pos).unicode();-
747 if (uc == '\''
uc == '\''Description
TRUEnever evaluated
FALSEevaluated 670 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
|| uc == '"'
uc == '"'Description
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 603 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-670
748 break;
executed 67 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
67
749 ++pos;-
750 }
executed 603 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
603
751-
752 if (pos == endPos
pos == endPosDescription
TRUEnever evaluated
FALSEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-67
753 return
never executed: return QString();
QString();
never executed: return QString();
0
754-
755 QString encoding;-
756 ++pos;-
757 while (pos < endPos
pos < endPosDescription
TRUEevaluated 404 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-404
758 ushort uc = text.at(pos).unicode();-
759 if (uc == '\''
uc == '\''Description
TRUEnever evaluated
FALSEevaluated 404 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
|| uc == '"'
uc == '"'Description
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 337 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-404
760 break;
executed 67 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
67
761 encoding.append(uc);-
762 ++pos;-
763 }
executed 337 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
337
764-
765 return
executed 67 times by 2 tests: return encoding;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
encoding;
executed 67 times by 2 tests: return encoding;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
67
766}-
767QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning)-
768{-
769-
770-
771-
772-
773 if (data.size() == 0
data.size() == 0Description
TRUEevaluated 227 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 45798 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
227-45798
774 return
executed 227 times by 3 tests: return QString();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
QString();
executed 227 times by 3 tests: return QString();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
227
775 if (beginning
beginningDescription
TRUEnever evaluated
FALSEevaluated 45798 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-45798
776 delete d->encMapper;-
777 d->encMapper = 0;-
778 }
never executed: end of block
0
779-
780 int mib = 106;-
781-
782-
783 if (d->encMapper == 0
d->encMapper == 0Description
TRUEevaluated 1861 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 43937 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1861-43937
784 d->encodingDeclBytes.clear();-
785 d->encodingDeclChars.clear();-
786 d->lookingForEncodingDecl = true;-
787-
788-
789 if (data.size() >= 4
data.size() >= 4Description
TRUEevaluated 1367 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 494 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
494-1367
790 uchar ch1 = data.at(0);-
791 uchar ch2 = data.at(1);-
792 uchar ch3 = data.at(2);-
793 uchar ch4 = data.at(3);-
794-
795 if ((ch1 == 0
ch1 == 0Description
TRUEnever evaluated
FALSEevaluated 1367 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0
ch2 == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& ch3 == 0xfe
ch3 == 0xfeDescription
TRUEnever evaluated
FALSEnever evaluated
&& ch4 == 0xff
ch4 == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
) ||
0-1367
796 (ch1 == 0xff
ch1 == 0xffDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1345 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0xfe
ch2 == 0xfeDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
&& ch3 == 0
ch3 == 0Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& ch4 == 0
ch4 == 0Description
TRUEnever evaluated
FALSEnever evaluated
))
0-1345
797 mib = 1017;
never executed: mib = 1017;
0
798 else if (ch1 == 0x3c
ch1 == 0x3cDescription
TRUEevaluated 1343 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& ch2 == 0x00
ch2 == 0x00Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1342 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch3 == 0x00
ch3 == 0x00Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& ch4 == 0x00
ch4 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
)
0-1343
799 mib = 1019;
never executed: mib = 1019;
0
800 else if (ch1 == 0x00
ch1 == 0x00Description
TRUEnever evaluated
FALSEevaluated 1367 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0x00
ch2 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
&& ch3 == 0x00
ch3 == 0x00Description
TRUEnever evaluated
FALSEnever evaluated
&& ch4 == 0x3c
ch4 == 0x3cDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-1367
801 mib = 1018;
never executed: mib = 1018;
0
802 }
executed 1367 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1367
803 if (mib == 106
mib == 106Description
TRUEevaluated 1861 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&& data.size() >= 2
data.size() >= 2Description
TRUEevaluated 1699 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 162 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-1861
804 uchar ch1 = data.at(0);-
805 uchar ch2 = data.at(1);-
806-
807 if ((ch1 == 0xfe
ch1 == 0xfeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1698 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0xff
ch2 == 0xffDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) || (ch1 == 0xff
ch1 == 0xffDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1670 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0xfe
ch2 == 0xfeDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
))
0-1698
808 mib = 1015;
executed 29 times by 1 test: mib = 1015;
Executed by:
  • tst_qxmlsimplereader - unknown status
29
809 else if (ch1 == 0x3c
ch1 == 0x3cDescription
TRUEevaluated 1669 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& ch2 == 0x00
ch2 == 0x00Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1668 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
1-1669
810 mib = 1014;
executed 1 time by 1 test: mib = 1014;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
811 else if (ch1 == 0x00
ch1 == 0x00Description
TRUEnever evaluated
FALSEevaluated 1669 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& ch2 == 0x3c
ch2 == 0x3cDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-1669
812 mib = 1013;
never executed: mib = 1013;
0
813 }
executed 1699 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1699
814-
815 QTextCodec *codec = QTextCodec::codecForMib(mib);-
816 ((!(codec)) ? qt_assert("codec",__FILE__,1396) : qt_noop());-
817-
818 d->encMapper = codec->makeDecoder();-
819 }
executed 1861 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1861
820-
821 QString input = d->encMapper->toUnicode(data.constData(), data.size());-
822-
823 if (d->lookingForEncodingDecl
d->lookingForEncodingDeclDescription
TRUEevaluated 3103 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 42695 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
3103-42695
824 d->encodingDeclChars += input;-
825-
826 bool needMoreText;-
827 QString encoding = extractEncodingDecl(d->encodingDeclChars, &needMoreText);-
828-
829 if (!encoding.isEmpty()
!encoding.isEmpty()Description
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3036 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
67-3036
830 if (QTextCodec *codec = QTextCodec::codecForName(encoding.toLatin1())
QTextCodec *co...ng.toLatin1())Description
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-67
831-
832 if(codec->mibEnum() != mib
codec->mibEnum() != mibDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 66 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1-66
833 delete d->encMapper;-
834 d->encMapper = codec->makeDecoder();-
835-
836-
837-
838-
839 input.clear();-
840-
841-
842 d->encMapper->toUnicode(d->encodingDeclBytes.constData(), d->encodingDeclBytes.size());-
843-
844 input = d->encMapper->toUnicode(data.constData(), data.size());-
845 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1
846 }
executed 67 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
67
847 }
executed 67 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
67
848-
849 d->encodingDeclBytes += data;-
850 d->lookingForEncodingDecl = needMoreText;-
851 }
executed 3103 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
3103
852-
853 return
executed 45798 times by 3 tests: return input;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
input;
executed 45798 times by 3 tests: return input;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
45798
854-
855}-
856QXmlDefaultHandler::QXmlDefaultHandler()-
857{-
858-
859-
860 (void)d;;-
861}
executed 2103 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2103
862-
863-
864-
865-
866-
867-
868QXmlDefaultHandler::~QXmlDefaultHandler()-
869{-
870}-
871-
872-
873-
874-
875-
876-
877void QXmlDefaultHandler::setDocumentLocator(QXmlLocator*)-
878{-
879}-
880-
881-
882-
883-
884-
885-
886bool QXmlDefaultHandler::startDocument()-
887{-
888 return
executed 255 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 255 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
255
889}-
890-
891-
892-
893-
894-
895-
896bool QXmlDefaultHandler::endDocument()-
897{-
898 return
executed 11 times by 3 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 11 times by 3 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
11
899}-
900-
901-
902-
903-
904-
905-
906bool QXmlDefaultHandler::startPrefixMapping(const QString&, const QString&)-
907{-
908 return
executed 5 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 5 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
909}-
910-
911-
912-
913-
914-
915-
916bool QXmlDefaultHandler::endPrefixMapping(const QString&)-
917{-
918 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
919}-
920-
921-
922-
923-
924-
925-
926bool QXmlDefaultHandler::startElement(const QString&, const QString&,-
927 const QString&, const QXmlAttributes&)-
928{-
929 return
executed 206 times by 2 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 206 times by 2 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
206
930}-
931-
932-
933-
934-
935-
936-
937bool QXmlDefaultHandler::endElement(const QString&, const QString&,-
938 const QString&)-
939{-
940 return
executed 206 times by 2 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 206 times by 2 tests: return true;
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
206
941}-
942-
943-
944-
945-
946-
947-
948bool QXmlDefaultHandler::characters(const QString&)-
949{-
950 return
executed 394 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 394 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
394
951}-
952-
953-
954-
955-
956-
957-
958bool QXmlDefaultHandler::ignorableWhitespace(const QString&)-
959{-
960 return
never executed: return true;
true;
never executed: return true;
0
961}-
962-
963-
964-
965-
966-
967-
968bool QXmlDefaultHandler::processingInstruction(const QString&,-
969 const QString&)-
970{-
971 return
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
6
972}-
973-
974-
975-
976-
977-
978-
979bool QXmlDefaultHandler::skippedEntity(const QString&)-
980{-
981 return
never executed: return true;
true;
never executed: return true;
0
982}-
983-
984-
985-
986-
987-
988-
989bool QXmlDefaultHandler::warning(const QXmlParseException&)-
990{-
991 return
never executed: return true;
true;
never executed: return true;
0
992}-
993-
994-
995-
996-
997-
998-
999bool QXmlDefaultHandler::error(const QXmlParseException&)-
1000{-
1001 return
never executed: return true;
true;
never executed: return true;
0
1002}-
1003-
1004-
1005-
1006-
1007-
1008-
1009bool QXmlDefaultHandler::fatalError(const QXmlParseException&)-
1010{-
1011 return
executed 3 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
1012}-
1013-
1014-
1015-
1016-
1017-
1018-
1019bool QXmlDefaultHandler::notationDecl(const QString&, const QString&,-
1020 const QString&)-
1021{-
1022 return
never executed: return true;
true;
never executed: return true;
0
1023}-
1024-
1025-
1026-
1027-
1028-
1029-
1030bool QXmlDefaultHandler::unparsedEntityDecl(const QString&, const QString&,-
1031 const QString&, const QString&)-
1032{-
1033 return
never executed: return true;
true;
never executed: return true;
0
1034}-
1035-
1036-
1037-
1038-
1039-
1040-
1041-
1042bool QXmlDefaultHandler::resolveEntity(const QString&, const QString&,-
1043 QXmlInputSource*& ret)-
1044{-
1045 ret = 0;-
1046 return
never executed: return true;
true;
never executed: return true;
0
1047}-
1048-
1049-
1050-
1051-
1052-
1053-
1054QString QXmlDefaultHandler::errorString() const-
1055{-
1056 return
never executed: return QString::fromLatin1("error triggered by consumer");
QString::fromLatin1("error triggered by consumer");
never executed: return QString::fromLatin1("error triggered by consumer");
0
1057}-
1058-
1059-
1060-
1061-
1062-
1063-
1064bool QXmlDefaultHandler::startDTD(const QString&, const QString&, const QString&)-
1065{-
1066 return
never executed: return true;
true;
never executed: return true;
0
1067}-
1068-
1069-
1070-
1071-
1072-
1073-
1074bool QXmlDefaultHandler::endDTD()-
1075{-
1076 return
executed 157 times by 2 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
true;
executed 157 times by 2 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
157
1077}-
1078-
1079-
1080-
1081-
1082-
1083-
1084bool QXmlDefaultHandler::startEntity(const QString&)-
1085{-
1086 return
never executed: return true;
true;
never executed: return true;
0
1087}-
1088-
1089-
1090-
1091-
1092-
1093-
1094bool QXmlDefaultHandler::endEntity(const QString&)-
1095{-
1096 return
never executed: return true;
true;
never executed: return true;
0
1097}-
1098-
1099-
1100-
1101-
1102-
1103-
1104bool QXmlDefaultHandler::startCDATA()-
1105{-
1106 return
never executed: return true;
true;
never executed: return true;
0
1107}-
1108-
1109-
1110-
1111-
1112-
1113-
1114bool QXmlDefaultHandler::endCDATA()-
1115{-
1116 return
never executed: return true;
true;
never executed: return true;
0
1117}-
1118-
1119-
1120-
1121-
1122-
1123-
1124bool QXmlDefaultHandler::comment(const QString&)-
1125{-
1126 return
never executed: return true;
true;
never executed: return true;
0
1127}-
1128-
1129-
1130-
1131-
1132-
1133-
1134bool QXmlDefaultHandler::attributeDecl(const QString&, const QString&, const QString&, const QString&, const QString&)-
1135{-
1136 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
1137}-
1138-
1139-
1140-
1141-
1142-
1143-
1144bool QXmlDefaultHandler::internalEntityDecl(const QString&, const QString&)-
1145{-
1146 return
executed 5 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 5 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
1147}-
1148-
1149-
1150-
1151-
1152-
1153-
1154bool QXmlDefaultHandler::externalEntityDecl(const QString&, const QString&, const QString&)-
1155{-
1156 return
never executed: return true;
true;
never executed: return true;
0
1157}-
1158inline bool QXmlSimpleReaderPrivate::atEnd()-
1159{-
1160 return
executed 1050513 times by 6 tests: return (c.unicode()|0x0001) == 0xffff;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
(c.unicode()|0x0001) == 0xffff;
executed 1050513 times by 6 tests: return (c.unicode()|0x0001) == 0xffff;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1050513
1161}-
1162-
1163inline void QXmlSimpleReaderPrivate::stringClear()-
1164{-
1165 stringValueLen = 0; stringArrayPos = 0;-
1166}
executed 21975 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
21975
1167inline void QXmlSimpleReaderPrivate::nameClear()-
1168{-
1169 nameValueLen = 0; nameArrayPos = 0;-
1170}
executed 30021 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
30021
1171-
1172inline void QXmlSimpleReaderPrivate::refClear()-
1173{-
1174 refValueLen = 0; refArrayPos = 0;-
1175}
executed 2957 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2957
1176-
1177QXmlSimpleReaderPrivate::QXmlSimpleReaderPrivate(QXmlSimpleReader *reader)-
1178{-
1179 q_ptr = reader;-
1180 parseStack = 0;-
1181-
1182 locator.reset(new QXmlSimpleReaderLocator(reader));-
1183 entityRes = 0;-
1184 dtdHnd = 0;-
1185 contentHnd = 0;-
1186 errorHnd = 0;-
1187 lexicalHnd = 0;-
1188 declHnd = 0;-
1189-
1190-
1191 useNamespaces = true;-
1192 useNamespacePrefixes = false;-
1193 reportWhitespaceCharData = true;-
1194 reportEntities = false;-
1195}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
1196-
1197QXmlSimpleReaderPrivate::~QXmlSimpleReaderPrivate()-
1198{-
1199 delete parseStack;-
1200}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
1201-
1202void QXmlSimpleReaderPrivate::initIncrementalParsing()-
1203{-
1204 if(parseStack
parseStackDescription
TRUEnever evaluated
FALSEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-1490
1205 parseStack->clear();
never executed: parseStack->clear();
0
1206 else-
1207 parseStack = new QStack<ParseState>;
executed 1490 times by 1 test: parseStack = new QStack<ParseState>;
Executed by:
  • tst_qxmlsimplereader - unknown status
1490
1208}-
1209static inline bool is_S(QChar ch)-
1210{-
1211 ushort uc = ch.unicode();-
1212 return
executed 187992 times by 6 tests: return (uc == ' ' || uc == '\t' || uc == '\n' || uc == '\r');
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
(uc == ' ' || uc == '\t' || uc == '\n' || uc == '\r');
executed 187992 times by 6 tests: return (uc == ' ' || uc == '\t' || uc == '\n' || uc == '\r');
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
187992
1213}-
1214-
1215enum NameChar { NameBeginning, NameNotBeginning, NotName };-
1216-
1217static const char Begi = (char)NameBeginning;-
1218static const char NtBg = (char)NameNotBeginning;-
1219static const char NotN = (char)NotName;-
1220-
1221static const char nameCharTable[128] =-
1222{-
1223-
1224 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
1225 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
1226-
1227 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
1228 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
1229-
1230 NotN, NotN, NotN, NotN, NotN, NotN, NotN, NotN,-
1231 NotN, NotN, NotN, NotN, NotN, NtBg, NtBg, NotN,-
1232-
1233 NtBg, NtBg, NtBg, NtBg, NtBg, NtBg, NtBg, NtBg,-
1234 NtBg, NtBg, Begi, NotN, NotN, NotN, NotN, NotN,-
1235-
1236 NotN, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1237 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1238-
1239 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1240 Begi, Begi, Begi, NotN, NotN, NotN, NotN, Begi,-
1241-
1242 NotN, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1243 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1244-
1245 Begi, Begi, Begi, Begi, Begi, Begi, Begi, Begi,-
1246 Begi, Begi, Begi, NotN, NotN, NotN, NotN, NotN-
1247};-
1248-
1249static inline NameChar fastDetermineNameChar(QChar ch)-
1250{-
1251 ushort uc = ch.unicode();-
1252 if (!(uc & ~0x7f)
!(uc & ~0x7f)Description
TRUEevaluated 258018 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2385 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
2385-258018
1253 return
executed 258018 times by 6 tests: return (NameChar)nameCharTable[uc];
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
(NameChar)nameCharTable[uc];
executed 258018 times by 6 tests: return (NameChar)nameCharTable[uc];
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
258018
1254-
1255 QChar::Category cat = ch.category();-
1256-
1257 if ((cat >= QChar::Letter_Uppercase
cat >= QChar::Letter_UppercaseDescription
TRUEevaluated 2297 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& cat <= QChar::Letter_Other
cat <= QChar::Letter_OtherDescription
TRUEevaluated 2285 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
12-2297
1258 || cat == QChar::Number_Letter
cat == QChar::Number_LetterDescription
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-100
1259 return
executed 2285 times by 1 test: return NameBeginning;
Executed by:
  • tst_qxmlsimplereader - unknown status
NameBeginning;
executed 2285 times by 1 test: return NameBeginning;
Executed by:
  • tst_qxmlsimplereader - unknown status
2285
1260 if ((cat >= QChar::Number_DecimalDigit
cat >= QChar::...r_DecimalDigitDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 77 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& cat <= QChar::Number_Other
cat <= QChar::Number_OtherDescription
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-77
1261 || (cat >= QChar::Mark_NonSpacing
cat >= QChar::Mark_NonSpacingDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
&& cat <= QChar::Mark_Enclosing
cat <= QChar::Mark_EnclosingDescription
TRUEevaluated 77 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
))
0-100
1262 return
executed 77 times by 1 test: return NameNotBeginning;
Executed by:
  • tst_qxmlsimplereader - unknown status
NameNotBeginning;
executed 77 times by 1 test: return NameNotBeginning;
Executed by:
  • tst_qxmlsimplereader - unknown status
77
1263 return
executed 23 times by 1 test: return NotName;
Executed by:
  • tst_qxmlsimplereader - unknown status
NotName;
executed 23 times by 1 test: return NotName;
Executed by:
  • tst_qxmlsimplereader - unknown status
23
1264}-
1265-
1266static NameChar determineNameChar(QChar ch)-
1267{-
1268 return
executed 40888 times by 6 tests: return fastDetermineNameChar(ch);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
fastDetermineNameChar(ch);
executed 40888 times by 6 tests: return fastDetermineNameChar(ch);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
40888
1269}-
1270-
1271-
1272-
1273-
1274-
1275QXmlSimpleReader::QXmlSimpleReader()-
1276 : d_ptr(new QXmlSimpleReaderPrivate(this))-
1277{-
1278}
executed 2104 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2104
1279-
1280-
1281-
1282-
1283QXmlSimpleReader::~QXmlSimpleReader()-
1284{-
1285}-
1286-
1287-
1288-
1289-
1290bool QXmlSimpleReader::feature(const QString& name, bool *ok) const-
1291{-
1292 const QXmlSimpleReaderPrivate *d = d_func();-
1293-
1294 if (ok != 0
ok != 0Description
TRUEnever evaluated
FALSEevaluated 246 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
)
0-246
1295 *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
1296 if (name == QLatin1String("http://xml.org/sax/features/namespaces")
name == QLatin...s/namespaces")Description
TRUEevaluated 244 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-244
1297 return
executed 244 times by 5 tests: return d->useNamespaces;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
d->useNamespaces;
executed 244 times by 5 tests: return d->useNamespaces;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
244
1298 } else if (name == QLatin1String("http://xml.org/sax/features/namespace-prefixes")
name == QLatin...ace-prefixes")Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-2
1299 return
executed 2 times by 1 test: return d->useNamespacePrefixes;
Executed by:
  • tst_qxmlsimplereader - unknown status
d->useNamespacePrefixes;
executed 2 times by 1 test: return d->useNamespacePrefixes;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
1300 } else if (name == QLatin1String("http://trolltech.com/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEnever evaluated
FALSEnever evaluated
0
1301 || name == QLatin1String("http://qt-project.org/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1302 return
never executed: return d->reportWhitespaceCharData;
d->reportWhitespaceCharData;
never executed: return d->reportWhitespaceCharData;
0
1303 } else if (name == QLatin1String("http://trolltech.com/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
0
1304 || name == QLatin1String("http://qt-project.org/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1305 return
never executed: return d->reportEntities;
d->reportEntities;
never executed: return d->reportEntities;
0
1306 } else {-
1307 QMessageLogger(__FILE__, 2944, __PRETTY_FUNCTION__).warning("Unknown feature %s", name.toLatin1().data());-
1308 if (ok != 0
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1309 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
1310 }
never executed: end of block
0
1311 return
never executed: return false;
false;
never executed: return false;
0
1312}-
1313void QXmlSimpleReader::setFeature(const QString& name, bool enable)-
1314{-
1315 QXmlSimpleReaderPrivate * const d = d_func();-
1316 if (name == QLatin1String("http://xml.org/sax/features/namespaces")
name == QLatin...s/namespaces")Description
TRUEevaluated 244 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 488 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
244-488
1317 d->useNamespaces = enable;-
1318 }
executed 244 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
else if (name == QLatin1String("http://xml.org/sax/features/namespace-prefixes")
name == QLatin...ace-prefixes")Description
TRUEevaluated 244 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 244 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
244
1319 d->useNamespacePrefixes = enable;-
1320 }
executed 244 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
else if (name == QLatin1String("http://trolltech.com/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEevaluated 244 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
0-244
1321 || name == QLatin1String("http://qt-project.org/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1322 d->reportWhitespaceCharData = enable;-
1323 }
executed 244 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
else if (name == QLatin1String("http://trolltech.com/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
0-244
1324 || name == QLatin1String("http://qt-project.org/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1325 d->reportEntities = enable;-
1326 }
never executed: end of block
else {
0
1327 QMessageLogger(__FILE__, 2998, __PRETTY_FUNCTION__).warning("Unknown feature %s", name.toLatin1().data());-
1328 }
never executed: end of block
0
1329}-
1330-
1331-
1332-
1333bool QXmlSimpleReader::hasFeature(const QString& name) const-
1334{-
1335 if (name == QLatin1String("http://xml.org/sax/features/namespaces")
name == QLatin...s/namespaces")Description
TRUEnever evaluated
FALSEnever evaluated
0
1336 || name == QLatin1String("http://xml.org/sax/features/namespace-prefixes")
name == QLatin...ace-prefixes")Description
TRUEnever evaluated
FALSEnever evaluated
0
1337 || name == QLatin1String("http://trolltech.com/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEnever evaluated
FALSEnever evaluated
0
1338 || name == QLatin1String("http://qt-project.org/xml/features/report-whitespace-only-CharData")
name == QLatin...nly-CharData")Description
TRUEnever evaluated
FALSEnever evaluated
0
1339 || name == QLatin1String("http://trolltech.com/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
0
1340 || name == QLatin1String("http://qt-project.org/xml/features/report-start-end-entity")
name == QLatin...t-end-entity")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1341 return
never executed: return true;
true;
never executed: return true;
0
1342 } else {-
1343 return
never executed: return false;
false;
never executed: return false;
0
1344 }-
1345}-
1346-
1347-
1348-
1349void* QXmlSimpleReader::property(const QString&, bool *ok) const-
1350{-
1351 if (ok != 0
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1352 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
1353 return
never executed: return 0;
0;
never executed: return 0;
0
1354}-
1355-
1356-
1357-
1358void QXmlSimpleReader::setProperty(const QString&, void*)-
1359{-
1360}-
1361-
1362-
1363-
1364-
1365bool QXmlSimpleReader::hasProperty(const QString&) const-
1366{-
1367 return
never executed: return false;
false;
never executed: return false;
0
1368}-
1369-
1370-
1371-
1372-
1373void QXmlSimpleReader::setEntityResolver(QXmlEntityResolver* handler)-
1374{-
1375 QXmlSimpleReaderPrivate * const d = d_func();-
1376 d->entityRes = handler;-
1377}
executed 1845 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1845
1378-
1379-
1380-
1381-
1382QXmlEntityResolver* QXmlSimpleReader::entityResolver() const-
1383{-
1384 const QXmlSimpleReaderPrivate *d = d_func();-
1385 return
never executed: return d->entityRes;
d->entityRes;
never executed: return d->entityRes;
0
1386}-
1387-
1388-
1389-
1390-
1391void QXmlSimpleReader::setDTDHandler(QXmlDTDHandler* handler)-
1392{-
1393 QXmlSimpleReaderPrivate * const d = d_func();-
1394 d->dtdHnd = handler;-
1395}
executed 2089 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2089
1396-
1397-
1398-
1399-
1400QXmlDTDHandler* QXmlSimpleReader::DTDHandler() const-
1401{-
1402 const QXmlSimpleReaderPrivate *d = d_func();-
1403 return
never executed: return d->dtdHnd;
d->dtdHnd;
never executed: return d->dtdHnd;
0
1404}-
1405-
1406-
1407-
1408-
1409void QXmlSimpleReader::setContentHandler(QXmlContentHandler* handler)-
1410{-
1411 QXmlSimpleReaderPrivate * const d = d_func();-
1412 d->contentHnd = handler;-
1413}
executed 2100 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2100
1414-
1415-
1416-
1417-
1418QXmlContentHandler* QXmlSimpleReader::contentHandler() const-
1419{-
1420 const QXmlSimpleReaderPrivate *d = d_func();-
1421 return
never executed: return d->contentHnd;
d->contentHnd;
never executed: return d->contentHnd;
0
1422}-
1423-
1424-
1425-
1426-
1427void QXmlSimpleReader::setErrorHandler(QXmlErrorHandler* handler)-
1428{-
1429 QXmlSimpleReaderPrivate * const d = d_func();-
1430 d->errorHnd = handler;-
1431}
executed 2094 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2094
1432-
1433-
1434-
1435-
1436QXmlErrorHandler* QXmlSimpleReader::errorHandler() const-
1437{-
1438 const QXmlSimpleReaderPrivate *d = d_func();-
1439 return
never executed: return d->errorHnd;
d->errorHnd;
never executed: return d->errorHnd;
0
1440}-
1441-
1442-
1443-
1444-
1445void QXmlSimpleReader::setLexicalHandler(QXmlLexicalHandler* handler)-
1446{-
1447 QXmlSimpleReaderPrivate * const d = d_func();-
1448 d->lexicalHnd = handler;-
1449}
executed 2089 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2089
1450-
1451-
1452-
1453-
1454QXmlLexicalHandler* QXmlSimpleReader::lexicalHandler() const-
1455{-
1456 const QXmlSimpleReaderPrivate *d = d_func();-
1457 return
never executed: return d->lexicalHnd;
d->lexicalHnd;
never executed: return d->lexicalHnd;
0
1458}-
1459-
1460-
1461-
1462-
1463void QXmlSimpleReader::setDeclHandler(QXmlDeclHandler* handler)-
1464{-
1465 QXmlSimpleReaderPrivate * const d = d_func();-
1466 d->declHnd = handler;-
1467}
executed 2092 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
2092
1468-
1469-
1470-
1471-
1472QXmlDeclHandler* QXmlSimpleReader::declHandler() const-
1473{-
1474 const QXmlSimpleReaderPrivate *d = d_func();-
1475 return
never executed: return d->declHnd;
d->declHnd;
never executed: return d->declHnd;
0
1476}-
1477-
1478-
1479-
1480-
1481-
1482-
1483bool QXmlSimpleReader::parse(const QXmlInputSource& input)-
1484{-
1485 return
executed 359 times by 2 tests: return parse(&input, false);
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
parse(&input, false);
executed 359 times by 2 tests: return parse(&input, false);
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
359
1486}-
1487-
1488-
1489-
1490-
1491-
1492bool QXmlSimpleReader::parse(const QXmlInputSource* input)-
1493{-
1494 return
executed 252 times by 5 tests: return parse(input, false);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
parse(input, false);
executed 252 times by 5 tests: return parse(input, false);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
252
1495}-
1496bool QXmlSimpleReader::parse(const QXmlInputSource *input, bool incremental)-
1497{-
1498 QXmlSimpleReaderPrivate * const d = d_func();-
1499-
1500 d->literalEntitySizes.clear();-
1501 d->referencesToOtherEntities.clear();-
1502 d->expandedSizes.clear();-
1503-
1504 if (incremental
incrementalDescription
TRUEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 616 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
616-1490
1505 d->initIncrementalParsing();-
1506 }
executed 1490 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
1490
1507 delete d->parseStack;-
1508 d->parseStack = 0;-
1509 }
executed 616 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
616
1510 d->init(input);-
1511-
1512-
1513 if (d->contentHnd
d->contentHndDescription
TRUEevaluated 2100 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
6-2100
1514 d->contentHnd->setDocumentLocator(d->locator.data());-
1515 if (!d->contentHnd->startDocument()
!d->contentHnd...tartDocument()Description
TRUEnever evaluated
FALSEevaluated 2100 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-2100
1516 d->reportParseError(d->contentHnd->errorString());-
1517 clear(d->tags);-
1518 return
never executed: return false;
false;
never executed: return false;
0
1519 }-
1520 }
executed 2100 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2100
1521 d->skipped_entity_in_content = false;-
1522 return
executed 2106 times by 6 tests: return d->parseBeginOrContinue(0, incremental);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
d->parseBeginOrContinue(0, incremental);
executed 2106 times by 6 tests: return d->parseBeginOrContinue(0, incremental);
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2106
1523}-
1524bool QXmlSimpleReader::parseContinue()-
1525{-
1526 QXmlSimpleReaderPrivate * const d = d_func();-
1527 if (d->parseStack == 0
d->parseStack == 0Description
TRUEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 44908 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| d->parseStack->isEmpty()
d->parseStack->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 44908 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-44908
1528 return
executed 1490 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1490 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1490
1529 d->initData();-
1530 int state = d->parseStack->pop().state;-
1531 return
executed 44908 times by 1 test: return d->parseBeginOrContinue(state, true);
Executed by:
  • tst_qxmlsimplereader - unknown status
d->parseBeginOrContinue(state, true);
executed 44908 times by 1 test: return d->parseBeginOrContinue(state, true);
Executed by:
  • tst_qxmlsimplereader - unknown status
44908
1532}-
1533-
1534-
1535-
1536-
1537bool QXmlSimpleReaderPrivate::parseBeginOrContinue(int state, bool incremental)-
1538{-
1539 bool atEndOrig = atEnd();-
1540-
1541 if (state==0
state==0Description
TRUEevaluated 36047 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10967 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10967-36047
1542 if (!parseProlog()
!parseProlog()Description
TRUEevaluated 34018 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2029 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2029-34018
1543 if (incremental
incrementalDescription
TRUEevaluated 33941 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 77 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& error.isNull()
error.isNull()Description
TRUEevaluated 33941 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-33941
1544 pushParseState(0, 0);-
1545 return
executed 33941 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 33941 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
33941
1546 } else {-
1547 clear(tags);-
1548 return
executed 77 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 77 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
77
1549 }-
1550 }-
1551 state = 1;-
1552 }
executed 2029 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2029
1553 if (state==1
state==1Description
TRUEevaluated 10482 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2514 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2514-10482
1554 if (!parseElement()
!parseElement()Description
TRUEevaluated 8521 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1961 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1961-8521
1555 if (incremental
incrementalDescription
TRUEevaluated 8453 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& error.isNull()
error.isNull()Description
TRUEevaluated 8453 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-8453
1556 pushParseState(0, 1);-
1557 return
executed 8453 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 8453 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
8453
1558 } else {-
1559 clear(tags);-
1560 return
executed 68 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 68 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
68
1561 }-
1562 }-
1563 state = 2;-
1564 }
executed 1961 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1961
1565-
1566 while (!atEnd()
!atEnd()Description
TRUEevaluated 2340 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2392 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2340-2392
1567 if (!parseMisc()
!parseMisc()Description
TRUEevaluated 2083 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 257 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
257-2083
1568 if (incremental
incrementalDescription
TRUEevaluated 2073 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& error.isNull()
error.isNull()Description
TRUEevaluated 2073 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-2073
1569 pushParseState(0, 2);-
1570 return
executed 2073 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 2073 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
2073
1571 } else {-
1572 clear(tags);-
1573 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
1574 }-
1575 }-
1576 }
executed 257 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
257
1577 if (!atEndOrig
!atEndOrigDescription
TRUEevaluated 902 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& incremental
incrementalDescription
TRUEevaluated 441 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 461 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
441-1490
1578-
1579 pushParseState(0, 2);-
1580 return
executed 441 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 441 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
441
1581 }-
1582-
1583 if (!tags.empty()
!tags.empty()Description
TRUEnever evaluated
FALSEevaluated 1951 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& !error.isNull()
!error.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-1951
1584 reportParseError(QLatin1String("unexpected end of file"));-
1585 clear(tags);-
1586 return
never executed: return false;
false;
never executed: return false;
0
1587 }-
1588-
1589 if (contentHnd
contentHndDescription
TRUEevaluated 1950 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlinputsource - unknown status
) {
1-1950
1590 delete parseStack;-
1591 parseStack = 0;-
1592 if (!contentHnd->endDocument()
!contentHnd->endDocument()Description
TRUEnever evaluated
FALSEevaluated 1950 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-1950
1593 reportParseError(contentHnd->errorString());-
1594 return
never executed: return false;
false;
never executed: return false;
0
1595 }-
1596 }
executed 1950 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1950
1597 return
executed 1951 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 1951 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1951
1598}-
1599bool QXmlSimpleReaderPrivate::parseProlog()-
1600{-
1601 const signed char Init = 0;-
1602 const signed char EatWS = 1;-
1603 const signed char Lt = 2;-
1604 const signed char Em = 3;-
1605 const signed char DocType = 4;-
1606 const signed char Comment = 5;-
1607 const signed char CommentR = 6;-
1608 const signed char PInstr = 7;-
1609 const signed char PInstrR = 8;-
1610 const signed char Done = 9;-
1611-
1612 const signed char InpWs = 0;-
1613 const signed char InpLt = 1;-
1614 const signed char InpQm = 2;-
1615 const signed char InpEm = 3;-
1616 const signed char InpD = 4;-
1617 const signed char InpDash = 5;-
1618 const signed char InpUnknown = 6;-
1619-
1620 static const signed char table[9][7] = {-
1621-
1622 { EatWS, Lt, -1, -1, -1, -1, -1 },-
1623 { -1, Lt, -1, -1, -1, -1, -1 },-
1624 { -1, -1, PInstr,Em, Done, -1, Done },-
1625 { -1, -1, -1, -1, DocType, Comment, -1 },-
1626 { EatWS, Lt, -1, -1, -1, -1, -1 },-
1627 { EatWS, Lt, -1, -1, -1, -1, -1 },-
1628 { EatWS, Lt, -1, -1, -1, -1, -1 },-
1629 { EatWS, Lt, -1, -1, -1, -1, -1 },-
1630 { EatWS, Lt, -1, -1, -1, -1, -1 }-
1631 };-
1632 signed char state;-
1633 signed char input;-
1634-
1635 if (parseStack == 0
parseStack == 0Description
TRUEevaluated 616 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 35431 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 33941 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
616-35431
1636 xmldecl_possible = true;-
1637 doctype_read = false;-
1638 state = Init;-
1639 }
executed 2106 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
2106
1640 state = parseStack->pop().state;-
1641-
1642-
1643-
1644 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 32278 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1663 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1663-32278
1645 ParseFunction function = parseStack->top().function;-
1646 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 923 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 31355 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
923-31355
1647 parseStack->pop();-
1648-
1649-
1650-
1651 }
executed 923 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
923
1652 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 29925 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2353 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2353-29925
1653 parseFailed(&QXmlSimpleReaderPrivate::parseProlog, state);-
1654 return
executed 29925 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 29925 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
29925
1655 }-
1656 }
executed 2353 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2353
1657 }
executed 4016 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4016
1658-
1659 for (;;) {-
1660 switch (state) {-
1661 case
executed 2370 times by 4 tests: case DocType:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
DocType:
executed 2370 times by 4 tests: case DocType:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2370
1662 if (doctype_read
doctype_readDescription
TRUEnever evaluated
FALSEevaluated 2370 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-2370
1663 reportParseError(QLatin1String("more than one document type definition"));-
1664 return
never executed: return false;
false;
never executed: return false;
0
1665 } else {-
1666 doctype_read = false;-
1667 }
executed 2370 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2370
1668 break;
executed 2370 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2370
1669 case
executed 21 times by 2 tests: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Comment:
executed 21 times by 2 tests: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
21
1670 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
8-13
1671 if (!lexicalHnd->comment(string())
!lexicalHnd->comment(string())Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-13
1672 reportParseError(lexicalHnd->errorString());-
1673 return
never executed: return false;
false;
never executed: return false;
0
1674 }-
1675 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
13
1676 state = CommentR;-
1677 break;
executed 21 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
21
1678 case
executed 134 times by 2 tests: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
PInstr:
executed 134 times by 2 tests: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
134
1679-
1680 if (contentHnd
contentHndDescription
TRUEevaluated 131 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-131
1681 if (xmldecl_possible
xmldecl_possibleDescription
TRUEevaluated 120 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& !xmlVersion.isEmpty()
!xmlVersion.isEmpty()Description
TRUEevaluated 108 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-120
1682 QString value(QLatin1String("version='"));-
1683 value += xmlVersion;-
1684 value += QLatin1Char('\'');-
1685 if (!encoding.isEmpty()
!encoding.isEmpty()Description
TRUEevaluated 63 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 45 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
45-63
1686 value += QLatin1String(" encoding='");-
1687 value += encoding;-
1688 value += QLatin1Char('\'');-
1689 }
executed 63 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
63
1690 if (standalone == QXmlSimpleReaderPrivate::Yes
standalone == ...erPrivate::YesDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 87 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
21-87
1691 value += QLatin1String(" standalone='yes'");-
1692 }
executed 21 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (standalone == QXmlSimpleReaderPrivate::No
standalone == ...derPrivate::NoDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
21-57
1693 value += QLatin1String(" standalone='no'");-
1694 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
30
1695 if (!contentHnd->processingInstruction(QLatin1String("xml"), value)
!contentHnd->p..."xml"), value)Description
TRUEnever evaluated
FALSEevaluated 108 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-108
1696 reportParseError(contentHnd->errorString());-
1697 return
never executed: return false;
false;
never executed: return false;
0
1698 }-
1699 }
executed 108 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
108
1700 if (!contentHnd->processingInstruction(name(), string())
!contentHnd->p...e(), string())Description
TRUEnever evaluated
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-23
1701 reportParseError(contentHnd->errorString());-
1702 return
never executed: return false;
false;
never executed: return false;
0
1703 }-
1704 }
executed 23 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
23
1705 }-
1706-
1707 xmldecl_possible = false;-
1708 state = PInstrR;-
1709 break;
executed 134 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
134
1710 case
executed 2029 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 2029 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2029
1711 return
executed 2029 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 2029 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2029
1712 case
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
1713 reportParseError(QLatin1String("error occurred while parsing element"));-
1714 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
1715 }-
1716-
1717 if (atEnd()
atEnd()Description
TRUEevaluated 1664 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12160 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1664-12160
1718 unexpectedEof(&QXmlSimpleReaderPrivate::parseProlog, state);-
1719 return
executed 1664 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1664 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1664
1720 }-
1721 if (is_S(c)
is_S(c)Description
TRUEevaluated 1960 times by 4 tests
Evaluated by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10200 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1960-10200
1722 input = InpWs;-
1723 }
executed 1960 times by 4 tests: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('<')
c == QLatin1Char('<')Description
TRUEevaluated 4124 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 6076 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1960-6076
1724 input = InpLt;-
1725 }
executed 4124 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 147 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 5929 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
147-5929
1726 input = InpQm;-
1727 }
executed 147 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('!')
c == QLatin1Char('!')Description
TRUEevaluated 1948 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3981 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
147-3981
1728 input = InpEm;-
1729 }
executed 1948 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('D')
c == QLatin1Char('D')Description
TRUEevaluated 1923 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2058 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1923-2058
1730 input = InpD;-
1731 }
executed 1923 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('-')
c == QLatin1Char('-')Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2035 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
23-2035
1732 input = InpDash;-
1733 }
executed 23 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
23
1734 input = InpUnknown;-
1735 }
executed 2035 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2035
1736 state = table[state][input];-
1737-
1738 switch (state) {-
1739 case
executed 1960 times by 4 tests: case EatWS:
Executed by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EatWS:
executed 1960 times by 4 tests: case EatWS:
Executed by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1960
1740-
1741 xmldecl_possible = false;-
1742 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 746 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1214 times by 4 tests
Evaluated by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
746-1214
1743 parseFailed(&QXmlSimpleReaderPrivate::parseProlog, state);-
1744 return
executed 746 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 746 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
746
1745 }-
1746 break;
executed 1214 times by 4 tests: break;
Executed by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1214
1747 case
executed 4124 times by 6 tests: case Lt:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Lt:
executed 4124 times by 6 tests: case Lt:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4124
1748 next();-
1749 break;
executed 4124 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4124
1750 case
executed 1948 times by 4 tests: case Em:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Em:
executed 1948 times by 4 tests: case Em:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1948
1751-
1752 xmldecl_possible = false;-
1753 next();-
1754 break;
executed 1948 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1948
1755 case
executed 1923 times by 4 tests: case DocType:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
DocType:
executed 1923 times by 4 tests: case DocType:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
1756 if (!parseDoctype()
!parseDoctype()Description
TRUEevaluated 1545 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 378 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
378-1545
1757 parseFailed(&QXmlSimpleReaderPrivate::parseProlog, state);-
1758 return
executed 1545 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1545 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1545
1759 }-
1760 break;
executed 378 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
378
1761 case
executed 23 times by 2 tests: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Comment:
executed 23 times by 2 tests: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
23
1762 case
never executed: case CommentR:
CommentR:
never executed: case CommentR:
0
1763 if (!parseComment()
!parseComment()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
11-12
1764 parseFailed(&QXmlSimpleReaderPrivate::parseProlog, state);-
1765 return
executed 11 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 11 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
11
1766 }-
1767 break;
executed 12 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12
1768 case
executed 147 times by 2 tests: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
PInstr:
executed 147 times by 2 tests: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
147
1769 case
never executed: case PInstrR:
PInstrR:
never executed: case PInstrR:
0
1770 parsePI_xmldecl = xmldecl_possible;-
1771 if (!parsePI()
!parsePI()Description
TRUEevaluated 121 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
26-121
1772 parseFailed(&QXmlSimpleReaderPrivate::parseProlog, state);-
1773 return
executed 121 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 121 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
121
1774 }-
1775 break;
executed 26 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
26
1776 }-
1777 }
executed 9737 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9737
1778 return
never executed: return false;
false;
never executed: return false;
0
1779}-
1780-
1781-
1782-
1783-
1784-
1785-
1786bool QXmlSimpleReaderPrivate::parseElement()-
1787{-
1788 const int Init = 0;-
1789 const int ReadName = 1;-
1790 const int Ws1 = 2;-
1791 const int STagEnd = 3;-
1792 const int STagEnd2 = 4;-
1793 const int ETagBegin = 5;-
1794 const int ETagBegin2 = 6;-
1795 const int Ws2 = 7;-
1796 const int EmptyTag = 8;-
1797 const int Attrib = 9;-
1798 const int AttribPro = 10;-
1799 const int Ws3 = 11;-
1800 const int Done = 12;-
1801-
1802 const int InpWs = 0;-
1803 const int InpNameBe = 1;-
1804 const int InpGt = 2;-
1805 const int InpSlash = 3;-
1806 const int InpUnknown = 4;-
1807-
1808 static const int table[12][5] = {-
1809-
1810 { -1, ReadName, -1, -1, -1 },-
1811 { Ws1, Attrib, STagEnd, EmptyTag, -1 },-
1812 { -1, Attrib, STagEnd, EmptyTag, -1 },-
1813 { STagEnd2, STagEnd2, STagEnd2, STagEnd2, STagEnd2 },-
1814 { -1, -1, -1, ETagBegin, -1 },-
1815 { -1, ETagBegin2, -1, -1, -1 },-
1816 { Ws2, -1, Done, -1, -1 },-
1817 { -1, -1, Done, -1, -1 },-
1818 { -1, -1, Done, -1, -1 },-
1819 { Ws3, Attrib, STagEnd, EmptyTag, -1 },-
1820 { Ws3, Attrib, STagEnd, EmptyTag, -1 },-
1821 { -1, Attrib, STagEnd, EmptyTag, -1 }-
1822 };-
1823 int state;-
1824 int input;-
1825-
1826 if (parseStack == 0
parseStack == 0Description
TRUEevaluated 3992 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 11462 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1814 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9648 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1814-11462
1827 state = Init;-
1828 }
executed 5806 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
5806
1829 state = parseStack->pop().state;-
1830-
1831-
1832-
1833 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 8425 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1223 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1223-8425
1834 ParseFunction function = parseStack->top().function;-
1835 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 136 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8289 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
136-8289
1836 parseStack->pop();-
1837-
1838-
1839-
1840 }
executed 136 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
136
1841 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 4859 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3566 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3566-4859
1842 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1843 return
executed 4859 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4859 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4859
1844 }-
1845 }
executed 3566 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
3566
1846 }
executed 4789 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4789
1847-
1848 for (;;) {-
1849 switch (state) {-
1850 case
executed 5802 times by 6 tests: case ReadName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ReadName:
executed 5802 times by 6 tests: case ReadName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5802
1851-
1852 tags.push(name());-
1853-
1854 attList.clear();-
1855 if (useNamespaces
useNamespacesDescription
TRUEevaluated 4781 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1021 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
)
1021-4781
1856 namespaceSupport.pushContext();
executed 4781 times by 3 tests: namespaceSupport.pushContext();
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4781
1857 break;
executed 5802 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5802
1858 case
executed 5180 times by 6 tests: case ETagBegin2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ETagBegin2:
executed 5180 times by 6 tests: case ETagBegin2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5180
1859 if (!processElementETagBegin2()
!processElementETagBegin2()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5176 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
4-5176
1860 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
1861 break;
executed 5176 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5176
1862 case
executed 12894 times by 6 tests: case Attrib:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Attrib:
executed 12894 times by 6 tests: case Attrib:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12894
1863 if (!processElementAttribute()
!processElementAttribute()Description
TRUEnever evaluated
FALSEevaluated 12894 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-12894
1864 return
never executed: return false;
false;
never executed: return false;
0
1865 state = AttribPro;-
1866 break;
executed 12894 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12894
1867 case
executed 5723 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 5723 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5723
1868 return
executed 5723 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 5723 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5723
1869 case
executed 14 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 14 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
14
1870 reportParseError(QLatin1String("error occurred while parsing element"));-
1871 return
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
14
1872 }-
1873-
1874 if (atEnd()
atEnd()Description
TRUEevaluated 1225 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 58942 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1225-58942
1875 unexpectedEof(&QXmlSimpleReaderPrivate::parseElement, state);-
1876 return
executed 1225 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1225 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1225
1877 }-
1878 if (fastDetermineNameChar(c) == NameBeginning
fastDetermineN... NameBeginningDescription
TRUEevaluated 24149 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 34793 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
24149-34793
1879 input = InpNameBe;-
1880 }
executed 24149 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 10954 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 23839 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
10954-24149
1881 input = InpGt;-
1882 }
executed 10954 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (is_S(c)
is_S(c)Description
TRUEevaluated 15969 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 7870 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
7870-15969
1883 input = InpWs;-
1884 }
executed 15969 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('/')
c == QLatin1Char('/')Description
TRUEevaluated 5731 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2139 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2139-15969
1885 input = InpSlash;-
1886 }
executed 5731 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
5731
1887 input = InpUnknown;-
1888 }
executed 2139 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2139
1889 state = table[state][input];-
1890-
1891 switch (state) {-
1892 case
executed 5802 times by 6 tests: case ReadName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ReadName:
executed 5802 times by 6 tests: case ReadName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5802
1893 parseName_useRef = false;-
1894 if (!parseName()
!parseName()Description
TRUEevaluated 1145 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4657 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1145-4657
1895 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1896 return
executed 1145 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1145 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1145
1897 }-
1898 break;
executed 4657 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4657
1899 case
executed 3442 times by 6 tests: case Ws1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws1:
executed 3442 times by 6 tests: case Ws1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
3442
1900 case
executed 20 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws2:
executed 20 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
20
1901 case
executed 9662 times by 6 tests: case Ws3:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws3:
executed 9662 times by 6 tests: case Ws3:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9662
1902 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12990 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
134-12990
1903 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1904 return
executed 134 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 134 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
134
1905 }-
1906 break;
executed 12990 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12990
1907 case
executed 5230 times by 6 tests: case STagEnd:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
STagEnd:
executed 5230 times by 6 tests: case STagEnd:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5230
1908-
1909 if (contentHnd
contentHndDescription
TRUEevaluated 5226 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-5226
1910 if (useNamespaces
useNamespacesDescription
TRUEevaluated 4529 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 697 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
697-4529
1911 QString uri, lname;-
1912 namespaceSupport.processName(tags.top(), false, uri, lname);-
1913 if (!contentHnd->startElement(uri, lname, tags.top(), attList)
!contentHnd->s...op(), attList)Description
TRUEnever evaluated
FALSEevaluated 4529 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-4529
1914 reportParseError(contentHnd->errorString());-
1915 return
never executed: return false;
false;
never executed: return false;
0
1916 }-
1917 }
executed 4529 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
4529
1918 if (!contentHnd->startElement(QString(), QString(), tags.top(), attList)
!contentHnd->s...op(), attList)Description
TRUEnever evaluated
FALSEevaluated 697 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
0-697
1919 reportParseError(contentHnd->errorString());-
1920 return
never executed: return false;
false;
never executed: return false;
0
1921 }-
1922 }
executed 697 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
697
1923 }-
1924 next();-
1925 break;
executed 5230 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5230
1926 case
executed 5228 times by 6 tests: case STagEnd2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
STagEnd2:
executed 5228 times by 6 tests: case STagEnd2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5228
1927 if (!parseContent()
!parseContent()Description
TRUEevaluated 921 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4307 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
921-4307
1928 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1929 return
executed 921 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 921 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
921
1930 }-
1931 break;
executed 4307 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4307
1932 case
executed 5181 times by 6 tests: case ETagBegin:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ETagBegin:
executed 5181 times by 6 tests: case ETagBegin:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5181
1933 next();-
1934 break;
executed 5181 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5181
1935 case
executed 5180 times by 6 tests: case ETagBegin2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ETagBegin2:
executed 5180 times by 6 tests: case ETagBegin2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5180
1936-
1937 parseName_useRef = false;-
1938 if (!parseName()
!parseName()Description
TRUEevaluated 1072 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4108 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1072-4108
1939 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1940 return
executed 1072 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1072 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1072
1941 }-
1942 break;
executed 4108 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4108
1943 case
executed 550 times by 5 tests: case EmptyTag:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
EmptyTag:
executed 550 times by 5 tests: case EmptyTag:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
550
1944 if (tags.empty()
tags.empty()Description
TRUEnever evaluated
FALSEevaluated 550 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-550
1945 reportParseError(QLatin1String("tag mismatch"));-
1946 return
never executed: return false;
false;
never executed: return false;
0
1947 }-
1948 if (!processElementEmptyTag()
!processElementEmptyTag()Description
TRUEnever evaluated
FALSEevaluated 550 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
)
0-550
1949 return
never executed: return false;
false;
never executed: return false;
0
1950 next();-
1951 break;
executed 550 times by 5 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
550
1952 case
executed 12910 times by 6 tests: case Attrib:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Attrib:
executed 12910 times by 6 tests: case Attrib:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12910
1953 case
never executed: case AttribPro:
AttribPro:
never executed: case AttribPro:
0
1954-
1955 if (!parseAttribute()
!parseAttribute()Description
TRUEevaluated 357 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12553 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
357-12553
1956 parseFailed(&QXmlSimpleReaderPrivate::parseElement, state);-
1957 return
executed 357 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 357 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
357
1958 }-
1959 break;
executed 12553 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12553
1960 case
executed 5723 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 5723 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5723
1961 next();-
1962 break;
executed 5723 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5723
1963 }-
1964 }
executed 55313 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
55313
1965 return
never executed: return false;
false;
never executed: return false;
0
1966}-
1967-
1968-
1969-
1970-
1971-
1972bool QXmlSimpleReaderPrivate::processElementEmptyTag()-
1973{-
1974 QString uri, lname;-
1975-
1976 if (contentHnd
contentHndDescription
TRUEevaluated 541 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
9-541
1977 if (useNamespaces
useNamespacesDescription
TRUEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 324 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
217-324
1978-
1979 namespaceSupport.processName(tags.top(), false, uri, lname);-
1980 if (!contentHnd->startElement(uri, lname, tags.top(), attList)
!contentHnd->s...op(), attList)Description
TRUEnever evaluated
FALSEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-217
1981 reportParseError(contentHnd->errorString());-
1982 return
never executed: return false;
false;
never executed: return false;
0
1983 }-
1984-
1985 const bool endElementReturnedFalse = !contentHnd->endElement(uri, lname, tags.top());-
1986 tags.pop();-
1987 if (endElementReturnedFalse
endElementReturnedFalseDescription
TRUEnever evaluated
FALSEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-217
1988 reportParseError(contentHnd->errorString());-
1989 return
never executed: return false;
false;
never executed: return false;
0
1990 }-
1991-
1992 QStringList prefixesBefore, prefixesAfter;-
1993 if (contentHnd
contentHndDescription
TRUEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-217
1994 prefixesBefore = namespaceSupport.prefixes();-
1995 }
executed 217 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
217
1996 namespaceSupport.popContext();-
1997-
1998 prefixesAfter = namespaceSupport.prefixes();-
1999 for (QStringList::Iterator it = prefixesBefore.begin(); it != prefixesBefore.end()
it != prefixesBefore.end()Description
TRUEevaluated 221 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
; ++it) {
217-221
2000 if (!prefixesAfter.contains(*it)
!prefixesAfter.contains(*it)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 217 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
4-217
2001 if (!contentHnd->endPrefixMapping(*it)
!contentHnd->e...ixMapping(*it)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-4
2002 reportParseError(contentHnd->errorString());-
2003 return
never executed: return false;
false;
never executed: return false;
0
2004 }-
2005 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4
2006 }
executed 221 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
221
2007 }
executed 217 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
else {
217
2008-
2009 if (!contentHnd->startElement(QString(), QString(), tags.top(), attList)
!contentHnd->s...op(), attList)Description
TRUEnever evaluated
FALSEevaluated 324 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
0-324
2010 reportParseError(contentHnd->errorString());-
2011 return
never executed: return false;
false;
never executed: return false;
0
2012 }-
2013-
2014 const bool endElementReturnedFalse = !contentHnd->endElement(QString(), QString(), tags.top());-
2015 tags.pop();-
2016 if (endElementReturnedFalse
endElementReturnedFalseDescription
TRUEnever evaluated
FALSEevaluated 324 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
0-324
2017 reportParseError(contentHnd->errorString());-
2018 return
never executed: return false;
false;
never executed: return false;
0
2019 }-
2020 }
executed 324 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
324
2021 } else {-
2022 tags.pop();-
2023 namespaceSupport.popContext();-
2024 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
9
2025 return
executed 550 times by 5 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 550 times by 5 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
550
2026}-
2027-
2028-
2029-
2030-
2031bool QXmlSimpleReaderPrivate::processElementETagBegin2()-
2032{-
2033 const QString &name = QXmlSimpleReaderPrivate::name();-
2034-
2035-
2036 const bool nameIsTagsTop = tags.top() == name;-
2037 tags.pop();-
2038 if (!nameIsTagsTop
!nameIsTagsTopDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5176 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
4-5176
2039 reportParseError(QLatin1String("tag mismatch"));-
2040 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
2041 }-
2042-
2043 if (contentHnd
contentHndDescription
TRUEevaluated 5176 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-5176
2044 QString uri, lname;-
2045-
2046 if (useNamespaces
useNamespacesDescription
TRUEevaluated 4479 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 697 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
)
697-4479
2047 namespaceSupport.processName(name, false, uri, lname);
executed 4479 times by 2 tests: namespaceSupport.processName(name, false, uri, lname);
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4479
2048 if (!contentHnd->endElement(uri, lname, name)
!contentHnd->e..., lname, name)Description
TRUEnever evaluated
FALSEevaluated 5176 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-5176
2049 reportParseError(contentHnd->errorString());-
2050 return
never executed: return false;
false;
never executed: return false;
0
2051 }-
2052 }
executed 5176 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5176
2053 if (useNamespaces
useNamespacesDescription
TRUEevaluated 4479 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 697 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
697-4479
2054 NamespaceMap prefixesBefore, prefixesAfter;-
2055 if (contentHnd
contentHndDescription
TRUEevaluated 4479 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
)
0-4479
2056 prefixesBefore = namespaceSupport.d->ns;
executed 4479 times by 2 tests: prefixesBefore = namespaceSupport.d->ns;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4479
2057-
2058 namespaceSupport.popContext();-
2059-
2060 if (contentHnd
contentHndDescription
TRUEevaluated 4479 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-4479
2061 prefixesAfter = namespaceSupport.d->ns;-
2062 if (prefixesBefore.size() != prefixesAfter.size()
prefixesBefore...esAfter.size()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4469 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
10-4469
2063 for (NamespaceMap::const_iterator it = prefixesBefore.constBegin(); it != prefixesBefore.constEnd()
it != prefixes...ore.constEnd()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
; ++it) {
10-20
2064 if (!it.key().isEmpty()
!it.key().isEmpty()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& !prefixesAfter.contains(it.key())
!prefixesAfter...ains(it.key())Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-10
2065 if (!contentHnd->endPrefixMapping(it.key())
!contentHnd->e...ping(it.key())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2066 reportParseError(contentHnd->errorString());-
2067 return
never executed: return false;
false;
never executed: return false;
0
2068 }-
2069 }
never executed: end of block
0
2070 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
20
2071 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2072 }
executed 4479 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4479
2073 }
executed 4479 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4479
2074 return
executed 5176 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 5176 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5176
2075}-
2076-
2077-
2078-
2079-
2080bool QXmlSimpleReaderPrivate::processElementAttribute()-
2081{-
2082 QString uri, lname, prefix;-
2083 const QString &name = QXmlSimpleReaderPrivate::name();-
2084 const QString &string = QXmlSimpleReaderPrivate::string();-
2085-
2086-
2087 if (useNamespaces
useNamespacesDescription
TRUEevaluated 12028 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 866 times by 3 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
) {
866-12028
2088-
2089 namespaceSupport.splitName(name, prefix, lname);-
2090 if (prefix == QLatin1String("xmlns")
prefix == QLat...tring("xmlns")Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12021 times by 3 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
7-12021
2091-
2092 namespaceSupport.setPrefix(lname, string);-
2093 if (useNamespacePrefixes
useNamespacePrefixesDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-7
2094-
2095-
2096-
2097 attList.append(name, QLatin1String("http://www.w3.org/2000/xmlns/"), lname, string);-
2098 }
never executed: end of block
0
2099-
2100 if (contentHnd
contentHndDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-5
2101 if (!contentHnd->startPrefixMapping(lname, string)
!contentHnd->s...lname, string)Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-5
2102 reportParseError(contentHnd->errorString());-
2103 return
never executed: return false;
false;
never executed: return false;
0
2104 }-
2105 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
5
2106 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
7
2107-
2108 namespaceSupport.processName(name, true, uri, lname);-
2109 attList.append(name, uri, lname, string);-
2110 }
executed 12021 times by 3 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12021
2111 } else {-
2112-
2113 attList.append(name, uri, lname, string);-
2114 }
executed 866 times by 3 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
866
2115 return
executed 12894 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 12894 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12894
2116}-
2117-
2118-
2119-
2120-
2121-
2122-
2123-
2124bool QXmlSimpleReaderPrivate::parseContent()-
2125{-
2126 const signed char Init = 0;-
2127 const signed char ChD = 1;-
2128 const signed char ChD1 = 2;-
2129 const signed char ChD2 = 3;-
2130 const signed char Ref = 4;-
2131 const signed char Lt = 5;-
2132 const signed char PInstr = 6;-
2133 const signed char PInstrR = 7;-
2134 const signed char Elem = 8;-
2135 const signed char Em = 9;-
2136 const signed char Com = 10;-
2137 const signed char ComR = 11;-
2138 const signed char CDS = 12;-
2139 const signed char CDS1 = 13;-
2140 const signed char CDS2 = 14;-
2141 const signed char CDS3 = 15;-
2142 const signed char Done = 16;-
2143-
2144 const signed char InpLt = 0;-
2145 const signed char InpGt = 1;-
2146 const signed char InpSlash = 2;-
2147 const signed char InpQMark = 3;-
2148 const signed char InpEMark = 4;-
2149 const signed char InpAmp = 5;-
2150 const signed char InpDash = 6;-
2151 const signed char InpOpenB = 7;-
2152 const signed char InpCloseB = 8;-
2153 const signed char InpUnknown = 9;-
2154-
2155 static const signed char mapCLT2FSMChar[] = {-
2156 InpUnknown,-
2157 InpUnknown,-
2158 InpAmp,-
2159 InpGt,-
2160 InpLt,-
2161 InpSlash,-
2162 InpQMark,-
2163 InpEMark,-
2164 InpDash,-
2165 InpCloseB,-
2166 InpOpenB,-
2167 InpUnknown,-
2168 InpUnknown,-
2169 InpUnknown,-
2170 InpUnknown-
2171 };-
2172-
2173 static const signed char table[16][10] = {-
2174-
2175 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD1, ChD },-
2176 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD1, ChD },-
2177 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD2, ChD },-
2178 { Lt, -1, ChD, ChD, ChD, Ref, ChD, ChD, ChD2, ChD },-
2179 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2180 { -1, -1, Done, PInstr, Em, -1, -1, -1, -1, Elem },-
2181 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2182 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2183 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2184 { -1, -1, -1, -1, -1, -1, Com, CDS, -1, -1 },-
2185 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2186 { Lt, ChD, ChD, ChD, ChD, Ref, ChD, ChD, ChD, ChD },-
2187 { CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS2, CDS1 },-
2188 { CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS2, CDS1 },-
2189 { CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS3, CDS1 },-
2190 { CDS1, Init, CDS1, CDS1, CDS1, CDS1, CDS1, CDS1, CDS3, CDS1 }-
2191 };-
2192 signed char state;-
2193 signed char input;-
2194-
2195 if (parseStack == 0
parseStack == 0Description
TRUEevaluated 3594 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 5718 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1634 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4084 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1634-5718
2196 contentCharDataRead = false;-
2197 state = Init;-
2198 }
executed 5228 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
5228
2199 state = parseStack->pop().state;-
2200-
2201-
2202-
2203 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 2638 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1446 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1446-2638
2204 ParseFunction function = parseStack->top().function;-
2205 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 2638 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-2638
2206 parseStack->pop();-
2207-
2208-
2209-
2210 }
never executed: end of block
0
2211 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 1813 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 825 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
825-1813
2212 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2213 return
executed 1813 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1813 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1813
2214 }-
2215 }
executed 825 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
825
2216 }
executed 2271 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2271
2217-
2218 for (;;) {-
2219 switch (state) {-
2220 case
executed 1137 times by 3 tests: case Ref:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ref:
executed 1137 times by 3 tests: case Ref:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1137
2221 if (!contentCharDataRead
!contentCharDataReadDescription
TRUEevaluated 765 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 372 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
372-765
2222 contentCharDataRead = parseReference_charDataRead;
executed 765 times by 3 tests: contentCharDataRead = parseReference_charDataRead;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
765
2223 break;
executed 1137 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1137
2224 case
executed 31 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
PInstr:
executed 31 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
31
2225 if (contentHnd
contentHndDescription
TRUEevaluated 31 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-31
2226 if (!contentHnd->processingInstruction(name(),string())
!contentHnd->p...me(),string())Description
TRUEnever evaluated
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-31
2227 reportParseError(contentHnd->errorString());-
2228 return
never executed: return false;
false;
never executed: return false;
0
2229 }-
2230 }
executed 31 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
31
2231 state = PInstrR;-
2232 break;
executed 31 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
31
2233 case
executed 98 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Com:
executed 98 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
98
2234 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 56 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
) {
42-56
2235 if (!lexicalHnd->comment(string())
!lexicalHnd->comment(string())Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-42
2236 reportParseError(lexicalHnd->errorString());-
2237 return
never executed: return false;
false;
never executed: return false;
0
2238 }-
2239 }
executed 42 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
42
2240 state = ComR;-
2241 break;
executed 98 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
98
2242 case
executed 59 times by 1 test: case CDS:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS:
executed 59 times by 1 test: case CDS:
Executed by:
  • tst_qxmlsimplereader - unknown status
59
2243 stringClear();-
2244 break;
executed 59 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
59
2245 case
executed 80 times by 1 test: case CDS2:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS2:
executed 80 times by 1 test: case CDS2:
Executed by:
  • tst_qxmlsimplereader - unknown status
80
2246 if (!atEnd()
!atEnd()Description
TRUEevaluated 63 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c != QLatin1Char(']')
c != QLatin1Char(']')Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
10-63
2247 stringAddC(QLatin1Char(']'));
executed 10 times by 1 test: stringAddC(QLatin1Char(']'));
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2248 break;
executed 80 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
80
2249 case
executed 75 times by 1 test: case CDS3:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS3:
executed 75 times by 1 test: case CDS3:
Executed by:
  • tst_qxmlsimplereader - unknown status
75
2250-
2251 if (!atEnd()
!atEnd()Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-64
2252 if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-53
2253-
2254 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-53
2255 if (!lexicalHnd->startCDATA()
!lexicalHnd->startCDATA()Description
TRUEnever evaluated
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-53
2256 reportParseError(lexicalHnd->errorString());-
2257 return
never executed: return false;
false;
never executed: return false;
0
2258 }-
2259 }
executed 53 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
53
2260 if (contentHnd
contentHndDescription
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-53
2261 if (!contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-53
2262 reportParseError(contentHnd->errorString());-
2263 return
never executed: return false;
false;
never executed: return false;
0
2264 }-
2265 }
executed 53 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
53
2266 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-53
2267 if (!lexicalHnd->endCDATA()
!lexicalHnd->endCDATA()Description
TRUEnever evaluated
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-53
2268 reportParseError(lexicalHnd->errorString());-
2269 return
never executed: return false;
false;
never executed: return false;
0
2270 }-
2271 }
executed 53 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
53
2272 }
executed 53 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char(']')
c == QLatin1Char(']')Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-53
2273-
2274 stringAddC(QLatin1Char(']'));-
2275 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
11
2276-
2277 stringAddC(QLatin1Char(']'));-
2278 stringAddC(QLatin1Char(']'));-
2279 }
never executed: end of block
0
2280 }-
2281 break;
executed 75 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
75
2282 case
executed 5181 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 5181 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5181
2283-
2284 if (contentHnd
contentHndDescription
TRUEevaluated 5181 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-5181
2285 if (contentCharDataRead
contentCharDataReadDescription
TRUEnever evaluated
FALSEevaluated 5181 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-5181
2286 if (reportWhitespaceCharData
reportWhitespaceCharDataDescription
TRUEnever evaluated
FALSEnever evaluated
|| !string().simplified().isEmpty()
!string().simp...ed().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2287 if (!contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2288 reportParseError(contentHnd->errorString());-
2289 return
never executed: return false;
false;
never executed: return false;
0
2290 }-
2291 }
never executed: end of block
0
2292 }
never executed: end of block
0
2293 }
executed 5181 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5181
2294-
2295 return
executed 5181 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 5181 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
5181
2296 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
2297-
2298 reportParseError(QLatin1String("error occurred while parsing content"));-
2299 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
2300 }-
2301-
2302-
2303-
2304 if (atEnd()
atEnd()Description
TRUEevaluated 1453 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 261643 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1453-261643
2305 unexpectedEof(&QXmlSimpleReaderPrivate::parseContent, state);-
2306 return
executed 1453 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1453 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1453
2307 }-
2308 if (c.row()
c.row()Description
TRUEevaluated 877 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 260766 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
877-260766
2309 input = InpUnknown;-
2310 }
executed 877 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
877
2311 input = mapCLT2FSMChar[charLookupTable[c.cell()]];-
2312 }
executed 260766 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
260766
2313 state = table[state][input];-
2314-
2315 switch (state) {-
2316 case
executed 53 times by 1 test: case Init:
Executed by:
  • tst_qxmlsimplereader - unknown status
Init:
executed 53 times by 1 test: case Init:
Executed by:
  • tst_qxmlsimplereader - unknown status
53
2317-
2318 next();-
2319 break;
executed 53 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
53
2320 case
executed 241738 times by 6 tests: case ChD:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ChD:
executed 241738 times by 6 tests: case ChD:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
241738
2321-
2322 if (!contentCharDataRead
!contentCharDataReadDescription
TRUEevaluated 6401 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 235337 times by 5 tests
Evaluated by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
6401-235337
2323 contentCharDataRead = true;-
2324 stringClear();-
2325 }
executed 6401 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
6401
2326 stringAddC();-
2327 if (reportEntities
reportEntitiesDescription
TRUEnever evaluated
FALSEevaluated 241738 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-241738
2328 if (!reportEndEntities()
!reportEndEntities()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2329 return
never executed: return false;
false;
never executed: return false;
0
2330 }
never executed: end of block
0
2331 next();-
2332 break;
executed 241738 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
241738
2333 case
executed 43 times by 2 tests: case ChD1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ChD1:
executed 43 times by 2 tests: case ChD1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
43
2334-
2335 if (!contentCharDataRead
!contentCharDataReadDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
12-31
2336 contentCharDataRead = true;-
2337 stringClear();-
2338 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
12
2339 stringAddC();-
2340 if (reportEntities
reportEntitiesDescription
TRUEnever evaluated
FALSEevaluated 43 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-43
2341 if (!reportEndEntities()
!reportEndEntities()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2342 return
never executed: return false;
false;
never executed: return false;
0
2343 }
never executed: end of block
0
2344 next();-
2345 break;
executed 43 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
43
2346 case
executed 16 times by 2 tests: case ChD2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ChD2:
executed 16 times by 2 tests: case ChD2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
16
2347 stringAddC();-
2348 if (reportEntities
reportEntitiesDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-16
2349 if (!reportEndEntities()
!reportEndEntities()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2350 return
never executed: return false;
false;
never executed: return false;
0
2351 }
never executed: end of block
0
2352 next();-
2353 break;
executed 16 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
16
2354 case
executed 1014 times by 3 tests: case Ref:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ref:
executed 1014 times by 3 tests: case Ref:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1014
2355 if (!contentCharDataRead
!contentCharDataReadDescription
TRUEevaluated 589 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 425 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
425-589
2356-
2357 stringClear();-
2358 parseReference_context = InContent;-
2359 if (!parseReference()
!parseReference()Description
TRUEevaluated 292 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 297 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
292-297
2360 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2361 return
executed 292 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 292 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
292
2362 }-
2363 }
executed 297 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
297
2364 if (reportEntities
reportEntitiesDescription
TRUEnever evaluated
FALSEevaluated 425 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-425
2365-
2366 if (contentHnd
contentHndDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2367 if (reportWhitespaceCharData
reportWhitespaceCharDataDescription
TRUEnever evaluated
FALSEnever evaluated
|| !string().simplified().isEmpty()
!string().simp...ed().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2368 if (!contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2369 reportParseError(contentHnd->errorString());-
2370 return
never executed: return false;
false;
never executed: return false;
0
2371 }-
2372 }
never executed: end of block
0
2373 }
never executed: end of block
0
2374 stringClear();-
2375 }
never executed: end of block
0
2376 parseReference_context = InContent;-
2377 if (!parseReference()
!parseReference()Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 245 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
180-245
2378 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2379 return
executed 180 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 180 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
180
2380 }-
2381 }
executed 245 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
245
2382 break;
executed 542 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
542
2383 case
executed 9155 times by 6 tests: case Lt:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Lt:
executed 9155 times by 6 tests: case Lt:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9155
2384-
2385 if (contentHnd
contentHndDescription
TRUEevaluated 9145 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-9145
2386 if (contentCharDataRead
contentCharDataReadDescription
TRUEevaluated 6427 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2718 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2718-6427
2387 if (reportWhitespaceCharData
reportWhitespaceCharDataDescription
TRUEevaluated 5910 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 517 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
|| !string().simplified().isEmpty()
!string().simp...ed().isEmpty()Description
TRUEevaluated 125 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
FALSEevaluated 392 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
) {
125-5910
2388 if (!contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEevaluated 6035 times by 4 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-6035
2389 reportParseError(contentHnd->errorString());-
2390 return
never executed: return false;
false;
never executed: return false;
0
2391 }-
2392 }
executed 6035 times by 4 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
6035
2393 }
executed 6427 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
6427
2394 }
executed 9145 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9145
2395 contentCharDataRead = false;-
2396 next();-
2397 break;
executed 9155 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
9155
2398 case
executed 39 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
PInstr:
executed 39 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
39
2399 case
never executed: case PInstrR:
PInstrR:
never executed: case PInstrR:
0
2400 parsePI_xmldecl = false;-
2401 if (!parsePI()
!parsePI()Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-35
2402 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2403 return
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
35
2404 }-
2405 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
2406 case
executed 3777 times by 6 tests: case Elem:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Elem:
executed 3777 times by 6 tests: case Elem:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
3777
2407 if (!parseElement()
!parseElement()Description
TRUEevaluated 282 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3495 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
282-3495
2408 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2409 return
executed 282 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 282 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
282
2410 }-
2411 break;
executed 3495 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
3495
2412 case
executed 158 times by 2 tests: case Em:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Em:
executed 158 times by 2 tests: case Em:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
158
2413 next();-
2414 break;
executed 158 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
158
2415 case
executed 100 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Com:
executed 100 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
100
2416 case
never executed: case ComR:
ComR:
never executed: case ComR:
0
2417 if (!parseComment()
!parseComment()Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 62 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
38-62
2418 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2419 return
executed 38 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 38 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
38
2420 }-
2421 break;
executed 62 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
62
2422 case
executed 58 times by 1 test: case CDS:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS:
executed 58 times by 1 test: case CDS:
Executed by:
  • tst_qxmlsimplereader - unknown status
58
2423 parseString_s = QLatin1String("[CDATA[");-
2424 if (!parseString()
!parseString()Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
23-35
2425 parseFailed(&QXmlSimpleReaderPrivate::parseContent, state);-
2426 return
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
35
2427 }-
2428 break;
executed 23 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
23
2429 case
executed 181 times by 1 test: case CDS1:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS1:
executed 181 times by 1 test: case CDS1:
Executed by:
  • tst_qxmlsimplereader - unknown status
181
2430 stringAddC();-
2431 next();-
2432 break;
executed 181 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
181
2433 case
executed 63 times by 1 test: case CDS2:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS2:
executed 63 times by 1 test: case CDS2:
Executed by:
  • tst_qxmlsimplereader - unknown status
63
2434-
2435 next();-
2436 break;
executed 63 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
63
2437 case
executed 64 times by 1 test: case CDS3:
Executed by:
  • tst_qxmlsimplereader - unknown status
CDS3:
executed 64 times by 1 test: case CDS3:
Executed by:
  • tst_qxmlsimplereader - unknown status
64
2438-
2439 next();-
2440 break;
executed 64 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
64
2441 }-
2442 }
executed 260781 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
260781
2443 return
never executed: return false;
false;
never executed: return false;
0
2444}-
2445-
2446bool QXmlSimpleReaderPrivate::reportEndEntities()-
2447{-
2448 int count = (int)xmlRefStack.count();-
2449 while (count != 0
count != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& xmlRefStack.top().isEmpty()
xmlRefStack.top().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2450 if (contentHnd
contentHndDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2451 if (reportWhitespaceCharData
reportWhitespaceCharDataDescription
TRUEnever evaluated
FALSEnever evaluated
|| !string().simplified().isEmpty()
!string().simp...ed().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2452 if (!contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2453 reportParseError(contentHnd->errorString());-
2454 return
never executed: return false;
false;
never executed: return false;
0
2455 }-
2456 }
never executed: end of block
0
2457 }
never executed: end of block
0
2458 stringClear();-
2459 if (lexicalHnd
lexicalHndDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2460 if (!lexicalHnd->endEntity(xmlRefStack.top().name)
!lexicalHnd->e...ck.top().name)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2461 reportParseError(lexicalHnd->errorString());-
2462 return
never executed: return false;
false;
never executed: return false;
0
2463 }-
2464 }
never executed: end of block
0
2465 xmlRefStack.pop_back();-
2466 count--;-
2467 }
never executed: end of block
0
2468 return
never executed: return true;
true;
never executed: return true;
0
2469}-
2470-
2471-
2472-
2473-
2474bool QXmlSimpleReaderPrivate::parseMisc()-
2475{-
2476 const signed char Init = 0;-
2477 const signed char Lt = 1;-
2478 const signed char Comment = 2;-
2479 const signed char eatWS = 3;-
2480 const signed char PInstr = 4;-
2481 const signed char Comment2 = 5;-
2482-
2483 const signed char InpWs = 0;-
2484 const signed char InpLt = 1;-
2485 const signed char InpQm = 2;-
2486 const signed char InpEm = 3;-
2487 const signed char InpUnknown = 4;-
2488-
2489 static const signed char table[3][5] = {-
2490-
2491 { eatWS, Lt, -1, -1, -1 },-
2492 { -1, -1, PInstr,Comment, -1 },-
2493 { -1, -1, -1, -1, Comment2 }-
2494 };-
2495 signed char state;-
2496 signed char input;-
2497-
2498 if (parseStack==0
parseStack==0Description
TRUEevaluated 231 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2109 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1526 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 583 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
231-2109
2499 state = Init;-
2500 }
executed 1757 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1757
2501 state = parseStack->pop().state;-
2502-
2503-
2504-
2505 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 579 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-579
2506 ParseFunction function = parseStack->top().function;-
2507 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 515 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
64-515
2508 parseStack->pop();-
2509-
2510-
2511-
2512 }
executed 515 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
515
2513 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 549 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
30-549
2514 parseFailed(&QXmlSimpleReaderPrivate::parseMisc, state);-
2515 return
executed 549 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 549 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
549
2516 }-
2517 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
30
2518 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
34
2519-
2520 for (;;) {-
2521 switch (state) {-
2522 case
executed 237 times by 2 tests: case eatWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
eatWS:
executed 237 times by 2 tests: case eatWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
237
2523 return
executed 237 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 237 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
237
2524 case
executed 10 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
PInstr:
executed 10 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2525 if (contentHnd
contentHndDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-10
2526 if (!contentHnd->processingInstruction(name(),string())
!contentHnd->p...me(),string())Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-10
2527 reportParseError(contentHnd->errorString());-
2528 return
never executed: return false;
false;
never executed: return false;
0
2529 }-
2530 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2531 return
executed 10 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2532 case
executed 10 times by 1 test: case Comment2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Comment2:
executed 10 times by 1 test: case Comment2:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2533 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-10
2534 if (!lexicalHnd->comment(string())
!lexicalHnd->comment(string())Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-10
2535 reportParseError(lexicalHnd->errorString());-
2536 return
never executed: return false;
false;
never executed: return false;
0
2537 }-
2538 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2539 return
executed 10 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2540 case
executed 8 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 8 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
8
2541-
2542 reportParseError(QLatin1String("unexpected character"));-
2543 return
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
2544 }-
2545-
2546 if (atEnd()
atEnd()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1794 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
4-1794
2547 unexpectedEof(&QXmlSimpleReaderPrivate::parseMisc, state);-
2548 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
2549 }-
2550 if (is_S(c)
is_S(c)Description
TRUEevaluated 1727 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
67-1727
2551 input = InpWs;-
2552 }
executed 1727 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('<')
c == QLatin1Char('<')Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
26-1727
2553 input = InpLt;-
2554 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-30
2555 input = InpQm;-
2556 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('!')
c == QLatin1Char('!')Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-19
2557 input = InpEm;-
2558 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
11
2559 input = InpUnknown;-
2560 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
19
2561 state = table[state][input];-
2562-
2563 switch (state) {-
2564 case
executed 1727 times by 2 tests: case eatWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
eatWS:
executed 1727 times by 2 tests: case eatWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1727
2565 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 1502 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 225 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
225-1502
2566 parseFailed(&QXmlSimpleReaderPrivate::parseMisc, state);-
2567 return
executed 1502 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1502 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1502
2568 }-
2569 break;
executed 225 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
225
2570 case
executed 26 times by 1 test: case Lt:
Executed by:
  • tst_qxmlsimplereader - unknown status
Lt:
executed 26 times by 1 test: case Lt:
Executed by:
  • tst_qxmlsimplereader - unknown status
26
2571 next();-
2572 break;
executed 26 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
26
2573 case
executed 11 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
PInstr:
executed 11 times by 1 test: case PInstr:
Executed by:
  • tst_qxmlsimplereader - unknown status
11
2574 parsePI_xmldecl = false;-
2575 if (!parsePI()
!parsePI()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-10
2576 parseFailed(&QXmlSimpleReaderPrivate::parseMisc, state);-
2577 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2578 }-
2579 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
2580 case
executed 11 times by 1 test: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
Comment:
executed 11 times by 1 test: case Comment:
Executed by:
  • tst_qxmlsimplereader - unknown status
11
2581 next();-
2582 break;
executed 11 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
11
2583 case
executed 11 times by 1 test: case Comment2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Comment2:
executed 11 times by 1 test: case Comment2:
Executed by:
  • tst_qxmlsimplereader - unknown status
11
2584 if (!parseComment()
!parseComment()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-10
2585 parseFailed(&QXmlSimpleReaderPrivate::parseMisc, state);-
2586 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2587 }-
2588 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
2589 }-
2590 }
executed 272 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
272
2591 return
never executed: return false;
false;
never executed: return false;
0
2592}-
2593bool QXmlSimpleReaderPrivate::parsePI()-
2594{-
2595 const signed char Init = 0;-
2596 const signed char QmI = 1;-
2597 const signed char Name = 2;-
2598 const signed char XMLDecl = 3;-
2599 const signed char Ws1 = 4;-
2600 const signed char PInstr = 5;-
2601 const signed char Ws2 = 6;-
2602 const signed char Version = 7;-
2603 const signed char Ws3 = 8;-
2604 const signed char EorSD = 9;-
2605 const signed char Ws4 = 10;-
2606 const signed char SD = 11;-
2607 const signed char Ws5 = 12;-
2608 const signed char ADone = 13;-
2609 const signed char Char = 14;-
2610 const signed char Qm = 15;-
2611 const signed char Done = 16;-
2612-
2613 const signed char InpWs = 0;-
2614 const signed char InpNameBe = 1;-
2615 const signed char InpGt = 2;-
2616 const signed char InpQm = 3;-
2617 const signed char InpUnknown = 4;-
2618-
2619 static const signed char table[16][5] = {-
2620-
2621 { -1, -1, -1, QmI, -1 },-
2622 { -1, Name, -1, -1, -1 },-
2623 { -1, -1, -1, -1, -1 },-
2624 { Ws1, -1, -1, -1, -1 },-
2625 { -1, Version, -1, -1, -1 },-
2626 { Ws2, -1, -1, Qm, -1 },-
2627 { Char, Char, Char, Qm, Char },-
2628 { Ws3, -1, -1, ADone, -1 },-
2629 { -1, EorSD, -1, ADone, -1 },-
2630 { Ws4, -1, -1, ADone, -1 },-
2631 { -1, SD, -1, ADone, -1 },-
2632 { Ws5, -1, -1, ADone, -1 },-
2633 { -1, -1, -1, ADone, -1 },-
2634 { -1, -1, Done, -1, -1 },-
2635 { Char, Char, Char, Qm, Char },-
2636 { Char, Char, Done, Qm, Char },-
2637 };-
2638 signed char state;-
2639 signed char input;-
2640-
2641 if (parseStack==0
parseStack==0Description
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1386 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1242 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
54-1386
2642 state = Init;-
2643 }
executed 198 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
198
2644 state = parseStack->pop().state;-
2645-
2646-
2647-
2648 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 997 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 245 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
245-997
2649 ParseFunction function = parseStack->top().function;-
2650 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 87 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 910 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
87-910
2651 parseStack->pop();-
2652-
2653-
2654-
2655 }
executed 87 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
87
2656 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 639 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 358 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
358-639
2657 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2658 return
executed 639 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 639 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
639
2659 }-
2660 }
executed 358 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
358
2661 }
executed 603 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
603
2662-
2663 for (;;) {-
2664 switch (state) {-
2665 case
executed 197 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name:
executed 197 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
197
2666-
2667-
2668 if (name().toLower() == QLatin1String("xml")
name().toLower...1String("xml")Description
TRUEevaluated 129 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
68-129
2669 if (parsePI_xmldecl
parsePI_xmldeclDescription
TRUEevaluated 121 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& name() == QLatin1String("xml")
name() == QLatin1String("xml")Description
TRUEevaluated 119 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-121
2670 state = XMLDecl;-
2671 }
executed 119 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
119
2672 reportParseError(QLatin1String("invalid name for processing instruction"));-
2673 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
2674 }-
2675 } else {-
2676 state = PInstr;-
2677 stringClear();-
2678 }
executed 68 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
68
2679 break;
executed 187 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
187
2680 case
executed 131 times by 2 tests: case Version:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Version:
executed 131 times by 2 tests: case Version:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
131
2681-
2682 if (name() != QLatin1String("version")
name() != QLat...ing("version")Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 128 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
3-128
2683 reportParseError(QLatin1String("version expected while reading the XML declaration"));-
2684 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
2685 }-
2686 xmlVersion = string();-
2687 break;
executed 128 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
128
2688 case
executed 119 times by 2 tests: case EorSD:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EorSD:
executed 119 times by 2 tests: case EorSD:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
119
2689-
2690 if (name() == QLatin1String("standalone")
name() == QLat...("standalone")Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 101 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
18-101
2691 if (string()== QLatin1String("yes")
string()== QLa...1String("yes")Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-17
2692 standalone = QXmlSimpleReaderPrivate::Yes;-
2693 }
executed 17 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (string() == QLatin1String("no")
string() == QL...n1String("no")Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-17
2694 standalone = QXmlSimpleReaderPrivate::No;-
2695 }
never executed: end of block
else {
0
2696 reportParseError(QLatin1String("wrong value for standalone declaration"));-
2697 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
2698 }-
2699 } else if (name() == QLatin1String("encoding")
name() == QLat...ng("encoding")Description
TRUEevaluated 99 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-99
2700 encoding = string();-
2701 }
executed 99 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
99
2702 reportParseError(QLatin1String("encoding declaration or standalone declaration expected while reading the XML declaration"));-
2703 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
2704 }-
2705 break;
executed 116 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
116
2706 case
executed 50 times by 1 test: case SD:
Executed by:
  • tst_qxmlsimplereader - unknown status
SD:
executed 50 times by 1 test: case SD:
Executed by:
  • tst_qxmlsimplereader - unknown status
50
2707 if (name() != QLatin1String("standalone")
name() != QLat...("standalone")Description
TRUEnever evaluated
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-50
2708 reportParseError(QLatin1String("standalone declaration expected while reading the XML declaration"));-
2709 return
never executed: return false;
false;
never executed: return false;
0
2710 }-
2711 if (string() == QLatin1String("yes")
string() == QL...1String("yes")Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 39 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-39
2712 standalone = QXmlSimpleReaderPrivate::Yes;-
2713 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (string() == QLatin1String("no")
string() == QL...n1String("no")Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-39
2714 standalone = QXmlSimpleReaderPrivate::No;-
2715 }
executed 39 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
39
2716 reportParseError(QLatin1String("wrong value for standalone declaration"));-
2717 return
never executed: return false;
false;
never executed: return false;
0
2718 }-
2719 break;
executed 50 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
50
2720 case
executed 104 times by 2 tests: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Qm:
executed 104 times by 2 tests: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
104
2721-
2722 if (!atEnd()
!atEnd()Description
TRUEevaluated 85 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c != QLatin1Char('>')
c != QLatin1Char('>')Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 64 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
19-85
2723 stringAddC(QLatin1Char('?'));
executed 21 times by 1 test: stringAddC(QLatin1Char('?'));
Executed by:
  • tst_qxmlsimplereader - unknown status
21
2724 break;
executed 104 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
104
2725 case
executed 175 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 175 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
175
2726 return
executed 175 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 175 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
175
2727 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
2728-
2729 reportParseError(QLatin1String("unexpected character"));-
2730 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
2731 }-
2732-
2733 if (atEnd()
atEnd()Description
TRUEevaluated 249 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1786 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
249-1786
2734 unexpectedEof(&QXmlSimpleReaderPrivate::parsePI, state);-
2735 return
executed 249 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 249 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
249
2736 }-
2737 if (is_S(c)
is_S(c)Description
TRUEevaluated 412 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1374 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
412-1374
2738 input = InpWs;-
2739 }
executed 412 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (determineNameChar(c) == NameBeginning
determineNameC... NameBeginningDescription
TRUEevaluated 764 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 610 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
412-764
2740 input = InpNameBe;-
2741 }
executed 764 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 189 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 421 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
189-764
2742 input = InpGt;-
2743 }
executed 189 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 394 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
27-394
2744 input = InpQm;-
2745 }
executed 394 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
394
2746 input = InpUnknown;-
2747 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
27
2748 state = table[state][input];-
2749-
2750 switch (state) {-
2751 case
executed 198 times by 2 tests: case QmI:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
QmI:
executed 198 times by 2 tests: case QmI:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
198
2752 next();-
2753 break;
executed 198 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
198
2754 case
executed 197 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name:
executed 197 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
197
2755 parseName_useRef = false;-
2756 if (!parseName()
!parseName()Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 114 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
83-114
2757 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2758 return
executed 83 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 83 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
83
2759 }-
2760 break;
executed 114 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
114
2761 case
executed 119 times by 2 tests: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws1:
executed 119 times by 2 tests: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
119
2762 case
executed 58 times by 2 tests: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws2:
executed 58 times by 2 tests: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
58
2763 case
executed 78 times by 2 tests: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws3:
executed 78 times by 2 tests: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
78
2764 case
executed 40 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws4:
executed 40 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
40
2765 case
executed 30 times by 1 test: case Ws5:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws5:
executed 30 times by 1 test: case Ws5:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
2766 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 86 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 239 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
86-239
2767 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2768 return
executed 86 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 86 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
86
2769 }-
2770 break;
executed 239 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
239
2771 case
executed 119 times by 2 tests: case Version:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Version:
executed 119 times by 2 tests: case Version:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
119
2772 if (!parseAttribute()
!parseAttribute()Description
TRUEevaluated 90 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
29-90
2773 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2774 return
executed 90 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 90 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
90
2775 }-
2776 break;
executed 29 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
29
2777 case
executed 77 times by 2 tests: case EorSD:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EorSD:
executed 77 times by 2 tests: case EorSD:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
77
2778 if (!parseAttribute()
!parseAttribute()Description
TRUEevaluated 63 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
14-63
2779 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2780 return
executed 63 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 63 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
63
2781 }-
2782 break;
executed 14 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
14
2783 case
executed 40 times by 1 test: case SD:
Executed by:
  • tst_qxmlsimplereader - unknown status
SD:
executed 40 times by 1 test: case SD:
Executed by:
  • tst_qxmlsimplereader - unknown status
40
2784-
2785 if (standalone != QXmlSimpleReaderPrivate::Unknown
standalone != ...ivate::UnknownDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-40
2786-
2787 reportParseError(QLatin1String("unexpected character"));-
2788 return
never executed: return false;
false;
never executed: return false;
0
2789 }-
2790 if (!parseAttribute()
!parseAttribute()Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-36
2791 parseFailed(&QXmlSimpleReaderPrivate::parsePI, state);-
2792 return
executed 36 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 36 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
36
2793 }-
2794 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
2795 case
executed 111 times by 2 tests: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ADone:
executed 111 times by 2 tests: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
111
2796 next();-
2797 break;
executed 111 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
111
2798 case
executed 456 times by 2 tests: case Char:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Char:
executed 456 times by 2 tests: case Char:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
456
2799 stringAddC();-
2800 next();-
2801 break;
executed 456 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
456
2802 case
executed 85 times by 2 tests: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Qm:
executed 85 times by 2 tests: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
85
2803-
2804 next();-
2805 break;
executed 85 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
85
2806 case
executed 175 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 175 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
175
2807 next();-
2808 break;
executed 175 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
175
2809 }-
2810 }
executed 1428 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1428
2811 return
never executed: return false;
false;
never executed: return false;
0
2812}-
2813bool QXmlSimpleReaderPrivate::parseDoctype()-
2814{-
2815 const signed char Init = 0;-
2816 const signed char Doctype = 1;-
2817 const signed char Ws1 = 2;-
2818 const signed char Doctype2 = 3;-
2819 const signed char Ws2 = 4;-
2820 const signed char Sys = 5;-
2821 const signed char Ws3 = 6;-
2822 const signed char MP = 7;-
2823 const signed char MPR = 8;-
2824 const signed char PER = 9;-
2825 const signed char Mup = 10;-
2826 const signed char Ws4 = 11;-
2827 const signed char MPE = 12;-
2828 const signed char Done = 13;-
2829-
2830 const signed char InpWs = 0;-
2831 const signed char InpD = 1;-
2832 const signed char InpS = 2;-
2833 const signed char InpOB = 3;-
2834 const signed char InpCB = 4;-
2835 const signed char InpPer = 5;-
2836 const signed char InpGt = 6;-
2837 const signed char InpUnknown = 7;-
2838-
2839 static const signed char table[13][8] = {-
2840-
2841 { -1, Doctype, -1, -1, -1, -1, -1, -1 },-
2842 { Ws1, -1, -1, -1, -1, -1, -1, -1 },-
2843 { -1, Doctype2, Doctype2, -1, -1, -1, -1, Doctype2 },-
2844 { Ws2, -1, Sys, MP, -1, -1, Done, -1 },-
2845 { -1, -1, Sys, MP, -1, -1, Done, -1 },-
2846 { Ws3, -1, -1, MP, -1, -1, Done, -1 },-
2847 { -1, -1, -1, MP, -1, -1, Done, -1 },-
2848 { -1, -1, -1, -1, MPE, PER, -1, Mup },-
2849 { -1, -1, -1, -1, MPE, PER, -1, Mup },-
2850 { Ws4, -1, -1, -1, MPE, PER, -1, Mup },-
2851 { Ws4, -1, -1, -1, MPE, PER, -1, Mup },-
2852 { -1, -1, -1, -1, MPE, PER, -1, Mup },-
2853 { -1, -1, -1, -1, -1, -1, Done, -1 }-
2854 };-
2855 signed char state;-
2856 signed char input;-
2857-
2858 if (parseStack==0
parseStack==0Description
TRUEevaluated 433 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 31694 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 30204 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
433-31694
2859 startDTDwasReported = false;-
2860 systemId.clear();-
2861 publicId.clear();-
2862 state = Init;-
2863 }
executed 1923 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1923
2864 state = parseStack->pop().state;-
2865-
2866-
2867-
2868 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 28944 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1260 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1260-28944
2869 ParseFunction function = parseStack->top().function;-
2870 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 4229 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 24715 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4229-24715
2871 parseStack->pop();-
2872-
2873-
2874-
2875 }
executed 4229 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4229
2876 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 20449 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8495 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
8495-20449
2877 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2878 return
executed 20449 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 20449 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
20449
2879 }-
2880 }
executed 8495 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
8495
2881 }
executed 9755 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
9755
2882-
2883 for (;;) {-
2884 switch (state) {-
2885 case
executed 1923 times by 4 tests: case Doctype2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Doctype2:
executed 1923 times by 4 tests: case Doctype2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
2886 doctype = name();-
2887 break;
executed 1923 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
2888 case
executed 1558 times by 2 tests: case MP:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
MP:
executed 1558 times by 2 tests: case MP:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1558
2889 if (!startDTDwasReported
!startDTDwasReportedDescription
TRUEevaluated 1558 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&& lexicalHnd
lexicalHndDescription
TRUEevaluated 1554 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-1558
2890 startDTDwasReported = true;-
2891 if (!lexicalHnd->startDTD(doctype, publicId, systemId)
!lexicalHnd->s...cId, systemId)Description
TRUEnever evaluated
FALSEevaluated 1554 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-1554
2892 reportParseError(lexicalHnd->errorString());-
2893 return
never executed: return false;
false;
never executed: return false;
0
2894 }-
2895 }
executed 1554 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1554
2896 state = MPR;-
2897 break;
executed 1558 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1558
2898 case
executed 1868 times by 4 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 1868 times by 4 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1868
2899 return
executed 1868 times by 4 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 1868 times by 4 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1868
2900 case
executed 2 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 2 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
2
2901-
2902 reportParseError(QLatin1String("error occurred while parsing document type definition"));-
2903 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
2904 }-
2905-
2906 if (atEnd()
atEnd()Description
TRUEevaluated 1260 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 18800 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1260-18800
2907 unexpectedEof(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2908 return
executed 1260 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1260 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1260
2909 }-
2910 if (is_S(c)
is_S(c)Description
TRUEevaluated 6715 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 12085 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
6715-12085
2911 input = InpWs;-
2912 }
executed 6715 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('D')
c == QLatin1Char('D')Description
TRUEevaluated 1923 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10162 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1923-10162
2913 input = InpD;-
2914 }
executed 1923 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('S')
c == QLatin1Char('S')Description
TRUEevaluated 296 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 9866 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
296-9866
2915 input = InpS;-
2916 }
executed 296 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('P')
c == QLatin1Char('P')Description
TRUEevaluated 87 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9779 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
87-9779
2917 input = InpS;-
2918 }
executed 87 times by 2 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('[')
c == QLatin1Char('[')Description
TRUEevaluated 1558 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 8221 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
87-8221
2919 input = InpOB;-
2920 }
executed 1558 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char(']')
c == QLatin1Char(']')Description
TRUEevaluated 1505 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 6716 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1505-6716
2921 input = InpCB;-
2922 }
executed 1505 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('%')
c == QLatin1Char('%')Description
TRUEevaluated 51 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6665 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
51-6665
2923 input = InpPer;-
2924 }
executed 51 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 1868 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 4797 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
51-4797
2925 input = InpGt;-
2926 }
executed 1868 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1868
2927 input = InpUnknown;-
2928 }
executed 4797 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4797
2929 state = table[state][input];-
2930-
2931 switch (state) {-
2932 case
executed 1923 times by 4 tests: case Doctype:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Doctype:
executed 1923 times by 4 tests: case Doctype:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
2933 parseString_s = QLatin1String("DOCTYPE");-
2934 if (!parseString()
!parseString()Description
TRUEevaluated 1332 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 591 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
591-1332
2935 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2936 return
executed 1332 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1332 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1332
2937 }-
2938 break;
executed 591 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
591
2939 case
executed 1923 times by 4 tests: case Ws1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws1:
executed 1923 times by 4 tests: case Ws1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
2940 case
executed 1831 times by 3 tests: case Ws2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws2:
executed 1831 times by 3 tests: case Ws2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1831
2941 case
executed 111 times by 2 tests: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws3:
executed 111 times by 2 tests: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
111
2942 case
executed 2850 times by 2 tests: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws4:
executed 2850 times by 2 tests: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2850
2943 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 2308 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4407 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2308-4407
2944 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2945 return
executed 2308 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2308 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2308
2946 }-
2947 break;
executed 4407 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4407
2948 case
executed 1923 times by 4 tests: case Doctype2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Doctype2:
executed 1923 times by 4 tests: case Doctype2:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1923
2949 parseName_useRef = false;-
2950 if (!parseName()
!parseName()Description
TRUEevaluated 846 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1077 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
846-1077
2951 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2952 return
executed 846 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 846 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
846
2953 }-
2954 break;
executed 1077 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1077
2955 case
executed 383 times by 3 tests: case Sys:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Sys:
executed 383 times by 3 tests: case Sys:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
383
2956 parseExternalID_allowPublicID = false;-
2957 if (!parseExternalID()
!parseExternalID()Description
TRUEevaluated 279 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 104 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
104-279
2958 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2959 return
executed 279 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 279 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
279
2960 }-
2961 thisPublicId = publicId;-
2962 thisSystemId = systemId;-
2963 break;
executed 104 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
104
2964 case
executed 1558 times by 2 tests: case MP:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
MP:
executed 1558 times by 2 tests: case MP:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1558
2965 case
never executed: case MPR:
MPR:
never executed: case MPR:
0
2966 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 885 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 673 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
673-885
2967 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2968 return
executed 885 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 885 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
885
2969 }-
2970 break;
executed 673 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
673
2971 case
executed 50 times by 1 test: case PER:
Executed by:
  • tst_qxmlsimplereader - unknown status
PER:
executed 50 times by 1 test: case PER:
Executed by:
  • tst_qxmlsimplereader - unknown status
50
2972 parsePEReference_context = InDTD;-
2973 if (!parsePEReference()
!parsePEReference()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-30
2974 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2975 return
executed 20 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 20 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
20
2976 }-
2977 break;
executed 30 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
30
2978 case
executed 2873 times by 2 tests: case Mup:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Mup:
executed 2873 times by 2 tests: case Mup:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2873
2979 if (dtdRecursionLimit > 0
dtdRecursionLimit > 0Description
TRUEevaluated 2873 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&& parameterEntities.size() > dtdRecursionLimit
parameterEntit...RecursionLimitDescription
TRUEnever evaluated
FALSEevaluated 2873 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-2873
2980 reportParseError(QString::fromLatin1(-
2981 "DTD parsing exceeded recursion limit of %1.").arg(dtdRecursionLimit));-
2982 return
never executed: return false;
false;
never executed: return false;
0
2983 }-
2984 if (!parseMarkupdecl()
!parseMarkupdecl()Description
TRUEevaluated 2461 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 412 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
412-2461
2985 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2986 return
executed 2461 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2461 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2461
2987 }-
2988 break;
executed 412 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
412
2989 case
executed 1505 times by 2 tests: case MPE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
MPE:
executed 1505 times by 2 tests: case MPE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1505
2990 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 417 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1088 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
417-1088
2991 parseFailed(&QXmlSimpleReaderPrivate::parseDoctype, state);-
2992 return
executed 417 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 417 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
417
2993 }-
2994 break;
executed 1088 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1088
2995 case
executed 1868 times by 4 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 1868 times by 4 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1868
2996 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 1862 times by 3 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
6-1862
2997 if (!startDTDwasReported
!startDTDwasReportedDescription
TRUEevaluated 359 times by 3 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1503 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
359-1503
2998 startDTDwasReported = true;-
2999 if (!lexicalHnd->startDTD(doctype, publicId, systemId)
!lexicalHnd->s...cId, systemId)Description
TRUEnever evaluated
FALSEevaluated 359 times by 3 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-359
3000 reportParseError(lexicalHnd->errorString());-
3001 return
never executed: return false;
false;
never executed: return false;
0
3002 }-
3003 }
executed 359 times by 3 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
359
3004 if (!lexicalHnd->endDTD()
!lexicalHnd->endDTD()Description
TRUEnever evaluated
FALSEevaluated 1862 times by 3 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-1862
3005 reportParseError(lexicalHnd->errorString());-
3006 return
never executed: return false;
false;
never executed: return false;
0
3007 }-
3008 }
executed 1862 times by 3 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
1862
3009 next();-
3010 break;
executed 1868 times by 4 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1868
3011 }-
3012 }
executed 10252 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10252
3013 return
never executed: return false;
false;
never executed: return false;
0
3014}-
3015-
3016-
3017-
3018-
3019-
3020-
3021bool QXmlSimpleReaderPrivate::parseExternalID()-
3022{-
3023 const signed char Init = 0;-
3024 const signed char Sys = 1;-
3025 const signed char SysWS = 2;-
3026 const signed char SysSQ = 3;-
3027 const signed char SysSQ2 = 4;-
3028 const signed char SysDQ = 5;-
3029 const signed char SysDQ2 = 6;-
3030 const signed char Pub = 7;-
3031 const signed char PubWS = 8;-
3032 const signed char PubSQ = 9;-
3033 const signed char PubSQ2 = 10;-
3034 const signed char PubDQ = 11;-
3035 const signed char PubDQ2 = 12;-
3036 const signed char PubE = 13;-
3037 const signed char PubWS2 = 14;-
3038 const signed char PDone = 15;-
3039 const signed char Done = 16;-
3040-
3041 const signed char InpSQ = 0;-
3042 const signed char InpDQ = 1;-
3043 const signed char InpS = 2;-
3044 const signed char InpP = 3;-
3045 const signed char InpWs = 4;-
3046 const signed char InpUnknown = 5;-
3047-
3048 static const signed char table[15][6] = {-
3049-
3050 { -1, -1, Sys, Pub, -1, -1 },-
3051 { -1, -1, -1, -1, SysWS, -1 },-
3052 { SysSQ, SysDQ, -1, -1, -1, -1 },-
3053 { Done, SysSQ2, SysSQ2, SysSQ2, SysSQ2, SysSQ2 },-
3054 { Done, SysSQ2, SysSQ2, SysSQ2, SysSQ2, SysSQ2 },-
3055 { SysDQ2, Done, SysDQ2, SysDQ2, SysDQ2, SysDQ2 },-
3056 { SysDQ2, Done, SysDQ2, SysDQ2, SysDQ2, SysDQ2 },-
3057 { -1, -1, -1, -1, PubWS, -1 },-
3058 { PubSQ, PubDQ, -1, -1, -1, -1 },-
3059 { PubE, -1, PubSQ2, PubSQ2, PubSQ2, PubSQ2 },-
3060 { PubE, -1, PubSQ2, PubSQ2, PubSQ2, PubSQ2 },-
3061 { -1, PubE, PubDQ2, PubDQ2, PubDQ2, PubDQ2 },-
3062 { -1, PubE, PubDQ2, PubDQ2, PubDQ2, PubDQ2 },-
3063 { PDone, PDone, PDone, PDone, PubWS2, PDone },-
3064 { SysSQ, SysDQ, PDone, PDone, PDone, PDone }-
3065 };-
3066 signed char state;-
3067 signed char input;-
3068-
3069 if (parseStack==0
parseStack==0Description
TRUEevaluated 164 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3322 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 522 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2800 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
164-3322
3070 systemId.clear();-
3071 publicId.clear();-
3072 state = Init;-
3073 }
executed 686 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
686
3074 state = parseStack->pop().state;-
3075-
3076-
3077-
3078 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 956 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1844 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
956-1844
3079 ParseFunction function = parseStack->top().function;-
3080 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 173 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 783 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
173-783
3081 parseStack->pop();-
3082-
3083-
3084-
3085 }
executed 173 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
173
3086 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 341 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 615 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
341-615
3087 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3088 return
executed 341 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 341 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
341
3089 }-
3090 }
executed 615 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
615
3091 }
executed 2459 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2459
3092-
3093 for (;;) {-
3094 switch (state) {-
3095 case
executed 22 times by 1 test: case PDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
PDone:
executed 22 times by 1 test: case PDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
22
3096 if (parseExternalID_allowPublicID
parseExternalID_allowPublicIDDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-20
3097 publicId = string();-
3098 return
executed 20 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3099 } else {-
3100 reportParseError(QLatin1String("unexpected character"));-
3101 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
3102 }-
3103 case
executed 664 times by 3 tests: case Done:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 664 times by 3 tests: case Done:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3104 return
executed 664 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 664 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3105 case
never executed: case -1:
-1:
never executed: case -1:
0
3106-
3107 reportParseError(QLatin1String("unexpected character"));-
3108 return
never executed: return false;
false;
never executed: return false;
0
3109 }-
3110-
3111 if (atEnd()
atEnd()Description
TRUEevaluated 1844 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 13326 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1844-13326
3112 unexpectedEof(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3113 return
executed 1844 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1844 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1844
3114 }-
3115 if (is_S(c)
is_S(c)Description
TRUEevaluated 981 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 12345 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
981-12345
3116 input = InpWs;-
3117 }
executed 981 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('\'')
c == QLatin1Char('\'')Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12325 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
20-12325
3118 input = InpSQ;-
3119 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('"')
c == QLatin1Char('"')Description
TRUEevaluated 1593 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10732 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
20-10732
3120 input = InpDQ;-
3121 }
executed 1593 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('S')
c == QLatin1Char('S')Description
TRUEevaluated 545 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10187 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
545-10187
3122 input = InpS;-
3123 }
executed 545 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('P')
c == QLatin1Char('P')Description
TRUEevaluated 142 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10045 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
142-10045
3124 input = InpP;-
3125 }
executed 142 times by 2 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
else {
142
3126 input = InpUnknown;-
3127 }
executed 10045 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10045
3128 state = table[state][input];-
3129-
3130 switch (state) {-
3131 case
executed 544 times by 2 tests: case Sys:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Sys:
executed 544 times by 2 tests: case Sys:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
544
3132 parseString_s = QLatin1String("SYSTEM");-
3133 if (!parseString()
!parseString()Description
TRUEevaluated 392 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 152 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
152-392
3134 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3135 return
executed 392 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 392 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
392
3136 }-
3137 break;
executed 152 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
152
3138 case
executed 544 times by 2 tests: case SysWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
SysWS:
executed 544 times by 2 tests: case SysWS:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
544
3139 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 133 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 411 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
133-411
3140 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3141 return
executed 133 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 133 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
133
3142 }-
3143 break;
executed 411 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
411
3144 case
never executed: case SysSQ:
SysSQ:
never executed: case SysSQ:
0
3145 case
executed 664 times by 3 tests: case SysDQ:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
SysDQ:
executed 664 times by 3 tests: case SysDQ:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3146 stringClear();-
3147 next();-
3148 break;
executed 664 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3149 case
never executed: case SysSQ2:
SysSQ2:
never executed: case SysSQ2:
0
3150 case
executed 7824 times by 3 tests: case SysDQ2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
SysDQ2:
executed 7824 times by 3 tests: case SysDQ2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
7824
3151 stringAddC();-
3152 next();-
3153 break;
executed 7824 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
7824
3154 case
executed 142 times by 2 tests: case Pub:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
Pub:
executed 142 times by 2 tests: case Pub:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
142
3155 parseString_s = QLatin1String("PUBLIC");-
3156 if (!parseString()
!parseString()Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 92 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
50-92
3157 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3158 return
executed 50 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 50 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
50
3159 }-
3160 break;
executed 92 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
92
3161 case
executed 142 times by 2 tests: case PubWS:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
PubWS:
executed 142 times by 2 tests: case PubWS:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
142
3162 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 120 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
22-120
3163 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3164 return
executed 22 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 22 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
22
3165 }-
3166 break;
executed 120 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
120
3167 case
executed 10 times by 1 test: case PubSQ:
Executed by:
  • tst_qxmlsimplereader - unknown status
PubSQ:
executed 10 times by 1 test: case PubSQ:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3168 case
executed 132 times by 2 tests: case PubDQ:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
PubDQ:
executed 132 times by 2 tests: case PubDQ:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
132
3169 stringClear();-
3170 next();-
3171 break;
executed 142 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
142
3172 case
executed 80 times by 1 test: case PubSQ2:
Executed by:
  • tst_qxmlsimplereader - unknown status
PubSQ2:
executed 80 times by 1 test: case PubSQ2:
Executed by:
  • tst_qxmlsimplereader - unknown status
80
3173 case
executed 2296 times by 2 tests: case PubDQ2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
PubDQ2:
executed 2296 times by 2 tests: case PubDQ2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
2296
3174 stringAddC();-
3175 next();-
3176 break;
executed 2376 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
2376
3177 case
executed 142 times by 2 tests: case PubE:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
PubE:
executed 142 times by 2 tests: case PubE:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
142
3178 next();-
3179 break;
executed 142 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
142
3180 case
executed 120 times by 2 tests: case PubWS2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
PubWS2:
executed 120 times by 2 tests: case PubWS2:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
120
3181 publicId = string();-
3182 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 102 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
18-102
3183 parseFailed(&QXmlSimpleReaderPrivate::parseExternalID, state);-
3184 return
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
18
3185 }-
3186 break;
executed 102 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
102
3187 case
executed 664 times by 3 tests: case Done:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 664 times by 3 tests: case Done:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3188 systemId = string();-
3189 next();-
3190 break;
executed 664 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
664
3191 }-
3192 }
executed 12711 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12711
3193 return
never executed: return false;
false;
never executed: return false;
0
3194}-
3195-
3196-
3197-
3198-
3199bool QXmlSimpleReaderPrivate::parseMarkupdecl()-
3200{-
3201 const signed char Init = 0;-
3202 const signed char Lt = 1;-
3203 const signed char Em = 2;-
3204 const signed char CE = 3;-
3205 const signed char Qm = 4;-
3206 const signed char Dash = 5;-
3207 const signed char CA = 6;-
3208 const signed char CEL = 7;-
3209 const signed char CEN = 8;-
3210 const signed char CN = 9;-
3211 const signed char Done = 10;-
3212-
3213 const signed char InpLt = 0;-
3214 const signed char InpQm = 1;-
3215 const signed char InpEm = 2;-
3216 const signed char InpDash = 3;-
3217 const signed char InpA = 4;-
3218 const signed char InpE = 5;-
3219 const signed char InpL = 6;-
3220 const signed char InpN = 7;-
3221 const signed char InpUnknown = 8;-
3222-
3223 static const signed char table[4][9] = {-
3224-
3225 { Lt, -1, -1, -1, -1, -1, -1, -1, -1 },-
3226 { -1, Qm, Em, -1, -1, -1, -1, -1, -1 },-
3227 { -1, -1, -1, Dash, CA, CE, -1, CN, -1 },-
3228 { -1, -1, -1, -1, -1, -1, CEL, CEN, -1 }-
3229 };-
3230 signed char state;-
3231 signed char input;-
3232-
3233 if (parseStack==0
parseStack==0Description
TRUEevaluated 456 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 21658 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 2417 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19241 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
456-21658
3234 state = Init;-
3235 }
executed 2873 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
2873
3236 state = parseStack->pop().state;-
3237-
3238-
3239-
3240 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 16888 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2353 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2353-16888
3241 ParseFunction function = parseStack->top().function;-
3242 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 16888 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-16888
3243 parseStack->pop();-
3244-
3245-
3246-
3247 }
never executed: end of block
0
3248 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 14480 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2408 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2408-14480
3249 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3250 return
executed 14480 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 14480 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
14480
3251 }-
3252 }
executed 2408 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2408
3253 }
executed 4761 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4761
3254-
3255 for (;;) {-
3256 switch (state) {-
3257 case
never executed: case Qm:
Qm:
never executed: case Qm:
0
3258 if (contentHnd
contentHndDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
3259 if (!contentHnd->processingInstruction(name(),string())
!contentHnd->p...me(),string())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
3260 reportParseError(contentHnd->errorString());-
3261 return
never executed: return false;
false;
never executed: return false;
0
3262 }-
3263 }
never executed: end of block
0
3264 return
never executed: return true;
true;
never executed: return true;
0
3265 case
executed 17 times by 2 tests: case Dash:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dash:
executed 17 times by 2 tests: case Dash:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
17
3266 if (lexicalHnd
lexicalHndDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
) {
6-11
3267 if (!lexicalHnd->comment(string())
!lexicalHnd->comment(string())Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-11
3268 reportParseError(lexicalHnd->errorString());-
3269 return
never executed: return false;
false;
never executed: return false;
0
3270 }-
3271 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
11
3272 return
executed 17 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 17 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
17
3273 case
executed 536 times by 1 test: case CA:
Executed by:
  • tst_qxmlsimplereader - unknown status
CA:
executed 536 times by 1 test: case CA:
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3274 return
executed 536 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 536 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3275 case
executed 1561 times by 1 test: case CEL:
Executed by:
  • tst_qxmlsimplereader - unknown status
CEL:
executed 1561 times by 1 test: case CEL:
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
3276 return
executed 1561 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 1561 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
3277 case
executed 652 times by 2 tests: case CEN:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
CEN:
executed 652 times by 2 tests: case CEN:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
652
3278 return
executed 652 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 652 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
652
3279 case
executed 54 times by 1 test: case CN:
Executed by:
  • tst_qxmlsimplereader - unknown status
CN:
executed 54 times by 1 test: case CN:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
3280 return
executed 54 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 54 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
54
3281 case
never executed: case Done:
Done:
never executed: case Done:
0
3282 return
never executed: return true;
true;
never executed: return true;
0
3283 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
3284-
3285 reportParseError(QLatin1String("letter is expected"));-
3286 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
3287 }-
3288-
3289 if (atEnd()
atEnd()Description
TRUEevaluated 2353 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10866 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2353-10866
3290 unexpectedEof(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3291 return
executed 2353 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2353 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2353
3292 }-
3293 if (c == QLatin1Char('<')
c == QLatin1Char('<')Description
TRUEevaluated 2873 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 7993 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2873-7993
3294 input = InpLt;-
3295 }
executed 2873 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 7992 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1-7992
3296 input = InpQm;-
3297 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('!')
c == QLatin1Char('!')Description
TRUEevaluated 2871 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 5121 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1-5121
3298 input = InpEm;-
3299 }
executed 2871 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('-')
c == QLatin1Char('-')Description
TRUEevaluated 17 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 5104 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
17-5104
3300 input = InpDash;-
3301 }
executed 17 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('A')
c == QLatin1Char('A')Description
TRUEevaluated 549 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4555 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
17-4555
3302 input = InpA;-
3303 }
executed 549 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('E')
c == QLatin1Char('E')Description
TRUEevaluated 2249 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2306 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
549-2306
3304 input = InpE;-
3305 }
executed 2249 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('L')
c == QLatin1Char('L')Description
TRUEevaluated 1582 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 724 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
724-2249
3306 input = InpL;-
3307 }
executed 1582 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('N')
c == QLatin1Char('N')Description
TRUEevaluated 721 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-1582
3308 input = InpN;-
3309 }
executed 721 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
721
3310 input = InpUnknown;-
3311 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
3
3312 state = table[state][input];-
3313-
3314 switch (state) {-
3315 case
executed 2873 times by 2 tests: case Lt:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Lt:
executed 2873 times by 2 tests: case Lt:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2873
3316 next();-
3317 break;
executed 2873 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2873
3318 case
executed 2871 times by 2 tests: case Em:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Em:
executed 2871 times by 2 tests: case Em:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2871
3319 next();-
3320 break;
executed 2871 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2871
3321 case
executed 2249 times by 2 tests: case CE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
CE:
executed 2249 times by 2 tests: case CE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2249
3322 next();-
3323 break;
executed 2249 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2249
3324 case
executed 1 time by 1 test: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
Qm:
executed 1 time by 1 test: case Qm:
Executed by:
  • tst_qxmlsimplereader - unknown status
1
3325 parsePI_xmldecl = false;-
3326 if (!parsePI()
!parsePI()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1
3327 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3328 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
3329 }-
3330 break;
never executed: break;
0
3331 case
executed 17 times by 2 tests: case Dash:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dash:
executed 17 times by 2 tests: case Dash:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
17
3332 if (!parseComment()
!parseComment()Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
8-9
3333 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3334 return
executed 9 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 9 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
3335 }-
3336 break;
executed 8 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
8
3337 case
executed 549 times by 1 test: case CA:
Executed by:
  • tst_qxmlsimplereader - unknown status
CA:
executed 549 times by 1 test: case CA:
Executed by:
  • tst_qxmlsimplereader - unknown status
549
3338 if (!parseAttlistDecl()
!parseAttlistDecl()Description
TRUEevaluated 490 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 59 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
59-490
3339 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3340 return
executed 490 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 490 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
490
3341 }-
3342 break;
executed 59 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
59
3343 case
executed 1582 times by 1 test: case CEL:
Executed by:
  • tst_qxmlsimplereader - unknown status
CEL:
executed 1582 times by 1 test: case CEL:
Executed by:
  • tst_qxmlsimplereader - unknown status
1582
3344 if (!parseElementDecl()
!parseElementDecl()Description
TRUEevaluated 1376 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 206 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
206-1376
3345 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3346 return
executed 1376 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1376 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1376
3347 }-
3348 break;
executed 206 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
206
3349 case
executed 667 times by 2 tests: case CEN:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
CEN:
executed 667 times by 2 tests: case CEN:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
667
3350 if (!parseEntityDecl()
!parseEntityDecl()Description
TRUEevaluated 537 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 130 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
130-537
3351 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3352 return
executed 537 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 537 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
537
3353 }-
3354 break;
executed 130 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
130
3355 case
executed 54 times by 1 test: case CN:
Executed by:
  • tst_qxmlsimplereader - unknown status
CN:
executed 54 times by 1 test: case CN:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
3356 if (!parseNotationDecl()
!parseNotationDecl()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
9-45
3357 parseFailed(&QXmlSimpleReaderPrivate::parseMarkupdecl, state);-
3358 return
executed 45 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 45 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
45
3359 }-
3360 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
3361 }-
3362 }
executed 8408 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
8408
3363 return
never executed: return false;
false;
never executed: return false;
0
3364}-
3365-
3366-
3367-
3368-
3369bool QXmlSimpleReaderPrivate::parsePEReference()-
3370{-
3371 const signed char Init = 0;-
3372 const signed char Next = 1;-
3373 const signed char Name = 2;-
3374 const signed char NameR = 3;-
3375 const signed char Done = 4;-
3376-
3377 const signed char InpSemi = 0;-
3378 const signed char InpPer = 1;-
3379 const signed char InpUnknown = 2;-
3380-
3381 static const signed char table[4][3] = {-
3382-
3383 { -1, Next, -1 },-
3384 { -1, -1, Name },-
3385 { Done, -1, -1 },-
3386 { Done, -1, -1 }-
3387 };-
3388 signed char state;-
3389 signed char input;-
3390-
3391 if (parseStack==0
parseStack==0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 70 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-70
3392 state = Init;-
3393 }
executed 65 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
65
3394 state = parseStack->pop().state;-
3395-
3396-
3397-
3398 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
7-18
3399 ParseFunction function = parseStack->top().function;-
3400 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-7
3401 parseStack->pop();-
3402-
3403-
3404-
3405 }
never executed: end of block
0
3406 if (!(this->*function)()
!(this->*function)()Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-7
3407 parseFailed(&QXmlSimpleReaderPrivate::parsePEReference, state);-
3408 return
never executed: return false;
false;
never executed: return false;
0
3409 }-
3410 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
7
3411 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
25
3412-
3413 for (;;) {-
3414 switch (state) {-
3415 case
executed 65 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 65 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3416 {-
3417 bool skipIt = true;-
3418 QString xmlRefString;-
3419-
3420 QMap<QString,QString>::Iterator it;-
3421 it = parameterEntities.find(ref());-
3422 if (it != parameterEntities.end()
it != parameterEntities.end()Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
25-40
3423 skipIt = false;-
3424 xmlRefString = *it;-
3425 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (entityRes
entityResDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-40
3426 QMap<QString,QXmlSimpleReaderPrivate::ExternParameterEntity>::Iterator it2;-
3427 it2 = externParameterEntities.find(ref());-
3428 QXmlInputSource *ret = 0;-
3429 if (it2 != externParameterEntities.end()
it2 != externP...Entities.end()Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-40
3430 if (!entityRes->resolveEntity((*it2).publicId, (*it2).systemId, ret)
!entityRes->re...systemId, ret)Description
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-40
3431 delete ret;-
3432 reportParseError(entityRes->errorString());-
3433 return
never executed: return false;
false;
never executed: return false;
0
3434 }-
3435 if (ret
retDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-40
3436 QString buffer = ret->data();-
3437 while (!buffer.isEmpty()
!buffer.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
3438 xmlRefString += buffer;-
3439 ret->fetchData();-
3440 buffer = ret->data();-
3441 }
never executed: end of block
0
3442 delete ret;-
3443 if (!stripTextDecl(xmlRefString)
!stripTextDecl(xmlRefString)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
3444 reportParseError(QLatin1String("error in the text declaration of an external entity"));-
3445 return
never executed: return false;
false;
never executed: return false;
0
3446 }-
3447 skipIt = false;-
3448 }
never executed: end of block
0
3449 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
40
3450 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
40
3451-
3452 if (skipIt
skipItDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
25-40
3453 if (contentHnd
contentHndDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-40
3454 if (!contentHnd->skippedEntity(QLatin1Char('%') + ref())
!contentHnd->s...('%') + ref())Description
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-40
3455 reportParseError(contentHnd->errorString());-
3456 return
never executed: return false;
false;
never executed: return false;
0
3457 }-
3458 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
40
3459 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
40
3460 if (parsePEReference_context == InEntityValue
parsePEReferen... InEntityValueDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-15
3461-
3462 if (!insertXmlRef(xmlRefString, ref(), true)
!insertXmlRef(..., ref(), true)Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-15
3463 return
never executed: return false;
false;
never executed: return false;
0
3464 }
executed 15 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (parsePEReference_context == InDTD
parsePEReferen...ntext == InDTDDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-15
3465-
3466 if (!insertXmlRef(QLatin1Char(' ') + xmlRefString + QLatin1Char(' '), ref(), false)
!insertXmlRef(... ref(), false)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
0-10
3467 return
never executed: return false;
false;
never executed: return false;
0
3468 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3469 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
25
3470 }-
3471 state = NameR;-
3472 break;
executed 65 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3473 case
executed 65 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 65 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3474 return
executed 65 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 65 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3475 case
never executed: case -1:
-1:
never executed: case -1:
0
3476-
3477 reportParseError(QLatin1String("letter is expected"));-
3478 return
never executed: return false;
false;
never executed: return false;
0
3479 }-
3480-
3481 if (atEnd()
atEnd()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 195 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
18-195
3482 unexpectedEof(&QXmlSimpleReaderPrivate::parsePEReference, state);-
3483 return
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
18
3484 }-
3485 if (c == QLatin1Char(';')
c == QLatin1Char(';')Description
TRUEevaluated 65 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 130 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
65-130
3486 input = InpSemi;-
3487 }
executed 65 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('%')
c == QLatin1Char('%')Description
TRUEevaluated 65 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 65 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
65
3488 input = InpPer;-
3489 }
executed 65 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
65
3490 input = InpUnknown;-
3491 }
executed 65 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3492 state = table[state][input];-
3493-
3494 switch (state) {-
3495 case
executed 65 times by 1 test: case Next:
Executed by:
  • tst_qxmlsimplereader - unknown status
Next:
executed 65 times by 1 test: case Next:
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3496 next();-
3497 break;
executed 65 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3498 case
executed 65 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 65 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3499 case
never executed: case NameR:
NameR:
never executed: case NameR:
0
3500 parseName_useRef = true;-
3501 if (!parseName()
!parseName()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
7-58
3502 parseFailed(&QXmlSimpleReaderPrivate::parsePEReference, state);-
3503 return
executed 7 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 7 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
7
3504 }-
3505 break;
executed 58 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
58
3506 case
executed 65 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 65 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3507 next();-
3508 break;
executed 65 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
65
3509 }-
3510 }
executed 188 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
188
3511 return
never executed: return false;
false;
never executed: return false;
0
3512}-
3513-
3514-
3515-
3516-
3517-
3518-
3519-
3520bool QXmlSimpleReaderPrivate::parseAttlistDecl()-
3521{-
3522 const signed char Init = 0;-
3523 const signed char Attlist = 1;-
3524 const signed char Ws = 2;-
3525 const signed char Name = 3;-
3526 const signed char Ws1 = 4;-
3527 const signed char Attdef = 5;-
3528 const signed char Ws2 = 6;-
3529 const signed char Atttype = 7;-
3530 const signed char Ws3 = 8;-
3531 const signed char DDecH = 9;-
3532 const signed char DefReq = 10;-
3533 const signed char DefImp = 11;-
3534 const signed char DefFix = 12;-
3535 const signed char Attval = 13;-
3536 const signed char Ws4 = 14;-
3537 const signed char Done = 15;-
3538-
3539 const signed char InpWs = 0;-
3540 const signed char InpGt = 1;-
3541 const signed char InpHash = 2;-
3542 const signed char InpA = 3;-
3543 const signed char InpI = 4;-
3544 const signed char InpF = 5;-
3545 const signed char InpR = 6;-
3546 const signed char InpUnknown = 7;-
3547-
3548 static const signed char table[15][8] = {-
3549-
3550 { -1, -1, -1, Attlist, -1, -1, -1, -1 },-
3551 { Ws, -1, -1, -1, -1, -1, -1, -1 },-
3552 { -1, -1, -1, Name, Name, Name, Name, Name },-
3553 { Ws1, Done, Attdef, Attdef, Attdef, Attdef, Attdef, Attdef },-
3554 { -1, Done, Attdef, Attdef, Attdef, Attdef, Attdef, Attdef },-
3555 { Ws2, -1, -1, -1, -1, -1, -1, -1 },-
3556 { -1, Atttype, Atttype, Atttype, Atttype, Atttype, Atttype, Atttype },-
3557 { Ws3, -1, -1, -1, -1, -1, -1, -1 },-
3558 { -1, Attval, DDecH, Attval, Attval, Attval, Attval, Attval },-
3559 { -1, -1, -1, -1, DefImp, DefFix, DefReq, -1 },-
3560 { Ws4, Ws4, -1, -1, -1, -1, -1, -1 },-
3561 { Ws4, Ws4, -1, -1, -1, -1, -1, -1 },-
3562 { Ws3, -1, -1, -1, -1, -1, -1, -1 },-
3563 { Ws4, Ws4, -1, -1, -1, -1, -1, -1 },-
3564 { -1, Done, Attdef, Attdef, Attdef, Attdef, Attdef, Attdef }-
3565 };-
3566 signed char state;-
3567 signed char input;-
3568-
3569 if (parseStack==0
parseStack==0Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5236 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 477 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4759 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
72-5236
3570 state = Init;-
3571 }
executed 549 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
549
3572 state = parseStack->pop().state;-
3573-
3574-
3575-
3576 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 4331 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 428 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
428-4331
3577 ParseFunction function = parseStack->top().function;-
3578 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 589 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3742 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
589-3742
3579 parseStack->pop();-
3580-
3581-
3582-
3583 }
executed 589 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
589
3584 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 1729 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2602 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1729-2602
3585 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3586 return
executed 1729 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1729 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1729
3587 }-
3588 }
executed 2602 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2602
3589 }
executed 3030 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
3030
3590-
3591 for (;;) {-
3592 switch (state) {-
3593 case
executed 548 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 548 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
548
3594 attDeclEName = name();-
3595 break;
executed 548 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
548
3596 case
executed 619 times by 1 test: case Attdef:
Executed by:
  • tst_qxmlsimplereader - unknown status
Attdef:
executed 619 times by 1 test: case Attdef:
Executed by:
  • tst_qxmlsimplereader - unknown status
619
3597 attDeclAName = name();-
3598 break;
executed 619 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
619
3599 case
executed 536 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 536 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3600 return
executed 536 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 536 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3601 case
executed 5 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 5 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
5
3602-
3603 reportParseError(QLatin1String("letter is expected"));-
3604 return
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
3605 }-
3606-
3607 if (atEnd()
atEnd()Description
TRUEevaluated 428 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6889 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
428-6889
3608 unexpectedEof(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3609 return
executed 428 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 428 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
428
3610 }-
3611 if (is_S(c)
is_S(c)Description
TRUEevaluated 2429 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4460 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2429-4460
3612 input = InpWs;-
3613 }
executed 2429 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 1062 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3398 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1062-3398
3614 input = InpGt;-
3615 }
executed 1062 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('#')
c == QLatin1Char('#')Description
TRUEevaluated 428 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2970 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
428-2970
3616 input = InpHash;-
3617 }
executed 428 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('A')
c == QLatin1Char('A')Description
TRUEevaluated 559 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2411 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
428-2411
3618 input = InpA;-
3619 }
executed 559 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('I')
c == QLatin1Char('I')Description
TRUEevaluated 425 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1986 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
425-1986
3620 input = InpI;-
3621 }
executed 425 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('F')
c == QLatin1Char('F')Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1965 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
21-1965
3622 input = InpF;-
3623 }
executed 21 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('R')
c == QLatin1Char('R')Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1955 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-1955
3624 input = InpR;-
3625 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
10
3626 input = InpUnknown;-
3627 }
executed 1955 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1955
3628 state = table[state][input];-
3629-
3630 switch (state) {-
3631 case
executed 549 times by 1 test: case Attlist:
Executed by:
  • tst_qxmlsimplereader - unknown status
Attlist:
executed 549 times by 1 test: case Attlist:
Executed by:
  • tst_qxmlsimplereader - unknown status
549
3632 parseString_s = QLatin1String("ATTLIST");-
3633 if (!parseString()
!parseString()Description
TRUEevaluated 428 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 121 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
121-428
3634 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3635 return
executed 428 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 428 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
428
3636 }-
3637 break;
executed 121 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
121
3638 case
executed 549 times by 1 test: case Ws:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws:
executed 549 times by 1 test: case Ws:
Executed by:
  • tst_qxmlsimplereader - unknown status
549
3639 case
executed 548 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws1:
executed 548 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
548
3640 case
executed 618 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws2:
executed 618 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
618
3641 case
executed 633 times by 1 test: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws3:
executed 633 times by 1 test: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
633
3642 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 545 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1803 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
545-1803
3643 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3644 return
executed 545 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 545 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
545
3645 }-
3646 break;
executed 1803 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1803
3647 case
executed 548 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 548 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
548
3648 parseName_useRef = false;-
3649 if (!parseName()
!parseName()Description
TRUEevaluated 401 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 147 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
147-401
3650 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3651 return
executed 401 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 401 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
401
3652 }-
3653 break;
executed 147 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
147
3654 case
executed 619 times by 1 test: case Attdef:
Executed by:
  • tst_qxmlsimplereader - unknown status
Attdef:
executed 619 times by 1 test: case Attdef:
Executed by:
  • tst_qxmlsimplereader - unknown status
619
3655 parseName_useRef = false;-
3656 if (!parseName()
!parseName()Description
TRUEevaluated 230 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 389 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
230-389
3657 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3658 return
executed 230 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 230 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
230
3659 }-
3660 break;
executed 389 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
389
3661 case
executed 618 times by 1 test: case Atttype:
Executed by:
  • tst_qxmlsimplereader - unknown status
Atttype:
executed 618 times by 1 test: case Atttype:
Executed by:
  • tst_qxmlsimplereader - unknown status
618
3662 if (!parseAttType()
!parseAttType()Description
TRUEevaluated 489 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 129 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
129-489
3663 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3664 return
executed 489 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 489 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
489
3665 }-
3666 break;
executed 129 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
129
3667 case
executed 426 times by 1 test: case DDecH:
Executed by:
  • tst_qxmlsimplereader - unknown status
DDecH:
executed 426 times by 1 test: case DDecH:
Executed by:
  • tst_qxmlsimplereader - unknown status
426
3668 next();-
3669 break;
executed 426 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
426
3670 case
executed 10 times by 1 test: case DefReq:
Executed by:
  • tst_qxmlsimplereader - unknown status
DefReq:
executed 10 times by 1 test: case DefReq:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3671 parseString_s = QLatin1String("REQUIRED");-
3672 if (!parseString()
!parseString()Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-9
3673 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3674 return
executed 9 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 9 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
3675 }-
3676 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
3677 case
executed 395 times by 1 test: case DefImp:
Executed by:
  • tst_qxmlsimplereader - unknown status
DefImp:
executed 395 times by 1 test: case DefImp:
Executed by:
  • tst_qxmlsimplereader - unknown status
395
3678 parseString_s = QLatin1String("IMPLIED");-
3679 if (!parseString()
!parseString()Description
TRUEevaluated 334 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 61 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
61-334
3680 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3681 return
executed 334 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 334 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
334
3682 }-
3683 break;
executed 61 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
61
3684 case
executed 21 times by 1 test: case DefFix:
Executed by:
  • tst_qxmlsimplereader - unknown status
DefFix:
executed 21 times by 1 test: case DefFix:
Executed by:
  • tst_qxmlsimplereader - unknown status
21
3685 parseString_s = QLatin1String("FIXED");-
3686 if (!parseString()
!parseString()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
9-12
3687 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3688 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
3689 }-
3690 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
3691 case
executed 207 times by 1 test: case Attval:
Executed by:
  • tst_qxmlsimplereader - unknown status
Attval:
executed 207 times by 1 test: case Attval:
Executed by:
  • tst_qxmlsimplereader - unknown status
207
3692 if (!parseAttValue()
!parseAttValue()Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 80 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
80-127
3693 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3694 return
executed 127 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 127 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
127
3695 }-
3696 break;
executed 80 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
80
3697 case
executed 607 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws4:
executed 607 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
607
3698 if (declHnd
declHndDescription
TRUEevaluated 607 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-607
3699-
3700 if (!declHnd->attributeDecl(attDeclEName, attDeclAName, QLatin1String(""), QLatin1String(""), QLatin1String(""))
!declHnd->attr...in1String(""))Description
TRUEnever evaluated
FALSEevaluated 607 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-607
3701 reportParseError(declHnd->errorString());-
3702 return
never executed: return false;
false;
never executed: return false;
0
3703 }-
3704 }
executed 607 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
607
3705 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 572 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
35-572
3706 parseFailed(&QXmlSimpleReaderPrivate::parseAttlistDecl, state);-
3707 return
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 35 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
35
3708 }-
3709 break;
executed 572 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
572
3710 case
executed 536 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 536 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3711 next();-
3712 break;
executed 536 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
536
3713 }-
3714 }
executed 4279 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4279
3715 return
never executed: return false;
false;
never executed: return false;
0
3716}-
3717-
3718-
3719-
3720-
3721bool QXmlSimpleReaderPrivate::parseAttType()-
3722{-
3723 const signed char Init = 0;-
3724 const signed char ST = 1;-
3725 const signed char TTI = 2;-
3726 const signed char TTI2 = 3;-
3727 const signed char TTI3 = 4;-
3728 const signed char TTE = 5;-
3729 const signed char TTEY = 6;-
3730 const signed char TTEI = 7;-
3731 const signed char N = 8;-
3732 const signed char TTNM = 9;-
3733 const signed char TTNM2 = 10;-
3734 const signed char NO = 11;-
3735 const signed char NO2 = 12;-
3736 const signed char NO3 = 13;-
3737 const signed char NOName = 14;-
3738 const signed char NO4 = 15;-
3739 const signed char EN = 16;-
3740 const signed char ENNmt = 17;-
3741 const signed char EN2 = 18;-
3742 const signed char ADone = 19;-
3743 const signed char Done = 20;-
3744-
3745 const signed char InpWs = 0;-
3746 const signed char InpOp = 1;-
3747 const signed char InpCp = 2;-
3748 const signed char InpPipe = 3;-
3749 const signed char InpC = 4;-
3750 const signed char InpE = 5;-
3751 const signed char InpI = 6;-
3752 const signed char InpM = 7;-
3753 const signed char InpN = 8;-
3754 const signed char InpO = 9;-
3755 const signed char InpR = 10;-
3756 const signed char InpS = 11;-
3757 const signed char InpY = 12;-
3758 const signed char InpUnknown = 13;-
3759-
3760 static const signed char table[19][14] = {-
3761-
3762 { -1, EN, -1, -1, ST, TTE, TTI, -1, N, -1, -1, -1, -1, -1 },-
3763 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done },-
3764 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, TTI2, Done, Done, Done },-
3765 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, TTI3, Done, Done },-
3766 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done },-
3767 { -1, -1, -1, -1, -1, -1, TTEI, -1, -1, -1, -1, -1, TTEY, -1 },-
3768 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done },-
3769 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done },-
3770 { -1, -1, -1, -1, -1, -1, -1, TTNM, -1, NO, -1, -1, -1, -1 },-
3771 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, TTNM2, Done, Done },-
3772 { Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done, Done },-
3773 { NO2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
3774 { -1, NO3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
3775 { NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName, NOName },-
3776 { NO4, -1, ADone, NO3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
3777 { -1, -1, ADone, NO3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
3778 { -1, -1, ENNmt, -1, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt, ENNmt },-
3779 { EN2, -1, ADone, EN, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
3780 { -1, -1, ADone, EN, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }-
3781 };-
3782 signed char state;-
3783 signed char input;-
3784-
3785 if (parseStack==0
parseStack==0Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1519 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 540 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 979 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
78-1519
3786 state = Init;-
3787 }
executed 618 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
618
3788 state = parseStack->pop().state;-
3789-
3790-
3791-
3792 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 747 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 232 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
232-747
3793 ParseFunction function = parseStack->top().function;-
3794 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 721 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
26-721
3795 parseStack->pop();-
3796-
3797-
3798-
3799 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
26
3800 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 267 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 480 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
267-480
3801 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3802 return
executed 267 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 267 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
267
3803 }-
3804 }
executed 480 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
480
3805 }
executed 712 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
712
3806-
3807 for (;;) {-
3808 switch (state) {-
3809 case
executed 32 times by 1 test: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
ADone:
executed 32 times by 1 test: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
32
3810 return
executed 32 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 32 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
32
3811 case
executed 583 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 583 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
583
3812 return
executed 583 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 583 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
583
3813 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
3814-
3815 reportParseError(QLatin1String("letter is expected"));-
3816 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
3817 }-
3818-
3819 if (atEnd()
atEnd()Description
TRUEevaluated 232 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1533 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
232-1533
3820 unexpectedEof(&QXmlSimpleReaderPrivate::parseAttType, state);-
3821 return
executed 232 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 232 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
232
3822 }-
3823 if (is_S(c)
is_S(c)Description
TRUEevaluated 602 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 931 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
602-931
3824 input = InpWs;-
3825 }
executed 602 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('(')
c == QLatin1Char('(')Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 897 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
34-897
3826 input = InpOp;-
3827 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char(')')
c == QLatin1Char(')')Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 865 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
32-865
3828 input = InpCp;-
3829 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('|')
c == QLatin1Char('|')Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 844 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
21-844
3830 input = InpPipe;-
3831 }
executed 21 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('C')
c == QLatin1Char('C')Description
TRUEevaluated 472 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 372 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
21-472
3832 input = InpC;-
3833 }
executed 472 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('E')
c == QLatin1Char('E')Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 342 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
30-472
3834 input = InpE;-
3835 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('I')
c == QLatin1Char('I')Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 302 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
30-302
3836 input = InpI;-
3837 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('M')
c == QLatin1Char('M')Description
TRUEevaluated 51 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 251 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
40-251
3838 input = InpM;-
3839 }
executed 51 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('N')
c == QLatin1Char('N')Description
TRUEevaluated 73 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 178 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
51-178
3840 input = InpN;-
3841 }
executed 73 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('O')
c == QLatin1Char('O')Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 157 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
21-157
3842 input = InpO;-
3843 }
executed 21 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('R')
c == QLatin1Char('R')Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 137 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-137
3844 input = InpR;-
3845 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('S')
c == QLatin1Char('S')Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 77 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-77
3846 input = InpS;-
3847 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('Y')
c == QLatin1Char('Y')Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 57 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-60
3848 input = InpY;-
3849 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
20
3850 input = InpUnknown;-
3851 }
executed 57 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
57
3852 state = table[state][input];-
3853-
3854 switch (state) {-
3855 case
executed 472 times by 1 test: case ST:
Executed by:
  • tst_qxmlsimplereader - unknown status
ST:
executed 472 times by 1 test: case ST:
Executed by:
  • tst_qxmlsimplereader - unknown status
472
3856 parseString_s = QLatin1String("CDATA");-
3857 if (!parseString()
!parseString()Description
TRUEevaluated 324 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 148 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
148-324
3858 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3859 return
executed 324 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 324 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
324
3860 }-
3861 break;
executed 148 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
148
3862 case
executed 30 times by 1 test: case TTI:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTI:
executed 30 times by 1 test: case TTI:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
3863 parseString_s = QLatin1String("ID");-
3864 if (!parseString()
!parseString()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
12-18
3865 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3866 return
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
18
3867 }-
3868 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
3869 case
executed 20 times by 1 test: case TTI2:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTI2:
executed 20 times by 1 test: case TTI2:
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3870 parseString_s = QLatin1String("REF");-
3871 if (!parseString()
!parseString()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10
3872 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3873 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3874 }-
3875 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3876 case
executed 10 times by 1 test: case TTI3:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTI3:
executed 10 times by 1 test: case TTI3:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3877 next();-
3878 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3879 case
executed 30 times by 1 test: case TTE:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTE:
executed 30 times by 1 test: case TTE:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
3880 parseString_s = QLatin1String("ENTIT");-
3881 if (!parseString()
!parseString()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
6-24
3882 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3883 return
executed 24 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 24 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
24
3884 }-
3885 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
3886 case
executed 20 times by 1 test: case TTEY:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTEY:
executed 20 times by 1 test: case TTEY:
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3887 next();-
3888 break;
executed 20 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3889 case
executed 10 times by 1 test: case TTEI:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTEI:
executed 10 times by 1 test: case TTEI:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3890 parseString_s = QLatin1String("IES");-
3891 if (!parseString()
!parseString()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
5
3892 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3893 return
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
3894 }-
3895 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
3896 case
executed 73 times by 1 test: case N:
Executed by:
  • tst_qxmlsimplereader - unknown status
N:
executed 73 times by 1 test: case N:
Executed by:
  • tst_qxmlsimplereader - unknown status
73
3897 next();-
3898 break;
executed 73 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
73
3899 case
executed 51 times by 1 test: case TTNM:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTNM:
executed 51 times by 1 test: case TTNM:
Executed by:
  • tst_qxmlsimplereader - unknown status
51
3900 parseString_s = QLatin1String("MTOKEN");-
3901 if (!parseString()
!parseString()Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-40
3902 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3903 return
executed 40 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 40 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
40
3904 }-
3905 break;
executed 11 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
11
3906 case
executed 50 times by 1 test: case TTNM2:
Executed by:
  • tst_qxmlsimplereader - unknown status
TTNM2:
executed 50 times by 1 test: case TTNM2:
Executed by:
  • tst_qxmlsimplereader - unknown status
50
3907 next();-
3908 break;
executed 50 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
50
3909 case
executed 21 times by 1 test: case NO:
Executed by:
  • tst_qxmlsimplereader - unknown status
NO:
executed 21 times by 1 test: case NO:
Executed by:
  • tst_qxmlsimplereader - unknown status
21
3910 parseString_s = QLatin1String("OTATION");-
3911 if (!parseString()
!parseString()Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-17
3912 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3913 return
executed 17 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 17 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
17
3914 }-
3915 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
3916 case
executed 20 times by 1 test: case NO2:
Executed by:
  • tst_qxmlsimplereader - unknown status
NO2:
executed 20 times by 1 test: case NO2:
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3917 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
8-12
3918 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3919 return
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
3920 }-
3921 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
3922 case
executed 30 times by 1 test: case NO3:
Executed by:
  • tst_qxmlsimplereader - unknown status
NO3:
executed 30 times by 1 test: case NO3:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
3923 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-20
3924 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3925 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
3926 }-
3927 break;
executed 20 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
20
3928 case
executed 30 times by 1 test: case NOName:
Executed by:
  • tst_qxmlsimplereader - unknown status
NOName:
executed 30 times by 1 test: case NOName:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
3929 parseName_useRef = false;-
3930 if (!parseName()
!parseName()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-19
3931 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3932 return
executed 11 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 11 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
11
3933 }-
3934 break;
executed 19 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
19
3935 case
never executed: case NO4:
NO4:
never executed: case NO4:
0
3936 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
3937 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3938 return
never executed: return false;
false;
never executed: return false;
0
3939 }-
3940 break;
never executed: break;
0
3941 case
executed 24 times by 1 test: case EN:
Executed by:
  • tst_qxmlsimplereader - unknown status
EN:
executed 24 times by 1 test: case EN:
Executed by:
  • tst_qxmlsimplereader - unknown status
24
3942 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
8-16
3943 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3944 return
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
3945 }-
3946 break;
executed 16 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
16
3947 case
executed 24 times by 1 test: case ENNmt:
Executed by:
  • tst_qxmlsimplereader - unknown status
ENNmt:
executed 24 times by 1 test: case ENNmt:
Executed by:
  • tst_qxmlsimplereader - unknown status
24
3948 if (!parseNmtoken()
!parseNmtoken()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
5-19
3949 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3950 return
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
3951 }-
3952 break;
executed 19 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
19
3953 case
never executed: case EN2:
EN2:
never executed: case EN2:
0
3954 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
3955 parseFailed(&QXmlSimpleReaderPrivate::parseAttType, state);-
3956 return
never executed: return false;
false;
never executed: return false;
0
3957 }-
3958 break;
never executed: break;
0
3959 case
executed 32 times by 1 test: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
ADone:
executed 32 times by 1 test: case ADone:
Executed by:
  • tst_qxmlsimplereader - unknown status
32
3960 next();-
3961 break;
executed 32 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
32
3962 }-
3963 }
executed 1053 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1053
3964 return
never executed: return false;
false;
never executed: return false;
0
3965}-
3966bool QXmlSimpleReaderPrivate::parseAttValue()-
3967{-
3968 const signed char Init = 0;-
3969 const signed char Dq = 1;-
3970 const signed char DqRef = 2;-
3971 const signed char DqC = 3;-
3972 const signed char Sq = 4;-
3973 const signed char SqRef = 5;-
3974 const signed char SqC = 6;-
3975 const signed char Done = 7;-
3976-
3977 const signed char InpDq = 0;-
3978 const signed char InpSq = 1;-
3979 const signed char InpAmp = 2;-
3980 const signed char InpLt = 3;-
3981 const signed char InpUnknown = 4;-
3982-
3983 static const signed char table[7][5] = {-
3984-
3985 { Dq, Sq, -1, -1, -1 },-
3986 { Done, DqC, DqRef, -1, DqC },-
3987 { Done, DqC, DqRef, -1, DqC },-
3988 { Done, DqC, DqRef, -1, DqC },-
3989 { SqC, Done, SqRef, -1, SqC },-
3990 { SqC, Done, SqRef, -1, SqC },-
3991 { SqC, Done, SqRef, -1, SqC }-
3992 };-
3993 signed char state;-
3994 signed char input;-
3995-
3996 if (parseStack==0
parseStack==0Description
TRUEevaluated 12621 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1870 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1141 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
729-12621
3997 state = Init;-
3998 }
executed 13350 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
13350
3999 state = parseStack->pop().state;-
4000-
4001-
4002-
4003 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 193 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 948 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
193-948
4004 ParseFunction function = parseStack->top().function;-
4005 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 193 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-193
4006 parseStack->pop();-
4007-
4008-
4009-
4010 }
never executed: end of block
0
4011 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
69-124
4012 parseFailed(&QXmlSimpleReaderPrivate::parseAttValue, state);-
4013 return
executed 69 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 69 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
69
4014 }-
4015 }
executed 124 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
124
4016 }
executed 1072 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1072
4017-
4018 for (;;) {-
4019 switch (state) {-
4020 case
executed 13332 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 13332 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13332
4021 return
executed 13332 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 13332 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13332
4022 case
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4023-
4024 reportParseError(QLatin1String("unexpected character"));-
4025 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4026 }-
4027-
4028 if (atEnd()
atEnd()Description
TRUEevaluated 949 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 187156 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
949-187156
4029 unexpectedEof(&QXmlSimpleReaderPrivate::parseAttValue, state);-
4030 return
executed 949 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 949 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
949
4031 }-
4032 if (c == QLatin1Char('"')
c == QLatin1Char('"')Description
TRUEevaluated 26529 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 160627 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
26529-160627
4033 input = InpDq;-
4034 }
executed 26529 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('\'')
c == QLatin1Char('\'')Description
TRUEevaluated 296 times by 4 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 160331 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
296-160331
4035 input = InpSq;-
4036 }
executed 296 times by 4 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('&')
c == QLatin1Char('&')Description
TRUEevaluated 258 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 160073 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
258-160073
4037 input = InpAmp;-
4038 }
executed 258 times by 2 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('<')
c == QLatin1Char('<')Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 160068 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
5-160068
4039 input = InpLt;-
4040 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
5
4041 input = InpUnknown;-
4042 }
executed 160068 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
160068
4043 state = table[state][input];-
4044-
4045 switch (state) {-
4046 case
executed 13272 times by 5 tests: case Dq:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dq:
executed 13272 times by 5 tests: case Dq:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13272
4047 case
executed 77 times by 3 tests: case Sq:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
Sq:
executed 77 times by 3 tests: case Sq:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
77
4048 stringClear();-
4049 next();-
4050 break;
executed 13349 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13349
4051 case
executed 257 times by 2 tests: case DqRef:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
DqRef:
executed 257 times by 2 tests: case DqRef:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
257
4052 case
executed 1 time by 1 test: case SqRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
SqRef:
executed 1 time by 1 test: case SqRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4053 parseReference_context = InAttributeValue;-
4054 if (!parseReference()
!parseReference()Description
TRUEevaluated 135 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 123 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
123-135
4055 parseFailed(&QXmlSimpleReaderPrivate::parseAttValue, state);-
4056 return
executed 135 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 135 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
135
4057 }-
4058 break;
executed 123 times by 2 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
123
4059 case
executed 159958 times by 5 tests: case DqC:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
DqC:
executed 159958 times by 5 tests: case DqC:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
159958
4060 case
executed 253 times by 3 tests: case SqC:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
SqC:
executed 253 times by 3 tests: case SqC:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
253
4061 stringAddC();-
4062 next();-
4063 break;
executed 160211 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
160211
4064 case
executed 13332 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 13332 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13332
4065 next();-
4066 break;
executed 13332 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13332
4067 }-
4068 }
executed 187021 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
187021
4069 return
never executed: return false;
false;
never executed: return false;
0
4070}-
4071-
4072-
4073-
4074-
4075-
4076-
4077-
4078bool QXmlSimpleReaderPrivate::parseElementDecl()-
4079{-
4080 const signed char Init = 0;-
4081 const signed char Elem = 1;-
4082 const signed char Ws1 = 2;-
4083 const signed char Nam = 3;-
4084 const signed char Ws2 = 4;-
4085 const signed char Empty = 5;-
4086 const signed char Any = 6;-
4087 const signed char Cont = 7;-
4088 const signed char Mix = 8;-
4089 const signed char Mix2 = 9;-
4090 const signed char Mix3 = 10;-
4091 const signed char MixN1 = 11;-
4092 const signed char MixN2 = 12;-
4093 const signed char MixN3 = 13;-
4094 const signed char MixN4 = 14;-
4095 const signed char Cp = 15;-
4096 const signed char Cp2 = 16;-
4097 const signed char WsD = 17;-
4098 const signed char Done = 18;-
4099-
4100 const signed char InpWs = 0;-
4101 const signed char InpGt = 1;-
4102 const signed char InpPipe = 2;-
4103 const signed char InpOp = 3;-
4104 const signed char InpCp = 4;-
4105 const signed char InpHash = 5;-
4106 const signed char InpQm = 6;-
4107 const signed char InpAst = 7;-
4108 const signed char InpPlus = 8;-
4109 const signed char InpA = 9;-
4110 const signed char InpE = 10;-
4111 const signed char InpL = 11;-
4112 const signed char InpUnknown = 12;-
4113-
4114 static const signed char table[18][13] = {-
4115-
4116 { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, Elem, -1 },-
4117 { Ws1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
4118 { -1, -1, -1, -1, -1, -1, -1, -1, -1, Nam, Nam, Nam, Nam },-
4119 { Ws2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
4120 { -1, -1, -1, Cont, -1, -1, -1, -1, -1, Any, Empty, -1, -1 },-
4121 { WsD, Done, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
4122 { WsD, Done, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
4123 { -1, -1, -1, Cp, Cp, Mix, -1, -1, -1, Cp, Cp, Cp, Cp },-
4124 { Mix2, -1, MixN1, -1, Mix3, -1, -1, -1, -1, -1, -1, -1, -1 },-
4125 { -1, -1, MixN1, -1, Mix3, -1, -1, -1, -1, -1, -1, -1, -1 },-
4126 { WsD, Done, -1, -1, -1, -1, -1, WsD, -1, -1, -1, -1, -1 },-
4127 { -1, -1, -1, -1, -1, -1, -1, -1, -1, MixN2, MixN2, MixN2, MixN2 },-
4128 { MixN3, -1, MixN1, -1, MixN4, -1, -1, -1, -1, -1, -1, -1, -1 },-
4129 { -1, -1, MixN1, -1, MixN4, -1, -1, -1, -1, -1, -1, -1, -1 },-
4130 { -1, -1, -1, -1, -1, -1, -1, WsD, -1, -1, -1, -1, -1 },-
4131 { WsD, Done, -1, -1, -1, -1, Cp2, Cp2, Cp2, -1, -1, -1, -1 },-
4132 { WsD, Done, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },-
4133 { -1, Done, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }-
4134 };-
4135 signed char state;-
4136 signed char input;-
4137-
4138 if (parseStack==0
parseStack==0Description
TRUEevaluated 218 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9563 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1364 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8199 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
218-9563
4139 state = Init;-
4140 }
executed 1582 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
1582
4141 state = parseStack->pop().state;-
4142-
4143-
4144-
4145 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 6984 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1215 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1215-6984
4146 ParseFunction function = parseStack->top().function;-
4147 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 1242 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5742 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1242-5742
4148 parseStack->pop();-
4149-
4150-
4151-
4152 }
executed 1242 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1242
4153 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 2455 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4529 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2455-4529
4154 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4155 return
executed 2455 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2455 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2455
4156 }-
4157 }
executed 4529 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
4529
4158 }
executed 5744 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
5744
4159-
4160 for (;;) {-
4161 switch (state) {-
4162 case
executed 1561 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 1561 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
4163 return
executed 1561 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 1561 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
4164 case
executed 12 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 12 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4165 reportParseError(QLatin1String("unexpected character"));-
4166 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4167 }-
4168-
4169 if (atEnd()
atEnd()Description
TRUEevaluated 1215 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12237 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1215-12237
4170 unexpectedEof(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4171 return
executed 1215 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1215 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1215
4172 }-
4173 if (is_S(c)
is_S(c)Description
TRUEevaluated 3168 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9069 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3168-9069
4174 input = InpWs;-
4175 }
executed 3168 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 1561 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 7508 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1561-7508
4176 input = InpGt;-
4177 }
executed 1561 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('|')
c == QLatin1Char('|')Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 7496 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
12-7496
4178 input = InpPipe;-
4179 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('(')
c == QLatin1Char('(')Description
TRUEevaluated 1448 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6048 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
12-6048
4180 input = InpOp;-
4181 }
executed 1448 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char(')')
c == QLatin1Char(')')Description
TRUEevaluated 1247 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4801 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1247-4801
4182 input = InpCp;-
4183 }
executed 1247 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('#')
c == QLatin1Char('#')Description
TRUEevaluated 1247 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3554 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1247-3554
4184 input = InpHash;-
4185 }
executed 1247 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3551 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-3551
4186 input = InpQm;-
4187 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('*')
c == QLatin1Char('*')Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3519 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-3519
4188 input = InpAst;-
4189 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('+')
c == QLatin1Char('+')Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3507 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
12-3507
4190 input = InpPlus;-
4191 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('A')
c == QLatin1Char('A')Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3477 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
12-3477
4192 input = InpA;-
4193 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('E')
c == QLatin1Char('E')Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3373 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
30-3373
4194 input = InpE;-
4195 }
executed 104 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('L')
c == QLatin1Char('L')Description
TRUEevaluated 1582 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1791 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
104-1791
4196 input = InpL;-
4197 }
executed 1582 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
1582
4198 input = InpUnknown;-
4199 }
executed 1791 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1791
4200 state = table[state][input];-
4201-
4202 switch (state) {-
4203 case
executed 1582 times by 1 test: case Elem:
Executed by:
  • tst_qxmlsimplereader - unknown status
Elem:
executed 1582 times by 1 test: case Elem:
Executed by:
  • tst_qxmlsimplereader - unknown status
1582
4204 parseString_s = QLatin1String("LEMENT");-
4205 if (!parseString()
!parseString()Description
TRUEevaluated 1199 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 383 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
383-1199
4206 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4207 return
executed 1199 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1199 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1199
4208 }-
4209 break;
executed 383 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
383
4210 case
executed 1582 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws1:
executed 1582 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
1582
4211 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 465 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1117 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
465-1117
4212 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4213 return
executed 465 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 465 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
465
4214 }-
4215 break;
executed 1117 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1117
4216 case
executed 1582 times by 1 test: case Nam:
Executed by:
  • tst_qxmlsimplereader - unknown status
Nam:
executed 1582 times by 1 test: case Nam:
Executed by:
  • tst_qxmlsimplereader - unknown status
1582
4217 parseName_useRef = false;-
4218 if (!parseName()
!parseName()Description
TRUEevaluated 961 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 621 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
621-961
4219 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4220 return
executed 961 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 961 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
961
4221 }-
4222 break;
executed 621 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
621
4223 case
executed 1581 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws2:
executed 1581 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
1581
4224 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 254 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1327 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
254-1327
4225 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4226 return
executed 254 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 254 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
254
4227 }-
4228 break;
executed 1327 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1327
4229 case
executed 104 times by 1 test: case Empty:
Executed by:
  • tst_qxmlsimplereader - unknown status
Empty:
executed 104 times by 1 test: case Empty:
Executed by:
  • tst_qxmlsimplereader - unknown status
104
4230 parseString_s = QLatin1String("EMPTY");-
4231 if (!parseString()
!parseString()Description
TRUEevaluated 65 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 39 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
39-65
4232 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4233 return
executed 65 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 65 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
65
4234 }-
4235 break;
executed 39 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
39
4236 case
executed 30 times by 1 test: case Any:
Executed by:
  • tst_qxmlsimplereader - unknown status
Any:
executed 30 times by 1 test: case Any:
Executed by:
  • tst_qxmlsimplereader - unknown status
30
4237 parseString_s = QLatin1String("ANY");-
4238 if (!parseString()
!parseString()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-16
4239 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4240 return
executed 16 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 16 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
16
4241 }-
4242 break;
executed 14 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
14
4243 case
executed 1444 times by 1 test: case Cont:
Executed by:
  • tst_qxmlsimplereader - unknown status
Cont:
executed 1444 times by 1 test: case Cont:
Executed by:
  • tst_qxmlsimplereader - unknown status
1444
4244 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 513 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 931 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
513-931
4245 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4246 return
executed 513 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 513 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
513
4247 }-
4248 break;
executed 931 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
931
4249 case
executed 1247 times by 1 test: case Mix:
Executed by:
  • tst_qxmlsimplereader - unknown status
Mix:
executed 1247 times by 1 test: case Mix:
Executed by:
  • tst_qxmlsimplereader - unknown status
1247
4250 parseString_s = QLatin1String("#PCDATA");-
4251 if (!parseString()
!parseString()Description
TRUEevaluated 964 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 283 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
283-964
4252 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4253 return
executed 964 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 964 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
964
4254 }-
4255 break;
executed 283 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
283
4256 case
executed 2 times by 1 test: case Mix2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Mix2:
executed 2 times by 1 test: case Mix2:
Executed by:
  • tst_qxmlsimplereader - unknown status
2
4257 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-2
4258 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4259 return
never executed: return false;
false;
never executed: return false;
0
4260 }-
4261 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
4262 case
executed 1235 times by 1 test: case Mix3:
Executed by:
  • tst_qxmlsimplereader - unknown status
Mix3:
executed 1235 times by 1 test: case Mix3:
Executed by:
  • tst_qxmlsimplereader - unknown status
1235
4263 next();-
4264 break;
executed 1235 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1235
4265 case
executed 12 times by 1 test: case MixN1:
Executed by:
  • tst_qxmlsimplereader - unknown status
MixN1:
executed 12 times by 1 test: case MixN1:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4266 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
5-7
4267 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4268 return
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
4269 }-
4270 break;
executed 7 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
7
4271 case
executed 11 times by 1 test: case MixN2:
Executed by:
  • tst_qxmlsimplereader - unknown status
MixN2:
executed 11 times by 1 test: case MixN2:
Executed by:
  • tst_qxmlsimplereader - unknown status
11
4272 parseName_useRef = false;-
4273 if (!parseName()
!parseName()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-10
4274 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4275 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4276 }-
4277 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
4278 case
never executed: case MixN3:
MixN3:
never executed: case MixN3:
0
4279 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
4280 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4281 return
never executed: return false;
false;
never executed: return false;
0
4282 }-
4283 break;
never executed: break;
0
4284 case
executed 10 times by 1 test: case MixN4:
Executed by:
  • tst_qxmlsimplereader - unknown status
MixN4:
executed 10 times by 1 test: case MixN4:
Executed by:
  • tst_qxmlsimplereader - unknown status
10
4285 next();-
4286 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
4287 case
executed 197 times by 1 test: case Cp:
Executed by:
  • tst_qxmlsimplereader - unknown status
Cp:
executed 197 times by 1 test: case Cp:
Executed by:
  • tst_qxmlsimplereader - unknown status
197
4288 if (!parseChoiceSeq()
!parseChoiceSeq()Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 103 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
94-103
4289 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4290 return
executed 94 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 94 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
94
4291 }-
4292 break;
executed 103 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
103
4293 case
executed 32 times by 1 test: case Cp2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Cp2:
executed 32 times by 1 test: case Cp2:
Executed by:
  • tst_qxmlsimplereader - unknown status
32
4294 next();-
4295 break;
executed 32 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
32
4296 case
executed 13 times by 1 test: case WsD:
Executed by:
  • tst_qxmlsimplereader - unknown status
WsD:
executed 13 times by 1 test: case WsD:
Executed by:
  • tst_qxmlsimplereader - unknown status
13
4297 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-12
4298 parseFailed(&QXmlSimpleReaderPrivate::parseElementDecl, state);-
4299 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4300 }-
4301 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4302 case
executed 1561 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 1561 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
4303 next();-
4304 break;
executed 1561 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1561
4305 }-
4306 }
executed 7699 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
7699
4307 return
never executed: return false;
false;
never executed: return false;
0
4308}-
4309-
4310-
4311-
4312-
4313-
4314-
4315-
4316bool QXmlSimpleReaderPrivate::parseNotationDecl()-
4317{-
4318 const signed char Init = 0;-
4319 const signed char Not = 1;-
4320 const signed char Ws1 = 2;-
4321 const signed char Nam = 3;-
4322 const signed char Ws2 = 4;-
4323 const signed char ExtID = 5;-
4324 const signed char ExtIDR = 6;-
4325 const signed char Ws3 = 7;-
4326 const signed char Done = 8;-
4327-
4328 const signed char InpWs = 0;-
4329 const signed char InpGt = 1;-
4330 const signed char InpN = 2;-
4331 const signed char InpUnknown = 3;-
4332-
4333 static const signed char table[8][4] = {-
4334-
4335 { -1, -1, Not, -1 },-
4336 { Ws1, -1, -1, -1 },-
4337 { -1, -1, Nam, Nam },-
4338 { Ws2, Done, -1, -1 },-
4339 { -1, Done, ExtID, ExtID },-
4340 { Ws3, Done, -1, -1 },-
4341 { Ws3, Done, -1, -1 },-
4342 { -1, Done, -1, -1 }-
4343 };-
4344 signed char state;-
4345 signed char input;-
4346-
4347 if (parseStack==0
parseStack==0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 536 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 491 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
9-536
4348 state = Init;-
4349 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
54
4350 state = parseStack->pop().state;-
4351-
4352-
4353-
4354 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 472 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
19-472
4355 ParseFunction function = parseStack->top().function;-
4356 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 442 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
30-442
4357 parseStack->pop();-
4358-
4359-
4360-
4361 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
30
4362 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 333 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 139 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
139-333
4363 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4364 return
executed 333 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 333 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
333
4365 }-
4366 }
executed 139 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
139
4367 }
executed 158 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
158
4368-
4369 for (;;) {-
4370 switch (state) {-
4371 case
executed 54 times by 1 test: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
ExtID:
executed 54 times by 1 test: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4372-
4373 if (dtdHnd
dtdHndDescription
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-54
4374 if (!dtdHnd->notationDecl(name(), publicId, systemId)
!dtdHnd->notat...cId, systemId)Description
TRUEnever evaluated
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-54
4375 reportParseError(dtdHnd->errorString());-
4376 return
never executed: return false;
false;
never executed: return false;
0
4377 }-
4378 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4379 state = ExtIDR;-
4380 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4381 case
executed 54 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 54 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4382 return
executed 54 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 54 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4383 case
never executed: case -1:
-1:
never executed: case -1:
0
4384-
4385 reportParseError(QLatin1String("unexpected character"));-
4386 return
never executed: return false;
false;
never executed: return false;
0
4387 }-
4388-
4389 if (atEnd()
atEnd()Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 324 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
19-324
4390 unexpectedEof(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4391 return
executed 19 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 19 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
19
4392 }-
4393 if (is_S(c)
is_S(c)Description
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 216 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
108-216
4394 input = InpWs;-
4395 }
executed 108 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 162 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
54-162
4396 input = InpGt;-
4397 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('N')
c == QLatin1Char('N')Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
54-108
4398 input = InpN;-
4399 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
54
4400 input = InpUnknown;-
4401 }
executed 108 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
108
4402 state = table[state][input];-
4403-
4404 switch (state) {-
4405 case
executed 54 times by 1 test: case Not:
Executed by:
  • tst_qxmlsimplereader - unknown status
Not:
executed 54 times by 1 test: case Not:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4406 parseString_s = QLatin1String("NOTATION");-
4407 if (!parseString()
!parseString()Description
TRUEevaluated 43 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
11-43
4408 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4409 return
executed 43 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 43 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
43
4410 }-
4411 break;
executed 11 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
11
4412 case
executed 54 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws1:
executed 54 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4413 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
16-38
4414 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4415 return
executed 16 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 16 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
16
4416 }-
4417 break;
executed 38 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
38
4418 case
executed 54 times by 1 test: case Nam:
Executed by:
  • tst_qxmlsimplereader - unknown status
Nam:
executed 54 times by 1 test: case Nam:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4419 parseName_useRef = false;-
4420 if (!parseName()
!parseName()Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 33 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
21-33
4421 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4422 return
executed 21 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 21 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
21
4423 }-
4424 break;
executed 33 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
33
4425 case
executed 54 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws2:
executed 54 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4426 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-40
4427 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4428 return
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
14
4429 }-
4430 break;
executed 40 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
40
4431 case
executed 54 times by 1 test: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
ExtID:
executed 54 times by 1 test: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4432 case
never executed: case ExtIDR:
ExtIDR:
never executed: case ExtIDR:
0
4433 parseExternalID_allowPublicID = true;-
4434 if (!parseExternalID()
!parseExternalID()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
9-45
4435 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4436 return
executed 45 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 45 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
45
4437 }-
4438 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
4439 case
never executed: case Ws3:
Ws3:
never executed: case Ws3:
0
4440 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
4441 parseFailed(&QXmlSimpleReaderPrivate::parseNotationDecl, state);-
4442 return
never executed: return false;
false;
never executed: return false;
0
4443 }-
4444 break;
never executed: break;
0
4445 case
executed 54 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 54 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4446 next();-
4447 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4448 }-
4449 }
executed 185 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
185
4450 return
never executed: return false;
false;
never executed: return false;
0
4451}-
4452-
4453-
4454-
4455-
4456-
4457-
4458-
4459bool QXmlSimpleReaderPrivate::parseChoiceSeq()-
4460{-
4461 const signed char Init = 0;-
4462 const signed char Ws1 = 1;-
4463 const signed char CoS = 2;-
4464 const signed char Ws2 = 3;-
4465 const signed char More = 4;-
4466 const signed char Name = 5;-
4467 const signed char Done = 6;-
4468-
4469 const signed char InpWs = 0;-
4470 const signed char InpOp = 1;-
4471 const signed char InpCp = 2;-
4472 const signed char InpQm = 3;-
4473 const signed char InpAst = 4;-
4474 const signed char InpPlus = 5;-
4475 const signed char InpPipe = 6;-
4476 const signed char InpComm = 7;-
4477 const signed char InpUnknown = 8;-
4478-
4479 static const signed char table[6][9] = {-
4480-
4481 { -1, Ws1, -1, -1, -1, -1, -1, -1, Name },-
4482 { -1, CoS, -1, -1, -1, -1, -1, -1, CoS },-
4483 { Ws2, -1, Done, Ws2, Ws2, Ws2, More, More, -1 },-
4484 { -1, -1, Done, -1, -1, -1, More, More, -1 },-
4485 { -1, Ws1, -1, -1, -1, -1, -1, -1, Name },-
4486 { Ws2, -1, Done, Ws2, Ws2, Ws2, More, More, -1 }-
4487 };-
4488 signed char state;-
4489 signed char input;-
4490-
4491 if (parseStack==0
parseStack==0Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 294 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 162 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
41-294
4492 state = Init;-
4493 }
executed 203 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
203
4494 state = parseStack->pop().state;-
4495-
4496-
4497-
4498 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 132 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-132
4499 ParseFunction function = parseStack->top().function;-
4500 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 59 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 73 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
59-73
4501 parseStack->pop();-
4502-
4503-
4504-
4505 }
executed 59 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
59
4506 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-118
4507 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4508 return
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
14
4509 }-
4510 }
executed 118 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
118
4511 }
executed 118 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
118
4512-
4513 for (;;) {-
4514 switch (state) {-
4515 case
executed 193 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 193 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
193
4516 return
executed 193 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 193 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
193
4517 case
executed 4 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 4 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
4
4518-
4519 reportParseError(QLatin1String("unexpected character"));-
4520 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
4521 }-
4522-
4523 if (atEnd()
atEnd()Description
TRUEnever evaluated
FALSEevaluated 623 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-623
4524 unexpectedEof(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4525 return
never executed: return false;
false;
never executed: return false;
0
4526 }-
4527 if (is_S(c)
is_S(c)Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 599 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
24-599
4528 input = InpWs;-
4529 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('(')
c == QLatin1Char('(')Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 593 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
6-593
4530 input = InpOp;-
4531 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char(')')
c == QLatin1Char(')')Description
TRUEevaluated 194 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 399 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
6-399
4532 input = InpCp;-
4533 }
executed 194 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('?')
c == QLatin1Char('?')Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 385 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-385
4534 input = InpQm;-
4535 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('*')
c == QLatin1Char('*')Description
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 303 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-303
4536 input = InpAst;-
4537 }
executed 82 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('+')
c == QLatin1Char('+')Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 301 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-301
4538 input = InpPlus;-
4539 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('|')
c == QLatin1Char('|')Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 278 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-278
4540 input = InpPipe;-
4541 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char(',')
c == QLatin1Char(',')Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 252 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
23-252
4542 input = InpComm;-
4543 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
26
4544 input = InpUnknown;-
4545 }
executed 252 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
252
4546 state = table[state][input];-
4547-
4548 switch (state) {-
4549 case
executed 6 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws1:
executed 6 times by 1 test: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4550 if (!next_eat_ws()
!next_eat_ws()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-6
4551 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4552 return
never executed: return false;
false;
never executed: return false;
0
4553 }-
4554 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4555 case
executed 6 times by 1 test: case CoS:
Executed by:
  • tst_qxmlsimplereader - unknown status
CoS:
executed 6 times by 1 test: case CoS:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4556 if (!parseChoiceSeq()
!parseChoiceSeq()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-5
4557 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4558 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4559 }-
4560 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
4561 case
executed 120 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws2:
executed 120 times by 1 test: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
120
4562 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 82 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
38-82
4563 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4564 return
executed 38 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 38 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
38
4565 }-
4566 break;
executed 82 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
82
4567 case
executed 49 times by 1 test: case More:
Executed by:
  • tst_qxmlsimplereader - unknown status
More:
executed 49 times by 1 test: case More:
Executed by:
  • tst_qxmlsimplereader - unknown status
49
4568 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
17-32
4569 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4570 return
executed 17 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 17 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
17
4571 }-
4572 break;
executed 32 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
32
4573 case
executed 245 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 245 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
245
4574 parseName_useRef = false;-
4575 if (!parseName()
!parseName()Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 177 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
68-177
4576 parseFailed(&QXmlSimpleReaderPrivate::parseChoiceSeq, state);-
4577 return
executed 68 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 68 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
68
4578 }-
4579 break;
executed 177 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
177
4580 case
executed 193 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 193 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
193
4581 next();-
4582 break;
executed 193 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
193
4583 }-
4584 }
executed 499 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
499
4585 return
never executed: return false;
false;
never executed: return false;
0
4586}-
4587-
4588bool QXmlSimpleReaderPrivate::isExpandedEntityValueTooLarge(QString *errorMessage)-
4589{-
4590 QString entityNameBuffer;-
4591-
4592-
4593 for (QMap<QString,QString>::const_iterator toSearchIt = entities.constBegin();-
4594 toSearchIt != entities.constEnd()
toSearchIt != ...ies.constEnd()Description
TRUEevaluated 145 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 321 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
;
145-321
4595 ++toSearchIt) {-
4596 const QString &toSearch = toSearchIt.key();-
4597-
4598-
4599 if (!literalEntitySizes.contains(toSearch)
!literalEntity...ains(toSearch)Description
TRUEevaluated 90 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
55-90
4600-
4601 QString leftOvers = entities.value(toSearch);-
4602-
4603 for (QMap<QString,QString>::const_iterator referencedIt = entities.constBegin();-
4604 referencedIt != entities.constEnd()
referencedIt !...ies.constEnd()Description
TRUEevaluated 145 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 90 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
;
90-145
4605 ++referencedIt) {-
4606 const QString &entityName = referencedIt.key();-
4607-
4608 for (int i = 0; i < leftOvers.size()
i < leftOvers.size()Description
TRUEevaluated 350 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& i != -1
i != -1Description
TRUEevaluated 207 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 143 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
; ) {
2-350
4609 entityNameBuffer = QLatin1Char('&') + entityName + QLatin1Char(';');-
4610-
4611 i = leftOvers.indexOf(entityNameBuffer, i);-
4612 if (i != -1
i != -1Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 143 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
64-143
4613 leftOvers.remove(i, entityName.size() + 2);-
4614-
4615 ++referencesToOtherEntities[toSearch][entityName];-
4616 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
64
4617 }
executed 207 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
207
4618 }
executed 145 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
145
4619 literalEntitySizes[toSearch] = leftOvers.size();-
4620 }
executed 90 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
90
4621 }
executed 145 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
145
4622-
4623 for (QHash<QString, QHash<QString, int> >::const_iterator entityIt = referencesToOtherEntities.constBegin();-
4624 entityIt != referencesToOtherEntities.constEnd()
entityIt != re...ies.constEnd()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 320 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
;
1-320
4625 ++entityIt) {-
4626 const QString &entity = entityIt.key();-
4627-
4628 QHash<QString, int>::iterator expandedIt = expandedSizes.find(entity);-
4629 if (expandedIt == expandedSizes.end()
expandedIt == ...dedSizes.end()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1
4630 expandedIt = expandedSizes.insert(entity, literalEntitySizes.value(entity));-
4631 for (QHash<QString, int>::const_iterator referenceIt = entityIt->constBegin();-
4632 referenceIt != entityIt->constEnd()
referenceIt !=...It->constEnd()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
;
1
4633 ++referenceIt) {-
4634 const QString &referenceTo = referenceIt.key();-
4635 const int references = referencesToOtherEntities.value(entity).value(referenceTo);-
4636-
4637 *expandedIt += expandedSizes.value(referenceTo) * references + literalEntitySizes.value(referenceTo) * references;-
4638 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4639-
4640 if (*
*expandedIt > ...CharacterLimitDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
expandedIt > entityCharacterLimit
*expandedIt > ...CharacterLimitDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1
4641 if (errorMessage
errorMessageDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1
4642 *errorMessage = QString::fromLatin1("The XML entity \"%1\" expands to a string that is too large to process (%2 characters > %3).")-
4643 .arg(entity, QString::number(*expandedIt), QString::number(entityCharacterLimit));-
4644 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4645 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4646 }-
4647 }
never executed: end of block
0
4648 }
never executed: end of block
0
4649 return
executed 320 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 320 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
320
4650}-
4651-
4652-
4653-
4654-
4655-
4656-
4657-
4658bool QXmlSimpleReaderPrivate::parseEntityDecl()-
4659{-
4660 const signed char Init = 0;-
4661 const signed char Ent = 1;-
4662 const signed char Ws1 = 2;-
4663 const signed char Name = 3;-
4664 const signed char Ws2 = 4;-
4665 const signed char EValue = 5;-
4666 const signed char EValueR = 6;-
4667 const signed char ExtID = 7;-
4668 const signed char Ws3 = 8;-
4669 const signed char Ndata = 9;-
4670 const signed char Ws4 = 10;-
4671 const signed char NNam = 11;-
4672 const signed char NNamR = 12;-
4673 const signed char PEDec = 13;-
4674 const signed char Ws6 = 14;-
4675 const signed char PENam = 15;-
4676 const signed char Ws7 = 16;-
4677 const signed char PEVal = 17;-
4678 const signed char PEValR = 18;-
4679 const signed char PEEID = 19;-
4680 const signed char PEEIDR = 20;-
4681 const signed char WsE = 21;-
4682 const signed char Done = 22;-
4683 const signed char EDDone = 23;-
4684-
4685 const signed char InpWs = 0;-
4686 const signed char InpPer = 1;-
4687 const signed char InpQuot = 2;-
4688 const signed char InpGt = 3;-
4689 const signed char InpN = 4;-
4690 const signed char InpUnknown = 5;-
4691-
4692 static const signed char table[22][6] = {-
4693-
4694 { -1, -1, -1, -1, Ent, -1 },-
4695 { Ws1, -1, -1, -1, -1, -1 },-
4696 { -1, PEDec, -1, -1, Name, Name },-
4697 { Ws2, -1, -1, -1, -1, -1 },-
4698 { -1, -1, EValue, -1, -1, ExtID },-
4699 { WsE, -1, -1, Done, -1, -1 },-
4700 { WsE, -1, -1, Done, -1, -1 },-
4701 { Ws3, -1, -1, EDDone,-1, -1 },-
4702 { -1, -1, -1, EDDone,Ndata, -1 },-
4703 { Ws4, -1, -1, -1, -1, -1 },-
4704 { -1, -1, -1, -1, NNam, NNam },-
4705 { WsE, -1, -1, Done, -1, -1 },-
4706 { WsE, -1, -1, Done, -1, -1 },-
4707 { Ws6, -1, -1, -1, -1, -1 },-
4708 { -1, -1, -1, -1, PENam, PENam },-
4709 { Ws7, -1, -1, -1, -1, -1 },-
4710 { -1, -1, PEVal, -1, -1, PEEID },-
4711 { WsE, -1, -1, Done, -1, -1 },-
4712 { WsE, -1, -1, Done, -1, -1 },-
4713 { WsE, -1, -1, Done, -1, -1 },-
4714 { WsE, -1, -1, Done, -1, -1 },-
4715 { -1, -1, -1, Done, -1, -1 }-
4716 };-
4717 signed char state;-
4718 signed char input;-
4719-
4720 if (parseStack==0
parseStack==0Description
TRUEevaluated 145 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3893 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 522 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 3371 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
145-3893
4721 state = Init;-
4722 }
executed 667 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
667
4723 state = parseStack->pop().state;-
4724-
4725-
4726-
4727 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 3026 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 345 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
345-3026
4728 ParseFunction function = parseStack->top().function;-
4729 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 431 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2595 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
431-2595
4730 parseStack->pop();-
4731-
4732-
4733-
4734 }
executed 431 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
431
4735 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 1549 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1477 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1477-1549
4736 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4737 return
executed 1549 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1549 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1549
4738 }-
4739 }
executed 1477 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1477
4740 }
executed 1822 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1822
4741-
4742 for (;;) {-
4743 switch (state) {-
4744 case
executed 341 times by 1 test: case EValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
EValue:
executed 341 times by 1 test: case EValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
341
4745 if ( !entityExist(name())
!entityExist(name())Description
TRUEevaluated 321 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-321
4746 QString errorMessage;-
4747 if (isExpandedEntityValueTooLarge(&errorMessage)
isExpandedEnti...&errorMessage)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 320 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1-320
4748 reportParseError(errorMessage);-
4749 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
4750 }-
4751-
4752 entities.insert(name(), string());-
4753 if (declHnd
declHndDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-320
4754 if (!declHnd->internalEntityDecl(name(), string())
!declHnd->inte...e(), string())Description
TRUEnever evaluated
FALSEevaluated 320 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-320
4755 reportParseError(declHnd->errorString());-
4756 return
never executed: return false;
false;
never executed: return false;
0
4757 }-
4758 }
executed 320 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
320
4759 }
executed 320 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
320
4760 state = EValueR;-
4761 break;
executed 340 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
340
4762 case
executed 12 times by 1 test: case NNam:
Executed by:
  • tst_qxmlsimplereader - unknown status
NNam:
executed 12 times by 1 test: case NNam:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4763 if ( !entityExist(name())
!entityExist(name())Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-12
4764 externEntities.insert(name(), QXmlSimpleReaderPrivate::ExternEntity(publicId, systemId, ref()));-
4765 if (dtdHnd
dtdHndDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-12
4766 if (!dtdHnd->unparsedEntityDecl(name(), publicId, systemId, ref())
!dtdHnd->unpar...stemId, ref())Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-12
4767 reportParseError(declHnd->errorString());-
4768 return
never executed: return false;
false;
never executed: return false;
0
4769 }-
4770 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4771 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4772 state = NNamR;-
4773 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4774 case
executed 69 times by 1 test: case PEVal:
Executed by:
  • tst_qxmlsimplereader - unknown status
PEVal:
executed 69 times by 1 test: case PEVal:
Executed by:
  • tst_qxmlsimplereader - unknown status
69
4775 if ( !entityExist(name())
!entityExist(name())Description
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-69
4776 parameterEntities.insert(name(), string());-
4777 if (declHnd
declHndDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-69
4778 if (!declHnd->internalEntityDecl(QLatin1Char('%') + name(), string())
!declHnd->inte...e(), string())Description
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-69
4779 reportParseError(declHnd->errorString());-
4780 return
never executed: return false;
false;
never executed: return false;
0
4781 }-
4782 }
executed 69 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
69
4783 }
executed 69 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
69
4784 state = PEValR;-
4785 break;
executed 69 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
69
4786 case
executed 62 times by 1 test: case PEEID:
Executed by:
  • tst_qxmlsimplereader - unknown status
PEEID:
executed 62 times by 1 test: case PEEID:
Executed by:
  • tst_qxmlsimplereader - unknown status
62
4787 if ( !entityExist(name())
!entityExist(name())Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-62
4788 externParameterEntities.insert(name(), QXmlSimpleReaderPrivate::ExternParameterEntity(publicId, systemId));-
4789 if (declHnd
declHndDescription
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-62
4790 if (!declHnd->externalEntityDecl(QLatin1Char('%') + name(), publicId, systemId)
!declHnd->exte...cId, systemId)Description
TRUEnever evaluated
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-62
4791 reportParseError(declHnd->errorString());-
4792 return
never executed: return false;
false;
never executed: return false;
0
4793 }-
4794 }
executed 62 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
62
4795 }
executed 62 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
62
4796 state = PEEIDR;-
4797 break;
executed 62 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
62
4798 case
executed 172 times by 2 tests: case EDDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EDDone:
executed 172 times by 2 tests: case EDDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
172
4799 if ( !entityExist(name())
!entityExist(name())Description
TRUEevaluated 172 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
) {
0-172
4800 externEntities.insert(name(), QXmlSimpleReaderPrivate::ExternEntity(publicId, systemId, QString()));-
4801 if (declHnd
declHndDescription
TRUEevaluated 153 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
) {
19-153
4802 if (!declHnd->externalEntityDecl(name(), publicId, systemId)
!declHnd->exte...cId, systemId)Description
TRUEnever evaluated
FALSEevaluated 153 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-153
4803 reportParseError(declHnd->errorString());-
4804 return
never executed: return false;
false;
never executed: return false;
0
4805 }-
4806 }
executed 153 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
153
4807 }
executed 172 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
172
4808 return
executed 172 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 172 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
172
4809 case
executed 480 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 480 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
480
4810 return
executed 480 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 480 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
480
4811 case
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4812-
4813 reportParseError(QLatin1String("letter is expected"));-
4814 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4815 }-
4816-
4817 if (atEnd()
atEnd()Description
TRUEevaluated 345 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4302 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
345-4302
4818 unexpectedEof(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4819 return
executed 345 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 345 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
345
4820 }-
4821 if (is_S(c)
is_S(c)Description
TRUEevaluated 1490 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2812 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1490-2812
4822 input = InpWs;-
4823 }
executed 1490 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('%')
c == QLatin1Char('%')Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2678 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
134-2678
4824 input = InpPer;-
4825 }
executed 134 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('"')
c == QLatin1Char('"')Description
TRUEevaluated 415 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2263 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
|| c == QLatin1Char('\'')
c == QLatin1Char('\'')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2262 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1-2263
4826 input = InpQuot;-
4827 }
executed 416 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 652 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1610 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
416-1610
4828 input = InpGt;-
4829 }
executed 652 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('N')
c == QLatin1Char('N')Description
TRUEevaluated 682 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 928 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
652-928
4830 input = InpN;-
4831 }
executed 682 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
682
4832 input = InpUnknown;-
4833 }
executed 928 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
928
4834 state = table[state][input];-
4835-
4836 switch (state) {-
4837 case
executed 667 times by 2 tests: case Ent:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ent:
executed 667 times by 2 tests: case Ent:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
667
4838 parseString_s = QLatin1String("NTITY");-
4839 if (!parseString()
!parseString()Description
TRUEevaluated 427 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 240 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
240-427
4840 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4841 return
executed 427 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 427 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
427
4842 }-
4843 break;
executed 240 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
240
4844 case
executed 666 times by 2 tests: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws1:
executed 666 times by 2 tests: case Ws1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
666
4845 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 162 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 504 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
162-504
4846 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4847 return
executed 162 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 162 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
162
4848 }-
4849 break;
executed 504 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
504
4850 case
executed 533 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name:
executed 533 times by 2 tests: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
533
4851 parseName_useRef = false;-
4852 if (!parseName()
!parseName()Description
TRUEevaluated 145 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 388 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
145-388
4853 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4854 return
executed 145 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 145 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
145
4855 }-
4856 break;
executed 388 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
388
4857 case
executed 531 times by 2 tests: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Ws2:
executed 531 times by 2 tests: case Ws2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
531
4858 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 164 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 367 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
164-367
4859 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4860 return
executed 164 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 164 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
164
4861 }-
4862 break;
executed 367 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
367
4863 case
executed 344 times by 1 test: case EValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
EValue:
executed 344 times by 1 test: case EValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
344
4864 case
never executed: case EValueR:
EValueR:
never executed: case EValueR:
0
4865 if (!parseEntityValue()
!parseEntityValue()Description
TRUEevaluated 207 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 137 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
137-207
4866 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4867 return
executed 207 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 207 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
207
4868 }-
4869 break;
executed 137 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
137
4870 case
executed 187 times by 2 tests: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ExtID:
executed 187 times by 2 tests: case ExtID:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
187
4871 parseExternalID_allowPublicID = false;-
4872 if (!parseExternalID()
!parseExternalID()Description
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
41-146
4873 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4874 return
executed 146 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 146 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
146
4875 }-
4876 break;
executed 41 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
41
4877 case
executed 12 times by 1 test: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws3:
executed 12 times by 1 test: case Ws3:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4878 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-9
4879 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4880 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
4881 }-
4882 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
9
4883 case
executed 12 times by 1 test: case Ndata:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ndata:
executed 12 times by 1 test: case Ndata:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4884 parseString_s = QLatin1String("NDATA");-
4885 if (!parseString()
!parseString()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
6
4886 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4887 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4888 }-
4889 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
4890 case
executed 12 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws4:
executed 12 times by 1 test: case Ws4:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4891 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-8
4892 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4893 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
4894 }-
4895 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
4896 case
executed 12 times by 1 test: case NNam:
Executed by:
  • tst_qxmlsimplereader - unknown status
NNam:
executed 12 times by 1 test: case NNam:
Executed by:
  • tst_qxmlsimplereader - unknown status
12
4897 case
never executed: case NNamR:
NNamR:
never executed: case NNamR:
0
4898 parseName_useRef = true;-
4899 if (!parseName()
!parseName()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-10
4900 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4901 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
4902 }-
4903 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
10
4904 case
executed 133 times by 1 test: case PEDec:
Executed by:
  • tst_qxmlsimplereader - unknown status
PEDec:
executed 133 times by 1 test: case PEDec:
Executed by:
  • tst_qxmlsimplereader - unknown status
133
4905 next();-
4906 break;
executed 133 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
133
4907 case
executed 133 times by 1 test: case Ws6:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws6:
executed 133 times by 1 test: case Ws6:
Executed by:
  • tst_qxmlsimplereader - unknown status
133
4908 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 81 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
52-81
4909 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4910 return
executed 52 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 52 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
52
4911 }-
4912 break;
executed 81 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
81
4913 case
executed 133 times by 1 test: case PENam:
Executed by:
  • tst_qxmlsimplereader - unknown status
PENam:
executed 133 times by 1 test: case PENam:
Executed by:
  • tst_qxmlsimplereader - unknown status
133
4914 parseName_useRef = false;-
4915 if (!parseName()
!parseName()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 115 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
18-115
4916 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4917 return
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 18 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
18
4918 }-
4919 break;
executed 115 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
115
4920 case
executed 133 times by 1 test: case Ws7:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws7:
executed 133 times by 1 test: case Ws7:
Executed by:
  • tst_qxmlsimplereader - unknown status
133
4921 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 87 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
46-87
4922 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4923 return
executed 46 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 46 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
46
4924 }-
4925 break;
executed 87 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
87
4926 case
executed 71 times by 1 test: case PEVal:
Executed by:
  • tst_qxmlsimplereader - unknown status
PEVal:
executed 71 times by 1 test: case PEVal:
Executed by:
  • tst_qxmlsimplereader - unknown status
71
4927 case
never executed: case PEValR:
PEValR:
never executed: case PEValR:
0
4928 if (!parseEntityValue()
!parseEntityValue()Description
TRUEevaluated 49 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
22-49
4929 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4930 return
executed 49 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 49 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
49
4931 }-
4932 break;
executed 22 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
22
4933 case
executed 62 times by 1 test: case PEEID:
Executed by:
  • tst_qxmlsimplereader - unknown status
PEEID:
executed 62 times by 1 test: case PEEID:
Executed by:
  • tst_qxmlsimplereader - unknown status
62
4934 case
never executed: case PEEIDR:
PEEIDR:
never executed: case PEEIDR:
0
4935 parseExternalID_allowPublicID = false;-
4936 if (!parseExternalID()
!parseExternalID()Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
8-54
4937 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4938 return
executed 54 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 54 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
54
4939 }-
4940 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
4941 case
executed 3 times by 1 test: case WsE:
Executed by:
  • tst_qxmlsimplereader - unknown status
WsE:
executed 3 times by 1 test: case WsE:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
4942 if (!eat_ws()
!eat_ws()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-3
4943 parseFailed(&QXmlSimpleReaderPrivate::parseEntityDecl, state);-
4944 return
never executed: return false;
false;
never executed: return false;
0
4945 }-
4946 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
4947 case
executed 172 times by 2 tests: case EDDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
EDDone:
executed 172 times by 2 tests: case EDDone:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
172
4948 next();-
4949 break;
executed 172 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
172
4950 case
executed 480 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 480 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
480
4951 next();-
4952 break;
executed 480 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
480
4953 }-
4954 }
executed 2817 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2817
4955 return
never executed: return false;
false;
never executed: return false;
0
4956}-
4957-
4958-
4959-
4960-
4961bool QXmlSimpleReaderPrivate::parseEntityValue()-
4962{-
4963 const signed char Init = 0;-
4964 const signed char Dq = 1;-
4965 const signed char DqC = 2;-
4966 const signed char DqPER = 3;-
4967 const signed char DqRef = 4;-
4968 const signed char Sq = 5;-
4969 const signed char SqC = 6;-
4970 const signed char SqPER = 7;-
4971 const signed char SqRef = 8;-
4972 const signed char Done = 9;-
4973-
4974 const signed char InpDq = 0;-
4975 const signed char InpSq = 1;-
4976 const signed char InpAmp = 2;-
4977 const signed char InpPer = 3;-
4978 const signed char InpUnknown = 4;-
4979-
4980 static const signed char table[9][5] = {-
4981-
4982 { Dq, Sq, -1, -1, -1 },-
4983 { Done, DqC, DqRef, DqPER, DqC },-
4984 { Done, DqC, DqRef, DqPER, DqC },-
4985 { Done, DqC, DqRef, DqPER, DqC },-
4986 { Done, DqC, DqRef, DqPER, DqC },-
4987 { SqC, Done, SqRef, SqPER, SqC },-
4988 { SqC, Done, SqRef, SqPER, SqC },-
4989 { SqC, Done, SqRef, SqPER, SqC },-
4990 { SqC, Done, SqRef, SqPER, SqC }-
4991 };-
4992 signed char state;-
4993 signed char input;-
4994-
4995 if (parseStack==0
parseStack==0Description
TRUEevaluated 91 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 957 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 324 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 633 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
91-957
4996 state = Init;-
4997 }
executed 415 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
415
4998 state = parseStack->pop().state;-
4999-
5000-
5001-
5002 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 172 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 461 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
172-461
5003 ParseFunction function = parseStack->top().function;-
5004 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 172 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-172
5005 parseStack->pop();-
5006-
5007-
5008-
5009 }
never executed: end of block
0
5010 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 112 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
60-112
5011 parseFailed(&QXmlSimpleReaderPrivate::parseEntityValue, state);-
5012 return
executed 60 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 60 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
60
5013 }-
5014 }
executed 112 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
112
5015 }
executed 573 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
573
5016-
5017 for (;;) {-
5018 switch (state) {-
5019 case
executed 410 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 410 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
410
5020 return
executed 410 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 410 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
410
5021 case
never executed: case -1:
-1:
never executed: case -1:
0
5022-
5023 reportParseError(QLatin1String("letter is expected"));-
5024 return
never executed: return false;
false;
never executed: return false;
0
5025 }-
5026-
5027 if (atEnd()
atEnd()Description
TRUEevaluated 463 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2711 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
463-2711
5028 unexpectedEof(&QXmlSimpleReaderPrivate::parseEntityValue, state);-
5029 return
executed 463 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 463 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
463
5030 }-
5031 if (c == QLatin1Char('"')
c == QLatin1Char('"')Description
TRUEevaluated 824 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1887 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
824-1887
5032 input = InpDq;-
5033 }
executed 824 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('\'')
c == QLatin1Char('\'')Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1877 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-1877
5034 input = InpSq;-
5035 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('&')
c == QLatin1Char('&')Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1535 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-1535
5036 input = InpAmp;-
5037 }
executed 342 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c == QLatin1Char('%')
c == QLatin1Char('%')Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1520 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
15-1520
5038 input = InpPer;-
5039 }
executed 15 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
15
5040 input = InpUnknown;-
5041 }
executed 1520 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1520
5042 state = table[state][input];-
5043-
5044 switch (state) {-
5045 case
executed 414 times by 1 test: case Dq:
Executed by:
  • tst_qxmlsimplereader - unknown status
Dq:
executed 414 times by 1 test: case Dq:
Executed by:
  • tst_qxmlsimplereader - unknown status
414
5046 case
executed 1 time by 1 test: case Sq:
Executed by:
  • tst_qxmlsimplereader - unknown status
Sq:
executed 1 time by 1 test: case Sq:
Executed by:
  • tst_qxmlsimplereader - unknown status
1
5047 stringClear();-
5048 next();-
5049 break;
executed 415 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
415
5050 case
executed 1528 times by 1 test: case DqC:
Executed by:
  • tst_qxmlsimplereader - unknown status
DqC:
executed 1528 times by 1 test: case DqC:
Executed by:
  • tst_qxmlsimplereader - unknown status
1528
5051 case
executed 1 time by 1 test: case SqC:
Executed by:
  • tst_qxmlsimplereader - unknown status
SqC:
executed 1 time by 1 test: case SqC:
Executed by:
  • tst_qxmlsimplereader - unknown status
1
5052 stringAddC();-
5053 next();-
5054 break;
executed 1529 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
1529
5055 case
executed 15 times by 1 test: case DqPER:
Executed by:
  • tst_qxmlsimplereader - unknown status
DqPER:
executed 15 times by 1 test: case DqPER:
Executed by:
  • tst_qxmlsimplereader - unknown status
15
5056 case
never executed: case SqPER:
SqPER:
never executed: case SqPER:
0
5057 parsePEReference_context = InEntityValue;-
5058 if (!parsePEReference()
!parsePEReference()Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-15
5059 parseFailed(&QXmlSimpleReaderPrivate::parseEntityValue, state);-
5060 return
never executed: return false;
false;
never executed: return false;
0
5061 }-
5062 break;
executed 15 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
15
5063 case
executed 342 times by 1 test: case DqRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
DqRef:
executed 342 times by 1 test: case DqRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
342
5064 case
never executed: case SqRef:
SqRef:
never executed: case SqRef:
0
5065 parseReference_context = InEntityValue;-
5066 if (!parseReference()
!parseReference()Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 227 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
115-227
5067 parseFailed(&QXmlSimpleReaderPrivate::parseEntityValue, state);-
5068 return
executed 115 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 115 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
115
5069 }-
5070 break;
executed 227 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
227
5071 case
executed 410 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 410 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
410
5072 next();-
5073 break;
executed 410 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
410
5074 }-
5075 }
executed 2596 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2596
5076 return
never executed: return false;
false;
never executed: return false;
0
5077}-
5078bool QXmlSimpleReaderPrivate::parseComment()-
5079{-
5080 const signed char Init = 0;-
5081 const signed char Dash1 = 1;-
5082 const signed char Dash2 = 2;-
5083 const signed char Com = 3;-
5084 const signed char Com2 = 4;-
5085 const signed char ComE = 5;-
5086 const signed char Done = 6;-
5087-
5088 const signed char InpDash = 0;-
5089 const signed char InpGt = 1;-
5090 const signed char InpUnknown = 2;-
5091-
5092 static const signed char table[6][3] = {-
5093-
5094 { Dash1, -1, -1 },-
5095 { Dash2, -1, -1 },-
5096 { Com2, Com, Com },-
5097 { Com2, Com, Com },-
5098 { ComE, Com, Com },-
5099 { -1, Done, -1 }-
5100 };-
5101 signed char state;-
5102 signed char input;-
5103-
5104 if (parseStack==0
parseStack==0Description
TRUEevaluated 88 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 527 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 63 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 464 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
63-527
5105 state = Init;-
5106 }
executed 151 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
151
5107 state = parseStack->pop().state;-
5108-
5109-
5110-
5111 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 464 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-464
5112 ParseFunction function = parseStack->top().function;-
5113 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
5114 parseStack->pop();-
5115-
5116-
5117-
5118 }
never executed: end of block
0
5119 if (!(this->*function)()
!(this->*function)()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5120 parseFailed(&QXmlSimpleReaderPrivate::parseComment, state);-
5121 return
never executed: return false;
false;
never executed: return false;
0
5122 }-
5123 }
never executed: end of block
0
5124 }
executed 464 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
464
5125-
5126 for (;;) {-
5127 switch (state) {-
5128 case
executed 176 times by 2 tests: case Dash2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dash2:
executed 176 times by 2 tests: case Dash2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
176
5129 stringClear();-
5130 break;
executed 176 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
176
5131 case
executed 234 times by 2 tests: case Com2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Com2:
executed 234 times by 2 tests: case Com2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
234
5132-
5133 if (!atEnd()
!atEnd()Description
TRUEevaluated 204 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c != QLatin1Char('-')
c != QLatin1Char('-')Description
TRUEevaluated 56 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 148 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
30-204
5134 stringAddC(QLatin1Char('-'));
executed 56 times by 2 tests: stringAddC(QLatin1Char('-'));
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
56
5135 break;
executed 234 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
234
5136 case
executed 146 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 146 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
146
5137 return
executed 146 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 146 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
146
5138 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5139-
5140 reportParseError(QLatin1String("error occurred while parsing comment"));-
5141 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5142 }-
5143-
5144 if (atEnd()
atEnd()Description
TRUEevaluated 466 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10856 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
466-10856
5145 unexpectedEof(&QXmlSimpleReaderPrivate::parseComment, state);-
5146 return
executed 466 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 466 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
466
5147 }-
5148 if (c == QLatin1Char('-')
c == QLatin1Char('-')Description
TRUEevaluated 653 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10203 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
653-10203
5149 input = InpDash;-
5150 }
executed 653 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('>')
c == QLatin1Char('>')Description
TRUEevaluated 159 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10044 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
159-10044
5151 input = InpGt;-
5152 }
executed 159 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
159
5153 input = InpUnknown;-
5154 }
executed 10044 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10044
5155 state = table[state][input];-
5156-
5157 switch (state) {-
5158 case
executed 150 times by 2 tests: case Dash1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dash1:
executed 150 times by 2 tests: case Dash1:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
150
5159 next();-
5160 break;
executed 150 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
150
5161 case
executed 150 times by 2 tests: case Dash2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Dash2:
executed 150 times by 2 tests: case Dash2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
150
5162 next();-
5163 break;
executed 150 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
150
5164 case
executed 10055 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Com:
executed 10055 times by 2 tests: case Com:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10055
5165 stringAddC();-
5166 next();-
5167 break;
executed 10055 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10055
5168 case
executed 204 times by 2 tests: case Com2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Com2:
executed 204 times by 2 tests: case Com2:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
204
5169 next();-
5170 break;
executed 204 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
204
5171 case
executed 148 times by 2 tests: case ComE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
ComE:
executed 148 times by 2 tests: case ComE:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
148
5172 next();-
5173 break;
executed 148 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
148
5174 case
executed 146 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 146 times by 2 tests: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
146
5175 next();-
5176 break;
executed 146 times by 2 tests: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
146
5177 }-
5178 }
executed 10856 times by 2 tests: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
10856
5179 return
never executed: return false;
false;
never executed: return false;
0
5180}-
5181bool QXmlSimpleReaderPrivate::parseAttribute()-
5182{-
5183 const int Init = 0;-
5184 const int PName = 1;-
5185 const int Ws = 2;-
5186 const int Eq = 3;-
5187 const int Quotes = 4;-
5188-
5189 const int InpNameBe = 0;-
5190 const int InpEq = 1;-
5191 const int InpDq = 2;-
5192 const int InpSq = 3;-
5193 const int InpUnknown = 4;-
5194-
5195 static const int table[4][5] = {-
5196-
5197 { PName, -1, -1, -1, -1 },-
5198 { -1, Eq, -1, -1, Ws },-
5199 { -1, Eq, -1, -1, -1 },-
5200 { -1, -1, Quotes, Quotes, -1 }-
5201 };-
5202 int state;-
5203 int input;-
5204-
5205 if (parseStack==0
parseStack==0Description
TRUEevaluated 12597 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2446 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 549 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1897 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
549-12597
5206 state = Init;-
5207 }
executed 13146 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
13146
5208 state = parseStack->pop().state;-
5209-
5210-
5211-
5212 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 1897 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1897
5213 ParseFunction function = parseStack->top().function;-
5214 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEevaluated 158 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1739 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
158-1739
5215 parseStack->pop();-
5216-
5217-
5218-
5219 }
executed 158 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
158
5220 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 933 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 964 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
933-964
5221 parseFailed(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5222 return
executed 933 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 933 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
933
5223 }-
5224 }
executed 964 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
964
5225 }
executed 964 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
964
5226-
5227 for (;;) {-
5228 switch (state) {-
5229 case
executed 13130 times by 6 tests: case Quotes:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Quotes:
executed 13130 times by 6 tests: case Quotes:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13130
5230-
5231 return
executed 13130 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 13130 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13130
5232 case
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 3 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5233-
5234 reportParseError(QLatin1String("unexpected character"));-
5235 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5236 }-
5237-
5238 if (atEnd()
atEnd()Description
TRUEnever evaluated
FALSEevaluated 39458 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-39458
5239 unexpectedEof(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5240 return
never executed: return false;
false;
never executed: return false;
0
5241 }-
5242 if (determineNameChar(c) == NameBeginning
determineNameC... NameBeginningDescription
TRUEevaluated 13147 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 26311 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
13147-26311
5243 input = InpNameBe;-
5244 }
executed 13147 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('=')
c == QLatin1Char('=')Description
TRUEevaluated 13145 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 13166 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
13145-13166
5245 input = InpEq;-
5246 }
executed 13145 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('"')
c == QLatin1Char('"')Description
TRUEevaluated 13066 times by 5 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 100 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
100-13145
5247 input = InpDq;-
5248 }
executed 13066 times by 5 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c == QLatin1Char('\'')
c == QLatin1Char('\'')Description
TRUEevaluated 77 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
23-13066
5249 input = InpSq;-
5250 }
executed 77 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
else {
77
5251 input = InpUnknown;-
5252 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
23
5253 state = table[state][input];-
5254-
5255 switch (state) {-
5256 case
executed 13146 times by 6 tests: case PName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
PName:
executed 13146 times by 6 tests: case PName:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13146
5257 parseName_useRef = false;-
5258 if (!parseName()
!parseName()Description
TRUEevaluated 362 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12784 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
362-12784
5259 parseFailed(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5260 return
executed 362 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 362 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
362
5261 }-
5262 break;
executed 12784 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12784
5263 case
executed 21 times by 1 test: case Ws:
Executed by:
  • tst_qxmlsimplereader - unknown status
Ws:
executed 21 times by 1 test: case Ws:
Executed by:
  • tst_qxmlsimplereader - unknown status
21
5264 if (!eat_ws()
!eat_ws()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-17
5265 parseFailed(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5266 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
5267 }-
5268 break;
executed 17 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
17
5269 case
executed 13145 times by 6 tests: case Eq:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Eq:
executed 13145 times by 6 tests: case Eq:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13145
5270 if (!next_eat_ws()
!next_eat_ws()Description
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12993 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
152-12993
5271 parseFailed(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5272 return
executed 152 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 152 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
152
5273 }-
5274 break;
executed 12993 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12993
5275 case
executed 13143 times by 6 tests: case Quotes:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Quotes:
executed 13143 times by 6 tests: case Quotes:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
13143
5276 if (!parseAttValue()
!parseAttValue()Description
TRUEevaluated 459 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 12684 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
459-12684
5277 parseFailed(&QXmlSimpleReaderPrivate::parseAttribute, state);-
5278 return
executed 459 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 459 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
459
5279 }-
5280 break;
executed 12684 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
12684
5281 }-
5282 }
executed 38481 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
38481
5283 return
never executed: return false;
false;
never executed: return false;
0
5284}-
5285-
5286-
5287-
5288-
5289bool QXmlSimpleReaderPrivate::parseName()-
5290{-
5291 const int Init = 0;-
5292 const int Name1 = 1;-
5293 const int Name = 2;-
5294 const int Done = 3;-
5295-
5296 static const int table[3][3] = {-
5297-
5298 { Name1, -1, -1 },-
5299 { Name, Name, Done },-
5300 { Name, Name, Done }-
5301 };-
5302 int state;-
5303-
5304 if (parseStack==0
parseStack==0Description
TRUEevaluated 21597 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 18173 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 9758 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8415 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
8415-21597
5305 state = Init;-
5306 }
executed 31355 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
31355
5307 state = parseStack->pop().state;-
5308-
5309-
5310-
5311 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 8415 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-8415
5312 ParseFunction function = parseStack->top().function;-
5313 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
5314 parseStack->pop();-
5315-
5316-
5317-
5318 }
never executed: end of block
0
5319 if (!(this->*function)()
!(this->*function)()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5320 parseFailed(&QXmlSimpleReaderPrivate::parseName, state);-
5321 return
never executed: return false;
false;
never executed: return false;
0
5322 }-
5323 }
never executed: end of block
0
5324 }
executed 8415 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
8415
5325-
5326 for (;;) {-
5327 switch (state) {-
5328 case
executed 31340 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Done:
executed 31340 times by 6 tests: case Done:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
31340
5329 return
executed 31340 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 31340 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
31340
5330 case
executed 15 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 15 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
15
5331-
5332 reportParseError(QLatin1String("letter is expected"));-
5333 return
executed 15 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 15 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
15
5334 }-
5335-
5336 if (atEnd()
atEnd()Description
TRUEevaluated 8415 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 160573 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
8415-160573
5337 unexpectedEof(&QXmlSimpleReaderPrivate::parseName, state);-
5338 return
executed 8415 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 8415 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
8415
5339 }-
5340-
5341-
5342 state = table[state][(int)fastDetermineNameChar(c)];-
5343-
5344 switch (state) {-
5345 case
executed 31340 times by 6 tests: case Name1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name1:
executed 31340 times by 6 tests: case Name1:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
31340
5346 if (parseName_useRef
parseName_useRefDescription
TRUEevaluated 1343 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 29997 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1343-29997
5347 refClear();-
5348 refAddC();-
5349 }
executed 1343 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1343
5350 nameClear();-
5351 nameAddC();-
5352 }
executed 29997 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
29997
5353 next();-
5354 break;
executed 31340 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
31340
5355 case
executed 97878 times by 6 tests: case Name:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name:
executed 97878 times by 6 tests: case Name:
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
97878
5356 if (parseName_useRef
parseName_useRefDescription
TRUEevaluated 1538 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 96340 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1538-96340
5357 refAddC();-
5358 }
executed 1538 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1538
5359 nameAddC();-
5360 }
executed 96340 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
96340
5361 next();-
5362 break;
executed 97878 times by 6 tests: break;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
97878
5363 }-
5364 }
executed 160573 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
160573
5365 return
never executed: return false;
false;
never executed: return false;
0
5366}-
5367-
5368-
5369-
5370-
5371bool QXmlSimpleReaderPrivate::parseNmtoken()-
5372{-
5373 const signed char Init = 0;-
5374 const signed char NameF = 1;-
5375 const signed char Name = 2;-
5376 const signed char Done = 3;-
5377-
5378 const signed char InpNameCh = 0;-
5379 const signed char InpUnknown = 1;-
5380-
5381 static const signed char table[3][2] = {-
5382-
5383 { NameF, -1 },-
5384 { Name, Done },-
5385 { Name, Done }-
5386 };-
5387 signed char state;-
5388 signed char input;-
5389-
5390 if (parseStack==0
parseStack==0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
5-23
5391 state = Init;-
5392 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
24
5393 state = parseStack->pop().state;-
5394-
5395-
5396-
5397 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-5
5398 ParseFunction function = parseStack->top().function;-
5399 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
5400 parseStack->pop();-
5401-
5402-
5403-
5404 }
never executed: end of block
0
5405 if (!(this->*function)()
!(this->*function)()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5406 parseFailed(&QXmlSimpleReaderPrivate::parseNmtoken, state);-
5407 return
never executed: return false;
false;
never executed: return false;
0
5408 }-
5409 }
never executed: end of block
0
5410 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
5
5411-
5412 for (;;) {-
5413 switch (state) {-
5414 case
executed 24 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
Done:
executed 24 times by 1 test: case Done:
Executed by:
  • tst_qxmlsimplereader - unknown status
24
5415 return
executed 24 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 24 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
24
5416 case
never executed: case -1:
-1:
never executed: case -1:
0
5417-
5418 reportParseError(QLatin1String("letter is expected"));-
5419 return
never executed: return false;
false;
never executed: return false;
0
5420 }-
5421-
5422 if (atEnd()
atEnd()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 56 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
5-56
5423 unexpectedEof(&QXmlSimpleReaderPrivate::parseNmtoken, state);-
5424 return
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
5
5425 }-
5426 if (determineNameChar(c) == NotName
determineNameC...(c) == NotNameDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
24-32
5427 input = InpUnknown;-
5428 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
24
5429 input = InpNameCh;-
5430 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
32
5431 state = table[state][input];-
5432-
5433 switch (state) {-
5434 case
executed 24 times by 1 test: case NameF:
Executed by:
  • tst_qxmlsimplereader - unknown status
NameF:
executed 24 times by 1 test: case NameF:
Executed by:
  • tst_qxmlsimplereader - unknown status
24
5435 nameClear();-
5436 nameAddC();-
5437 next();-
5438 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
24
5439 case
executed 8 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
Name:
executed 8 times by 1 test: case Name:
Executed by:
  • tst_qxmlsimplereader - unknown status
8
5440 nameAddC();-
5441 next();-
5442 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
5443 }-
5444 }
executed 56 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
56
5445 return
never executed: return false;
false;
never executed: return false;
0
5446}-
5447bool QXmlSimpleReaderPrivate::parseReference()-
5448{-
5449-
5450-
5451 uint tmp;-
5452 bool ok;-
5453-
5454 const signed char Init = 0;-
5455 const signed char SRef = 1;-
5456 const signed char ChRef = 2;-
5457 const signed char ChDec = 3;-
5458 const signed char ChHexS = 4;-
5459 const signed char ChHex = 5;-
5460 const signed char Name = 6;-
5461 const signed char DoneD = 7;-
5462 const signed char DoneH = 8;-
5463 const signed char DoneN = 9;-
5464-
5465 const signed char InpAmp = 0;-
5466 const signed char InpSemi = 1;-
5467 const signed char InpHash = 2;-
5468 const signed char InpX = 3;-
5469 const signed char InpNum = 4;-
5470 const signed char InpHex = 5;-
5471 const signed char InpUnknown = 6;-
5472-
5473 static const signed char table[8][7] = {-
5474-
5475 { SRef, -1, -1, -1, -1, -1, -1 },-
5476 { -1, -1, ChRef, Name, Name, Name, Name },-
5477 { -1, -1, -1, ChHexS, ChDec, -1, -1 },-
5478 { -1, DoneD, -1, -1, ChDec, -1, -1 },-
5479 { -1, -1, -1, -1, ChHex, ChHex, -1 },-
5480 { -1, DoneH, -1, -1, ChHex, ChHex, -1 },-
5481 { -1, DoneN, -1, -1, -1, -1, -1 }-
5482 };-
5483 signed char state;-
5484 signed char input;-
5485-
5486 if (parseStack==0
parseStack==0Description
TRUEevaluated 453 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 2474 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 1161 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1313 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
453-2474
5487 parseReference_charDataRead = false;-
5488 state = Init;-
5489 }
executed 1614 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
1614
5490 state = parseStack->pop().state;-
5491-
5492-
5493-
5494 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEevaluated 504 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 809 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
504-809
5495 ParseFunction function = parseStack->top().function;-
5496 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEevaluated 504 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-504
5497 parseStack->pop();-
5498-
5499-
5500-
5501 }
never executed: end of block
0
5502 if (!(this->*function)()
!(this->*function)()Description
TRUEevaluated 130 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 374 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
130-374
5503 parseFailed(&QXmlSimpleReaderPrivate::parseReference, state);-
5504 return
executed 130 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 130 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
130
5505 }-
5506 }
executed 374 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
374
5507 }
executed 1183 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
1183
5508-
5509 for (;;) {-
5510 switch (state) {-
5511 case
executed 255 times by 1 test: case DoneD:
Executed by:
  • tst_qxmlsimplereader - unknown status
DoneD:
executed 255 times by 1 test: case DoneD:
Executed by:
  • tst_qxmlsimplereader - unknown status
255
5512 return
executed 255 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 255 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
255
5513 case
executed 80 times by 1 test: case DoneH:
Executed by:
  • tst_qxmlsimplereader - unknown status
DoneH:
executed 80 times by 1 test: case DoneH:
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5514 return
executed 80 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 80 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5515 case
executed 1256 times by 3 tests: case DoneN:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
DoneN:
executed 1256 times by 3 tests: case DoneN:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1256
5516 return
executed 1256 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 1256 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1256
5517 case
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
-1:
executed 6 times by 1 test: case -1:
Executed by:
  • tst_qxmlsimplereader - unknown status
6
5518-
5519 reportParseError(QLatin1String("error occurred while parsing reference"));-
5520 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
6
5521 }-
5522-
5523 if (atEnd()
atEnd()Description
TRUEevaluated 809 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 6427 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
809-6427
5524 unexpectedEof(&QXmlSimpleReaderPrivate::parseReference, state);-
5525 return
executed 809 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 809 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
809
5526 }-
5527 if (c.row()
c.row()Description
TRUEnever evaluated
FALSEevaluated 6427 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-6427
5528 input = InpUnknown;-
5529 }
never executed: end of block
else if (c.cell() == '&'
c.cell() == '&'Description
TRUEevaluated 1615 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 4812 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-4812
5530 input = InpAmp;-
5531 }
executed 1615 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c.cell() == ';'
c.cell() == ';'Description
TRUEevaluated 1599 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3213 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
1599-3213
5532 input = InpSemi;-
5533 }
executed 1599 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (c.cell() == '#'
c.cell() == '#'Description
TRUEevaluated 338 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2875 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
338-2875
5534 input = InpHash;-
5535 }
executed 338 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (c.cell() == 'x'
c.cell() == 'x'Description
TRUEevaluated 90 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2785 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
90-2785
5536 input = InpX;-
5537 }
executed 90 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if ('0' <= c.cell()
'0' <= c.cell()Description
TRUEevaluated 2774 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c.cell() <= '9'
c.cell() <= '9'Description
TRUEevaluated 1426 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1348 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
11-2774
5538 input = InpNum;-
5539 }
executed 1426 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if ('a' <= c.cell()
'a' <= c.cell()Description
TRUEevaluated 1292 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c.cell() <= 'f'
c.cell() <= 'f'Description
TRUEevaluated 1034 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 258 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
67-1426
5540 input = InpHex;-
5541 }
executed 1034 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if ('A' <= c.cell()
'A' <= c.cell()Description
TRUEevaluated 313 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& c.cell() <= 'F'
c.cell() <= 'F'Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 260 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
12-1034
5542 input = InpHex;-
5543 }
executed 53 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
53
5544 input = InpUnknown;-
5545 }
executed 272 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
272
5546 state = table[state][input];-
5547-
5548 switch (state) {-
5549 case
executed 1614 times by 3 tests: case SRef:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
SRef:
executed 1614 times by 3 tests: case SRef:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1614
5550 refClear();-
5551 next();-
5552 break;
executed 1614 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1614
5553 case
executed 338 times by 1 test: case ChRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
ChRef:
executed 338 times by 1 test: case ChRef:
Executed by:
  • tst_qxmlsimplereader - unknown status
338
5554 next();-
5555 break;
executed 338 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
338
5556 case
executed 850 times by 1 test: case ChDec:
Executed by:
  • tst_qxmlsimplereader - unknown status
ChDec:
executed 850 times by 1 test: case ChDec:
Executed by:
  • tst_qxmlsimplereader - unknown status
850
5557 refAddC();-
5558 next();-
5559 break;
executed 850 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
850
5560 case
executed 80 times by 1 test: case ChHexS:
Executed by:
  • tst_qxmlsimplereader - unknown status
ChHexS:
executed 80 times by 1 test: case ChHexS:
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5561 next();-
5562 break;
executed 80 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5563 case
executed 665 times by 1 test: case ChHex:
Executed by:
  • tst_qxmlsimplereader - unknown status
ChHex:
executed 665 times by 1 test: case ChHex:
Executed by:
  • tst_qxmlsimplereader - unknown status
665
5564 refAddC();-
5565 next();-
5566 break;
executed 665 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
665
5567 case
executed 1275 times by 3 tests: case Name:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
Name:
executed 1275 times by 3 tests: case Name:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1275
5568-
5569 parseName_useRef = true;-
5570 if (!parseName()
!parseName()Description
TRUEevaluated 383 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 892 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
383-892
5571 parseFailed(&QXmlSimpleReaderPrivate::parseReference, state);-
5572 return
executed 383 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 383 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
383
5573 }-
5574 break;
executed 892 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
892
5575 case
executed 255 times by 1 test: case DoneD:
Executed by:
  • tst_qxmlsimplereader - unknown status
DoneD:
executed 255 times by 1 test: case DoneD:
Executed by:
  • tst_qxmlsimplereader - unknown status
255
5576 tmp = ref().toUInt(&ok, 10);-
5577 if (ok
okDescription
TRUEevaluated 255 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-255
5578 stringAddC(QChar(tmp));-
5579 }
executed 255 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
255
5580 reportParseError(QLatin1String("error occurred while parsing reference"));-
5581 return
never executed: return false;
false;
never executed: return false;
0
5582 }-
5583 parseReference_charDataRead = true;-
5584 next();-
5585 break;
executed 255 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
255
5586 case
executed 80 times by 1 test: case DoneH:
Executed by:
  • tst_qxmlsimplereader - unknown status
DoneH:
executed 80 times by 1 test: case DoneH:
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5587 tmp = ref().toUInt(&ok, 16);-
5588 if (ok
okDescription
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-80
5589 stringAddC(QChar(tmp));-
5590 }
executed 80 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
80
5591 reportParseError(QLatin1String("error occurred while parsing reference"));-
5592 return
never executed: return false;
false;
never executed: return false;
0
5593 }-
5594 parseReference_charDataRead = true;-
5595 next();-
5596 break;
executed 80 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
80
5597 case
executed 1264 times by 3 tests: case DoneN:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
DoneN:
executed 1264 times by 3 tests: case DoneN:
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1264
5598 if (!processReference()
!processReference()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1256 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
8-1256
5599 return
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
8
5600 next();-
5601 break;
executed 1256 times by 3 tests: break;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1256
5602 }-
5603 }
executed 6036 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
6036
5604 return
never executed: return false;
false;
never executed: return false;
0
5605}-
5606-
5607-
5608-
5609-
5610bool QXmlSimpleReaderPrivate::processReference()-
5611{-
5612 QString reference = ref();-
5613 if (reference == QLatin1String("amp")
reference == Q...1String("amp")Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1228 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
36-1228
5614 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEnever evaluated
FALSEevaluated 36 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-36
5615-
5616 stringAddC(QLatin1Char('&')); stringAddC(QLatin1Char('a')); stringAddC(QLatin1Char('m')); stringAddC(QLatin1Char('p')); stringAddC(QLatin1Char(';'));-
5617 }
never executed: end of block
else {
0
5618-
5619 stringAddC(QLatin1Char('&'));-
5620 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
36
5621 parseReference_charDataRead = true;-
5622 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (reference == QLatin1String("lt")
reference == Q...n1String("lt")Description
TRUEevaluated 69 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1159 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
36-1159
5623 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 59 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
10-59
5624-
5625 stringAddC(QLatin1Char('&')); stringAddC(QLatin1Char('l')); stringAddC(QLatin1Char('t')); stringAddC(QLatin1Char(';'));-
5626 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
10
5627-
5628 stringAddC(QLatin1Char('<'));-
5629 }
executed 59 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
59
5630 parseReference_charDataRead = true;-
5631 }
executed 69 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (reference == QLatin1String("gt")
reference == Q...n1String("gt")Description
TRUEevaluated 54 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 1105 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
54-1105
5632 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEnever evaluated
FALSEevaluated 54 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
0-54
5633-
5634 stringAddC(QLatin1Char('&')); stringAddC(QLatin1Char('g')); stringAddC(QLatin1Char('t')); stringAddC(QLatin1Char(';'));-
5635 }
never executed: end of block
else {
0
5636-
5637 stringAddC(QLatin1Char('>'));-
5638 }
executed 54 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
54
5639 parseReference_charDataRead = true;-
5640 }
executed 54 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (reference == QLatin1String("apos")
reference == Q...String("apos")Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1085 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
20-1085
5641 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-20
5642-
5643 stringAddC(QLatin1Char('&')); stringAddC(QLatin1Char('a')); stringAddC(QLatin1Char('p')); stringAddC(QLatin1Char('o')); stringAddC(QLatin1Char('s')); stringAddC(QLatin1Char(';'));-
5644 }
never executed: end of block
else {
0
5645-
5646 stringAddC(QLatin1Char('\''));-
5647 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
20
5648 parseReference_charDataRead = true;-
5649 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else if (reference == QLatin1String("quot")
reference == Q...String("quot")Description
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1050 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
20-1050
5650 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEnever evaluated
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-35
5651-
5652 stringAddC(QLatin1Char('&')); stringAddC(QLatin1Char('q')); stringAddC(QLatin1Char('u')); stringAddC(QLatin1Char('o')); stringAddC(QLatin1Char('t')); stringAddC(QLatin1Char(';'));-
5653 }
never executed: end of block
else {
0
5654-
5655 stringAddC(QLatin1Char('"'));-
5656 }
executed 35 times by 2 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
35
5657 parseReference_charDataRead = true;-
5658 }
executed 35 times by 2 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
else {
35
5659 QMap<QString,QString>::Iterator it;-
5660 it = entities.find(reference);-
5661 if (it != entities.end()
it != entities.end()Description
TRUEevaluated 610 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 440 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
440-610
5662-
5663 switch (parseReference_context) {-
5664 case
executed 400 times by 1 test: case InContent:
Executed by:
  • tst_qxmlsimplereader - unknown status
InContent:
executed 400 times by 1 test: case InContent:
Executed by:
  • tst_qxmlsimplereader - unknown status
400
5665-
5666 if (!insertXmlRef(*it, reference, false)
!insertXmlRef(...erence, false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 399 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
1-399
5667 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
1
5668 parseReference_charDataRead = false;-
5669 break;
executed 399 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
399
5670 case
executed 78 times by 1 test: case InAttributeValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
InAttributeValue:
executed 78 times by 1 test: case InAttributeValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
78
5671-
5672 if (!insertXmlRef(*it, reference, true)
!insertXmlRef(...ference, true)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 75 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
3-75
5673 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5674 parseReference_charDataRead = false;-
5675 break;
executed 75 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
75
5676 case
executed 132 times by 1 test: case InEntityValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
InEntityValue:
executed 132 times by 1 test: case InEntityValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
132
5677 {-
5678-
5679 stringAddC(QLatin1Char('&'));-
5680 for (int i=0; i<(int)reference.length()
i<(int)reference.length()Description
TRUEevaluated 264 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
; i++) {
132-264
5681 stringAddC(reference[i]);-
5682 }
executed 264 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
264
5683 stringAddC(QLatin1Char(';'));-
5684 parseReference_charDataRead = true;-
5685 }-
5686 break;
executed 132 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
132
5687 case
never executed: case InDTD:
InDTD:
never executed: case InDTD:
0
5688-
5689 parseReference_charDataRead = false;-
5690 reportParseError(QLatin1String("internal general entity reference not allowed in DTD"));-
5691 return
never executed: return false;
false;
never executed: return false;
0
5692 }-
5693 }
executed 606 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
606
5694 QMap<QString,QXmlSimpleReaderPrivate::ExternEntity>::Iterator itExtern;-
5695 itExtern = externEntities.find(reference);-
5696 if (itExtern == externEntities.end()
itExtern == ex...Entities.end()Description
TRUEevaluated 296 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 144 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
144-296
5697-
5698-
5699 if (parseReference_context == InEntityValue
parseReference... InEntityValueDescription
TRUEevaluated 99 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 197 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
99-197
5700-
5701 stringAddC(QLatin1Char('&'));-
5702 for (int i=0; i<(int)reference.length()
i<(int)reference.length()Description
TRUEevaluated 209 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 99 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
; i++) {
99-209
5703 stringAddC(reference[i]);-
5704 }
executed 209 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
209
5705 stringAddC(QLatin1Char(';'));-
5706 parseReference_charDataRead = true;-
5707 }
executed 99 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
99
5708-
5709 if (parseReference_context == InContent
parseReference...t == InContentDescription
TRUEevaluated 183 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
14-183
5710 if (contentCharDataRead
contentCharDataReadDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 83 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
83-100
5711 if (reportWhitespaceCharData
reportWhitespaceCharDataDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
|| !string().simplified().isEmpty()
!string().simp...ed().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-100
5712 if (contentHnd != 0
contentHnd != 0Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
&& !contentHnd->characters(string())
!contentHnd->c...ters(string())Description
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-100
5713 reportParseError(contentHnd->errorString());-
5714 return
never executed: return false;
false;
never executed: return false;
0
5715 }-
5716 }
executed 100 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
100
5717 stringClear();-
5718 contentCharDataRead = false;-
5719 }
executed 100 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
100
5720 }
executed 183 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
183
5721-
5722 if (contentHnd
contentHndDescription
TRUEevaluated 197 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-197
5723 skipped_entity_in_content = parseReference_context == InContent;-
5724 if (!contentHnd->skippedEntity(reference)
!contentHnd->s...ity(reference)Description
TRUEnever evaluated
FALSEevaluated 197 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-197
5725 skipped_entity_in_content = false;-
5726 reportParseError(contentHnd->errorString());-
5727 return
never executed: return false;
false;
never executed: return false;
0
5728 }-
5729 skipped_entity_in_content = false;-
5730 }
executed 197 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
197
5731 }
executed 197 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
197
5732 } else if ((*
(*itExtern).notation.isNull()Description
TRUEevaluated 142 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
itExtern).notation.isNull()
(*itExtern).notation.isNull()Description
TRUEevaluated 142 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
2-142
5733-
5734 switch (parseReference_context) {-
5735 case
executed 140 times by 1 test: case InContent:
Executed by:
  • tst_qxmlsimplereader - unknown status
InContent:
executed 140 times by 1 test: case InContent:
Executed by:
  • tst_qxmlsimplereader - unknown status
140
5736 {-
5737-
5738 bool skipIt = true;-
5739 if (entityRes
entityResDescription
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-140
5740 QXmlInputSource *ret = 0;-
5741 if (!entityRes->resolveEntity((*itExtern).publicId, (*itExtern).systemId, ret)
!entityRes->re...systemId, ret)Description
TRUEnever evaluated
FALSEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-140
5742 delete ret;-
5743 reportParseError(entityRes->errorString());-
5744 return
never executed: return false;
false;
never executed: return false;
0
5745 }-
5746 if (ret
retDescription
TRUEnever evaluated
FALSEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-140
5747 QString xmlRefString;-
5748 QString buffer = ret->data();-
5749 while (!buffer.isEmpty()
!buffer.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5750 xmlRefString += buffer;-
5751 ret->fetchData();-
5752 buffer = ret->data();-
5753 }
never executed: end of block
0
5754-
5755 delete ret;-
5756 if (!stripTextDecl(xmlRefString)
!stripTextDecl(xmlRefString)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5757 reportParseError(QLatin1String("error in the text declaration of an external entity"));-
5758 return
never executed: return false;
false;
never executed: return false;
0
5759 }-
5760 if (!insertXmlRef(xmlRefString, reference, false)
!insertXmlRef(...erence, false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
5761 return
never executed: return false;
false;
never executed: return false;
0
5762 skipIt = false;-
5763 }
never executed: end of block
0
5764 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
140
5765 if (skipIt
skipItDescription
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
&& contentHnd
contentHndDescription
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-140
5766 skipped_entity_in_content = true;-
5767 if (!contentHnd->skippedEntity(reference)
!contentHnd->s...ity(reference)Description
TRUEnever evaluated
FALSEevaluated 140 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-140
5768 skipped_entity_in_content = false;-
5769 reportParseError(contentHnd->errorString());-
5770 return
never executed: return false;
false;
never executed: return false;
0
5771 }-
5772 skipped_entity_in_content = false;-
5773 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
140
5774 parseReference_charDataRead = false;-
5775 } break;
executed 140 times by 1 test: break;
Executed by:
  • tst_qxmlsimplereader - unknown status
140
5776 case
executed 2 times by 1 test: case InAttributeValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
InAttributeValue:
executed 2 times by 1 test: case InAttributeValue:
Executed by:
  • tst_qxmlsimplereader - unknown status
2
5777-
5778 parseReference_charDataRead = false;-
5779 reportParseError(QLatin1String("external parsed general entity reference not allowed in attribute value"));-
5780 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
5781 case
never executed: case InEntityValue:
InEntityValue:
never executed: case InEntityValue:
0
5782 {-
5783-
5784 stringAddC(QLatin1Char('&'));-
5785 for (int i=0; i<(int)reference.length()
i<(int)reference.length()Description
TRUEnever evaluated
FALSEnever evaluated
; i++) {
0
5786 stringAddC(reference[i]);-
5787 }
never executed: end of block
0
5788 stringAddC(QLatin1Char(';'));-
5789 parseReference_charDataRead = true;-
5790 }-
5791 break;
never executed: break;
0
5792 case
never executed: case InDTD:
InDTD:
never executed: case InDTD:
0
5793-
5794 parseReference_charDataRead = false;-
5795 reportParseError(QLatin1String("external parsed general entity reference not allowed in DTD"));-
5796 return
never executed: return false;
false;
never executed: return false;
0
5797 }-
5798 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
140
5799-
5800-
5801-
5802 parseReference_charDataRead = false;-
5803 reportParseError(QLatin1String("unparsed entity reference in wrong context"));-
5804 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
2
5805 }-
5806 }-
5807 }-
5808 return
executed 1256 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 1256 times by 3 tests: return true;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1256
5809}-
5810bool QXmlSimpleReaderPrivate::parseString()-
5811{-
5812 const signed char InpCharExpected = 0;-
5813 const signed char InpUnknown = 1;-
5814-
5815 signed char state;-
5816 signed char input;-
5817-
5818 if (parseStack==0
parseStack==0Description
TRUEevaluated 1360 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 17594 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
|| parseStack->isEmpty()
parseStack->isEmpty()Description
TRUEevaluated 6612 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 10982 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
1360-17594
5819 Done = parseString_s.length();-
5820 state = 0;-
5821 }
executed 7972 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
7972
5822 state = parseStack->pop().state;-
5823-
5824-
5825-
5826 if (!parseStack->isEmpty()
!parseStack->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 10982 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-10982
5827 ParseFunction function = parseStack->top().function;-
5828 if (function == &QXmlSimpleReaderPrivate::eat_ws
function == &Q...rivate::eat_wsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
5829 parseStack->pop();-
5830-
5831-
5832-
5833 }
never executed: end of block
0
5834 if (!(this->*function)()
!(this->*function)()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5835 parseFailed(&QXmlSimpleReaderPrivate::parseString, state);-
5836 return
never executed: return false;
false;
never executed: return false;
0
5837 }-
5838 }
never executed: end of block
0
5839 }
executed 10982 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
10982
5840-
5841 for (;;) {-
5842 if (state == Done
state == DoneDescription
TRUEevaluated 7969 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 61524 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
7969-61524
5843 return
executed 7969 times by 4 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 7969 times by 4 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
7969
5844 }-
5845-
5846 if (atEnd()
atEnd()Description
TRUEevaluated 10982 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 50542 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
10982-50542
5847 unexpectedEof(&QXmlSimpleReaderPrivate::parseString, state);-
5848 return
executed 10982 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10982 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10982
5849 }-
5850 if (c == parseString_s[(int)state]
c == parseString_s[(int)state]Description
TRUEevaluated 50539 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-50539
5851 input = InpCharExpected;-
5852 }
executed 50539 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
50539
5853 input = InpUnknown;-
5854 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5855 if (input == InpCharExpected
input == InpCharExpectedDescription
TRUEevaluated 50539 times by 4 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
3-50539
5856 state++;-
5857 }
executed 50539 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else {
50539
5858-
5859 reportParseError(QLatin1String("unexpected character"));-
5860 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
3
5861 }-
5862-
5863 next();-
5864 }
executed 50539 times by 4 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
50539
5865 return
never executed: return false;
false;
never executed: return false;
0
5866}-
5867bool QXmlSimpleReaderPrivate::insertXmlRef(const QString &data, const QString &name, bool inLiteral)-
5868{-
5869 if (inLiteral
inLiteralDescription
TRUEevaluated 93 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 410 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
93-410
5870 QString tmp = data;-
5871 xmlRefStack.push(XmlRef(name, tmp.replace(QLatin1Char('\"'),-
5872 QLatin1String("&quot;")).replace(QLatin1Char('\''), QLatin1String("&apos;"))));-
5873 }
executed 93 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
93
5874 xmlRefStack.push(XmlRef(name, data));-
5875 }
executed 410 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
410
5876 int n = qMax(parameterEntities.count(), entities.count());-
5877 if (xmlRefStack.count() > n+1
xmlRefStack.count() > n+1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 499 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
4-499
5878-
5879 reportParseError(QLatin1String("recursive entities"));-
5880 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
4
5881 }-
5882 if (reportEntities
reportEntitiesDescription
TRUEnever evaluated
FALSEevaluated 499 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& lexicalHnd
lexicalHndDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-499
5883 if (!lexicalHnd->startEntity(name)
!lexicalHnd->startEntity(name)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
5884 reportParseError(lexicalHnd->errorString());-
5885 return
never executed: return false;
false;
never executed: return false;
0
5886 }-
5887 }
never executed: end of block
0
5888 return
executed 499 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 499 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
499
5889}-
5890-
5891-
5892-
5893-
5894void QXmlSimpleReaderPrivate::next()-
5895{-
5896 int count = xmlRefStack.size();-
5897 while (count != 0
count != 0Description
TRUEevaluated 2697 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 791592 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
2697-791592
5898 if (xmlRefStack.top().isEmpty()
xmlRefStack.top().isEmpty()Description
TRUEevaluated 477 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 2220 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
477-2220
5899 xmlRefStack.pop_back();-
5900 count--;-
5901 }
executed 477 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
477
5902 c = xmlRefStack.top().next();-
5903 return;
executed 2220 times by 1 test: return;
Executed by:
  • tst_qxmlsimplereader - unknown status
2220
5904 }-
5905 }-
5906-
5907-
5908-
5909 ushort uc = c.unicode();-
5910 c = inputSource->next();-
5911-
5912-
5913 if (c == QXmlInputSource::EndOfData
c == QXmlInput...rce::EndOfDataDescription
TRUEevaluated 45897 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 745695 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
&& parseStack == 0
parseStack == 0Description
TRUEevaluated 989 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 44908 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
)
989-745695
5914 c = inputSource->next();
executed 989 times by 6 tests: c = inputSource->next();
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
989
5915 if (uc == '\n'
uc == '\n'Description
TRUEevaluated 18010 times by 5 tests
Evaluated by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 773582 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
18010-773582
5916 lineNr++;-
5917 columnNr = -1;-
5918 }
executed 18010 times by 5 tests: end of block
Executed by:
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
else if (uc == '\r'
uc == '\r'Description
TRUEevaluated 8363 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 765219 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
8363-765219
5919 if (c != QLatin1Char('\n')
c != QLatin1Char('\n')Description
TRUEevaluated 2546 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 5817 times by 2 tests
Evaluated by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
) {
2546-5817
5920 lineNr++;-
5921 columnNr = -1;-
5922 }
executed 2546 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
2546
5923 }
executed 8363 times by 2 tests: end of block
Executed by:
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
8363
5924 ++columnNr;-
5925}
executed 791592 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
791592
5926bool QXmlSimpleReaderPrivate::eat_ws()-
5927{-
5928 while (!atEnd()
!atEnd()Description
TRUEevaluated 90379 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10298 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
10298-90379
5929 if (!is_S(c)
!is_S(c)Description
TRUEevaluated 48622 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 41757 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
41757-48622
5930 return
executed 48622 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 48622 times by 6 tests: return true;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
48622
5931 }-
5932 next();-
5933 }
executed 41757 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
41757
5934 if (parseStack != 0
parseStack != 0Description
TRUEevaluated 10088 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 210 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
) {
210-10088
5935 unexpectedEof(&QXmlSimpleReaderPrivate::eat_ws, 0);-
5936 return
executed 10088 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
false;
executed 10088 times by 1 test: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
10088
5937 }-
5938 return
executed 210 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
true;
executed 210 times by 2 tests: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
210
5939}-
5940-
5941bool QXmlSimpleReaderPrivate::next_eat_ws()-
5942{-
5943 next();-
5944 return
executed 17906 times by 6 tests: return eat_ws();
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
eat_ws();
executed 17906 times by 6 tests: return eat_ws();
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
17906
5945}-
5946-
5947-
5948-
5949-
5950-
5951-
5952void QXmlSimpleReaderPrivate::init(const QXmlInputSource *i)-
5953{-
5954 lineNr = 0;-
5955 columnNr = -1;-
5956 inputSource = const_cast<QXmlInputSource *>(i);-
5957 initData();-
5958-
5959 externParameterEntities.clear();-
5960 parameterEntities.clear();-
5961 externEntities.clear();-
5962 entities.clear();-
5963-
5964 clear(tags);-
5965-
5966 doctype.clear();-
5967 xmlVersion.clear();-
5968 encoding.clear();-
5969 standalone = QXmlSimpleReaderPrivate::Unknown;-
5970 error.clear();-
5971}
executed 2106 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
2106
5972-
5973-
5974-
5975-
5976-
5977void QXmlSimpleReaderPrivate::initData()-
5978{-
5979 c = QXmlInputSource::EndOfData;-
5980 xmlRefStack.clear();-
5981 next();-
5982}
executed 47014 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
47014
5983-
5984-
5985-
5986-
5987-
5988bool QXmlSimpleReaderPrivate::entityExist(const QString& e) const-
5989{-
5990 if ( parameterEntities.find(e) == parameterEntities.end()
parameterEntit...Entities.end()Description
TRUEevaluated 646 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&&
10-646
5991 externParameterEntities.find(e) == externParameterEntities.end()
externParamete...Entities.end()Description
TRUEevaluated 646 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&&
0-646
5992 externEntities.find(e) == externEntities.end()
externEntities...Entities.end()Description
TRUEevaluated 646 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEnever evaluated
&&
0-646
5993 entities.find(e) == entities.end()
entities.find(...entities.end()Description
TRUEevaluated 636 times by 2 tests
Evaluated by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
10-636
5994 return
executed 636 times by 2 tests: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
false;
executed 636 times by 2 tests: return false;
Executed by:
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
636
5995 } else {-
5996 return
executed 20 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_qxmlsimplereader - unknown status
20
5997 }-
5998}-
5999-
6000void QXmlSimpleReaderPrivate::reportParseError(const QString& error)-
6001{-
6002 this->error = error;-
6003 if (errorHnd
errorHndDescription
TRUEevaluated 155 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-155
6004 if (this->error.isNull()
this->error.isNull()Description
TRUEnever evaluated
FALSEevaluated 155 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-155
6005 const QXmlParseException ex(QLatin1String("no error occurred"), columnNr+1, lineNr+1,-
6006 thisPublicId, thisSystemId);-
6007 errorHnd->fatalError(ex);-
6008 }
never executed: end of block
else {
0
6009 const QXmlParseException ex(this->error, columnNr+1, lineNr+1,-
6010 thisPublicId, thisSystemId);-
6011 errorHnd->fatalError(ex);-
6012 }
executed 155 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
155
6013 }-
6014}
executed 155 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
155
6015-
6016-
6017-
6018-
6019-
6020-
6021-
6022void QXmlSimpleReaderPrivate::unexpectedEof(ParseFunction where, int state)-
6023{-
6024 if (parseStack == 0
parseStack == 0Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 44467 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
19-44467
6025 reportParseError(QLatin1String("unexpected end of file"));-
6026 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
else {
19
6027 if (c == QXmlInputSource::EndOfDocument
c == QXmlInput...:EndOfDocumentDescription
TRUEnever evaluated
FALSEevaluated 44467 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
) {
0-44467
6028 reportParseError(QLatin1String("unexpected end of file"));-
6029 }
never executed: end of block
else {
0
6030 pushParseState(where, state);-
6031 }
executed 44467 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
44467
6032 }-
6033}-
6034void QXmlSimpleReaderPrivate::parseFailed(ParseFunction where, int state)-
6035{-
6036 if (parseStack!=0
parseStack!=0Description
TRUEevaluated 111660 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 342 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
&& error.isNull()
error.isNull()Description
TRUEevaluated 111660 times by 1 test
Evaluated by:
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-111660
6037 pushParseState(where, state);-
6038 }
executed 111660 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
111660
6039}
executed 112002 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
112002
6040void QXmlSimpleReaderPrivate::pushParseState(ParseFunction function, int state)-
6041{-
6042 QXmlSimpleReaderPrivate::ParseState ps;-
6043 ps.function = function;-
6044 ps.state = state;-
6045 parseStack->push(ps);-
6046}
executed 201035 times by 1 test: end of block
Executed by:
  • tst_qxmlsimplereader - unknown status
201035
6047-
6048inline static void updateValue(QString &value, const QChar *array, int &arrayPos, int &valueLen)-
6049{-
6050 value.resize(valueLen + arrayPos);-
6051 memcpy(value.data() + valueLen, array, arrayPos * sizeof(QChar));-
6052 valueLen += arrayPos;-
6053 arrayPos = 0;-
6054}
executed 53191 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
53191
6055-
6056-
6057const QString& QXmlSimpleReaderPrivate::string()-
6058{-
6059 updateValue(stringValue, stringArray, stringArrayPos, stringValueLen);-
6060 return
executed 21656 times by 6 tests: return stringValue;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
stringValue;
executed 21656 times by 6 tests: return stringValue;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
21656
6061}-
6062const QString& QXmlSimpleReaderPrivate::name()-
6063{-
6064 updateValue(nameValue, nameArray, nameArrayPos, nameValueLen);-
6065 return
executed 29710 times by 6 tests: return nameValue;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
nameValue;
executed 29710 times by 6 tests: return nameValue;
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
29710
6066}-
6067const QString& QXmlSimpleReaderPrivate::ref()-
6068{-
6069 updateValue(refValue, refArray, refArrayPos, refValueLen);-
6070 return
executed 1793 times by 3 tests: return refValue;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
refValue;
executed 1793 times by 3 tests: return refValue;
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
1793
6071}-
6072-
6073void QXmlSimpleReaderPrivate::stringAddC(QChar ch)-
6074{-
6075 if (stringArrayPos == 256
stringArrayPos == 256Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qxmlstream - unknown status
FALSEevaluated 426009 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
32-426009
6076 updateValue(stringValue, stringArray, stringArrayPos, stringValueLen);
executed 32 times by 1 test: updateValue(stringValue, stringArray, stringArrayPos, stringValueLen);
Executed by:
  • tst_qxmlstream - unknown status
32
6077 stringArray[stringArrayPos++] = ch;-
6078}
executed 426041 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
426041
6079void QXmlSimpleReaderPrivate::nameAddC(QChar ch)-
6080{-
6081 if (nameArrayPos == 256
nameArrayPos == 256Description
TRUEnever evaluated
FALSEevaluated 126369 times by 6 tests
Evaluated by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-126369
6082 updateValue(nameValue, nameArray, nameArrayPos, nameValueLen);
never executed: updateValue(nameValue, nameArray, nameArrayPos, nameValueLen);
0
6083 nameArray[nameArrayPos++] = ch;-
6084}
executed 126369 times by 6 tests: end of block
Executed by:
  • tst_qcssparser - unknown status
  • tst_qdbusxmlparser - unknown status
  • tst_qtextdocument - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
126369
6085void QXmlSimpleReaderPrivate::refAddC(QChar ch)-
6086{-
6087 if (refArrayPos == 256
refArrayPos == 256Description
TRUEnever evaluated
FALSEevaluated 4396 times by 3 tests
Evaluated by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
)
0-4396
6088 updateValue(refValue, refArray, refArrayPos, refValueLen);
never executed: updateValue(refValue, refArray, refArrayPos, refValueLen);
0
6089 refArray[refArrayPos++] = ch;-
6090}
executed 4396 times by 3 tests: end of block
Executed by:
  • tst_qtextdocument - unknown status
  • tst_qxmlsimplereader - unknown status
  • tst_qxmlstream - unknown status
4396
6091-
Switch to Source codePreprocessed file

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