qbytearraylist.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qbytearraylist.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static int QByteArrayList_joinedSize(const QByteArrayList *that, int seplen)-
4{-
5 int totalLength = 0;-
6 const int size = that->size();-
7-
8 for (int i = 0; i < size
i < sizeDescription
TRUEevaluated 3989 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 3979 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
; ++i)
3979-3989
9 totalLength += that->at(i).size();
executed 3989 times by 14 tests: totalLength += that->at(i).size();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3989
10-
11 if (size > 0
size > 0Description
TRUEevaluated 3974 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArrayList
)
5-3974
12 totalLength += seplen * (size - 1);
executed 3974 times by 14 tests: totalLength += seplen * (size - 1);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3974
13-
14 return
executed 3979 times by 14 tests: return totalLength;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
totalLength;
executed 3979 times by 14 tests: return totalLength;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3979
15}-
16-
17QByteArray QtPrivate::QByteArrayList_join(const QByteArrayList *that, const char *sep, int seplen)-
18{-
19 QByteArray res;-
20 if (const
const int join...(that, seplen)Description
TRUEevaluated 3972 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QByteArrayList
  • tst_QHttpNetworkReply
int joinedSize = QByteArrayList_joinedSize(that, seplen)
const int join...(that, seplen)Description
TRUEevaluated 3972 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QByteArrayList
  • tst_QHttpNetworkReply
)
7-3972
21 res.reserve(joinedSize);
executed 3972 times by 14 tests: res.reserve(joinedSize);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3972
22 const int size = that->size();-
23 for (int i = 0; i < size
i < sizeDescription
TRUEevaluated 3989 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 3979 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
; ++i) {
3979-3989
24 if (i
iDescription
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QByteArrayList
  • tst_QHttpNetworkReply
FALSEevaluated 3974 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
)
15-3974
25 res.append(sep, seplen);
executed 15 times by 2 tests: res.append(sep, seplen);
Executed by:
  • tst_QByteArrayList
  • tst_QHttpNetworkReply
15
26 res += that->at(i);-
27 }
executed 3989 times by 14 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3989
28 return
executed 3979 times by 14 tests: return res;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
res;
executed 3979 times by 14 tests: return res;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArrayList
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
3979
29}-
30-
31-
Switch to Source codePreprocessed file

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