qnetworkrequest.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/access/qnetworkrequest.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8class QNetworkRequestPrivate: public QSharedData, public QNetworkHeadersPrivate-
9{-
10public:-
11 static const int maxRedirectCount = 50;-
12 inline QNetworkRequestPrivate()-
13 : priority(QNetworkRequest::NormalPriority)-
14-
15 , sslConfiguration(0)-
16-
17 , maxRedirectsAllowed(maxRedirectCount)-
18 { qRegisterMetaType<QNetworkRequest>(); }
executed 3129 times by 11 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
3129
19 ~QNetworkRequestPrivate()-
20 {-
21-
22 delete sslConfiguration;-
23-
24 }
executed 3384 times by 12 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
  • tst_spdy - unknown status
3384
25-
26-
27 QNetworkRequestPrivate(const QNetworkRequestPrivate &other)-
28 : QSharedData(other), QNetworkHeadersPrivate(other)-
29 {-
30 url = other.url;-
31 priority = other.priority;-
32 maxRedirectsAllowed = other.maxRedirectsAllowed;-
33-
34 sslConfiguration = 0;-
35 if (other.sslConfiguration
other.sslConfigurationDescription
TRUEevaluated 102 times by 2 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
FALSEevaluated 154 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_Spdy
)
102-154
36 sslConfiguration = new QSslConfiguration(*other.sslConfiguration);
executed 102 times by 2 tests: sslConfiguration = new QSslConfiguration(*other.sslConfiguration);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
102
37-
38 }
executed 256 times by 3 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_Spdy
256
39-
40 inline bool operator==(const QNetworkRequestPrivate &other) const-
41 {-
42 return
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
url == other.url
url == other.urlDescription
TRUEnever evaluated
FALSEnever evaluated
&&
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
0
43 priority == other.priority
priority == other.priorityDescription
TRUEnever evaluated
FALSEnever evaluated
&&
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
0
44 rawHeaders == other.rawHeaders
rawHeaders == other.rawHeadersDescription
TRUEnever evaluated
FALSEnever evaluated
&&
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
0
45 attributes == other.attributes
attributes == other.attributesDescription
TRUEnever evaluated
FALSEnever evaluated
&&
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
0
46 maxRedirectsAllowed == other.maxRedirectsAllowed
maxRedirectsAl...directsAllowedDescription
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return url == other.url && priority == other.priority && rawHeaders == other.rawHeaders && attributes == other.attributes && maxRedirectsAllowed == other.maxRedirectsAllowed;
0
47-
48 }-
49-
50 QUrl url;-
51 QNetworkRequest::Priority priority;-
52-
53 mutable QSslConfiguration *sslConfiguration;-
54-
55 int maxRedirectsAllowed;-
56};-
57-
58-
59-
60-
61-
62-
63-
64QNetworkRequest::QNetworkRequest(const QUrl &url)-
65 : d(new QNetworkRequestPrivate)-
66{-
67 d->url = url;-
68}
executed 3129 times by 11 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
3129
69-
70-
71-
72-
73QNetworkRequest::QNetworkRequest(const QNetworkRequest &other)-
74 : d(other.d)-
75{-
76}
executed 1181 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
1181
77-
78-
79-
80-
81QNetworkRequest::~QNetworkRequest()-
82{-
83-
84 d = 0;-
85}
executed 4307 times by 12 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
  • tst_spdy - unknown status
