| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | QHttpNetworkReply::QHttpNetworkReply(const QUrl &url, QObject *parent) | - |
| 14 | : QObject(*new QHttpNetworkReplyPrivate(url), parent) | - |
| 15 | { | - |
| 16 | }executed 2204 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2204 |
| 17 | | - |
| 18 | QHttpNetworkReply::~QHttpNetworkReply() | - |
| 19 | { | - |
| 20 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 21 | if (d->connection| TRUE | evaluated 1569 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 467 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 467-1569 |
| 22 | d->connection->d_func()->removeReply(this); | - |
| 23 | }executed 1569 times by 9 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
| 1569 |
| 24 | | - |
| 25 | | - |
| 26 | if (d->autoDecompress| TRUE | evaluated 50 times by 4 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 1986 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->isCompressed()| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 43 times by 4 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
|
&& d->inflateStrm| TRUE | evaluated 7 times by 1 test | | FALSE | never evaluated |
) | 0-1986 |
| 27 | inflateEnd(d->inflateStrm);executed 7 times by 1 test: inflateEnd(d->inflateStrm); | 7 |
| 28 | | - |
| 29 | }executed 2036 times by 15 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2036 |
| 30 | | - |
| 31 | QUrl QHttpNetworkReply::url() const | - |
| 32 | { | - |
| 33 | return never executed: return d_func()->url; d_func()->url;never executed: return d_func()->url; | 0 |
| 34 | } | - |
| 35 | void QHttpNetworkReply::setUrl(const QUrl &url) | - |
| 36 | { | - |
| 37 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 38 | d->url = url; | - |
| 39 | } never executed: end of block | 0 |
| 40 | | - |
| 41 | QUrl QHttpNetworkReply::redirectUrl() const | - |
| 42 | { | - |
| 43 | returnexecuted 6 times by 2 tests: return d_func()->redirectUrl;Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
d_func()->redirectUrl;executed 6 times by 2 tests: return d_func()->redirectUrl;Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 6 |
| 44 | } | - |
| 45 | | - |
| 46 | void QHttpNetworkReply::setRedirectUrl(const QUrl &url) | - |
| 47 | { | - |
| 48 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 49 | d->redirectUrl = url; | - |
| 50 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 6 |
| 51 | | - |
| 52 | bool QHttpNetworkReply::isHttpRedirect(int statusCode) | - |
| 53 | { | - |
| 54 | returnexecuted 24 times by 2 tests: return (statusCode == 301 || statusCode == 302 || statusCode == 303 || statusCode == 305 || statusCode == 307);Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
(statusCode == 301| TRUE | never evaluated | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
|| statusCode == 302| TRUE | never evaluated | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
|| statusCode == 303| TRUE | never evaluated | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
executed 24 times by 2 tests: return (statusCode == 301 || statusCode == 302 || statusCode == 303 || statusCode == 305 || statusCode == 307);Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 0-24 |
| 55 | || statusCode == 305| TRUE | never evaluated | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
|| statusCode == 307| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 6 times by 1 test |
);executed 24 times by 2 tests: return (statusCode == 301 || statusCode == 302 || statusCode == 303 || statusCode == 305 || statusCode == 307);Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 0-24 |
| 56 | } | - |
| 57 | | - |
| 58 | qint64 QHttpNetworkReply::contentLength() const | - |
| 59 | { | - |
| 60 | returnexecuted 1572 times by 8 tests: return d_func()->contentLength();Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
d_func()->contentLength();executed 1572 times by 8 tests: return d_func()->contentLength();Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 1572 |
| 61 | } | - |
| 62 | | - |
| 63 | void QHttpNetworkReply::setContentLength(qint64 length) | - |
| 64 | { | - |
| 65 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 66 | d->setContentLength(length); | - |
| 67 | }executed 22 times by 1 test: end of block | 22 |
| 68 | | - |
| 69 | QList<QPair<QByteArray, QByteArray> > QHttpNetworkReply::header() const | - |
| 70 | { | - |
| 71 | returnexecuted 1333 times by 13 tests: return d_func()->fields;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d_func()->fields;executed 1333 times by 13 tests: return d_func()->fields;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1333 |
| 72 | } | - |
| 73 | | - |
| 74 | QByteArray QHttpNetworkReply::headerField(const QByteArray &name, const QByteArray &defaultValue) const | - |
| 75 | { | - |
| 76 | returnexecuted 2207 times by 13 tests: return d_func()->headerField(name, defaultValue);Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d_func()->headerField(name, defaultValue);executed 2207 times by 13 tests: return d_func()->headerField(name, defaultValue);Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2207 |
| 77 | } | - |
| 78 | | - |
| 79 | void QHttpNetworkReply::setHeaderField(const QByteArray &name, const QByteArray &data) | - |
| 80 | { | - |
| 81 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 82 | d->setHeaderField(name, data); | - |
| 83 | }executed 449 times by 1 test: end of block | 449 |
| 84 | | - |
| 85 | void QHttpNetworkReply::parseHeader(const QByteArray &header) | - |
| 86 | { | - |
| 87 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 88 | d->parseHeader(header); | - |
| 89 | }executed 7 times by 1 test: end of blockExecuted by:- tst_qhttpnetworkreply - unknown status
| 7 |
| 90 | | - |
| 91 | QHttpNetworkRequest QHttpNetworkReply::request() const | - |
| 92 | { | - |
| 93 | returnexecuted 1072 times by 5 tests: return d_func()->request;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
d_func()->request;executed 1072 times by 5 tests: return d_func()->request;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 1072 |
| 94 | } | - |
| 95 | | - |
| 96 | void QHttpNetworkReply::setRequest(const QHttpNetworkRequest &request) | - |
| 97 | { | - |
| 98 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 99 | d->request = request; | - |
| 100 | d->ssl = request.isSsl(); | - |
| 101 | }executed 1753 times by 8 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
| 1753 |
| 102 | | - |
| 103 | int QHttpNetworkReply::statusCode() const | - |
| 104 | { | - |
| 105 | returnexecuted 3847 times by 13 tests: return d_func()->statusCode;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d_func()->statusCode;executed 3847 times by 13 tests: return d_func()->statusCode;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3847 |
| 106 | } | - |
| 107 | | - |
| 108 | void QHttpNetworkReply::setStatusCode(int code) | - |
| 109 | { | - |
| 110 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 111 | d->statusCode = code; | - |
| 112 | }executed 107 times by 1 test: end of block | 107 |
| 113 | | - |
| 114 | QString QHttpNetworkReply::errorString() const | - |
| 115 | { | - |
| 116 | return never executed: return d_func()->errorString; d_func()->errorString;never executed: return d_func()->errorString; | 0 |
| 117 | } | - |
| 118 | | - |
| 119 | QString QHttpNetworkReply::reasonPhrase() const | - |
| 120 | { | - |
| 121 | returnexecuted 815 times by 8 tests: return d_func()->reasonPhrase;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
d_func()->reasonPhrase;executed 815 times by 8 tests: return d_func()->reasonPhrase;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 815 |
| 122 | } | - |
| 123 | | - |
| 124 | void QHttpNetworkReply::setErrorString(const QString &error) | - |
| 125 | { | - |
| 126 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 127 | d->errorString = error; | - |
| 128 | } never executed: end of block | 0 |
| 129 | | - |
| 130 | int QHttpNetworkReply::majorVersion() const | - |
| 131 | { | - |
| 132 | returnexecuted 3 times by 1 test: return d_func()->majorVersion;Executed by:- tst_qhttpsocketengine - unknown status
d_func()->majorVersion;executed 3 times by 1 test: return d_func()->majorVersion;Executed by:- tst_qhttpsocketengine - unknown status
| 3 |
| 133 | } | - |
| 134 | | - |
| 135 | int QHttpNetworkReply::minorVersion() const | - |
| 136 | { | - |
| 137 | returnexecuted 3 times by 1 test: return d_func()->minorVersion;Executed by:- tst_qhttpsocketengine - unknown status
d_func()->minorVersion;executed 3 times by 1 test: return d_func()->minorVersion;Executed by:- tst_qhttpsocketengine - unknown status
| 3 |
| 138 | } | - |
| 139 | | - |
| 140 | qint64 QHttpNetworkReply::bytesAvailable() const | - |
| 141 | { | - |
| 142 | const QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 143 | if (d->connection| TRUE | evaluated 23631 times by 1 testEvaluated by:- tst_QHttpNetworkConnection
| | FALSE | never evaluated |
) | 0-23631 |
| 144 | returnexecuted 23631 times by 1 test: return d->connection->d_func()->uncompressedBytesAvailable(*this);Executed by:- tst_QHttpNetworkConnection
d->connection->d_func()->uncompressedBytesAvailable(*this);executed 23631 times by 1 test: return d->connection->d_func()->uncompressedBytesAvailable(*this);Executed by:- tst_QHttpNetworkConnection
| 23631 |
| 145 | else | - |
| 146 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 147 | } | - |
| 148 | | - |
| 149 | qint64 QHttpNetworkReply::bytesAvailableNextBlock() const | - |
| 150 | { | - |
| 151 | const QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 152 | if (d->connection| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 153 | return never executed: return d->connection->d_func()->uncompressedBytesAvailableNextBlock(*this); d->connection->d_func()->uncompressedBytesAvailableNextBlock(*this);never executed: return d->connection->d_func()->uncompressedBytesAvailableNextBlock(*this); | 0 |
| 154 | else | - |
| 155 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 156 | } | - |
| 157 | | - |
| 158 | bool QHttpNetworkReply::readAnyAvailable() const | - |
| 159 | { | - |
| 160 | const QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 161 | returnexecuted 17924 times by 7 tests: return (d->responseData.bufferCount() > 0);Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
(d->responseData.bufferCount() > 0);executed 17924 times by 7 tests: return (d->responseData.bufferCount() > 0);Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 17924 |
| 162 | } | - |
| 163 | | - |
| 164 | QByteArray QHttpNetworkReply::readAny() | - |
| 165 | { | - |
| 166 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 167 | if (d->responseData.bufferCount() == 0| TRUE | never evaluated | | FALSE | evaluated 5875 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_Spdy
|
) | 0-5875 |
| 168 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
| 169 | | - |
| 170 | | - |
| 171 | if (d->downstreamLimited| TRUE | evaluated 208 times by 1 test | | FALSE | evaluated 5667 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_Spdy
|
&& d->responseData.bufferCount() == 1| TRUE | evaluated 189 times by 1 test | | FALSE | evaluated 19 times by 1 test |
&& !isFinished()| TRUE | evaluated 186 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 3-5667 |
| 172 | d->connection->d_func()->readMoreLater(this);executed 186 times by 1 test: d->connection->d_func()->readMoreLater(this); | 186 |
| 173 | returnexecuted 5875 times by 5 tests: return d->responseData.read();Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_Spdy
d->responseData.read();executed 5875 times by 5 tests: return d->responseData.read();Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_Spdy
| 5875 |
| 174 | } | - |
| 175 | | - |
| 176 | QByteArray QHttpNetworkReply::readAll() | - |
| 177 | { | - |
| 178 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 179 | returnexecuted 76 times by 1 test: return d->responseData.readAll(); d->responseData.readAll();executed 76 times by 1 test: return d->responseData.readAll(); | 76 |
| 180 | } | - |
| 181 | | - |
| 182 | QByteArray QHttpNetworkReply::read(qint64 amount) | - |
| 183 | { | - |
| 184 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 185 | returnexecuted 40 times by 1 test: return d->responseData.read(amount); d->responseData.read(amount);executed 40 times by 1 test: return d->responseData.read(amount); | 40 |
| 186 | } | - |
| 187 | | - |
| 188 | | - |
| 189 | qint64 QHttpNetworkReply::sizeNextBlock() | - |
| 190 | { | - |
| 191 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 192 | returnexecuted 456 times by 1 test: return d->responseData.sizeNextBlock(); d->responseData.sizeNextBlock();executed 456 times by 1 test: return d->responseData.sizeNextBlock(); | 456 |
| 193 | } | - |
| 194 | | - |
| 195 | void QHttpNetworkReply::setDownstreamLimited(bool dsl) | - |
| 196 | { | - |
| 197 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 198 | d->downstreamLimited = dsl; | - |
| 199 | d->connection->d_func()->readMoreLater(this); | - |
| 200 | }executed 20 times by 2 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 20 |
| 201 | | - |
| 202 | void QHttpNetworkReply::setReadBufferSize(qint64 size) | - |
| 203 | { | - |
| 204 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 205 | d->readBufferMaxSize = size; | - |
| 206 | }executed 18 times by 1 test: end of block | 18 |
| 207 | | - |
| 208 | bool QHttpNetworkReply::supportsUserProvidedDownloadBuffer() | - |
| 209 | { | - |
| 210 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 211 | returnexecuted 1085 times by 7 tests: return (!d->isChunked() && !d->autoDecompress && d->bodyLength > 0 && d->statusCode == 200);Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
(!d->isChunked()| TRUE | evaluated 979 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 106 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
- tst_Spdy
|
&& !d->autoDecompress| TRUE | evaluated 974 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 5 times by 1 test |
&& d->bodyLength > 0| TRUE | evaluated 803 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
| | FALSE | evaluated 171 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& d->statusCode == 200| TRUE | evaluated 750 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
| | FALSE | evaluated 53 times by 1 test |
);executed 1085 times by 7 tests: return (!d->isChunked() && !d->autoDecompress && d->bodyLength > 0 && d->statusCode == 200);Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 5-1085 |
| 212 | } | - |
| 213 | | - |
| 214 | void QHttpNetworkReply::setUserProvidedDownloadBuffer(char* b) | - |
| 215 | { | - |
| 216 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 217 | if (supportsUserProvidedDownloadBuffer()| TRUE | evaluated 364 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| | FALSE | never evaluated |
) | 0-364 |
| 218 | d->userProvidedDownloadBuffer = b;executed 364 times by 3 tests: d->userProvidedDownloadBuffer = b;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| 364 |
| 219 | }executed 364 times by 3 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| 364 |
| 220 | | - |
| 221 | char* QHttpNetworkReply::userProvidedDownloadBuffer() | - |
| 222 | { | - |
| 223 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 224 | return never executed: return d->userProvidedDownloadBuffer; d->userProvidedDownloadBuffer;never executed: return d->userProvidedDownloadBuffer; | 0 |
| 225 | } | - |
| 226 | | - |
| 227 | void QHttpNetworkReply::abort() | - |
| 228 | { | - |
| 229 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 230 | d->state = QHttpNetworkReplyPrivate::Aborted; | - |
| 231 | }executed 18 times by 1 test: end of block | 18 |
| 232 | | - |
| 233 | bool QHttpNetworkReply::isAborted() const | - |
| 234 | { | - |
| 235 | returnexecuted 26 times by 4 tests: return d_func()->state == QHttpNetworkReplyPrivate::Aborted;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
d_func()->state == QHttpNetworkReplyPrivate::Aborted;executed 26 times by 4 tests: return d_func()->state == QHttpNetworkReplyPrivate::Aborted;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| 26 |
| 236 | } | - |
| 237 | | - |
| 238 | bool QHttpNetworkReply::isFinished() const | - |
| 239 | { | - |
| 240 | returnexecuted 2167273 times by 4 tests: return d_func()->state == QHttpNetworkReplyPrivate::AllDoneState;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
d_func()->state == QHttpNetworkReplyPrivate::AllDoneState;executed 2167273 times by 4 tests: return d_func()->state == QHttpNetworkReplyPrivate::AllDoneState;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| 2167273 |
| 241 | } | - |
| 242 | | - |
| 243 | bool QHttpNetworkReply::isPipeliningUsed() const | - |
| 244 | { | - |
| 245 | returnexecuted 912 times by 8 tests: return d_func()->pipeliningUsed;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
d_func()->pipeliningUsed;executed 912 times by 8 tests: return d_func()->pipeliningUsed;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 912 |
| 246 | } | - |
| 247 | | - |
| 248 | bool QHttpNetworkReply::isSpdyUsed() const | - |
| 249 | { | - |
| 250 | returnexecuted 795 times by 7 tests: return d_func()->spdyUsed;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
d_func()->spdyUsed;executed 795 times by 7 tests: return d_func()->spdyUsed;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 795 |
| 251 | } | - |
| 252 | | - |
| 253 | void QHttpNetworkReply::setSpdyWasUsed(bool spdy) | - |
| 254 | { | - |
| 255 | d_func()->spdyUsed = spdy; | - |
| 256 | }executed 197 times by 3 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 197 |
| 257 | | - |
| 258 | bool QHttpNetworkReply::isRedirecting() const | - |
| 259 | { | - |
| 260 | returnexecuted 8 times by 2 tests: return d_func()->isRedirecting();Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
d_func()->isRedirecting();executed 8 times by 2 tests: return d_func()->isRedirecting();Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 8 |
| 261 | } | - |
| 262 | | - |
| 263 | QHttpNetworkConnection* QHttpNetworkReply::connection() | - |
| 264 | { | - |
| 265 | returnexecuted 10 times by 1 test: return d_func()->connection;Executed by:- tst_QHttpNetworkConnection
d_func()->connection;executed 10 times by 1 test: return d_func()->connection;Executed by:- tst_QHttpNetworkConnection
| 10 |
| 266 | } | - |
| 267 | | - |
| 268 | | - |
| 269 | QHttpNetworkReplyPrivate::QHttpNetworkReplyPrivate(const QUrl &newUrl) | - |
| 270 | : QHttpNetworkHeaderPrivate(newUrl) | - |
| 271 | , state(NothingDoneState) | - |
| 272 | , ssl(false) | - |
| 273 | , statusCode(100), | - |
| 274 | majorVersion(0), minorVersion(0), bodyLength(0), contentRead(0), totalProgress(0), | - |
| 275 | chunkedTransferEncoding(false), | - |
| 276 | connectionCloseEnabled(true), | - |
| 277 | forceConnectionCloseEnabled(false), | - |
| 278 | lastChunkRead(false), | - |
| 279 | currentChunkSize(0), currentChunkRead(0), readBufferMaxSize(0), | - |
| 280 | windowSizeDownload(65536), | - |
| 281 | windowSizeUpload(65536), | - |
| 282 | currentlyReceivedDataInWindow(0), | - |
| 283 | currentlyUploadedDataInWindow(0), | - |
| 284 | totallyUploadedData(0), | - |
| 285 | connection(0), | - |
| 286 | autoDecompress(false), responseData(), requestIsPrepared(false) | - |
| 287 | ,pipeliningUsed(false), spdyUsed(false), downstreamLimited(false) | - |
| 288 | ,userProvidedDownloadBuffer(0) | - |
| 289 | | - |
| 290 | ,inflateStrm(0) | - |
| 291 | | - |
| 292 | | - |
| 293 | { | - |
| 294 | QString scheme = newUrl.scheme(); | - |
| 295 | if (scheme == QLatin1String("preconnect-http")| TRUE | never evaluated | | FALSE | evaluated 2204 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-2204 |
| 296 | || scheme == QLatin1String("preconnect-https")| TRUE | never evaluated | | FALSE | evaluated 2204 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-2204 |
| 297 | | - |
| 298 | connectionCloseEnabled = false; never executed: connectionCloseEnabled = false; | 0 |
| 299 | }executed 2204 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2204 |
| 300 | | - |
| 301 | QHttpNetworkReplyPrivate::~QHttpNetworkReplyPrivate() | - |
| 302 | { | - |
| 303 | | - |
| 304 | if (inflateStrm| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 2029 times by 15 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 7-2029 |
| 305 | delete inflateStrm;executed 7 times by 1 test: delete inflateStrm; | 7 |
| 306 | | - |
| 307 | }executed 2036 times by 15 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2036 |
| 308 | | - |
| 309 | void QHttpNetworkReplyPrivate::clearHttpLayerInformation() | - |
| 310 | { | - |
| 311 | state = NothingDoneState; | - |
| 312 | statusCode = 100; | - |
| 313 | bodyLength = 0; | - |
| 314 | contentRead = 0; | - |
| 315 | totalProgress = 0; | - |
| 316 | currentChunkSize = 0; | - |
| 317 | currentChunkRead = 0; | - |
| 318 | lastChunkRead = false; | - |
| 319 | connectionCloseEnabled = true; | - |
| 320 | | - |
| 321 | if (autoDecompress| TRUE | never evaluated | | FALSE | evaluated 2309 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& inflateStrm| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-2309 |
| 322 | inflateEnd(inflateStrm); never executed: inflateEnd(inflateStrm); | 0 |
| 323 | | - |
| 324 | fields.clear(); | - |
| 325 | }executed 2309 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2309 |
| 326 | | - |
| 327 | | - |
| 328 | void QHttpNetworkReplyPrivate::clear() | - |
| 329 | { | - |
| 330 | connection = 0; | - |
| 331 | connectionChannel = 0; | - |
| 332 | autoDecompress = false; | - |
| 333 | clearHttpLayerInformation(); | - |
| 334 | }executed 1791 times by 9 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
| 1791 |
| 335 | | - |
| 336 | | - |
| 337 | qint64 QHttpNetworkReplyPrivate::bytesAvailable() const | - |
| 338 | { | - |
| 339 | return never executed: return (state != ReadingDataState ? 0 : fragment.size()); (state != ReadingDataState| TRUE | never evaluated | | FALSE | never evaluated |
? 0 : fragment.size());never executed: return (state != ReadingDataState ? 0 : fragment.size()); | 0 |
| 340 | } | - |
| 341 | | - |
| 342 | bool QHttpNetworkReplyPrivate::isCompressed() | - |
| 343 | { | - |
| 344 | QByteArray encoding = headerField("content-encoding"); | - |
| 345 | returnexecuted 3639 times by 9 tests: return qstricmp(encoding.constData(), "gzip") == 0 || qstricmp(encoding.constData(), "deflate") == 0;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
qstricmp(encoding.constData(), "gzip") == 0| TRUE | evaluated 22 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 3617 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
|| qstricmp(encoding.constData(), "deflate") == 0| TRUE | never evaluated | | FALSE | evaluated 3617 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
;executed 3639 times by 9 tests: return qstricmp(encoding.constData(), "gzip") == 0 || qstricmp(encoding.constData(), "deflate") == 0;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
| 0-3639 |
| 346 | } | - |
| 347 | | - |
| 348 | void QHttpNetworkReplyPrivate::removeAutoDecompressHeader() | - |
| 349 | { | - |
| 350 | | - |
| 351 | | - |
| 352 | QByteArray name("content-length"); | - |
| 353 | QList<QPair<QByteArray, QByteArray> >::Iterator it = fields.begin(), | - |
| 354 | end = fields.end(); | - |
| 355 | while (it != end| TRUE | evaluated 29 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-29 |
| 356 | if (qstricmp(name.constData(), it->first.constData()) == 0| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) { | 5-24 |
| 357 | fields.erase(it); | - |
| 358 | break;executed 5 times by 1 test: break; | 5 |
| 359 | } | - |
| 360 | ++it; | - |
| 361 | }executed 24 times by 1 test: end of block | 24 |
| 362 | | - |
| 363 | }executed 7 times by 1 test: end of block | 7 |
| 364 | | - |
| 365 | bool QHttpNetworkReplyPrivate::findChallenge(bool forProxy, QByteArray &challenge) const | - |
| 366 | { | - |
| 367 | challenge.clear(); | - |
| 368 | | - |
| 369 | QByteArray header = forProxy| TRUE | never evaluated | | FALSE | never evaluated |
? "proxy-authenticate" : "www-authenticate"; | 0 |
| 370 | | - |
| 371 | QList<QByteArray> challenges = headerFieldValues(header); | - |
| 372 | for (int i = 0; i<challenges.size()| TRUE | never evaluated | | FALSE | never evaluated |
; i++) { | 0 |
| 373 | QByteArray line = challenges.at(i); | - |
| 374 | | - |
| 375 | if (!line.toLower().startsWith("negotiate")| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 376 | challenge = line; never executed: challenge = line; | 0 |
| 377 | } never executed: end of block | 0 |
| 378 | return never executed: return !challenge.isEmpty(); !challenge.isEmpty();never executed: return !challenge.isEmpty(); | 0 |
| 379 | } | - |
| 380 | | - |
| 381 | QAuthenticatorPrivate::Method QHttpNetworkReplyPrivate::authenticationMethod(bool isProxy) const | - |
| 382 | { | - |
| 383 | | - |
| 384 | QAuthenticatorPrivate::Method method = QAuthenticatorPrivate::None; | - |
| 385 | QByteArray header = isProxy| TRUE | evaluated 54 times by 1 test | | FALSE | evaluated 302 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
|
? "proxy-authenticate" : "www-authenticate"; | 54-302 |
| 386 | QList<QByteArray> challenges = headerFieldValues(header); | - |
| 387 | for (int i = 0; i<challenges.size()| TRUE | evaluated 355 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 356 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
|
; i++) { | 355-356 |
| 388 | QByteArray line = challenges.at(i).trimmed().toLower(); | - |
| 389 | if (method < QAuthenticatorPrivate::Basic| TRUE | evaluated 355 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | never evaluated |
| 0-355 |
| 390 | && line.startsWith("basic")| TRUE | evaluated 286 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 69 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
|
) { | 69-286 |
| 391 | method = QAuthenticatorPrivate::Basic; | - |
| 392 | }executed 286 times by 2 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
else if (method < QAuthenticatorPrivate::Ntlm| TRUE | evaluated 69 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | never evaluated |
| 0-286 |
| 393 | && line.startsWith("ntlm")| TRUE | never evaluated | | FALSE | evaluated 69 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
|
) { | 0-69 |
| 394 | method = QAuthenticatorPrivate::Ntlm; | - |
| 395 | } never executed: end of block else if (method < QAuthenticatorPrivate::DigestMd5| TRUE | evaluated 69 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | never evaluated |
| 0-69 |
| 396 | && line.startsWith("digest")| TRUE | evaluated 67 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 2 times by 1 test |
) { | 2-67 |
| 397 | method = QAuthenticatorPrivate::DigestMd5; | - |
| 398 | }executed 67 times by 2 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 67 |
| 399 | }executed 355 times by 2 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 355 |
| 400 | returnexecuted 356 times by 2 tests: return method;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
method;executed 356 times by 2 tests: return method;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 356 |
| 401 | } | - |
| 402 | | - |
| 403 | qint64 QHttpNetworkReplyPrivate::readStatus(QAbstractSocket *socket) | - |
| 404 | { | - |
| 405 | if (fragment.isEmpty()| TRUE | evaluated 2268 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 46 times by 1 test |
) { | 46-2268 |
| 406 | | - |
| 407 | fragment.reserve(32); | - |
| 408 | }executed 2268 times by 13 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2268 |
| 409 | | - |
| 410 | qint64 bytes = 0; | - |
| 411 | char c; | - |
| 412 | qint64 haveRead = 0; | - |
| 413 | | - |
| 414 | do { | - |
| 415 | haveRead = socket->read(&c, 1); | - |
| 416 | if (haveRead == -1| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 53080 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 24-53080 |
| 417 | returnexecuted 24 times by 1 test: return -1; -1;executed 24 times by 1 test: return -1; | 24 |
| 418 | else if (haveRead == 0| TRUE | evaluated 102 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 52978 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 102-52978 |
| 419 | break;executed 102 times by 2 tests: break;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 102 |
| 420 | else if (haveRead == 1| TRUE | evaluated 52978 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
&& fragment.size() == 0| TRUE | evaluated 2230 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 50748 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& (c == 11| TRUE | never evaluated | | FALSE | evaluated 2230 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| c == '\n'| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 2210 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| c == '\r'| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 2190 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| c == ' '| TRUE | never evaluated | | FALSE | evaluated 2190 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| c == 31| TRUE | never evaluated | | FALSE | evaluated 2190 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
)) | 0-52978 |
| 421 | continue;executed 40 times by 1 test: continue; | 40 |
| 422 | | - |
| 423 | bytes++; | - |
| 424 | | - |
| 425 | | - |
| 426 | if (c == '\n'| TRUE | evaluated 2160 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 50778 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 2160-50778 |
| 427 | | - |
| 428 | if (fragment.endsWith('\r')| TRUE | evaluated 2152 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 8 times by 1 test |
) { | 8-2152 |
| 429 | fragment.truncate(fragment.length()-1); | - |
| 430 | }executed 2152 times by 13 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2152 |
| 431 | bool ok = parseStatus(fragment); | - |
| 432 | state = ReadingHeaderState; | - |
| 433 | fragment.clear(); | - |
| 434 | if (!ok| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 2140 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 20-2140 |
| 435 | returnexecuted 20 times by 1 test: return -1; -1;executed 20 times by 1 test: return -1; | 20 |
| 436 | } | - |
| 437 | break;executed 2140 times by 13 tests: break;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2140 |
| 438 | } else { | - |
| 439 | fragment.append(c); | - |
| 440 | }executed 50778 times by 13 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 50778 |
| 441 | | - |
| 442 | | - |
| 443 | if (fragment.length() >= 5| TRUE | evaluated 42018 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 8760 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& !fragment.startsWith("HTTP/")| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| | FALSE | evaluated 41990 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 28-42018 |
| 444 | { | - |
| 445 | fragment.clear(); | - |
| 446 | returnexecuted 28 times by 2 tests: return -1;Executed by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
-1;executed 28 times by 2 tests: return -1;Executed by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| 28 |
| 447 | } | - |
| 448 | }executed 50750 times by 13 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
while (haveRead == 1| TRUE | evaluated 50790 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
); | 0-50790 |
| 449 | | - |
| 450 | returnexecuted 2242 times by 13 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
bytes;executed 2242 times by 13 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2242 |
| 451 | } | - |
| 452 | | - |
| 453 | bool QHttpNetworkReplyPrivate::parseStatus(const QByteArray &status) | - |
| 454 | { | - |
| 455 | | - |
| 456 | | - |
| 457 | | - |
| 458 | | - |
| 459 | | - |
| 460 | | - |
| 461 | static const int minLength = 11; | - |
| 462 | static const int dotPos = 6; | - |
| 463 | static const int spacePos = 8; | - |
| 464 | static const char httpMagic[] = "HTTP/"; | - |
| 465 | | - |
| 466 | if (status.length() < minLength| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 2152 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 8-2152 |
| 467 | || !status.startsWith(httpMagic)| TRUE | never evaluated | | FALSE | evaluated 2152 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-2152 |
| 468 | || status.at(dotPos) != '.'| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2148 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 4-2148 |
| 469 | || status.at(spacePos) != ' '| TRUE | never evaluated | | FALSE | evaluated 2148 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-2148 |
| 470 | | - |
| 471 | returnexecuted 12 times by 1 test: return false; false;executed 12 times by 1 test: return false; | 12 |
| 472 | } | - |
| 473 | | - |
| 474 | | - |
| 475 | majorVersion = status.at(dotPos - 1) - '0'; | - |
| 476 | minorVersion = status.at(dotPos + 1) - '0'; | - |
| 477 | | - |
| 478 | int i = spacePos; | - |
| 479 | int j = status.indexOf(' ', i + 1); | - |
| 480 | const QByteArray code = status.mid(i + 1, j - i - 1); | - |
| 481 | | - |
| 482 | bool ok; | - |
| 483 | statusCode = code.toInt(&ok); | - |
| 484 | reasonPhrase = QString::fromLatin1(status.constData() + j + 1); | - |
| 485 | | - |
| 486 | returnexecuted 2148 times by 13 tests: return ok && uint(majorVersion) <= 9 && uint(minorVersion) <= 9;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
ok| TRUE | evaluated 2144 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 4 times by 1 test |
&& uint(majorVersion) <= 9| TRUE | evaluated 2140 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 4 times by 1 test |
&& uint(minorVersion) <= 9| TRUE | evaluated 2140 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
;executed 2148 times by 13 tests: return ok && uint(majorVersion) <= 9 && uint(minorVersion) <= 9;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 0-2148 |
| 487 | } | - |
| 488 | | - |
| 489 | qint64 QHttpNetworkReplyPrivate::readHeader(QAbstractSocket *socket) | - |
| 490 | { | - |
| 491 | if (fragment.isEmpty()| TRUE | evaluated 2145 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 70 times by 1 test |
) { | 70-2145 |
| 492 | | - |
| 493 | | - |
| 494 | | - |
| 495 | fragment.reserve(512); | - |
| 496 | }executed 2145 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2145 |
| 497 | | - |
| 498 | qint64 bytes = 0; | - |
| 499 | char c = 0; | - |
| 500 | bool allHeaders = false; | - |
| 501 | qint64 haveRead = 0; | - |
| 502 | do { | - |
| 503 | haveRead = socket->read(&c, 1); | - |
| 504 | if (haveRead == 0| TRUE | evaluated 71 times by 1 test | | FALSE | evaluated 467902 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 71-467902 |
| 505 | | - |
| 506 | break;executed 71 times by 1 test: break; | 71 |
| 507 | } else if (haveRead == -1| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 467896 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 6-467896 |
| 508 | | - |
| 509 | returnexecuted 6 times by 1 test: return -1; -1;executed 6 times by 1 test: return -1; | 6 |
| 510 | } else { | - |
| 511 | fragment.append(c); | - |
| 512 | bytes++; | - |
| 513 | | - |
| 514 | if (c == '\n'| TRUE | evaluated 16668 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 451228 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 16668-451228 |
| 515 | | - |
| 516 | | - |
| 517 | | - |
| 518 | if (fragment.endsWith("\n\r\n")| TRUE | evaluated 1800 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 14868 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 1800-14868 |
| 519 | || fragment.endsWith("\n\n")| TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpnetworkreply - unknown status
| | FALSE | evaluated 14863 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 5-14863 |
| 520 | allHeaders = true;executed 1805 times by 14 tests: allHeaders = true;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1805 |
| 521 | | - |
| 522 | | - |
| 523 | if ((fragment.length() == 2| TRUE | evaluated 328 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 16340 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& fragment.endsWith("\r\n")| TRUE | evaluated 328 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
) | 0-16340 |
| 524 | || (fragment.length() == 1| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 16335 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& fragment.endsWith("\n")| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
)) | 0-16335 |
| 525 | allHeaders = true;executed 333 times by 7 tests: allHeaders = true;Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 333 |
| 526 | }executed 16668 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 16668 |
| 527 | }executed 467896 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 467896 |
| 528 | } while (!allHeaders| TRUE | evaluated 465758 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 2138 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& haveRead > 0| TRUE | evaluated 465758 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
); | 0-465758 |
| 529 | | - |
| 530 | | - |
| 531 | if (allHeaders| TRUE | evaluated 2138 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 71 times by 1 test |
) { | 71-2138 |
| 532 | parseHeader(fragment); | - |
| 533 | state = ReadingDataState; | - |
| 534 | fragment.clear(); | - |
| 535 | bodyLength = contentLength(); | - |
| 536 | | - |
| 537 | | - |
| 538 | chunkedTransferEncoding = headerField("transfer-encoding").toLower().contains("chunked"); | - |
| 539 | | - |
| 540 | | - |
| 541 | QByteArray connectionHeaderField = headerField("connection"); | - |
| 542 | | - |
| 543 | connectionCloseEnabled = (connectionHeaderField.toLower().contains("close")| TRUE | evaluated 9 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 2129 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| | 9-2129 |
| 544 | headerField("proxy-connection").toLower().contains("close")| TRUE | evaluated 224 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 1905 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) || | 224-1905 |
| 545 | (majorVersion == 1| TRUE | evaluated 1901 times by 13 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qhttpnetworkreply - unknown status
|
&& minorVersion == 0| TRUE | evaluated 480 times by 8 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 1421 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& | 4-1901 |
| 546 | (connectionHeaderField.isEmpty()| TRUE | evaluated 465 times by 8 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 15 times by 1 test |
&& !headerField("proxy-connection").toLower().contains("keep-alive")| TRUE | evaluated 419 times by 8 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 46 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
|
)); | 15-465 |
| 547 | | - |
| 548 | | - |
| 549 | if (autoDecompress| TRUE | evaluated 1616 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 522 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& isCompressed()| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 1609 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) { | 7-1616 |
| 550 | | - |
| 551 | if (!inflateStrm| TRUE | evaluated 7 times by 1 test | | FALSE | never evaluated |
) | 0-7 |
| 552 | inflateStrm = new z_stream;executed 7 times by 1 test: inflateStrm = new z_stream; | 7 |
| 553 | int ret = initializeInflateStream(); | - |
| 554 | if (ret != 0| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
| 555 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 556 | }executed 7 times by 1 test: end of block | 7 |
| 557 | | - |
| 558 | | - |
| 559 | }executed 2138 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2138 |
| 560 | returnexecuted 2209 times by 14 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
bytes;executed 2209 times by 14 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2209 |
| 561 | } | - |
| 562 | | - |
| 563 | void QHttpNetworkReplyPrivate::parseHeader(const QByteArray &header) | - |
| 564 | { | - |
| 565 | | - |
| 566 | | - |
| 567 | const QByteArrayMatcher lf("\n"); | - |
| 568 | const QByteArrayMatcher colon(":"); | - |
| 569 | int i = 0; | - |
| 570 | while (i < header.count()| TRUE | evaluated 16680 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 7 times by 1 testEvaluated by:- tst_qhttpnetworkreply - unknown status
|
) { | 7-16680 |
| 571 | int j = colon.indexIn(header, i); | - |
| 572 | if (j == -1| TRUE | evaluated 2138 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 14542 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 2138-14542 |
| 573 | break;executed 2138 times by 14 tests: break;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2138 |
| 574 | const QByteArray field = header.mid(i, j - i).trimmed(); | - |
| 575 | j++; | - |
| 576 | | - |
| 577 | QByteArray value; | - |
| 578 | do { | - |
| 579 | i = lf.indexIn(header, j); | - |
| 580 | if (i == -1| TRUE | never evaluated | | FALSE | evaluated 14548 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-14548 |
| 581 | break; never executed: break; | 0 |
| 582 | if (!value.isEmpty()| TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpnetworkreply - unknown status
| | FALSE | evaluated 14547 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 1-14547 |
| 583 | value += ' ';executed 1 time by 1 test: value += ' ';Executed by:- tst_qhttpnetworkreply - unknown status
| 1 |
| 584 | | - |
| 585 | bool hasCR = (i| TRUE | evaluated 14548 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | never evaluated |
&& header[i-1] == '\r'| TRUE | evaluated 14541 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpnetworkreply - unknown status
|
); | 0-14548 |
| 586 | int length = i -(hasCR| TRUE | evaluated 14541 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpnetworkreply - unknown status
|
? 1: 0) - j; | 7-14541 |
| 587 | value += header.mid(j, length).trimmed(); | - |
| 588 | j = ++i; | - |
| 589 | }executed 14548 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
while (i < header.count()| TRUE | evaluated 14541 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| | FALSE | evaluated 7 times by 1 testEvaluated by:- tst_qhttpnetworkreply - unknown status
|
&& (header.at(i) == ' '| TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpnetworkreply - unknown status
| | FALSE | evaluated 14535 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| header.at(i) == '\t'| TRUE | never evaluated | | FALSE | evaluated 14535 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
)); | 0-14548 |
| 590 | if (i == -1| TRUE | never evaluated | | FALSE | evaluated 14542 times by 14 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-14542 |
| 591 | break; never executed: break; | 0 |
| 592 | | - |
| 593 | fields.append(qMakePair(field, value)); | - |
| 594 | }executed 14542 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 14542 |
| 595 | }executed 2145 times by 14 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qnetworkreply - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2145 |
| 596 | | - |
| 597 | bool QHttpNetworkReplyPrivate::isChunked() | - |
| 598 | { | - |
| 599 | returnexecuted 15638 times by 8 tests: return chunkedTransferEncoding;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
chunkedTransferEncoding;executed 15638 times by 8 tests: return chunkedTransferEncoding;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 15638 |
| 600 | } | - |
| 601 | | - |
| 602 | bool QHttpNetworkReplyPrivate::isConnectionCloseEnabled() | - |
| 603 | { | - |
| 604 | returnexecuted 3311 times by 9 tests: return connectionCloseEnabled || forceConnectionCloseEnabled;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
connectionCloseEnabled| TRUE | evaluated 210 times by 4 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 3101 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
|| forceConnectionCloseEnabled| TRUE | never evaluated | | FALSE | evaluated 3101 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
;executed 3311 times by 9 tests: return connectionCloseEnabled || forceConnectionCloseEnabled;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
| 0-3311 |
| 605 | } | - |
| 606 | | - |
| 607 | | - |
| 608 | | - |
| 609 | qint64 QHttpNetworkReplyPrivate::readBodyVeryFast(QAbstractSocket *socket, char *b) | - |
| 610 | { | - |
| 611 | | - |
| 612 | qint64 haveRead = 0; | - |
| 613 | haveRead = socket->read(b, bodyLength - contentRead); | - |
| 614 | if (haveRead == -1| TRUE | evaluated 2 times by 2 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkReply
| | FALSE | evaluated 2659 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
|
) { | 2-2659 |
| 615 | returnexecuted 2 times by 2 tests: return -1;Executed by:- tst_QNetworkDiskCache
- tst_QNetworkReply
-1;executed 2 times by 2 tests: return -1;Executed by:- tst_QNetworkDiskCache
- tst_QNetworkReply
| 2 |
| 616 | } | - |
| 617 | contentRead += haveRead; | - |
| 618 | | - |
| 619 | if (contentRead == bodyLength| TRUE | evaluated 346 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| | FALSE | evaluated 2313 times by 2 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkReply
|
) { | 346-2313 |
| 620 | state = AllDoneState; | - |
| 621 | }executed 346 times by 3 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| 346 |
| 622 | | - |
| 623 | returnexecuted 2659 times by 3 tests: return haveRead;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
haveRead;executed 2659 times by 3 tests: return haveRead;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkDiskCache
- tst_QNetworkReply
| 2659 |
| 624 | } | - |
| 625 | | - |
| 626 | | - |
| 627 | | - |
| 628 | qint64 QHttpNetworkReplyPrivate::readBodyFast(QAbstractSocket *socket, QByteDataBuffer *rb) | - |
| 629 | { | - |
| 630 | | - |
| 631 | qint64 toBeRead = qMin(socket->bytesAvailable(), bodyLength - contentRead); | - |
| 632 | if (readBufferMaxSize| TRUE | evaluated 466 times by 1 test | | FALSE | evaluated 13060 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
|
) | 466-13060 |
| 633 | toBeRead = qMin(toBeRead, readBufferMaxSize);executed 466 times by 1 test: toBeRead = qMin(toBeRead, readBufferMaxSize); | 466 |
| 634 | | - |
| 635 | if (!toBeRead| TRUE | evaluated 6315 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
| | FALSE | evaluated 7211 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
|
) | 6315-7211 |
| 636 | returnexecuted 6315 times by 3 tests: return 0;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
0;executed 6315 times by 3 tests: return 0;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
| 6315 |
| 637 | | - |
| 638 | QByteArray bd; | - |
| 639 | bd.resize(toBeRead); | - |
| 640 | qint64 haveRead = socket->read(bd.data(), toBeRead); | - |
| 641 | if (haveRead == -1| TRUE | never evaluated | | FALSE | evaluated 7211 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
|
) { | 0-7211 |
| 642 | bd.clear(); | - |
| 643 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 644 | } | - |
| 645 | bd.resize(haveRead); | - |
| 646 | | - |
| 647 | rb->append(bd); | - |
| 648 | | - |
| 649 | if (contentRead + haveRead == bodyLength| TRUE | evaluated 969 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
| | FALSE | evaluated 6242 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
|
) { | 969-6242 |
| 650 | state = AllDoneState; | - |
| 651 | }executed 969 times by 3 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
| 969 |
| 652 | | - |
| 653 | contentRead += haveRead; | - |
| 654 | returnexecuted 7211 times by 3 tests: return haveRead;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
haveRead;executed 7211 times by 3 tests: return haveRead;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
| 7211 |
| 655 | } | - |
| 656 | | - |
| 657 | | - |
| 658 | qint64 QHttpNetworkReplyPrivate::readBody(QAbstractSocket *socket, QByteDataBuffer *out) | - |
| 659 | { | - |
| 660 | qint64 bytes = 0; | - |
| 661 | | - |
| 662 | | - |
| 663 | | - |
| 664 | QByteDataBuffer *tempOutDataBuffer = (autoDecompress| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 494 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
? new QByteDataBuffer : out); | 17-494 |
| 665 | | - |
| 666 | | - |
| 667 | | - |
| 668 | | - |
| 669 | | - |
| 670 | if (isChunked()| TRUE | evaluated 482 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 29 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
) { | 29-482 |
| 671 | | - |
| 672 | bytes += readReplyBodyChunked(socket, tempOutDataBuffer); | - |
| 673 | }executed 482 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
else if (bodyLength > 0| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 21 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
|
) { | 8-482 |
| 674 | | - |
| 675 | bytes += readReplyBodyRaw(socket, tempOutDataBuffer, bodyLength - contentRead); | - |
| 676 | if (contentRead + bytes == bodyLength| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 4 |
| 677 | state = AllDoneState;executed 4 times by 1 test: state = AllDoneState; | 4 |
| 678 | }executed 8 times by 1 test: end of block else { | 8 |
| 679 | | - |
| 680 | bytes += readReplyBodyRaw(socket, tempOutDataBuffer, socket->bytesAvailable()); | - |
| 681 | }executed 21 times by 2 tests: end of blockExecuted by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 21 |
| 682 | | - |
| 683 | | - |
| 684 | | - |
| 685 | if (autoDecompress| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 494 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) { | 17-494 |
| 686 | qint64 uncompressRet = uncompressBodyData(tempOutDataBuffer, out); | - |
| 687 | delete tempOutDataBuffer; | - |
| 688 | if (uncompressRet < 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 16 times by 1 test |
) | 1-16 |
| 689 | returnexecuted 1 time by 1 test: return -1; -1;executed 1 time by 1 test: return -1; | 1 |
| 690 | }executed 16 times by 1 test: end of block | 16 |
| 691 | | - |
| 692 | | - |
| 693 | contentRead += bytes; | - |
| 694 | returnexecuted 510 times by 5 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
bytes;executed 510 times by 5 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 510 |
| 695 | } | - |
| 696 | | - |
| 697 | | - |
| 698 | int QHttpNetworkReplyPrivate::initializeInflateStream() | - |
| 699 | { | - |
| 700 | inflateStrm->zalloc = 0; | - |
| 701 | inflateStrm->zfree = 0; | - |
| 702 | inflateStrm->opaque = 0; | - |
| 703 | inflateStrm->avail_in = 0; | - |
| 704 | inflateStrm->next_in = 0; | - |
| 705 | | - |
| 706 | | - |
| 707 | | - |
| 708 | int ret = inflateInit2_((inflateStrm), (15 +32), "1.2.8", (int)sizeof(z_stream)); | - |
| 709 | ((!(ret == 0)) ? qt_assert("ret == Z_OK",__FILE__,749) : qt_noop()); | - |
| 710 | returnexecuted 7 times by 1 test: return ret; ret;executed 7 times by 1 test: return ret; | 7 |
| 711 | } | - |
| 712 | | - |
| 713 | qint64 QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer *in, QByteDataBuffer *out) | - |
| 714 | { | - |
| 715 | if (!inflateStrm| TRUE | never evaluated | | FALSE | evaluated 17 times by 1 test |
) { | 0-17 |
| 716 | inflateStrm = new z_stream; | - |
| 717 | initializeInflateStream(); | - |
| 718 | } never executed: end of block | 0 |
| 719 | | - |
| 720 | if (!inflateStrm| TRUE | never evaluated | | FALSE | evaluated 17 times by 1 test |
) | 0-17 |
| 721 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 722 | | - |
| 723 | bool triedRawDeflate = false; | - |
| 724 | for (int i = 0; i < in->bufferCount()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; i++) { | 12-16 |
| 725 | QByteArray &bIn = (*in)[i]; | - |
| 726 | | - |
| 727 | inflateStrm->avail_in = bIn.size(); | - |
| 728 | inflateStrm->next_in = reinterpret_cast<Bytef*>(bIn.data()); | - |
| 729 | | - |
| 730 | do { | - |
| 731 | QByteArray bOut; | - |
| 732 | | - |
| 733 | bOut.reserve(inflateStrm->avail_in * 3 + 512); | - |
| 734 | inflateStrm->avail_out = bOut.capacity(); | - |
| 735 | inflateStrm->next_out = reinterpret_cast<Bytef*>(bOut.data()); | - |
| 736 | | - |
| 737 | int ret = inflate(inflateStrm, 0); | - |
| 738 | | - |
| 739 | | - |
| 740 | if (ret == (-3)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 59 times by 1 test |
&& !triedRawDeflate| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1-59 |
| 741 | inflateEnd(inflateStrm); | - |
| 742 | triedRawDeflate = true; | - |
| 743 | inflateStrm->zalloc = 0; | - |
| 744 | inflateStrm->zfree = 0; | - |
| 745 | inflateStrm->opaque = 0; | - |
| 746 | inflateStrm->avail_in = 0; | - |
| 747 | inflateStrm->next_in = 0; | - |
| 748 | int ret = inflateInit2_((inflateStrm), (-15), "1.2.8", (int)sizeof(z_stream)); | - |
| 749 | if (ret != 0| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) { | 0-1 |
| 750 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 751 | } else { | - |
| 752 | inflateStrm->avail_in = bIn.size(); | - |
| 753 | inflateStrm->next_in = reinterpret_cast<Bytef*>(bIn.data()); | - |
| 754 | continue;executed 1 time by 1 test: continue; | 1 |
| 755 | } | - |
| 756 | } else if (ret < 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 59 times by 1 test |
|| ret == 2| TRUE | never evaluated | | FALSE | evaluated 59 times by 1 test |
) { | 0-59 |
| 757 | returnexecuted 1 time by 1 test: return -1; -1;executed 1 time by 1 test: return -1; | 1 |
| 758 | } | - |
| 759 | bOut.resize(bOut.capacity() - inflateStrm->avail_out); | - |
| 760 | out->append(bOut); | - |
| 761 | if (ret == 1| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 55 times by 1 test |
) | 4-55 |
| 762 | returnexecuted 4 times by 1 test: return out->byteAmount(); out->byteAmount();executed 4 times by 1 test: return out->byteAmount(); | 4 |
| 763 | }executed 55 times by 1 test: end of block while (inflateStrm->avail_in > 0| TRUE | evaluated 45 times by 1 test | | FALSE | evaluated 11 times by 1 test |
); | 11-55 |
| 764 | }executed 11 times by 1 test: end of block | 11 |
| 765 | | - |
| 766 | returnexecuted 12 times by 1 test: return out->byteAmount(); out->byteAmount();executed 12 times by 1 test: return out->byteAmount(); | 12 |
| 767 | } | - |
| 768 | | - |
| 769 | | - |
| 770 | qint64 QHttpNetworkReplyPrivate::readReplyBodyRaw(QAbstractSocket *socket, QByteDataBuffer *out, qint64 size) | - |
| 771 | { | - |
| 772 | | - |
| 773 | qint64 bytes = 0; | - |
| 774 | ((!(socket)) ? qt_assert("socket",__FILE__,814) : qt_noop()); | - |
| 775 | ((!(out)) ? qt_assert("out",__FILE__,815) : qt_noop()); | - |
| 776 | | - |
| 777 | int toBeRead = qMin<qint64>(128*1024, qMin<qint64>(size, socket->bytesAvailable())); | - |
| 778 | | - |
| 779 | if (readBufferMaxSize| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 227 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) | 9-227 |
| 780 | toBeRead = qMin<qint64>(toBeRead, readBufferMaxSize);executed 9 times by 1 test: toBeRead = qMin<qint64>(toBeRead, readBufferMaxSize); | 9 |
| 781 | | - |
| 782 | while (toBeRead > 0| TRUE | evaluated 205 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 236 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) { | 205-236 |
| 783 | QByteArray byteData; | - |
| 784 | byteData.resize(toBeRead); | - |
| 785 | qint64 haveRead = socket->read(byteData.data(), byteData.size()); | - |
| 786 | if (haveRead <= 0| TRUE | never evaluated | | FALSE | evaluated 205 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 0-205 |
| 787 | | - |
| 788 | byteData.clear(); | - |
| 789 | return never executed: return bytes; bytes;never executed: return bytes; | 0 |
| 790 | } | - |
| 791 | | - |
| 792 | byteData.resize(haveRead); | - |
| 793 | out->append(byteData); | - |
| 794 | bytes += haveRead; | - |
| 795 | size -= haveRead; | - |
| 796 | | - |
| 797 | toBeRead = qMin<qint64>(128*1024, qMin<qint64>(size, socket->bytesAvailable())); | - |
| 798 | }executed 205 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 205 |
| 799 | returnexecuted 236 times by 5 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
bytes;executed 236 times by 5 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 236 |
| 800 | | - |
| 801 | } | - |
| 802 | | - |
| 803 | qint64 QHttpNetworkReplyPrivate::readReplyBodyChunked(QAbstractSocket *socket, QByteDataBuffer *out) | - |
| 804 | { | - |
| 805 | qint64 bytes = 0; | - |
| 806 | while (socket->bytesAvailable()| TRUE | evaluated 436 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 253 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 253-436 |
| 807 | | - |
| 808 | if (readBufferMaxSize| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 422 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
&& (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 11 times by 1 test |
bytes > readBufferMaxSize)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 11 times by 1 test |
) | 3-422 |
| 809 | break;executed 3 times by 1 test: break; | 3 |
| 810 | | - |
| 811 | if (!lastChunkRead| TRUE | evaluated 433 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
&& currentChunkRead >= currentChunkSize| TRUE | evaluated 379 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 54 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 0-433 |
| 812 | | - |
| 813 | currentChunkSize = 0; | - |
| 814 | currentChunkRead = 0; | - |
| 815 | if (bytes| TRUE | evaluated 137 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 242 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 137-242 |
| 816 | | - |
| 817 | char crlf[2]; | - |
| 818 | | - |
| 819 | qint64 haveRead = socket->read(crlf, 2); | - |
| 820 | | - |
| 821 | | - |
| 822 | | - |
| 823 | | - |
| 824 | if (haveRead != 2| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 136 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) | 1-136 |
| 825 | returnexecuted 1 time by 1 test: return bytes; bytes;executed 1 time by 1 test: return bytes; | 1 |
| 826 | bytes += haveRead; | - |
| 827 | }executed 136 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 136 |
| 828 | | - |
| 829 | bytes += getChunkSize(socket, ¤tChunkSize); | - |
| 830 | if (currentChunkSize == -1| TRUE | evaluated 105 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 273 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) | 105-273 |
| 831 | break;executed 105 times by 4 tests: break;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 105 |
| 832 | }executed 273 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 273 |
| 833 | | - |
| 834 | if (currentChunkSize == 0| TRUE | evaluated 120 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 207 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
|| lastChunkRead| TRUE | never evaluated | | FALSE | evaluated 207 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 0-207 |
| 835 | lastChunkRead = true; | - |
| 836 | | - |
| 837 | char crlf[2]; | - |
| 838 | qint64 haveRead = socket->read(crlf, 2); | - |
| 839 | if (haveRead > 0| TRUE | evaluated 120 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
) | 0-120 |
| 840 | bytes += haveRead;executed 120 times by 4 tests: bytes += haveRead;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 120 |
| 841 | | - |
| 842 | if ((haveRead == 2| TRUE | evaluated 120 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
&& crlf[0] == '\r'| TRUE | evaluated 120 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
&& crlf[1] == '\n'| TRUE | evaluated 120 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
) || (haveRead == 1| TRUE | never evaluated | | FALSE | never evaluated |
&& crlf[0] == '\n'| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-120 |
| 843 | state = AllDoneState;executed 120 times by 4 tests: state = AllDoneState;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 120 |
| 844 | else if (haveRead == 1| TRUE | never evaluated | | FALSE | never evaluated |
&& crlf[0] == '\r'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 845 | break; never executed: break; | 0 |
| 846 | else if (haveRead > 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 847 | | - |
| 848 | forceConnectionCloseEnabled = true; | - |
| 849 | state = AllDoneState; | - |
| 850 | } never executed: end of block | 0 |
| 851 | break;executed 120 times by 4 tests: break;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 120 |
| 852 | } | - |
| 853 | | - |
| 854 | | - |
| 855 | qint64 haveRead = readReplyBodyRaw (socket, out, currentChunkSize - currentChunkRead); | - |
| 856 | currentChunkRead += haveRead; | - |
| 857 | bytes += haveRead; | - |
| 858 | | - |
| 859 | | - |
| 860 | | - |
| 861 | }executed 207 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 207 |
| 862 | returnexecuted 481 times by 4 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
bytes;executed 481 times by 4 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 481 |
| 863 | } | - |
| 864 | | - |
| 865 | qint64 QHttpNetworkReplyPrivate::getChunkSize(QAbstractSocket *socket, qint64 *chunkSize) | - |
| 866 | { | - |
| 867 | qint64 bytes = 0; | - |
| 868 | char crlf[2]; | - |
| 869 | *chunkSize = -1; | - |
| 870 | | - |
| 871 | int bytesAvailable = socket->bytesAvailable(); | - |
| 872 | | - |
| 873 | while (bytesAvailable > bytes| TRUE | evaluated 711 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 105 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 105-711 |
| 874 | qint64 sniffedBytes = socket->peek(crlf, 2); | - |
| 875 | int fragmentSize = fragment.size(); | - |
| 876 | | - |
| 877 | | - |
| 878 | if ((fragmentSize| TRUE | evaluated 438 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 273 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
&& sniffedBytes == 2| TRUE | evaluated 425 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
|
&& crlf[0] == '\r'| TRUE | evaluated 273 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 152 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
&& crlf[1] == '\n'| TRUE | evaluated 273 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
) | 0-438 |
| 879 | ||(fragmentSize > 1| TRUE | evaluated 90 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | evaluated 348 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
&& fragment.endsWith('\r')| TRUE | never evaluated | | FALSE | evaluated 90 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
&& crlf[0] == '\n'| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-348 |
| 880 | { | - |
| 881 | bytes += socket->read(crlf, 1); | - |
| 882 | if (crlf[0] == '\r'| TRUE | evaluated 273 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
) | 0-273 |
| 883 | bytes += socket->read(crlf, 1);executed 273 times by 4 tests: bytes += socket->read(crlf, 1);Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 273 |
| 884 | bool ok = false; | - |
| 885 | | - |
| 886 | fragment = fragment.mid(0, fragment.indexOf(';')).trimmed(); | - |
| 887 | *chunkSize = fragment.toLong(&ok, 16); | - |
| 888 | fragment.clear(); | - |
| 889 | break;executed 273 times by 4 tests: break;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 273 |
| 890 | } else { | - |
| 891 | | - |
| 892 | char c = 0; | - |
| 893 | qint64 haveRead = socket->read(&c, 1); | - |
| 894 | if (haveRead < 0| TRUE | never evaluated | | FALSE | evaluated 438 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
|
) { | 0-438 |
| 895 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 896 | } | - |
| 897 | bytes += haveRead; | - |
| 898 | fragment.append(c); | - |
| 899 | }executed 438 times by 4 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 438 |
| 900 | } | - |
| 901 | | - |
| 902 | returnexecuted 378 times by 4 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
bytes;executed 378 times by 4 tests: return bytes;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 378 |
| 903 | } | - |
| 904 | | - |
| 905 | bool QHttpNetworkReplyPrivate::isRedirecting() const | - |
| 906 | { | - |
| 907 | | - |
| 908 | | - |
| 909 | returnexecuted 8 times by 2 tests: return (QHttpNetworkReply::isHttpRedirect(statusCode) && request.isFollowRedirects());Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
(QHttpNetworkReply::isHttpRedirect(statusCode)| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 2 times by 1 test |
executed 8 times by 2 tests: return (QHttpNetworkReply::isHttpRedirect(statusCode) && request.isFollowRedirects());Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 2-8 |
| 910 | && request.isFollowRedirects()| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
);executed 8 times by 2 tests: return (QHttpNetworkReply::isHttpRedirect(statusCode) && request.isFollowRedirects());Executed by:- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| 0-8 |
| 911 | } | - |
| 912 | | - |
| 913 | bool QHttpNetworkReplyPrivate::shouldEmitSignals() | - |
| 914 | { | - |
| 915 | | - |
| 916 | | - |
| 917 | returnexecuted 17787 times by 8 tests: return (statusCode != 401 && statusCode != 407);Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
(statusCode != 401| TRUE | evaluated 17125 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 662 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
|
&& statusCode != 407| TRUE | evaluated 16985 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 140 times by 1 test |
);executed 17787 times by 8 tests: return (statusCode != 401 && statusCode != 407);Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 140-17787 |
| 918 | } | - |
| 919 | | - |
| 920 | bool QHttpNetworkReplyPrivate::expectContent() | - |
| 921 | { | - |
| 922 | | - |
| 923 | if ((statusCode >= 100| TRUE | evaluated 1623 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
&& statusCode < 200| TRUE | never evaluated | | FALSE | evaluated 1623 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) | 0-1623 |
| 924 | || statusCode == 204| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1620 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
|| statusCode == 304| TRUE | evaluated 9 times by 2 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
| | FALSE | evaluated 1611 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) | 3-1620 |
| 925 | returnexecuted 12 times by 2 tests: return false;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
false;executed 12 times by 2 tests: return false;Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
| 12 |
| 926 | if (request.operation() == QHttpNetworkRequest::Head| TRUE | evaluated 107 times by 2 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| | FALSE | evaluated 1504 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) | 107-1504 |
| 927 | returnexecuted 107 times by 2 tests: return false;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
false;executed 107 times by 2 tests: return false;Executed by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
| 107 |
| 928 | qint64 expectedContentLength = contentLength(); | - |
| 929 | if (expectedContentLength == 0| TRUE | evaluated 31 times by 2 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
| | FALSE | evaluated 1473 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) | 31-1473 |
| 930 | returnexecuted 31 times by 2 tests: return false;Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
false;executed 31 times by 2 tests: return false;Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
| 31 |
| 931 | if (expectedContentLength == -1| TRUE | evaluated 148 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 1325 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
|
&& bodyLength == 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 147 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) { | 1-1325 |
| 932 | | - |
| 933 | | - |
| 934 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
| 935 | } | - |
| 936 | returnexecuted 1472 times by 7 tests: return true;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
true;executed 1472 times by 7 tests: return true;Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkreply - unknown status
| 1472 |
| 937 | } | - |
| 938 | | - |
| 939 | void QHttpNetworkReplyPrivate::eraseData() | - |
| 940 | { | - |
| 941 | compressedData.clear(); | - |
| 942 | responseData.clear(); | - |
| 943 | }executed 323 times by 4 tests: end of blockExecuted by:- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_Spdy
| 323 |
| 944 | | - |
| 945 | | - |
| 946 | | - |
| 947 | | - |
| 948 | | - |
| 949 | QSslConfiguration QHttpNetworkReply::sslConfiguration() const | - |
| 950 | { | - |
| 951 | const QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 952 | | - |
| 953 | if (!d->connectionChannel| TRUE | never evaluated | | FALSE | evaluated 522 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
|
) | 0-522 |
| 954 | return never executed: return QSslConfiguration(); QSslConfiguration();never executed: return QSslConfiguration(); | 0 |
| 955 | | - |
| 956 | QSslSocket *sslSocket = qobject_cast<QSslSocket*>(d->connectionChannel->socket); | - |
| 957 | if (!sslSocket| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 520 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
|
) | 2-520 |
| 958 | returnexecuted 2 times by 1 test: return QSslConfiguration(); QSslConfiguration();executed 2 times by 1 test: return QSslConfiguration(); | 2 |
| 959 | | - |
| 960 | returnexecuted 520 times by 2 tests: return sslSocket->sslConfiguration();Executed by:- tst_QNetworkReply
- tst_Spdy
sslSocket->sslConfiguration();executed 520 times by 2 tests: return sslSocket->sslConfiguration();Executed by:- tst_QNetworkReply
- tst_Spdy
| 520 |
| 961 | } | - |
| 962 | | - |
| 963 | void QHttpNetworkReply::setSslConfiguration(const QSslConfiguration &config) | - |
| 964 | { | - |
| 965 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 966 | if (d->connection| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 967 | d->connection->setSslConfiguration(config); never executed: d->connection->setSslConfiguration(config); | 0 |
| 968 | } never executed: end of block | 0 |
| 969 | | - |
| 970 | void QHttpNetworkReply::ignoreSslErrors() | - |
| 971 | { | - |
| 972 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 973 | if (d->connection| TRUE | evaluated 32 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
| | FALSE | never evaluated |
) | 0-32 |
| 974 | d->connection->ignoreSslErrors();executed 32 times by 2 tests: d->connection->ignoreSslErrors();Executed by:- tst_QNetworkReply
- tst_Spdy
| 32 |
| 975 | }executed 32 times by 2 tests: end of blockExecuted by:- tst_QNetworkReply
- tst_Spdy
| 32 |
| 976 | | - |
| 977 | void QHttpNetworkReply::ignoreSslErrors(const QList<QSslError> &errors) | - |
| 978 | { | - |
| 979 | QHttpNetworkReplyPrivate * const d = d_func(); | - |
| 980 | if (d->connection| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) | 0-6 |
| 981 | d->connection->ignoreSslErrors(errors);executed 6 times by 1 test: d->connection->ignoreSslErrors(errors); | 6 |
| 982 | }executed 6 times by 1 test: end of block | 6 |
| 983 | | - |
| 984 | | - |
| 985 | | - |
| 986 | | - |
| 987 | | - |
| 988 | | - |
| | |