Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | static char qrc_string[] = "qrc"; | - |
5 | static char file_string[] = "file"; | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | class QQmlFilePrivate; | - |
12 | | - |
13 | | - |
14 | class QQmlFileNetworkReply : public QObject | - |
15 | { | - |
16 | public: | - |
17 | #pragma GCC diagnostic push | - |
18 | | - |
19 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
20 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
21 | #pragma GCC diagnostic ignored "-Wattributes" | - |
22 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
23 | #pragma GCC diagnostic pop | - |
24 | struct QPrivateSignal {}; | - |
25 | public: | - |
26 | QQmlFileNetworkReply(QQmlEngine *, QQmlFilePrivate *, const QUrl &); | - |
27 | ~QQmlFileNetworkReply(); | - |
28 | | - |
29 | public : | - |
30 | void finished(); | - |
31 | void downloadProgress(qint64, qint64); | - |
32 | | - |
33 | public : | - |
34 | void networkFinished(); | - |
35 | void networkDownloadProgress(qint64, qint64); | - |
36 | | - |
37 | public: | - |
38 | static int finishedIndex; | - |
39 | static int downloadProgressIndex; | - |
40 | static int networkFinishedIndex; | - |
41 | static int networkDownloadProgressIndex; | - |
42 | static int replyFinishedIndex; | - |
43 | static int replyDownloadProgressIndex; | - |
44 | | - |
45 | private: | - |
46 | QQmlEngine *m_engine; | - |
47 | QQmlFilePrivate *m_p; | - |
48 | | - |
49 | int m_redirectCount; | - |
50 | QNetworkReply *m_reply; | - |
51 | }; | - |
52 | | - |
53 | | - |
54 | class QQmlFilePrivate | - |
55 | { | - |
56 | public: | - |
57 | QQmlFilePrivate(); | - |
58 | | - |
59 | mutable QUrl url; | - |
60 | mutable QString urlString; | - |
61 | | - |
62 | QByteArray data; | - |
63 | | - |
64 | enum Error { | - |
65 | None, NotFound, CaseMismatch, Network | - |
66 | }; | - |
67 | | - |
68 | Error error; | - |
69 | QString errorString; | - |
70 | | - |
71 | QQmlFileNetworkReply *reply; | - |
72 | | - |
73 | }; | - |
74 | | - |
75 | | - |
76 | int QQmlFileNetworkReply::finishedIndex = -1; | - |
77 | int QQmlFileNetworkReply::downloadProgressIndex = -1; | - |
78 | int QQmlFileNetworkReply::networkFinishedIndex = -1; | - |
79 | int QQmlFileNetworkReply::networkDownloadProgressIndex = -1; | - |
80 | int QQmlFileNetworkReply::replyFinishedIndex = -1; | - |
81 | int QQmlFileNetworkReply::replyDownloadProgressIndex = -1; | - |
82 | | - |
83 | QQmlFileNetworkReply::QQmlFileNetworkReply(QQmlEngine *e, QQmlFilePrivate *p, const QUrl &url) | - |
84 | : m_engine(e), m_p(p), m_redirectCount(0), m_reply(nullptr) | - |
85 | { | - |
86 | if (finishedIndex == -1TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
87 | finishedIndex = QMetaMethod::fromSignal(&QQmlFileNetworkReply::finished).methodIndex(); | - |
88 | downloadProgressIndex = QMetaMethod::fromSignal(&QQmlFileNetworkReply::downloadProgress).methodIndex(); | - |
89 | const QMetaObject *smo = &staticMetaObject; | - |
90 | networkFinishedIndex = smo->indexOfMethod("networkFinished()"); | - |
91 | networkDownloadProgressIndex = smo->indexOfMethod("networkDownloadProgress(qint64,qint64)"); | - |
92 | | - |
93 | replyFinishedIndex = QMetaMethod::fromSignal(&QNetworkReply::finished).methodIndex(); | - |
94 | replyDownloadProgressIndex = QMetaMethod::fromSignal(&QNetworkReply::downloadProgress).methodIndex(); | - |
95 | } never executed: end of block | 0 |
96 | ((finishedIndex != -1 && downloadProgressIndex != -1 && networkFinishedIndex != -1 && networkDownloadProgressIndex != -1 && replyFinishedIndex != -1 && replyDownloadProgressIndex != -1) ? static_cast<void>(0) : qt_assert("finishedIndex != -1 && downloadProgressIndex != -1 && networkFinishedIndex != -1 && networkDownloadProgressIndex != -1 && replyFinishedIndex != -1 && replyDownloadProgressIndex != -1", | - |
97 | | - |
98 | __FILE__ | - |
99 | , | - |
100 | | - |
101 | 148 | - |
102 | )) | - |
103 | | - |
104 | ; | - |
105 | | - |
106 | QNetworkRequest req(url); | - |
107 | req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); | - |
108 | | - |
109 | m_reply = m_engine->networkAccessManager()->get(req); | - |
110 | QMetaObject::connect(m_reply, replyFinishedIndex, this, networkFinishedIndex); | - |
111 | QMetaObject::connect(m_reply, replyDownloadProgressIndex, this, networkDownloadProgressIndex); | - |
112 | } never executed: end of block | 0 |
113 | | - |
114 | QQmlFileNetworkReply::~QQmlFileNetworkReply() | - |
115 | { | - |
116 | if (m_replyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
117 | m_reply->disconnect(); | - |
118 | m_reply->deleteLater(); | - |
119 | } never executed: end of block | 0 |
120 | } never executed: end of block | 0 |
121 | | - |
122 | void QQmlFileNetworkReply::networkFinished() | - |
123 | { | - |
124 | ++m_redirectCount; | - |
125 | if (m_redirectCount < 16TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
126 | QVariant redirect = m_reply->attribute(QNetworkRequest::RedirectionTargetAttribute); | - |
127 | if (redirect.isValid()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
128 | QUrl url = m_reply->url().resolved(redirect.toUrl()); | - |
129 | | - |
130 | QNetworkRequest req(url); | - |
131 | req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); | - |
132 | | - |
133 | m_reply->deleteLater(); | - |
134 | m_reply = m_engine->networkAccessManager()->get(req); | - |
135 | | - |
136 | QMetaObject::connect(m_reply, replyFinishedIndex, | - |
137 | this, networkFinishedIndex); | - |
138 | QMetaObject::connect(m_reply, replyDownloadProgressIndex, | - |
139 | this, networkDownloadProgressIndex); | - |
140 | | - |
141 | return; never executed: return; | 0 |
142 | } | - |
143 | } never executed: end of block | 0 |
144 | | - |
145 | if (m_reply->error()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
146 | m_p->errorString = m_reply->errorString(); | - |
147 | m_p->error = QQmlFilePrivate::Network; | - |
148 | } never executed: end of block else { | 0 |
149 | m_p->data = m_reply->readAll(); | - |
150 | } never executed: end of block | 0 |
151 | | - |
152 | m_reply->deleteLater(); | - |
153 | m_reply = nullptr; | - |
154 | | - |
155 | m_p->reply = nullptr; | - |
156 | finished(); | - |
157 | delete this; | - |
158 | } never executed: end of block | 0 |
159 | | - |
160 | void QQmlFileNetworkReply::networkDownloadProgress(qint64 a, qint64 b) | - |
161 | { | - |
162 | downloadProgress(a, b); | - |
163 | } never executed: end of block | 0 |
164 | | - |
165 | | - |
166 | QQmlFilePrivate::QQmlFilePrivate() | - |
167 | : error(None) | - |
168 | | - |
169 | , reply(nullptr) | - |
170 | | - |
171 | { | - |
172 | } never executed: end of block | 0 |
173 | | - |
174 | QQmlFile::QQmlFile() | - |
175 | : d(new QQmlFilePrivate) | - |
176 | { | - |
177 | } never executed: end of block | 0 |
178 | | - |
179 | QQmlFile::QQmlFile(QQmlEngine *e, const QUrl &url) | - |
180 | : d(new QQmlFilePrivate) | - |
181 | { | - |
182 | load(e, url); | - |
183 | } never executed: end of block | 0 |
184 | | - |
185 | QQmlFile::QQmlFile(QQmlEngine *e, const QString &url) | - |
186 | : QQmlFile(e, QUrl(url)) | - |
187 | { | - |
188 | } never executed: end of block | 0 |
189 | | - |
190 | QQmlFile::~QQmlFile() | - |
191 | { | - |
192 | | - |
193 | delete d->reply; | - |
194 | | - |
195 | delete d; | - |
196 | d = nullptr; | - |
197 | } never executed: end of block | 0 |
198 | | - |
199 | bool QQmlFile::isNull() const | - |
200 | { | - |
201 | return never executed: return status() == Null; status() == Null;never executed: return status() == Null; | 0 |
202 | } | - |
203 | | - |
204 | bool QQmlFile::isReady() const | - |
205 | { | - |
206 | return never executed: return status() == Ready; status() == Ready;never executed: return status() == Ready; | 0 |
207 | } | - |
208 | | - |
209 | bool QQmlFile::isError() const | - |
210 | { | - |
211 | return never executed: return status() == Error; status() == Error;never executed: return status() == Error; | 0 |
212 | } | - |
213 | | - |
214 | bool QQmlFile::isLoading() const | - |
215 | { | - |
216 | return never executed: return status() == Loading; status() == Loading;never executed: return status() == Loading; | 0 |
217 | } | - |
218 | | - |
219 | QUrl QQmlFile::url() const | - |
220 | { | - |
221 | if (!d->urlString.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
222 | d->url = QUrl(d->urlString); | - |
223 | d->urlString = QString(); | - |
224 | } never executed: end of block | 0 |
225 | return never executed: return d->url; d->url;never executed: return d->url; | 0 |
226 | } | - |
227 | | - |
228 | QQmlFile::Status QQmlFile::status() const | - |
229 | { | - |
230 | if (d->url.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
&& d->urlString.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
231 | return never executed: return Null; Null;never executed: return Null; | 0 |
232 | | - |
233 | else if (d->replyTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
234 | return never executed: return Loading; Loading;never executed: return Loading; | 0 |
235 | | - |
236 | else if (d->error != QQmlFilePrivate::NoneTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
237 | return never executed: return Error; Error;never executed: return Error; | 0 |
238 | else | - |
239 | return never executed: return Ready; Ready;never executed: return Ready; | 0 |
240 | } | - |
241 | | - |
242 | QString QQmlFile::error() const | - |
243 | { | - |
244 | switch (d->error) { | - |
245 | default never executed: default: :never executed: default: | 0 |
246 | case never executed: case QQmlFilePrivate::None: QQmlFilePrivate::None:never executed: case QQmlFilePrivate::None: | 0 |
247 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
248 | case never executed: case QQmlFilePrivate::NotFound: QQmlFilePrivate::NotFound:never executed: case QQmlFilePrivate::NotFound: | 0 |
249 | return never executed: return QLatin1String("File not found"); QLatin1String("File not found");never executed: return QLatin1String("File not found"); | 0 |
250 | case never executed: case QQmlFilePrivate::CaseMismatch: QQmlFilePrivate::CaseMismatch:never executed: case QQmlFilePrivate::CaseMismatch: | 0 |
251 | return never executed: return QLatin1String("File name case mismatch"); QLatin1String("File name case mismatch");never executed: return QLatin1String("File name case mismatch"); | 0 |
252 | } | - |
253 | } | - |
254 | | - |
255 | qint64 QQmlFile::size() const | - |
256 | { | - |
257 | return never executed: return d->data.size(); d->data.size();never executed: return d->data.size(); | 0 |
258 | } | - |
259 | | - |
260 | const char *QQmlFile::data() const | - |
261 | { | - |
262 | return never executed: return d->data.constData(); d->data.constData();never executed: return d->data.constData(); | 0 |
263 | } | - |
264 | | - |
265 | QByteArray QQmlFile::dataByteArray() const | - |
266 | { | - |
267 | return never executed: return d->data; d->data;never executed: return d->data; | 0 |
268 | } | - |
269 | | - |
270 | void QQmlFile::load(QQmlEngine *engine, const QUrl &url) | - |
271 | { | - |
272 | ((engine) ? static_cast<void>(0) : qt_assert("engine", __FILE__, 316)); | - |
273 | | - |
274 | clear(); | - |
275 | d->url = url; | - |
276 | | - |
277 | if (isLocalFile(url)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
278 | QString lf = urlToLocalFileOrQrc(url); | - |
279 | | - |
280 | if (!QQml_isFileCaseCorrect(lf)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
281 | d->error = QQmlFilePrivate::CaseMismatch; | - |
282 | return; never executed: return; | 0 |
283 | } | - |
284 | | - |
285 | QFile file(lf); | - |
286 | if (file.open(QFile::ReadOnly)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
287 | d->data = file.readAll(); | - |
288 | } never executed: end of block else { | 0 |
289 | d->error = QQmlFilePrivate::NotFound; | - |
290 | } never executed: end of block | 0 |
291 | } else { | - |
292 | | - |
293 | d->reply = new QQmlFileNetworkReply(engine, d, url); | - |
294 | | - |
295 | | - |
296 | | - |
297 | } never executed: end of block | 0 |
298 | } | - |
299 | | - |
300 | void QQmlFile::load(QQmlEngine *engine, const QString &url) | - |
301 | { | - |
302 | ((engine) ? static_cast<void>(0) : qt_assert("engine", __FILE__, 346)); | - |
303 | | - |
304 | clear(); | - |
305 | | - |
306 | d->urlString = url; | - |
307 | | - |
308 | if (isLocalFile(url)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
309 | QString lf = urlToLocalFileOrQrc(url); | - |
310 | | - |
311 | if (!QQml_isFileCaseCorrect(lf)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
312 | d->error = QQmlFilePrivate::CaseMismatch; | - |
313 | return; never executed: return; | 0 |
314 | } | - |
315 | | - |
316 | QFile file(lf); | - |
317 | if (file.open(QFile::ReadOnly)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
318 | d->data = file.readAll(); | - |
319 | } never executed: end of block else { | 0 |
320 | d->error = QQmlFilePrivate::NotFound; | - |
321 | } never executed: end of block | 0 |
322 | } else { | - |
323 | | - |
324 | QUrl qurl(url); | - |
325 | d->url = qurl; | - |
326 | d->urlString = QString(); | - |
327 | d->reply = new QQmlFileNetworkReply(engine, d, qurl); | - |
328 | | - |
329 | | - |
330 | | - |
331 | } never executed: end of block | 0 |
332 | } | - |
333 | | - |
334 | void QQmlFile::clear() | - |
335 | { | - |
336 | d->url = QUrl(); | - |
337 | d->urlString = QString(); | - |
338 | d->data = QByteArray(); | - |
339 | d->error = QQmlFilePrivate::None; | - |
340 | } never executed: end of block | 0 |
341 | | - |
342 | void QQmlFile::clear(QObject *) | - |
343 | { | - |
344 | clear(); | - |
345 | } never executed: end of block | 0 |
346 | | - |
347 | | - |
348 | bool QQmlFile::connectFinished(QObject *object, const char *method) | - |
349 | { | - |
350 | if (!dTRUE | never evaluated | FALSE | never evaluated |
|| !d->replyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
351 | QMessageLogger(__FILE__, 395, __PRETTY_FUNCTION__).warning("QQmlFile: connectFinished() called when not loading."); | - |
352 | return never executed: return false; false;never executed: return false; | 0 |
353 | } | - |
354 | | - |
355 | return never executed: return QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "399"), object, method); QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "399"),never executed: return QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "399"), object, method); | 0 |
356 | object, method); never executed: return QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "399"), object, method); | 0 |
357 | } | - |
358 | | - |
359 | bool QQmlFile::connectFinished(QObject *object, int method) | - |
360 | { | - |
361 | if (!dTRUE | never evaluated | FALSE | never evaluated |
|| !d->replyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
362 | QMessageLogger(__FILE__, 406, __PRETTY_FUNCTION__).warning("QQmlFile: connectFinished() called when not loading."); | - |
363 | return never executed: return false; false;never executed: return false; | 0 |
364 | } | - |
365 | | - |
366 | return never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::finishedIndex, object, method); QMetaObject::connect(d->reply, QQmlFileNetworkReply::finishedIndex,never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::finishedIndex, object, method); | 0 |
367 | object, method); never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::finishedIndex, object, method); | 0 |
368 | } | - |
369 | | - |
370 | bool QQmlFile::connectDownloadProgress(QObject *object, const char *method) | - |
371 | { | - |
372 | if (!dTRUE | never evaluated | FALSE | never evaluated |
|| !d->replyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
373 | QMessageLogger(__FILE__, 417, __PRETTY_FUNCTION__).warning("QQmlFile: connectDownloadProgress() called when not loading."); | - |
374 | return never executed: return false; false;never executed: return false; | 0 |
375 | } | - |
376 | | - |
377 | return never executed: return QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "421"), object, method); QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "421"),never executed: return QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "421"), object, method); | 0 |
378 | object, method); never executed: return QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "421"), object, method); | 0 |
379 | } | - |
380 | | - |
381 | bool QQmlFile::connectDownloadProgress(QObject *object, int method) | - |
382 | { | - |
383 | if (!dTRUE | never evaluated | FALSE | never evaluated |
|| !d->replyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
384 | QMessageLogger(__FILE__, 428, __PRETTY_FUNCTION__).warning("QQmlFile: connectDownloadProgress() called when not loading."); | - |
385 | return never executed: return false; false;never executed: return false; | 0 |
386 | } | - |
387 | | - |
388 | return never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::downloadProgressIndex, object, method); QMetaObject::connect(d->reply, QQmlFileNetworkReply::downloadProgressIndex,never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::downloadProgressIndex, object, method); | 0 |
389 | object, method); never executed: return QMetaObject::connect(d->reply, QQmlFileNetworkReply::downloadProgressIndex, object, method); | 0 |
390 | } | - |
391 | bool QQmlFile::isSynchronous(const QUrl &url) | - |
392 | { | - |
393 | QString scheme = url.scheme(); | - |
394 | | - |
395 | if ((scheme.length() == 4TRUE | evaluated 14548 times by 126 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| FALSE | evaluated 128 times by 8 testsEvaluated by:- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qrcqml
|
&& 0 == scheme.compare(QLatin1String(file_string), Qt::CaseInsensitive)TRUE | evaluated 14440 times by 126 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| FALSE | evaluated 108 times by 9 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlmoduleplugin
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qquickanimatedimage
- tst_qquickloader
- tst_qquicktextedit
- tst_qquicktextinput
|
) || | 108-14548 |
396 | (scheme.length() == 3TRUE | evaluated 44 times by 7 testsEvaluated by:- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmltranslation
- tst_qrcqml
| FALSE | evaluated 192 times by 9 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlmoduleplugin
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qquickanimatedimage
- tst_qquickloader
- tst_qquicktextedit
- tst_qquicktextinput
|
&& 0 == scheme.compare(QLatin1String(qrc_string), Qt::CaseInsensitive)TRUE | evaluated 44 times by 7 testsEvaluated by:- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmltranslation
- tst_qrcqml
| FALSE | never evaluated |
)) { | 0-192 |
397 | returnexecuted 14484 times by 127 tests: return true; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
true;executed 14484 times by 127 tests: return true; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 14484 |
398 | | - |
399 | | - |
400 | | - |
401 | | - |
402 | | - |
403 | | - |
404 | } else { | - |
405 | returnexecuted 192 times by 9 tests: return false; Executed by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlmoduleplugin
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qquickanimatedimage
- tst_qquickloader
- tst_qquicktextedit
- tst_qquicktextinput
false;executed 192 times by 9 tests: return false; Executed by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlmoduleplugin
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qquickanimatedimage
- tst_qquickloader
- tst_qquicktextedit
- tst_qquicktextinput
| 192 |
406 | } | - |
407 | } | - |
408 | bool QQmlFile::isSynchronous(const QString &url) | - |
409 | { | - |
410 | if (url.length() < 5TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
411 | return never executed: return false; false;never executed: return false; | 0 |
412 | | - |
413 | QChar f = url[0]; | - |
414 | | - |
415 | if (f == QLatin1Char('f')TRUE | never evaluated | FALSE | never evaluated |
|| f == QLatin1Char('F')TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
416 | | - |
417 | return never executed: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); url.length() >= 7 &&never executed: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); | 0 |
418 | url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && never executed: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); | 0 |
419 | url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); never executed: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); | 0 |
420 | | - |
421 | } else if (f == QLatin1Char('q')TRUE | never evaluated | FALSE | never evaluated |
|| f == QLatin1Char('Q')TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
422 | | - |
423 | return never executed: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); url.length() >= 5 &&never executed: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); | 0 |
424 | url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && never executed: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); | 0 |
425 | url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); never executed: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); | 0 |
426 | | - |
427 | } | - |
428 | return never executed: return false; false;never executed: return false; | 0 |
429 | } | - |
430 | bool QQmlFile::isLocalFile(const QUrl &url) | - |
431 | { | - |
432 | QString scheme = url.scheme(); | - |
433 | | - |
434 | if ((scheme.length() == 4TRUE | evaluated 15310 times by 125 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| FALSE | evaluated 45745 times by 52 testsEvaluated by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- ...
|
&& 0 == scheme.compare(QLatin1String(file_string), Qt::CaseInsensitive)TRUE | evaluated 15258 times by 125 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| FALSE | evaluated 52 times by 8 testsEvaluated by:- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmlmoduleplugin
- tst_qqmltypeloader
- tst_qquickanimatedimage
- tst_qquickloader
- tst_qquicktextedit
- tst_qquicktextinput
|
) || | 52-45745 |
435 | (scheme.length() == 3TRUE | evaluated 115 times by 8 testsEvaluated by:- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qrcqml
| FALSE | evaluated 45682 times by 47 testsEvaluated by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
|
&& 0 == scheme.compare(QLatin1String(qrc_string), Qt::CaseInsensitive)TRUE | evaluated 115 times by 8 testsEvaluated by:- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlecmascript
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qrcqml
| FALSE | never evaluated |
)) { | 0-45682 |
436 | returnexecuted 15373 times by 126 tests: return true; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
true;executed 15373 times by 126 tests: return true; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 15373 |
437 | | - |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | } else { | - |
444 | returnexecuted 45682 times by 47 tests: return false; Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
false;executed 45682 times by 47 tests: return false; Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
| 45682 |
445 | } | - |
446 | } | - |
447 | bool QQmlFile::isLocalFile(const QString &url) | - |
448 | { | - |
449 | if (url.length() < 5TRUE | never evaluated | FALSE | evaluated 64061 times by 141 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
|
) | 0-64061 |
450 | return never executed: return false; false;never executed: return false; | 0 |
451 | | - |
452 | QChar f = url[0]; | - |
453 | | - |
454 | if (f == QLatin1Char('f')TRUE | evaluated 9581 times by 126 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| FALSE | evaluated 54480 times by 140 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
|
|| f == QLatin1Char('F')TRUE | never evaluated | FALSE | evaluated 54480 times by 140 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
|
) { | 0-54480 |
455 | | - |
456 | returnexecuted 9581 times by 126 tests: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
url.length() >= 7 &&executed 9581 times by 126 tests: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 9581 |
457 | url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) &&executed 9581 times by 126 tests: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 9581 |
458 | url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/');executed 9581 times by 126 tests: return url.length() >= 7 && url.startsWith(QLatin1String(file_string), Qt::CaseInsensitive) && url[4] == QLatin1Char(':') && url[5] == QLatin1Char('/') && url[6] == QLatin1Char('/'); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 9581 |
459 | | - |
460 | } else if (f == QLatin1Char('q')TRUE | evaluated 8800 times by 138 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| FALSE | evaluated 45680 times by 48 testsEvaluated by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
|
|| f == QLatin1Char('Q')TRUE | never evaluated | FALSE | evaluated 45680 times by 48 testsEvaluated by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
|
) { | 0-45680 |
461 | | - |
462 | returnexecuted 8800 times by 138 tests: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
url.length() >= 5 &&executed 8800 times by 138 tests: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 8800 |
463 | url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) &&executed 8800 times by 138 tests: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 8800 |
464 | url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/');executed 8800 times by 138 tests: return url.length() >= 5 && url.startsWith(QLatin1String(qrc_string), Qt::CaseInsensitive) && url[3] == QLatin1Char(':') && url[4] == QLatin1Char('/'); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 8800 |
465 | | - |
466 | } | - |
467 | returnexecuted 45680 times by 48 tests: return false; Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
false;executed 45680 times by 48 tests: return false; Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmoduleplugin
- tst_qqmlnativeconnector
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlsettings
- tst_qqmltimer
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickdroparea
- ...
| 45680 |
468 | } | - |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | QString QQmlFile::urlToLocalFileOrQrc(const QUrl& url) | - |
475 | { | - |
476 | if (url.scheme().compare(QLatin1String("qrc"), Qt::CaseInsensitive) == 0TRUE | evaluated 3507 times by 17 testsEvaluated by:- tst_examples
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlfile
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlnativeconnector
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qquickfolderlistmodel
- tst_qquickshortcut
- tst_qrcqml
- tst_sharedimage
| FALSE | evaluated 141998 times by 141 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
|
) { | 3507-141998 |
477 | if (url.authority().isEmpty()TRUE | evaluated 3507 times by 17 testsEvaluated by:- tst_examples
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlfile
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlnativeconnector
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qquickfolderlistmodel
- tst_qquickshortcut
- tst_qrcqml
- tst_sharedimage
| FALSE | never evaluated |
) | 0-3507 |
478 | returnexecuted 3507 times by 17 tests: return QLatin1Char(':') + url.path(); Executed by:- tst_examples
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlfile
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlnativeconnector
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qquickfolderlistmodel
- tst_qquickshortcut
- tst_qrcqml
- tst_sharedimage
QLatin1Char(':') + url.path();executed 3507 times by 17 tests: return QLatin1Char(':') + url.path(); Executed by:- tst_examples
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlfile
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlnativeconnector
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qquickfolderlistmodel
- tst_qquickshortcut
- tst_qrcqml
- tst_sharedimage
| 3507 |
479 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
480 | } | - |
481 | returnexecuted 141998 times by 141 tests: return url.toLocalFile(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
url.toLocalFile();executed 141998 times by 141 tests: return url.toLocalFile(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
| 141998 |
482 | } | - |
483 | | - |
484 | static QString toLocalFile(const QString &url) | - |
485 | { | - |
486 | const QUrl file(url); | - |
487 | if (!file.isLocalFile()TRUE | evaluated 132784 times by 16 testsEvaluated by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qquickapplication
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickitem2
- tst_qquickloader
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 466847 times by 127 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- ...
|
) | 132784-466847 |
488 | returnexecuted 132784 times by 16 tests: return QString(); Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qquickapplication
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickitem2
- tst_qquickloader
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
QString();executed 132784 times by 16 tests: return QString(); Executed by:- tst_bindingdependencyapi
- tst_parserstress
- tst_qjsengine
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlenginedebugservice
- tst_qqmllocale
- tst_qqmltypeloader
- tst_qquickapplication
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickitem2
- tst_qquickloader
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| 132784 |
489 | | - |
490 | | - |
491 | | - |
492 | returnexecuted 466847 times by 127 tests: return file.toLocalFile(); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- ...
file.toLocalFile();executed 466847 times by 127 tests: return file.toLocalFile(); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- ...
| 466847 |
493 | } | - |
494 | | - |
495 | | - |
496 | | - |
497 | | - |
498 | | - |
499 | QString QQmlFile::urlToLocalFileOrQrc(const QString& url) | - |
500 | { | - |
501 | if (url.startsWith(QLatin1String("qrc://"), Qt::CaseInsensitive)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 622073 times by 140 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
|
) { | 2-622073 |
502 | if (url.length() > 6TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
503 | returnexecuted 2 times by 1 test: return QLatin1Char(':') + url.midRef(6); QLatin1Char(':') + url.midRef(6);executed 2 times by 1 test: return QLatin1Char(':') + url.midRef(6); | 2 |
504 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
505 | } | - |
506 | | - |
507 | if (url.startsWith(QLatin1String("qrc:"), Qt::CaseInsensitive)TRUE | evaluated 22442 times by 138 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| FALSE | evaluated 599631 times by 133 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
|
) { | 22442-599631 |
508 | if (url.length() > 4TRUE | evaluated 22442 times by 138 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| FALSE | never evaluated |
) | 0-22442 |
509 | returnexecuted 22442 times by 138 tests: return QLatin1Char(':') + url.midRef(4); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
QLatin1Char(':') + url.midRef(4);executed 22442 times by 138 tests: return QLatin1Char(':') + url.midRef(4); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 22442 |
510 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
511 | } | - |
512 | | - |
513 | | - |
514 | | - |
515 | | - |
516 | | - |
517 | | - |
518 | | - |
519 | returnexecuted 599631 times by 133 tests: return toLocalFile(url); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
toLocalFile(url);executed 599631 times by 133 tests: return toLocalFile(url); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
| 599631 |
520 | } | - |
521 | | - |
522 | | - |
523 | | - |
| | |