4307
86-
87-
88-
89-
90-
91-
92-
93bool QNetworkRequest::operator==(const QNetworkRequest &other) const-
94{-
95 return
executed 1 time by 1 test: return d == other.d || *d == *other.d;
Executed by:
  • tst_QNetworkReply
d == other.d
d == other.dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEnever evaluated
|| *
*d == *other.dDescription
TRUEnever evaluated
FALSEnever evaluated
d == *other.d
*d == *other.dDescription
TRUEnever evaluated
FALSEnever evaluated
;
executed 1 time by 1 test: return d == other.d || *d == *other.d;
Executed by:
  • tst_QNetworkReply
0-1
96}-
97QNetworkRequest &QNetworkRequest::operator=(const QNetworkRequest &other)-
98{-
99 d = other.d;-
100 return
executed 1956 times by 10 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
*this;
executed 1956 times by 10 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
1956
101}-
102QUrl QNetworkRequest::url() const-
103{-
104 return
executed 6076 times by 11 tests: return d->url;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
d->url;
executed 6076 times by 11 tests: return d->url;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
6076
105}-
106-
107-
108-
109-
110-
111-
112void QNetworkRequest::setUrl(const QUrl &url)-
113{-
114 d->url = url;-
115}
executed 29 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
29
116QVariant QNetworkRequest::header(KnownHeaders header) const-
117{-
118 return
executed 1084 times by 9 tests: return d->cookedHeaders.value(header);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
d->cookedHeaders.value(header);
executed 1084 times by 9 tests: return d->cookedHeaders.value(header);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
1084
119}-
120void QNetworkRequest::setHeader(KnownHeaders header, const QVariant &value)-
121{-
122 d->setCookedHeader(header, value);-
123}
executed 212 times by 4 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
212
124-
125-
126-
127-
128-
129-
130-
131bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const-
132{-
133 return
executed 768 times by 8 tests: return d->findRawHeader(headerName) != d->rawHeaders.constEnd();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
d->findRawHeader(headerName) != d->rawHeaders.constEnd();
executed 768 times by 8 tests: return d->findRawHeader(headerName) != d->rawHeaders.constEnd();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
768
134}-
135QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName) const-
136{-
137 QNetworkHeadersPrivate::RawHeadersList::ConstIterator it =-
138 d->findRawHeader(headerName);-
139 if (it != d->rawHeaders.constEnd()
it != d->rawHeaders.constEnd()Description
TRUEevaluated 376 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
)
4-376
140 return
executed 376 times by 4 tests: return it->second;
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
it->second;
executed 376 times by 4 tests: return it->second;
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
376
141 return
executed 4 times by 1 test: return QByteArray();
Executed by:
  • tst_qnetworkrequest - unknown status
QByteArray();
executed 4 times by 1 test: return QByteArray();
Executed by:
  • tst_qnetworkrequest - unknown status
4
142}-
143-
144-
145-
146-
147-
148-
149-
150QList<QByteArray> QNetworkRequest::rawHeaderList() const-
151{-
152 return
executed 886 times by 9 tests: return d->rawHeadersKeys();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
d->rawHeadersKeys();
executed 886 times by 9 tests: return d->rawHeadersKeys();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
886
153}-
154void QNetworkRequest::setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)-
155{-
156 d->setRawHeader(headerName, headerValue);-
157}
executed 198 times by 4 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
198
158QVariant QNetworkRequest::attribute(Attribute code, const QVariant &defaultValue) const-
159{-
160 return
executed 10121 times by 9 tests: return d->attributes.value(code, defaultValue);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
d->attributes.value(code, defaultValue);
executed 10121 times by 9 tests: return d->attributes.value(code, defaultValue);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
10121
161}-
162void QNetworkRequest::setAttribute(Attribute code, const QVariant &value)-
163{-
164 if (value.isValid()
value.isValid()Description
TRUEevaluated 334 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
FALSEnever evaluated
)
0-334
165 d->attributes.insert(code, value);
executed 334 times by 5 tests: d->attributes.insert(code, value);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
334
166 else-
167 d->attributes.remove(code);
never executed: d->attributes.remove(code);
0
168}-
169QSslConfiguration QNetworkRequest::sslConfiguration() const-
170{-
171 if (!d->sslConfiguration
!d->sslConfigurationDescription
TRUEevaluated 814 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 411 times by 3 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_Spdy
)
411-814
172 d->sslConfiguration = new QSslConfiguration(QSslConfiguration::defaultConfiguration());
executed 814 times by 8 tests: d->sslConfiguration = new QSslConfiguration(QSslConfiguration::defaultConfiguration());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
814
173 return
executed 1225 times by 8 tests: return *d->sslConfiguration;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
*d->sslConfiguration;
executed 1225 times by 8 tests: return *d->sslConfiguration;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
1225
174}-
175void QNetworkRequest::setSslConfiguration(const QSslConfiguration &config)-
176{-
177 if (!d->sslConfiguration
!d->sslConfigurationDescription
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkReply
)
1-46
178 d->sslConfiguration = new QSslConfiguration(config);
executed 46 times by 1 test: d->sslConfiguration = new QSslConfiguration(config);
Executed by:
  • tst_QNetworkReply
46
179 else-
180 *
executed 1 time by 1 test: *d->sslConfiguration = config;
Executed by:
  • tst_QNetworkReply
d->sslConfiguration = config;
executed 1 time by 1 test: *d->sslConfiguration = config;
Executed by:
  • tst_QNetworkReply
1
181}-
182void QNetworkRequest::setOriginatingObject(QObject *object)-
183{-
184 d->originatingObject = object;-
185}
executed 1 time by 1 test: end of block
Executed by:
  • tst_qnetworkrequest - unknown status
1
186QObject *QNetworkRequest::originatingObject() const-
187{-
188 return
executed 3 times by 1 test: return d->originatingObject.data();
Executed by:
  • tst_qnetworkrequest - unknown status
d->originatingObject.data();
executed 3 times by 1 test: return d->originatingObject.data();
Executed by:
  • tst_qnetworkrequest - unknown status
3
189}-
190QNetworkRequest::Priority QNetworkRequest::priority() const-
191{-
192 return
executed 887 times by 8 tests: return d->priority;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
d->priority;
executed 887 times by 8 tests: return d->priority;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
887
193}-
194void QNetworkRequest::setPriority(Priority priority)-
195{-
196 d->priority = priority;-
197}
never executed: end of block
0
198int QNetworkRequest::maximumRedirectsAllowed() const-
199{-
200 return
executed 891 times by 8 tests: return d->maxRedirectsAllowed;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
d->maxRedirectsAllowed;
executed 891 times by 8 tests: return d->maxRedirectsAllowed;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
891
201}-
202void QNetworkRequest::setMaximumRedirectsAllowed(int maxRedirectsAllowed)-
203{-
204 d->maxRedirectsAllowed = maxRedirectsAllowed;-
205}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QNetworkReply
7
206-
207static QByteArray headerName(QNetworkRequest::KnownHeaders header)-
208{-
209 switch (header) {-
210 case
executed 94 times by 4 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentTypeHeader:
executed 94 times by 4 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
94
211 return
executed 94 times by 4 tests: return "Content-Type";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
"Content-Type";
executed 94 times by 4 tests: return "Content-Type";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
94
212-
213 case
executed 252 times by 5 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentLengthHeader:
executed 252 times by 5 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
252
214 return
executed 252 times by 5 tests: return "Content-Length";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
"Content-Length";
executed 252 times by 5 tests: return "Content-Length";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
252
215-
216 case
executed 3 times by 1 test: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LocationHeader:
executed 3 times by 1 test: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
3
217 return
executed 3 times by 1 test: return "Location";
Executed by:
  • tst_qnetworkrequest - unknown status
"Location";
executed 3 times by 1 test: return "Location";
Executed by:
  • tst_qnetworkrequest - unknown status
3
218-
219 case
executed 59 times by 3 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LastModifiedHeader:
executed 59 times by 3 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
59
220 return
executed 59 times by 3 tests: return "Last-Modified";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
"Last-Modified";
executed 59 times by 3 tests: return "Last-Modified";
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
59
221-
222 case
executed 11 times by 2 tests: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::CookieHeader:
executed 11 times by 2 tests: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
11
223 return
executed 11 times by 2 tests: return "Cookie";
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
"Cookie";
executed 11 times by 2 tests: return "Cookie";
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
11
224-
225 case
executed 3 times by 1 test: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::SetCookieHeader:
executed 3 times by 1 test: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
3
226 return
executed 3 times by 1 test: return "Set-Cookie";
Executed by:
  • tst_qnetworkrequest - unknown status
"Set-Cookie";
executed 3 times by 1 test: return "Set-Cookie";
Executed by:
  • tst_qnetworkrequest - unknown status
3
227-
228 case
executed 36 times by 2 tests: case QNetworkRequest::ContentDispositionHeader:
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
QNetworkRequest::ContentDispositionHeader:
executed 36 times by 2 tests: case QNetworkRequest::ContentDispositionHeader:
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
36
229 return
executed 36 times by 2 tests: return "Content-Disposition";
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
"Content-Disposition";
executed 36 times by 2 tests: return "Content-Disposition";
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
36
230-
231 case
executed 1 time by 1 test: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
QNetworkRequest::UserAgentHeader:
executed 1 time by 1 test: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
1
232 return
executed 1 time by 1 test: return "User-Agent";
Executed by:
  • tst_QNetworkReply
"User-Agent";
executed 1 time by 1 test: return "User-Agent";
Executed by:
  • tst_QNetworkReply
1
233-
234 case
never executed: case QNetworkRequest::ServerHeader:
QNetworkRequest::ServerHeader:
never executed: case QNetworkRequest::ServerHeader:
0
235 return
never executed: return "Server";
"Server";
never executed: return "Server";
0
236-
237-
238-
239 }-
240-
241 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
242}-
243-
244static QByteArray headerValue(QNetworkRequest::KnownHeaders header, const QVariant &value)-
245{-
246 switch (header) {-
247 case
executed 93 times by 4 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentTypeHeader:
executed 93 times by 4 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
93
248 case
executed 251 times by 5 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentLengthHeader:
executed 251 times by 5 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
251
249 case
executed 36 times by 2 tests: case QNetworkRequest::ContentDispositionHeader:
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
QNetworkRequest::ContentDispositionHeader:
executed 36 times by 2 tests: case QNetworkRequest::ContentDispositionHeader:
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
36
250 case
executed 1 time by 1 test: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
QNetworkRequest::UserAgentHeader:
executed 1 time by 1 test: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
1
251 case
never executed: case QNetworkRequest::ServerHeader:
QNetworkRequest::ServerHeader:
never executed: case QNetworkRequest::ServerHeader:
0
252 return
executed 381 times by 5 tests: return value.toByteArray();
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
value.toByteArray();
executed 381 times by 5 tests: return value.toByteArray();
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
381
253-
254 case
executed 3 times by 1 test: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LocationHeader:
executed 3 times by 1 test: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
3
255 switch (value.userType()) {-
256 case
executed 1 time by 1 test: case QMetaType::QUrl:
Executed by:
  • tst_qnetworkrequest - unknown status
QMetaType::QUrl:
executed 1 time by 1 test: case QMetaType::QUrl:
Executed by:
  • tst_qnetworkrequest - unknown status
1
257 return
executed 1 time by 1 test: return value.toUrl().toEncoded();
Executed by:
  • tst_qnetworkrequest - unknown status
value.toUrl().toEncoded();
executed 1 time by 1 test: return value.toUrl().toEncoded();
Executed by:
  • tst_qnetworkrequest - unknown status
1
258-
259 default
executed 2 times by 1 test: default:
Executed by:
  • tst_qnetworkrequest - unknown status
:
executed 2 times by 1 test: default:
Executed by:
  • tst_qnetworkrequest - unknown status
2
260 return
executed 2 times by 1 test: return value.toByteArray();
Executed by:
  • tst_qnetworkrequest - unknown status
value.toByteArray();
executed 2 times by 1 test: return value.toByteArray();
Executed by:
  • tst_qnetworkrequest - unknown status
2
261 }-
262-
263 case
executed 57 times by 3 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LastModifiedHeader:
executed 57 times by 3 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
57
264 switch (value.userType()) {-
265 case
executed 1 time by 1 test: case QMetaType::QDate:
Executed by:
  • tst_qnetworkrequest - unknown status
QMetaType::QDate:
executed 1 time by 1 test: case QMetaType::QDate:
Executed by:
  • tst_qnetworkrequest - unknown status
1
266 case
executed 56 times by 3 tests: case QMetaType::QDateTime:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
QMetaType::QDateTime:
executed 56 times by 3 tests: case QMetaType::QDateTime:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
56
267-
268 return
executed 57 times by 3 tests: return QNetworkHeadersPrivate::toHttpDate(value.toDateTime());
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
QNetworkHeadersPrivate::toHttpDate(value.toDateTime());
executed 57 times by 3 tests: return QNetworkHeadersPrivate::toHttpDate(value.toDateTime());
Executed by:
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
57
269-
270 default
never executed: default:
:
never executed: default:
0
271 return
never executed: return value.toByteArray();
value.toByteArray();
never executed: return value.toByteArray();
0
272 }-
273-
274 case
executed 11 times by 2 tests: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::CookieHeader:
executed 11 times by 2 tests: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
{
11
275 QList<QNetworkCookie> cookies = qvariant_cast<QList<QNetworkCookie> >(value);-
276 if (cookies.isEmpty()
cookies.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
&& value.userType() == qMetaTypeId<QNetworkCookie>()
value.userType...tworkCookie>()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-11
277 cookies << qvariant_cast<QNetworkCookie>(value);
never executed: cookies << qvariant_cast<QNetworkCookie>(value);
0
278-
279 QByteArray result;-
280 bool first = true;-
281 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(cookies)>::type> _container_((cookies)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QNetworkCookie &cookie = *_container_.i; _container_.control; _container_.control = 0) {-
282 if (!first
!firstDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
)
3-11
283 result += "; ";
executed 3 times by 2 tests: result += "; ";
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
3
284 first = false;-
285 result += cookie.toRawForm(QNetworkCookie::NameAndValueOnly);-
286 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
14
287 return
executed 11 times by 2 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
result;
executed 11 times by 2 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
11
288 }-
289-
290 case
executed 3 times by 1 test: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::SetCookieHeader:
executed 3 times by 1 test: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
{
3
291 QList<QNetworkCookie> cookies = qvariant_cast<QList<QNetworkCookie> >(value);-
292 if (cookies.isEmpty()
cookies.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
&& value.userType() == qMetaTypeId<QNetworkCookie>()
value.userType...tworkCookie>()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-3
293 cookies << qvariant_cast<QNetworkCookie>(value);
never executed: cookies << qvariant_cast<QNetworkCookie>(value);
0
294-
295 QByteArray result;-
296 bool first = true;-
297 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(cookies)>::type> _container_((cookies)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QNetworkCookie &cookie = *_container_.i; _container_.control; _container_.control = 0) {-
298 if (!first
!firstDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
)
1-3
299 result += ", ";
executed 1 time by 1 test: result += ", ";
Executed by:
  • tst_qnetworkrequest - unknown status
1
300 first = false;-
301 result += cookie.toRawForm(QNetworkCookie::Full);-
302 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qnetworkrequest - unknown status
4
303 return
executed 3 times by 1 test: return result;
Executed by:
  • tst_qnetworkrequest - unknown status
result;
executed 3 times by 1 test: return result;
Executed by:
  • tst_qnetworkrequest - unknown status
3
304 }-
305 }-
306-
307 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
308}-
309-
310static int parseHeaderName(const QByteArray &headerName)-
311{-
312 if (headerName.isEmpty()
headerName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 5856 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
0-5856
313 return
never executed: return -1;
-1;
never executed: return -1;
0
314-
315 switch (tolower(headerName.at(0))) {-
316 case
executed 2183 times by 7 tests: case 'c':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
'c':
executed 2183 times by 7 tests: case 'c':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
2183
317 if (qstricmp(headerName.constData(), "content-type") == 0
qstricmp(heade...nt-type") == 0Description
TRUEevaluated 917 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 1266 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
917-1266
318 return
executed 917 times by 6 tests: return QNetworkRequest::ContentTypeHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentTypeHeader;
executed 917 times by 6 tests: return QNetworkRequest::ContentTypeHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
917
319 else if (qstricmp(headerName.constData(), "content-length") == 0
qstricmp(heade...-length") == 0Description
TRUEevaluated 590 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 676 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
590-676
320 return
executed 590 times by 7 tests: return QNetworkRequest::ContentLengthHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentLengthHeader;
executed 590 times by 7 tests: return QNetworkRequest::ContentLengthHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
590
321 else if (qstricmp(headerName.constData(), "cookie") == 0
qstricmp(heade..."cookie") == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
FALSEevaluated 674 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
)
2-674
322 return
executed 2 times by 1 test: return QNetworkRequest::CookieHeader;
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::CookieHeader;
executed 2 times by 1 test: return QNetworkRequest::CookieHeader;
Executed by:
  • tst_qnetworkrequest - unknown status
2
323 break;
executed 674 times by 6 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
674
324-
325 case
executed 360 times by 6 tests: case 'l':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
'l':
executed 360 times by 6 tests: case 'l':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
360
326 if (qstricmp(headerName.constData(), "location") == 0
qstricmp(heade...ocation") == 0Description
TRUEevaluated 47 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 313 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
47-313
327 return
executed 47 times by 3 tests: return QNetworkRequest::LocationHeader;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LocationHeader;
executed 47 times by 3 tests: return QNetworkRequest::LocationHeader;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
47
328 else if (qstricmp(headerName.constData(), "last-modified") == 0
qstricmp(heade...odified") == 0Description
TRUEevaluated 313 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEnever evaluated
)
0-313
329 return
executed 313 times by 5 tests: return QNetworkRequest::LastModifiedHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LastModifiedHeader;
executed 313 times by 5 tests: return QNetworkRequest::LastModifiedHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
313
330 break;
never executed: break;
0
331-
332 case
executed 851 times by 7 tests: case 's':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
's':
executed 851 times by 7 tests: case 's':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
851
333 if (qstricmp(headerName.constData(), "set-cookie") == 0
qstricmp(heade...-cookie") == 0Description
TRUEevaluated 19 times by 3 tests
Evaluated by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 832 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
)
19-832
334 return
executed 19 times by 3 tests: return QNetworkRequest::SetCookieHeader;
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::SetCookieHeader;
executed 19 times by 3 tests: return QNetworkRequest::SetCookieHeader;
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
19
335 else if (qstricmp(headerName.constData(), "server") == 0
qstricmp(heade..."server") == 0Description
TRUEevaluated 831 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkReply
)
1-831
336 return
executed 831 times by 5 tests: return QNetworkRequest::ServerHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
QNetworkRequest::ServerHeader;
executed 831 times by 5 tests: return QNetworkRequest::ServerHeader;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
831
337 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QNetworkReply
1
338-
339 case
executed 9 times by 2 tests: case 'u':
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
'u':
executed 9 times by 2 tests: case 'u':
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
9
340 if (qstricmp(headerName.constData(), "user-agent") == 0
qstricmp(heade...r-agent") == 0Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
FALSEnever evaluated
)
0-9
341 return
executed 9 times by 2 tests: return QNetworkRequest::UserAgentHeader;
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
QNetworkRequest::UserAgentHeader;
executed 9 times by 2 tests: return QNetworkRequest::UserAgentHeader;
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
9
342 break;
never executed: break;
0
343 }-
344-
345 return
executed 3128 times by 8 tests: return -1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
-1;
executed 3128 times by 8 tests: return -1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
3128
346}-
347-
348static QVariant parseHttpDate(const QByteArray &raw)-
349{-
350 QDateTime dt = QNetworkHeadersPrivate::fromHttpDate(raw);-
351 if (dt.isValid()
dt.isValid()Description
TRUEevaluated 313 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEnever evaluated
)
0-313
352 return
executed 313 times by 5 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
dt;
executed 313 times by 5 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
313
353 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
354}-
355-
356static QVariant parseCookieHeader(const QByteArray &raw)-
357{-
358 QList<QNetworkCookie> result;-
359 QList<QByteArray> cookieList = raw.split(';');-
360 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(cookieList)>::type> _container_((cookieList)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QByteArray &cookie = *_container_.i; _container_.control; _container_.control = 0) {-
361 QList<QNetworkCookie> parsed = QNetworkCookie::parseCookies(cookie.trimmed());-
362 if (parsed.count() != 1
parsed.count() != 1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
)
0-3
363 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
364-
365 result += parsed;-
366 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qnetworkrequest - unknown status
3
367-
368 return
executed 2 times by 1 test: return QVariant::fromValue(result);
Executed by:
  • tst_qnetworkrequest - unknown status
QVariant::fromValue(result);
executed 2 times by 1 test: return QVariant::fromValue(result);
Executed by:
  • tst_qnetworkrequest - unknown status
2
369}-
370-
371static QVariant parseHeaderValue(QNetworkRequest::KnownHeaders header, const QByteArray &value)-
372{-
373-
374 switch (header) {-
375 case
executed 9 times by 2 tests: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
QNetworkRequest::UserAgentHeader:
executed 9 times by 2 tests: case QNetworkRequest::UserAgentHeader:
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
9
376 case
executed 831 times by 5 tests: case QNetworkRequest::ServerHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
QNetworkRequest::ServerHeader:
executed 831 times by 5 tests: case QNetworkRequest::ServerHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
831
377 case
executed 917 times by 6 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentTypeHeader:
executed 917 times by 6 tests: case QNetworkRequest::ContentTypeHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
917
378-
379 return
executed 1757 times by 7 tests: return QString::fromLatin1(value);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QString::fromLatin1(value);
executed 1757 times by 7 tests: return QString::fromLatin1(value);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
1757
380-
381 case
executed 589 times by 7 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::ContentLengthHeader:
executed 589 times by 7 tests: case QNetworkRequest::ContentLengthHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
{
589
382 bool ok;-
383 qint64 result = value.trimmed().toLongLong(&ok);-
384 if (ok
okDescription
TRUEevaluated 587 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
)
2-587
385 return
executed 587 times by 7 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
result;
executed 587 times by 7 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
587
386 return
executed 2 times by 1 test: return QVariant();
Executed by:
  • tst_qnetworkrequest - unknown status
QVariant();
executed 2 times by 1 test: return QVariant();
Executed by:
  • tst_qnetworkrequest - unknown status
2
387 }-
388-
389 case
executed 47 times by 3 tests: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LocationHeader:
executed 47 times by 3 tests: case QNetworkRequest::LocationHeader:
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
{
47
390 QUrl result = QUrl::fromEncoded(value, QUrl::StrictMode);-
391 if (result.isValid()
result.isValid()Description
TRUEevaluated 45 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
&& !result.scheme().isEmpty()
!result.scheme().isEmpty()Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
)
1-45
392 return
executed 44 times by 3 tests: return result;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
result;
executed 44 times by 3 tests: return result;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
44
393 return
executed 3 times by 1 test: return QVariant();
Executed by:
  • tst_qnetworkrequest - unknown status
QVariant();
executed 3 times by 1 test: return QVariant();
Executed by:
  • tst_qnetworkrequest - unknown status
3
394 }-
395-
396 case
executed 313 times by 5 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
QNetworkRequest::LastModifiedHeader:
executed 313 times by 5 tests: case QNetworkRequest::LastModifiedHeader:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
313
397 return
executed 313 times by 5 tests: return parseHttpDate(value);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
parseHttpDate(value);
executed 313 times by 5 tests: return parseHttpDate(value);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
313
398-
399 case
executed 2 times by 1 test: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
QNetworkRequest::CookieHeader:
executed 2 times by 1 test: case QNetworkRequest::CookieHeader:
Executed by:
  • tst_qnetworkrequest - unknown status
2
400 return
executed 2 times by 1 test: return parseCookieHeader(value);
Executed by:
  • tst_qnetworkrequest - unknown status
parseCookieHeader(value);
executed 2 times by 1 test: return parseCookieHeader(value);
Executed by:
  • tst_qnetworkrequest - unknown status
2
401-
402 case
executed 19 times by 3 tests: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QNetworkRequest::SetCookieHeader:
executed 19 times by 3 tests: case QNetworkRequest::SetCookieHeader:
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
19
403 return
executed 19 times by 3 tests: return QVariant::fromValue(QNetworkCookie::parseCookies(value));
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
QVariant::fromValue(QNetworkCookie::parseCookies(value));
executed 19 times by 3 tests: return QVariant::fromValue(QNetworkCookie::parseCookies(value));
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
19
404-
405 default
never executed: default:
:
never executed: default:
0
406 ((!(0)) ? qt_assert("0",__FILE__,899) : qt_noop());-
407 }
never executed: end of block
0
408 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
409}-
410-
411QNetworkHeadersPrivate::RawHeadersList::ConstIterator-
412QNetworkHeadersPrivate::findRawHeader(const QByteArray &key) const-
413{-
414 RawHeadersList::ConstIterator it = rawHeaders.constBegin();-
415 RawHeadersList::ConstIterator end = rawHeaders.constEnd();-
416 for ( ; it != end
it != endDescription
TRUEevaluated 20002 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 6777 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
; ++it)
6777-20002
417 if (qstricmp(it->first.constData(), key.constData()) == 0
qstricmp(it->f...stData()) == 0Description
TRUEevaluated 1002 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 19000 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
1002-19000
418 return
executed 1002 times by 7 tests: return it;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
it;
executed 1002 times by 7 tests: return it;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
1002
419-
420 return
executed 6777 times by 13 tests: return end;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
end;
executed 6777 times by 13 tests: return end;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
6777
421}-
422-
423QNetworkHeadersPrivate::RawHeadersList QNetworkHeadersPrivate::allRawHeaders() const-
424{-
425 return
executed 26 times by 2 tests: return rawHeaders;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
rawHeaders;
executed 26 times by 2 tests: return rawHeaders;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
26
426}-
427-
428QList<QByteArray> QNetworkHeadersPrivate::rawHeadersKeys() const-
429{-
430 QList<QByteArray> result;-
431 result.reserve(rawHeaders.size());-
432 RawHeadersList::ConstIterator it = rawHeaders.constBegin(),-
433 end = rawHeaders.constEnd();-
434 for ( ; it != end
it != endDescription
TRUEevaluated 1079 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 1532 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
; ++it)
1079-1532
435 result << it->first;
executed 1079 times by 6 tests: result << it->first;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
1079
436-
437 return
executed 1532 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
result;
executed 1532 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
1532
438}-
439-
440void QNetworkHeadersPrivate::setRawHeader(const QByteArray &key, const QByteArray &value)-
441{-
442 if (key.isEmpty()
key.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
FALSEevaluated 5692 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
2-5692
443-
444 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qnetworkrequest - unknown status
2
445-
446 setRawHeaderInternal(key, value);-
447 parseAndSetHeader(key, value);-
448}
executed 5692 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
5692
449void QNetworkHeadersPrivate::setAllRawHeaders(const RawHeadersList &list)-
450{-
451 cookedHeaders.clear();-
452 rawHeaders = list;-
453-
454 RawHeadersList::ConstIterator it = rawHeaders.constBegin();-
455 RawHeadersList::ConstIterator end = rawHeaders.constEnd();-
456 for ( ; it != end
it != endDescription
TRUEevaluated 164 times by 3 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
FALSEevaluated 107 times by 3 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
; ++it)
107-164
457 parseAndSetHeader(it->first, it->second);
executed 164 times by 3 tests: parseAndSetHeader(it->first, it->second);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
164
458}
executed 107 times by 3 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
107
459-
460void QNetworkHeadersPrivate::setCookedHeader(QNetworkRequest::KnownHeaders header,-
461 const QVariant &value)-
462{-
463 QByteArray name = headerName(header);-
464 if (name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 459 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
0-459
465-
466 QMessageLogger(__FILE__, 968, __PRETTY_FUNCTION__).warning("QNetworkRequest::setHeader: invalid header value KnownHeader(%d) received", header);-
467 return;
never executed: return;
0
468 }-
469-
470 if (value.isNull()
value.isNull()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 455 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
4-455
471 setRawHeaderInternal(name, QByteArray());-
472 cookedHeaders.remove(header);-
473 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
else {
4
474 QByteArray rawValue = headerValue(header, value);-
475 if (rawValue.isEmpty()
rawValue.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 455 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
0-455
476 QMessageLogger(__FILE__, 978, __PRETTY_FUNCTION__).warning("QNetworkRequest::setHeader: QVariant of type %s cannot be used with header %s",-
477 value.typeName(), name.constData());-
478 return;
never executed: return;
0
479 }-
480-
481 setRawHeaderInternal(name, rawValue);-
482 cookedHeaders.insert(header, value);-
483 }
executed 455 times by 5 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
455
484}-
485-
486void QNetworkHeadersPrivate::setRawHeaderInternal(const QByteArray &key, const QByteArray &value)-
487{-
488 RawHeadersList::Iterator it = rawHeaders.begin();-
489 while (it != rawHeaders.end()
it != rawHeaders.end()Description
TRUEevaluated 17664 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 6151 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
6151-17664
490 if (qstricmp(it->first.constData(), key.constData()) == 0
qstricmp(it->f...stData()) == 0Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 17620 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
44-17620
491 it = rawHeaders.erase(it);
executed 44 times by 3 tests: it = rawHeaders.erase(it);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
44
492 else-
493 ++
executed 17620 times by 9 tests: ++it;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
it;
executed 17620 times by 9 tests: ++it;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
17620
494 }-
495-
496 if (value.isNull()
value.isNull()Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
FALSEevaluated 6142 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
)
9-6142
497 return;
executed 9 times by 2 tests: return;
Executed by:
  • tst_QNetworkReply
  • tst_qnetworkrequest - unknown status
9
498-
499 RawHeaderPair pair;-
500 pair.first = key;-
501 pair.second = value;-
502 rawHeaders.append(pair);-
503}
executed 6142 times by 9 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
6142
504-
505void QNetworkHeadersPrivate::parseAndSetHeader(const QByteArray &key, const QByteArray &value)-
506{-
507-
508 const int parsedKeyAsInt = parseHeaderName(key);-
509 if (parsedKeyAsInt != -1
parsedKeyAsInt != -1Description
TRUEevaluated 2728 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 3128 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
2728-3128
510 const QNetworkRequest::KnownHeaders parsedKey-
511 = static_cast<QNetworkRequest::KnownHeaders>(parsedKeyAsInt);-
512 if (value.isNull()
value.isNull()Description
TRUEnever evaluated
FALSEevaluated 2728 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
0-2728
513 cookedHeaders.remove(parsedKey);-
514 }
never executed: end of block
else if (parsedKey == QNetworkRequest::ContentLengthHeader
parsedKey == Q...ntLengthHeaderDescription
TRUEevaluated 590 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 2138 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
0-2138
515 && cookedHeaders.contains(QNetworkRequest::ContentLengthHeader)
cookedHeaders....tLengthHeader)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEevaluated 589 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
1-589
516-
517-
518 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QNetworkReply
else {
1
519 cookedHeaders.insert(parsedKey, parseHeaderValue(parsedKey, value));-
520 }
executed 2727 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
2727
521-
522 }-
523}
executed 5856 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
5856
524-
525-
526-
527-
528static int name_to_month(const char* month_str)-
529{-
530 switch (month_str[0]) {-
531 case
executed 20 times by 1 test: case 'J':
Executed by:
  • tst_QAbstractNetworkCache
'J':
executed 20 times by 1 test: case 'J':
Executed by:
  • tst_QAbstractNetworkCache
20
532 switch (month_str[1]) {-
533 case
executed 20 times by 1 test: case 'a':
Executed by:
  • tst_QAbstractNetworkCache
'a':
executed 20 times by 1 test: case 'a':
Executed by:
  • tst_QAbstractNetworkCache
20
534 return
executed 20 times by 1 test: return 1;
Executed by:
  • tst_QAbstractNetworkCache
1;
executed 20 times by 1 test: return 1;
Executed by:
  • tst_QAbstractNetworkCache
20
535 case
never executed: case 'u':
'u':
never executed: case 'u':
0
536 switch (month_str[2] ) {-
537 case
never executed: case 'n':
'n':
never executed: case 'n':
0
538 return
never executed: return 6;
6;
never executed: return 6;
0
539 case
never executed: case 'l':
'l':
never executed: case 'l':
0
540 return
never executed: return 7;
7;
never executed: return 7;
0
541 }-
542 }
never executed: end of block
0
543 break;
never executed: break;
0
544 case
never executed: case 'F':
'F':
never executed: case 'F':
0
545 return
never executed: return 2;
2;
never executed: return 2;
0
546 case
executed 63 times by 1 test: case 'M':
Executed by:
  • tst_QNetworkReply
'M':
executed 63 times by 1 test: case 'M':
Executed by:
  • tst_QNetworkReply
63
547 switch (month_str[2] ) {-
548 case
executed 1 time by 1 test: case 'r':
Executed by:
  • tst_QNetworkReply
'r':
executed 1 time by 1 test: case 'r':
Executed by:
  • tst_QNetworkReply
1
549 return
executed 1 time by 1 test: return 3;
Executed by:
  • tst_QNetworkReply
3;
executed 1 time by 1 test: return 3;
Executed by:
  • tst_QNetworkReply
1
550 case
executed 62 times by 1 test: case 'y':
Executed by:
  • tst_QNetworkReply
'y':
executed 62 times by 1 test: case 'y':
Executed by:
  • tst_QNetworkReply
62
551 return
executed 62 times by 1 test: return 5;
Executed by:
  • tst_QNetworkReply
5;
executed 62 times by 1 test: return 5;
Executed by:
  • tst_QNetworkReply
62
552 }-
553 break;
never executed: break;
0
554 case
executed 15 times by 2 tests: case 'A':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
'A':
executed 15 times by 2 tests: case 'A':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
15
555 switch (month_str[1]) {-
556 case
never executed: case 'p':
'p':
never executed: case 'p':
0
557 return
never executed: return 4;
4;
never executed: return 4;
0
558 case
executed 15 times by 2 tests: case 'u':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
'u':
executed 15 times by 2 tests: case 'u':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
15
559 return
executed 15 times by 2 tests: return 8;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
8;
executed 15 times by 2 tests: return 8;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
15
560 }-
561 break;
never executed: break;
0
562 case
executed 225 times by 4 tests: case 'O':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
'O':
executed 225 times by 4 tests: case 'O':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
225
563 return
executed 225 times by 4 tests: return 10;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
10;
executed 225 times by 4 tests: return 10;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
225
564 case
never executed: case 'S':
'S':
never executed: case 'S':
0
565 return
never executed: return 9;
9;
never executed: return 9;
0
566 case
executed 42 times by 3 tests: case 'N':
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
'N':
executed 42 times by 3 tests: case 'N':
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
42
567 return
executed 42 times by 3 tests: return 11;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
11;
executed 42 times by 3 tests: return 11;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
42
568 case
never executed: case 'D':
'D':
never executed: case 'D':
0
569 return
never executed: return 12;
12;
never executed: return 12;
0
570 }-
571-
572 return
never executed: return 0;
0;
never executed: return 0;
0
573}-
574-
575QDateTime QNetworkHeadersPrivate::fromHttpDate(const QByteArray &value)-
576{-
577-
578-
579-
580-
581-
582-
583 int pos = value.indexOf(',');-
584 QDateTime dt;-
585-
586 if (pos == -1
pos == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
FALSEevaluated 366 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
) {
1-366
587-
588 dt = QDateTime::fromString(QString::fromLatin1(value), Qt::TextDate);-
589 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qnetworkrequest - unknown status
else {
1
590-
591-
592 if (pos == 3
pos == 3Description
TRUEevaluated 365 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkrequest - unknown status
) {
1-365
593 char month_name[4];-
594 int day, year, hour, minute, second;-
595-
596-
597-
598-
599-
600-
601 if (sscanf(value.constData(), "%*3s, %d %3s %d %d:%d:%d 'GMT'", &day, month_name, &year, &hour, &minute, &second) == 6
sscanf(value.c... &second) == 6Description
TRUEevaluated 365 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEnever evaluated
)
0-365
602-
603 dt = QDateTime(QDate(year, name_to_month(month_name), day), QTime(hour, minute, second));
executed 365 times by 5 tests: dt = QDateTime(QDate(year, name_to_month(month_name), day), QTime(hour, minute, second));
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
365
604 }
executed 365 times by 5 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
else {
365
605 QLocale c = QLocale::c();-
606-
607 QString sansWeekday = QString::fromLatin1(value.constData() + pos + 2);-
608-
609 dt = c.toDateTime(sansWeekday, QLatin1String("dd-MMM-yy hh:mm:ss 'GMT'"));-
610 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qnetworkrequest - unknown status
1
611 }-
612-
613-
614 if (dt.isValid()
dt.isValid()Description
TRUEevaluated 367 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
FALSEnever evaluated
)
0-367
615 dt.setTimeSpec(Qt::UTC);
executed 367 times by 5 tests: dt.setTimeSpec(Qt::UTC);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
367
616 return
executed 367 times by 5 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
dt;
executed 367 times by 5 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qnetworkrequest - unknown status
367
617}-
618-
619QByteArray QNetworkHeadersPrivate::toHttpDate(const QDateTime &dt)-
620{-
621 return
executed 79 times by 4 tests: return QLocale::c().toString(dt, QLatin1String("ddd, dd MMM yyyy hh:mm:ss 'GMT'")) .toLatin1();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
QLocale::c().toString(dt, QLatin1String("ddd, dd MMM yyyy hh:mm:ss 'GMT'"))
executed 79 times by 4 tests: return QLocale::c().toString(dt, QLatin1String("ddd, dd MMM yyyy hh:mm:ss 'GMT'")) .toLatin1();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
79
622 .toLatin1();
executed 79 times by 4 tests: return QLocale::c().toString(dt, QLatin1String("ddd, dd MMM yyyy hh:mm:ss 'GMT'")) .toLatin1();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QXmlStream
  • tst_qnetworkrequest - unknown status
79
623}-
624-
625-
Switch to Source codePreprocessed file

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