qhostaddress.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/kernel/qhostaddress.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15class QHostAddressPrivate-
16{-
17public:-
18 QHostAddressPrivate();-
19-
20 void setAddress(quint32 a_ = 0);-
21 void setAddress(const quint8 *a_);-
22 void setAddress(const Q_IPV6ADDR &a_);-
23-
24 bool parse();-
25 void clear();-
26-
27 QString ipString;-
28 QString scopeId;-
29-
30 union {-
31 Q_IPV6ADDR a6;-
32 struct { quint64 c[2]; } a6_64;-
33 struct { quint32 c[4]; } a6_32;-
34 };-
35 quint32 a;-
36 qint8 protocol;-
37 bool isParsed;-
38-
39 friend class QHostAddress;-
40};-
41-
42QHostAddressPrivate::QHostAddressPrivate()-
43 : a(0), protocol(QAbstractSocket::UnknownNetworkLayerProtocol), isParsed(true)-
44{-
45 memset(&a6, 0, sizeof(a6));-
46}
executed 235092 times by 46 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • ...
235092
47-
48void QHostAddressPrivate::setAddress(quint32 a_)-
49{-
50 a = a_;-
51 protocol = QAbstractSocket::IPv4Protocol;-
52 isParsed = true;-
53-
54-
55 a6_64.c[0] = 0;-
56 if (a
aDescription
TRUEevaluated 20978 times by 40 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • ...
FALSEevaluated 644 times by 11 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
) {
644-20978
57 a6_32.c[2] = qToBigEndian(0xffff);-
58 a6_32.c[3] = qToBigEndian(a);-
59 }
executed 20978 times by 40 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • ...
else {
20978
60 a6_64.c[1] = 0;-
61 }
executed 644 times by 11 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
644
62}-
63-
64-
65-
66static bool convertToIpv4(quint32& a, const Q_IPV6ADDR &a6)-
67{-
68 const uchar *ptr = a6.c;-
69 if (qFromUnaligned<quint64>(ptr) != 0
qFromUnaligned...t64>(ptr) != 0Description
TRUEevaluated 1566 times by 26 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
FALSEevaluated 2282 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
)
1566-2282
70 return
executed 1566 times by 26 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
false;
executed 1566 times by 26 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
1566
71 if (qFromBigEndian<quint32>(ptr + 8) == 0
qFromBigEndian...(ptr + 8) == 0Description
TRUEevaluated 1295 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
FALSEevaluated 987 times by 11 tests
Evaluated by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
987-1295
72-
73 a = 0;-
74 return
executed 1295 times by 29 tests: return qFromBigEndian<quint32>(ptr + 12) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
qFromBigEndian<quint32>(ptr + 12) == 0;
executed 1295 times by 29 tests: return qFromBigEndian<quint32>(ptr + 12) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
1295
75 }-
76 if (qFromBigEndian<quint32>(ptr + 8) != 0xFFFF
qFromBigEndian...+ 8) != 0xFFFFDescription
TRUEnever evaluated
FALSEevaluated 987 times by 11 tests
Evaluated by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
)
0-987
77 return
never executed: return false;
false;
never executed: return false;
0
78 a = qFromBigEndian<quint32>(ptr + 12);-
79 return
executed 987 times by 11 tests: return true;
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 987 times by 11 tests: return true;
Executed by:
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
987
80}-
81-
82void QHostAddressPrivate::setAddress(const quint8 *a_)-
83{-
84 protocol = QAbstractSocket::IPv6Protocol;-
85 isParsed = true;-
86 memcpy(a6.c, a_, sizeof(a6));-
87 a = 0;-
88 convertToIpv4(a, a6);-
89}
executed 3840 times by 33 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • ...
3840
90-
91void QHostAddressPrivate::setAddress(const Q_IPV6ADDR &a_)-
92{-
93 setAddress(a_.c);-
94}
executed 1930 times by 16 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1930
95-
96static bool parseIp6(const QString &address, QIPAddressUtils::IPv6Address &addr, QString *scopeId)-
97{-
98 QString tmp = address;-
99 int scopeIdPos = tmp.lastIndexOf(QLatin1Char('%'));-
100 if (scopeIdPos != -1
scopeIdPos != -1Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
FALSEevaluated 313 times by 13 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
) {
6-313
101 *scopeId = tmp.mid(scopeIdPos + 1);-
102 tmp.chop(tmp.size() - scopeIdPos);-
103 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
else {
6
104 scopeId->clear();-
105 }
executed 313 times by 13 tests: end of block
Executed by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
313
106 return
executed 319 times by 13 tests: return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
executed 319 times by 13 tests: return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
319
107}-
108-
109__attribute__((noinline)) bool QHostAddressPrivate::parse()-
110{-
111 isParsed = true;-
112 protocol = QAbstractSocket::UnknownNetworkLayerProtocol;-
113 QString a = ipString.simplified();-
114 if (a.isEmpty()
a.isEmpty()Description
TRUEevaluated 3499 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 19113 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • ...
)
3499-19113
115 return
executed 3499 times by 21 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
false;
executed 3499 times by 21 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
3499
116-
117-
118 if (a.contains(QLatin1Char(':'))
a.contains(QLatin1Char(':'))Description
TRUEevaluated 319 times by 13 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 18794 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • ...
) {
319-18794
119 quint8 maybeIp6[16];-
120 if (parseIp6(a, maybeIp6, &scopeId)
parseIp6(a, ma...Ip6, &scopeId)Description
TRUEevaluated 272 times by 12 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 47 times by 3 tests
Evaluated by:
  • tst_QHostInfo
  • tst_Spdy
  • tst_qhostaddress - unknown status
) {
47-272
121 setAddress(maybeIp6);-
122 return
executed 272 times by 12 tests: return true;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
true;
executed 272 times by 12 tests: return true;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
272
123 }-
124 }
executed 47 times by 3 tests: end of block
Executed by:
  • tst_QHostInfo
  • tst_Spdy
  • tst_qhostaddress - unknown status
47
125-
126 quint32 maybeIp4 = 0;-
127 if (QIPAddressUtils::parseIp4(maybeIp4, a.constBegin(), a.constEnd())
QIPAddressUtil... a.constEnd())Description
TRUEevaluated 3326 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
FALSEevaluated 15515 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
) {
3326-15515
128 setAddress(maybeIp4);-
129 return
executed 3326 times by 28 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
true;
executed 3326 times by 28 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
3326
130 }-
131-
132 return
executed 15515 times by 28 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
false;
executed 15515 times by 28 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
15515
133}-
134-
135void QHostAddressPrivate::clear()-
136{-
137 a = 0;-
138 protocol = QAbstractSocket::UnknownNetworkLayerProtocol;-
139 isParsed = true;-
140 memset(&a6, 0, sizeof(a6));-
141}
executed 198791 times by 35 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qnetworkaddressentry - unknown status
  • ...
198791
142-
143-
144bool QNetmaskAddress::setAddress(const QString &address)-
145{-
146 length = -1;-
147 QHostAddress other;-
148 return
executed 16 times by 1 test: return other.setAddress(address) && setAddress(other);
Executed by:
  • tst_qhostaddress - unknown status
other.setAddress(address) && setAddress(other);
executed 16 times by 1 test: return other.setAddress(address) && setAddress(other);
Executed by:
  • tst_qhostaddress - unknown status
16
149}-
150-
151bool QNetmaskAddress::setAddress(const QHostAddress &address)-
152{-
153 static const quint8 zeroes[16] = { 0 };-
154 union {-
155 quint32 v4;-
156 quint8 v6[16];-
157 } ip;-
158-
159 int netmask = 0;-
160 quint8 *ptr = ip.v6;-
161 quint8 *end;-
162 length = -1;-
163-
164 QHostAddress::operator=(address);-
165-
166 if (d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEevaluated 634 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 625 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
) {
625-634
167 ip.v4 = qToBigEndian(d->a);-
168 end = ptr + 4;-
169 }
executed 634 times by 21 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
else if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 621 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) {
4-634
170 memcpy(ip.v6, d->a6.c, 16);-
171 end = ptr + 16;-
172 }
executed 621 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
else {
621
173 d->clear();-
174 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_qnetworkaddressentry - unknown status
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qnetworkaddressentry - unknown status
4
175 }-
176-
177 while (ptr < end
ptr < endDescription
TRUEevaluated 8881 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 207 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
) {
207-8881
178 switch (*ptr) {-
179 case
executed 7833 times by 21 tests: case 255:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
255:
executed 7833 times by 21 tests: case 255:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
7833
180 netmask += 8;-
181 ++ptr;-
182 continue;
executed 7833 times by 21 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
7833
183-
184 default
executed 4 times by 2 tests: default:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
:
executed 4 times by 2 tests: default:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
4
185 d->clear();-
186 return
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
false;
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
4
187-
188-
189 case
executed 4 times by 2 tests: case 254:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
254:
executed 4 times by 2 tests: case 254:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
4
190 ++netmask;-
191 case
executed 1 time by 1 test: case 252:
Executed by:
  • tst_qhostaddress - unknown status
252:
executed 1 time by 1 test: case 252:
Executed by:
  • tst_qhostaddress - unknown status
code before this statement executed 4 times by 2 tests: case 252:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
1-4
192 ++netmask;-
193 case
executed 205 times by 20 tests: case 248:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
248:
executed 205 times by 20 tests: case 248:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
code before this statement executed 5 times by 2 tests: case 248:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
5-205
194 ++netmask;-
195 case
executed 3 times by 2 tests: case 240:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
240:
executed 3 times by 2 tests: case 240:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
code before this statement executed 210 times by 21 tests: case 240:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
3-210
196 ++netmask;-
197 case
executed 2 times by 2 tests: case 224:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
224:
executed 2 times by 2 tests: case 224:
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
code before this statement executed 213 times by 21 tests: case 224:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
2-213
198 ++netmask;-
199 case
executed 1 time by 1 test: case 192:
Executed by:
  • tst_qhostaddress - unknown status
192:
executed 1 time by 1 test: case 192:
Executed by:
  • tst_qhostaddress - unknown status
code before this statement executed 215 times by 21 tests: case 192:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1-215
200 ++netmask;-
201 case
executed 1 time by 1 test: case 128:
Executed by:
  • tst_qhostaddress - unknown status
128:
executed 1 time by 1 test: case 128:
Executed by:
  • tst_qhostaddress - unknown status
code before this statement executed 216 times by 21 tests: case 128:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1-216
202 ++netmask;-
203 case
executed 1044 times by 21 tests: case 0:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
0:
executed 1044 times by 21 tests: case 0:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
code before this statement executed 217 times by 21 tests: case 0:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
217-1044
204 break;
executed 1044 times by 21 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1044
205 }-
206 break;
executed 1044 times by 21 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1044
207 }-
208-
209-
210 if (ptr < end
ptr < endDescription
TRUEevaluated 1044 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 207 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
&& memcmp(ptr + 1, zeroes, end - ptr - 1) != 0
memcmp(ptr + 1... ptr - 1) != 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 1042 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
) {
2-1044
211 d->clear();-
212 return
executed 2 times by 2 tests: return false;
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
false;
executed 2 times by 2 tests: return false;
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
2
213 }-
214-
215 length = netmask;-
216 return
executed 1249 times by 21 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
true;
executed 1249 times by 21 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1249
217}-
218-
219static void clearBits(quint8 *where, int start, int end)-
220{-
221 ((!(end == 32 || end == 128)) ? qt_assert("end == 32 || end == 128",__FILE__,309) : qt_noop());-
222 if (start == end
start == endDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
)
2-33
223 return;
executed 2 times by 2 tests: return;
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
2
224-
225-
226 quint8 bytemask = 256 - (1 << (8 - (start & 7)));-
227 where[start / 8] &= bytemask;-
228-
229-
230 memset(where + (start + 7) / 8, 0, end / 8 - (start + 7) / 8);-
231}
executed 33 times by 3 tests: end of block
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
33
232-
233int QNetmaskAddress::prefixLength() const-
234{-
235 return
executed 120 times by 3 tests: return length;
Executed by:
  • tst_QNetworkInterface
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
length;
executed 120 times by 3 tests: return length;
Executed by:
  • tst_QNetworkInterface
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
120
236}-
237-
238void QNetmaskAddress::setPrefixLength(QAbstractSocket::NetworkLayerProtocol proto, int newLength)-
239{-
240 length = newLength;-
241 if (length < 0
length < 0Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
|| length > (proto == QAbstractSocket::IPv4Protocol ? 32 :
length > (prot...ol ? 128 : -1)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
12-32
242 proto == QAbstractSocket::IPv6Protocol ? 128 : -1)
length > (prot...ol ? 128 : -1)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) {
12-16
243-
244 d->protocol = QAbstractSocket::UnknownNetworkLayerProtocol;-
245 length = -1;-
246 return;
executed 48 times by 1 test: return;
Executed by:
  • tst_qnetworkaddressentry - unknown status
48
247 }-
248-
249 d->protocol = proto;-
250 if (d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) {
5-7
251 if (length == 0
length == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) {
1-4
252 d->a = 0;-
253 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qnetworkaddressentry - unknown status
else if (length == 32
length == 32Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) {
1-3
254 d->a = quint32(0xffffffff);-
255 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qnetworkaddressentry - unknown status
else {
1
256 d->a = quint32(0xffffffff) >> (32 - length) << (32 - length);-
257 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qnetworkaddressentry - unknown status
3
258 } else {-
259 memset(d->a6.c, 0xFF, sizeof(d->a6));-
260 clearBits(d->a6.c, length, 128);-
261 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_qnetworkaddressentry - unknown status
7
262}-
263QHostAddress::QHostAddress()-
264 : d(new QHostAddressPrivate)-
265{-
266}
executed 230862 times by 44 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • ...
230862
267-
268-
269-
270-
271QHostAddress::QHostAddress(quint32 ip4Addr)-
272 : d(new QHostAddressPrivate)-
273{-
274 setAddress(ip4Addr);-
275}
executed 286 times by 22 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
286
276-
277-
278-
279-
280-
281-
282-
283QHostAddress::QHostAddress(quint8 *ip6Addr)-
284 : d(new QHostAddressPrivate)-
285{-
286 setAddress(ip6Addr);-
287}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qdnslookup - unknown status
18
288QHostAddress::QHostAddress(const quint8 *ip6Addr)-
289 : d(new QHostAddressPrivate)-
290{-
291 setAddress(ip6Addr);-
292}
never executed: end of block
0
293-
294-
295-
296-
297QHostAddress::QHostAddress(const Q_IPV6ADDR &ip6Addr)-
298 : d(new QHostAddressPrivate)-
299{-
300 setAddress(ip6Addr);-
301}
executed 14 times by 3 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
14
302-
303-
304-
305-
306-
307-
308-
309QHostAddress::QHostAddress(const QString &address)-
310 : d(new QHostAddressPrivate)-
311{-
312 d->ipString = address;-
313 d->isParsed = false;-
314}
executed 1305 times by 21 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
1305
315QHostAddress::QHostAddress(const struct sockaddr *sockaddr)-
316 : d(new QHostAddressPrivate)-
317{-
318-
319 if (sockaddr->sa_family == 2
sockaddr->sa_family == 2Description
TRUEnever evaluated
FALSEnever evaluated
)
0
320 setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr));
never executed: setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr));
0
321 else if (sockaddr->sa_family == 10
sockaddr->sa_family == 10Description
TRUEnever evaluated
FALSEnever evaluated
)
0
322 setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8);
never executed: setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8);
0
323-
324-
325-
326}
never executed: end of block
0
327-
328-
329-
330-
331QHostAddress::QHostAddress(const QHostAddress &address)-
332 : d(new QHostAddressPrivate(*address.d.data()))-
333{-
334}
executed 56939 times by 39 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • ...
56939
335-
336-
337-
338-
339QHostAddress::QHostAddress(SpecialAddress address)-
340 : d(new QHostAddressPrivate)-
341{-
342 Q_IPV6ADDR ip6;-
343 memset(&ip6, 0, sizeof ip6);-
344 quint32 ip4 = ((in_addr_t) 0x00000000);-
345-
346 switch (address) {-
347 case
executed 11 times by 2 tests: case Null:
Executed by:
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
Null:
executed 11 times by 2 tests: case Null:
Executed by:
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
11
348 return;
executed 11 times by 2 tests: return;
Executed by:
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
11
349-
350 case
executed 174 times by 3 tests: case Broadcast:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
Broadcast:
executed 174 times by 3 tests: case Broadcast:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
174
351 ip4 = ((in_addr_t) 0xffffffff);-
352 break;
executed 174 times by 3 tests: break;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
174
353 case
executed 272 times by 17 tests: case LocalHost:
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
LocalHost:
executed 272 times by 17 tests: case LocalHost:
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
272
354 ip4 = ((in_addr_t) 0x7f000001);-
355 break;
executed 272 times by 17 tests: break;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
272
356 case
executed 215 times by 8 tests: case AnyIPv4:
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
AnyIPv4:
executed 215 times by 8 tests: case AnyIPv4:
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
215
357 break;
executed 215 times by 8 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
215
358-
359 case
executed 52 times by 5 tests: case LocalHostIPv6:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
LocalHostIPv6:
executed 52 times by 5 tests: case LocalHostIPv6:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
52
360 ip6[15] = 1;-
361-
362 case
executed 49 times by 6 tests: case AnyIPv6:
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
AnyIPv6:
executed 49 times by 6 tests: case AnyIPv6:
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
code before this statement executed 52 times by 5 tests: case AnyIPv6:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
49-52
363 d->setAddress(ip6);-
364 return;
executed 101 times by 7 tests: return;
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
101
365-
366 case
executed 1834 times by 15 tests: case Any:
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
Any:
executed 1834 times by 15 tests: case Any:
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1834
367 d->protocol = QAbstractSocket::AnyIPProtocol;-
368 return;
executed 1834 times by 15 tests: return;
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1834
369 }-
370-
371-
372 d->setAddress(ip4);-
373}
executed 661 times by 17 tests: end of block
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
661
374-
375-
376-
377-
378QHostAddress::~QHostAddress()-
379{-
380}-
381-
382-
383-
384-
385-
386QHostAddress &QHostAddress::operator=(const QHostAddress &address)-
387{-
388 *d.data() = *address.d.data();-
389 return
executed 29795 times by 38 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • ...
*this;
executed 29795 times by 38 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • ...
29795
390}-
391-
392-
393-
394-
395-
396-
397-
398QHostAddress &QHostAddress::operator=(const QString &address)-
399{-
400 setAddress(address);-
401 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_qhostaddress - unknown status
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_qhostaddress - unknown status
2
402}-
403void QHostAddress::clear()-
404{-
405 d->clear();-
406}
executed 198781 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • ...
198781
407-
408-
409-
410-
411void QHostAddress::setAddress(quint32 ip4Addr)-
412{-
413 d->setAddress(ip4Addr);-
414}
executed 17635 times by 38 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • ...
17635
415void QHostAddress::setAddress(quint8 *ip6Addr)-
416{-
417 d->setAddress(ip6Addr);-
418}
executed 1638 times by 24 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdnslookup - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
1638
419void QHostAddress::setAddress(const quint8 *ip6Addr)-
420{-
421 d->setAddress(ip6Addr);-
422}
never executed: end of block
0
423-
424-
425-
426-
427-
428-
429void QHostAddress::setAddress(const Q_IPV6ADDR &ip6Addr)-
430{-
431 d->setAddress(ip6Addr);-
432}
executed 1829 times by 15 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1829
433bool QHostAddress::setAddress(const QString &address)-
434{-
435 d->ipString = address;-
436 return
executed 21302 times by 32 tests: return d->parse();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
d->parse();
executed 21302 times by 32 tests: return d->parse();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_lancelot - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
21302
437}-
438void QHostAddress::setAddress(const struct sockaddr *sockaddr)-
439{-
440-
441 clear();-
442 if (sockaddr->sa_family == 2
sockaddr->sa_family == 2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEnever evaluated
)
0-1
443 setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr));
executed 1 time by 1 test: setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr));
Executed by:
  • tst_qhostaddress - unknown status
1
444 else if (sockaddr->sa_family == 10
sockaddr->sa_family == 10Description
TRUEnever evaluated
FALSEnever evaluated
)
0
445 setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8);
never executed: setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8);
0
446-
447-
448-
449}
executed 1 time by 1 test: end of block
Executed by:
  • tst_qhostaddress - unknown status
1
450quint32 QHostAddress::toIPv4Address() const-
451{-
452 return
executed 10697 times by 37 tests: return toIPv4Address(nullptr);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
toIPv4Address(nullptr);
executed 10697 times by 37 tests: return toIPv4Address(nullptr);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
10697
453}-
454quint32 QHostAddress::toIPv4Address(bool *ok) const-
455{-
456 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 10699 times by 37 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
) (
executed 7 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 7 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
7-10699
457 quint32 dummy;-
458 if (ok
okDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 10697 times by 37 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
)
9-10697
459 *
executed 9 times by 1 test: *ok = d->protocol == QAbstractSocket::IPv4Protocol || d->protocol == QAbstractSocket::AnyIPProtocol || (d->protocol == QAbstractSocket::IPv6Protocol && convertToIpv4(dummy, d->a6));
Executed by:
  • tst_qhostaddress - unknown status
ok = d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
|| d->protocol == QAbstractSocket::AnyIPProtocol
d->protocol ==...:AnyIPProtocolDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
executed 9 times by 1 test: *ok = d->protocol == QAbstractSocket::IPv4Protocol || d->protocol == QAbstractSocket::AnyIPProtocol || (d->protocol == QAbstractSocket::IPv6Protocol && convertToIpv4(dummy, d->a6));
Executed by:
  • tst_qhostaddress - unknown status
0-9
460 || (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEnever evaluated
&& convertToIpv4(dummy, d->a6)
convertToIpv4(dummy, d->a6)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
);
executed 9 times by 1 test: *ok = d->protocol == QAbstractSocket::IPv4Protocol || d->protocol == QAbstractSocket::AnyIPProtocol || (d->protocol == QAbstractSocket::IPv6Protocol && convertToIpv4(dummy, d->a6));
Executed by:
  • tst_qhostaddress - unknown status
0-9
461 return
executed 10706 times by 37 tests: return d->a;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
d->a;
executed 10706 times by 37 tests: return d->a;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
10706
462}-
463-
464-
465-
466-
467QAbstractSocket::NetworkLayerProtocol QHostAddress::protocol() const-
468{-
469 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 286 times by 12 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 40148 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
) (
executed 286 times by 12 tests: (this)->d->parse();
Executed by:
  • tst_QHostInfo
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
this)->d->parse();
executed 286 times by 12 tests: (this)->d->parse();
Executed by:
  • tst_QHostInfo
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qnetworkcookie - unknown status
  • tst_qnetworkcookiejar - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
} while (0);
286-40148
470 return
executed 40434 times by 39 tests: return QAbstractSocket::NetworkLayerProtocol(d->protocol);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
QAbstractSocket::NetworkLayerProtocol(d->protocol);
executed 40434 times by 39 tests: return QAbstractSocket::NetworkLayerProtocol(d->protocol);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • ...
40434
471}-
472Q_IPV6ADDR QHostAddress::toIPv6Address() const-
473{-
474 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 1611 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) (
executed 1 time by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 1 time by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
1-1611
475 return
executed 1612 times by 16 tests: return d->a6;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
d->a6;
executed 1612 times by 16 tests: return d->a6;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1612
476}-
477QString QHostAddress::toString() const-
478{-
479 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
FALSEevaluated 2970 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) (
executed 3 times by 2 tests: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
this)->d->parse();
executed 3 times by 2 tests: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
} while (0);
3-2970
480 QString s;-
481 if (d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEevaluated 2486 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 487 times by 13 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
487-2486
482 || d->protocol == QAbstractSocket::AnyIPProtocol
d->protocol ==...:AnyIPProtocolDescription
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qhttpsocketengine - unknown status
FALSEevaluated 464 times by 13 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
) {
23-464
483 quint32 i = toIPv4Address();-
484 QIPAddressUtils::toString(s, i);-
485 }
executed 2509 times by 25 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
else if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 283 times by 10 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 181 times by 6 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhttpsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
) {
181-2509
486 QIPAddressUtils::toString(s, d->a6.c);-
487 if (!d->scopeId.isEmpty()
!d->scopeId.isEmpty()Description
TRUEevaluated 33 times by 5 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
FALSEevaluated 250 times by 10 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
)
33-250
488 s.append(QLatin1Char('%') + d->scopeId);
executed 33 times by 5 tests: s.append(QLatin1Char('%') + d->scopeId);
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
33
489 }
executed 283 times by 10 tests: end of block
Executed by:
  • tst_QHostInfo
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
283
490 return
executed 2973 times by 25 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
s;
executed 2973 times by 25 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
2973
491}-
492QString QHostAddress::scopeId() const-
493{-
494 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 1601 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) (
executed 2 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 2 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
2-1601
495 return
executed 1603 times by 16 tests: return (d->protocol == QAbstractSocket::IPv6Protocol) ? d->scopeId : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
(d->protocol == QAbstractSocket::IPv6Protocol) ? d->scopeId : QString();
executed 1603 times by 16 tests: return (d->protocol == QAbstractSocket::IPv6Protocol) ? d->scopeId : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1603
496}-
497void QHostAddress::setScopeId(const QString &id)-
498{-
499 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEnever evaluated
FALSEevaluated 443 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) (
never executed: (this)->d->parse();
this)->d->parse();
never executed: (this)->d->parse();
} while (0);
0-443
500 if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 443 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
)
0-443
501 d->scopeId = id;
executed 443 times by 20 tests: d->scopeId = id;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
443
502}
executed 443 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
443
503-
504-
505-
506-
507-
508bool QHostAddress::operator==(const QHostAddress &other) const-
509{-
510 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEnever evaluated
FALSEevaluated 6340 times by 26 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
) (
never executed: (this)->d->parse();
this)->d->parse();
never executed: (this)->d->parse();
} while (0);
0-6340
511 do { if (!(&other)->d->isParsed
!(&other)->d->isParsedDescription
TRUEevaluated 53 times by 3 tests
Evaluated by:
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 6287 times by 26 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
) (
executed 53 times by 3 tests: (&other)->d->parse();
Executed by:
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qsocks5socketengine - unknown status
&other)->d->parse();
executed 53 times by 3 tests: (&other)->d->parse();
Executed by:
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qsocks5socketengine - unknown status
} while (0);
53-6287
512-
513 if (d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEevaluated 5508 times by 26 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
FALSEevaluated 832 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
)
832-5508
514 return
executed 5508 times by 26 tests: return other.d->protocol == QAbstractSocket::IPv4Protocol && d->a == other.d->a;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
other.d->protocol == QAbstractSocket::IPv4Protocol && d->a == other.d->a;
executed 5508 times by 26 tests: return other.d->protocol == QAbstractSocket::IPv4Protocol && d->a == other.d->a;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
5508
515 if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 685 times by 18 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 147 times by 8 tests
Evaluated by:
  • tst_QTcpServer
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
) {
147-685
516 return
executed 685 times by 18 tests: return other.d->protocol == QAbstractSocket::IPv6Protocol && memcmp(&d->a6, &other.d->a6, sizeof(Q_IPV6ADDR)) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
other.d->protocol == QAbstractSocket::IPv6Protocol
executed 685 times by 18 tests: return other.d->protocol == QAbstractSocket::IPv6Protocol && memcmp(&d->a6, &other.d->a6, sizeof(Q_IPV6ADDR)) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
685
517 && memcmp(&d->a6, &other.d->a6, sizeof(Q_IPV6ADDR)) == 0;
executed 685 times by 18 tests: return other.d->protocol == QAbstractSocket::IPv6Protocol && memcmp(&d->a6, &other.d->a6, sizeof(Q_IPV6ADDR)) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qhostaddress - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
685
518 }-
519 return
executed 147 times by 8 tests: return d->protocol == other.d->protocol;
Executed by:
  • tst_QTcpServer
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
d->protocol == other.d->protocol;
executed 147 times by 8 tests: return d->protocol == other.d->protocol;
Executed by:
  • tst_QTcpServer
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
147
520}-
521-
522-
523-
524-
525-
526bool QHostAddress::operator ==(SpecialAddress other) const-
527{-
528 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 2547 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) (
executed 15 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 15 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
15-2547
529 quint32 ip4 = ((in_addr_t) 0x00000000);-
530 switch (other) {-
531 case
executed 6 times by 1 test: case Null:
Executed by:
  • tst_qhostaddress - unknown status
Null:
executed 6 times by 1 test: case Null:
Executed by:
  • tst_qhostaddress - unknown status
6
532 return
executed 6 times by 1 test: return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
Executed by:
  • tst_qhostaddress - unknown status
d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
executed 6 times by 1 test: return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
Executed by:
  • tst_qhostaddress - unknown status
6
533-
534 case
executed 6 times by 1 test: case Broadcast:
Executed by:
  • tst_qhostaddress - unknown status
Broadcast:
executed 6 times by 1 test: case Broadcast:
Executed by:
  • tst_qhostaddress - unknown status
6
535 ip4 = ((in_addr_t) 0xffffffff);-
536 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
6
537-
538 case
executed 9 times by 1 test: case LocalHost:
Executed by:
  • tst_qhostaddress - unknown status
LocalHost:
executed 9 times by 1 test: case LocalHost:
Executed by:
  • tst_qhostaddress - unknown status
9
539 ip4 = ((in_addr_t) 0x7f000001);-
540 break;
executed 9 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
9
541-
542 case
executed 57 times by 5 tests: case Any:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
Any:
executed 57 times by 5 tests: case Any:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
57
543 return
executed 57 times by 5 tests: return d->protocol == QAbstractSocket::AnyIPProtocol;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
d->protocol == QAbstractSocket::AnyIPProtocol;
executed 57 times by 5 tests: return d->protocol == QAbstractSocket::AnyIPProtocol;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
57
544-
545 case
executed 1242 times by 15 tests: case AnyIPv4:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
AnyIPv4:
executed 1242 times by 15 tests: case AnyIPv4:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1242
546 break;
executed 1242 times by 15 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1242
547-
548 case
executed 13 times by 3 tests: case LocalHostIPv6:
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
LocalHostIPv6:
executed 13 times by 3 tests: case LocalHostIPv6:
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
13
549 case
executed 1229 times by 15 tests: case AnyIPv6:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
AnyIPv6:
executed 1229 times by 15 tests: case AnyIPv6:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1229
550 if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 1226 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
16-1226
551 quint64 second = quint8(other == LocalHostIPv6);-
552 return
executed 1226 times by 16 tests: return d->a6_64.c[0] == 0 && d->a6_64.c[1] == qToBigEndian(second);
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
d->a6_64.c[0] == 0 && d->a6_64.c[1] == qToBigEndian(second);
executed 1226 times by 16 tests: return d->a6_64.c[0] == 0 && d->a6_64.c[1] == qToBigEndian(second);
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1226
553 }-
554 return
executed 16 times by 4 tests: return false;
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
false;
executed 16 times by 4 tests: return false;
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
16
555 }-
556-
557-
558 return
executed 1257 times by 15 tests: return d->protocol == QAbstractSocket::IPv4Protocol && d->a == ip4;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
d->protocol == QAbstractSocket::IPv4Protocol && d->a == ip4;
executed 1257 times by 15 tests: return d->protocol == QAbstractSocket::IPv4Protocol && d->a == ip4;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1257
559}-
560-
561-
562-
563-
564-
565-
566bool QHostAddress::isNull() const-
567{-
568 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 76 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qsslsocket - unknown status
FALSEevaluated 4241 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
) (
executed 76 times by 2 tests: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qsslsocket - unknown status
this)->d->parse();
executed 76 times by 2 tests: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qsslsocket - unknown status
} while (0);
76-4241
569 return
executed 4317 times by 28 tests: return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
executed 4317 times by 28 tests: return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_platformsocketengine - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qnetworkaddressentry - unknown status
  • tst_qsocketnotifier - unknown status
  • ...
4317
570}-
571bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask) const-
572{-
573 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 62 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) (
executed 12 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 12 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
12-62
574 if (subnet.protocol() != d->protocol
subnet.protoco...!= d->protocolDescription
TRUEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 48 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
|| netmask < 0
netmask < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 47 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-48
575 return
executed 27 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
false;
executed 27 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
27
576-
577 union {-
578 quint32 ip;-
579 quint8 data[4];-
580 } ip4, net4;-
581 const quint8 *ip;-
582 const quint8 *net;-
583 if (d->protocol == QAbstractSocket::IPv4Protocol
d->protocol ==...::IPv4ProtocolDescription
TRUEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
21-26
584 if (netmask > 32
netmask > 32Description
TRUEnever evaluated
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
0-26
585 netmask = 32;
never executed: netmask = 32;
0
586 ip4.ip = qToBigEndian(d->a);-
587 net4.ip = qToBigEndian(subnet.d->a);-
588 ip = ip4.data;-
589 net = net4.data;-
590 }
executed 26 times by 4 tests: end of block
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
else if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 20 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
) {
1-26
591 if (netmask > 128
netmask > 128Description
TRUEnever evaluated
FALSEevaluated 20 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
0-20
592 netmask = 128;
never executed: netmask = 128;
0
593 ip = d->a6.c;-
594 net = subnet.d->a6.c;-
595 }
executed 20 times by 4 tests: end of block
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
else {
20
596 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qhostaddress - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qhostaddress - unknown status
1
597 }-
598-
599 if (netmask >= 8
netmask >= 8Description
TRUEevaluated 30 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
&& memcmp(ip, net, netmask / 8) != 0
memcmp(ip, net...mask / 8) != 0Description
TRUEevaluated 13 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
13-30
600 return
executed 13 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
false;
executed 13 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
13
601 if ((
(netmask & 7) == 0Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
netmask & 7) == 0
(netmask & 7) == 0Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
16-17
602 return
executed 16 times by 3 tests: return true;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
true;
executed 16 times by 3 tests: return true;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qhostaddress - unknown status
16
603-
604-
605 quint8 bytemask = 256 - (1 << (8 - (netmask & 7)));-
606 quint8 ipbyte = ip[netmask / 8];-
607 quint8 netbyte = net[netmask / 8];-
608 return
executed 17 times by 2 tests: return (ipbyte & bytemask) == (netbyte & bytemask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
(ipbyte & bytemask) == (netbyte & bytemask);
executed 17 times by 2 tests: return (ipbyte & bytemask) == (netbyte & bytemask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
17
609}-
610bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet) const-
611{-
612 return
executed 10 times by 1 test: return isInSubnet(subnet.first, subnet.second);
Executed by:
  • tst_qtcpsocket - unknown status
isInSubnet(subnet.first, subnet.second);
executed 10 times by 1 test: return isInSubnet(subnet.first, subnet.second);
Executed by:
  • tst_qtcpsocket - unknown status
10
613}-
614QPair<QHostAddress, int> QHostAddress::parseSubnet(const QString &subnet)-
615{-
616 const QPair<QHostAddress, int> invalid = qMakePair(QHostAddress(), -1);-
617 if (subnet.isEmpty()
subnet.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 85 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-85
618 return
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
1
619-
620 int slash = subnet.indexOf(QLatin1Char('/'));-
621 QString netStr = subnet;-
622 if (slash != -1
slash != -1Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
)
13-72
623 netStr.truncate(slash);
executed 72 times by 2 tests: netStr.truncate(slash);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
72
624-
625 int netmask = -1;-
626 bool isIpv6 = netStr.contains(QLatin1Char(':'));-
627-
628 if (slash != -1
slash != -1Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
) {
13-72
629-
630 if (!isIpv6
!isIpv6Description
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
&& subnet.indexOf(QLatin1Char('.'), slash + 1) != -1
subnet.indexOf...ash + 1) != -1Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
16-40
631-
632 QNetmaskAddress parser;-
633 if (!parser.setAddress(subnet.mid(slash + 1))
!parser.setAdd...id(slash + 1))Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
)
3-13
634 return
executed 3 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 3 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
3
635 netmask = parser.prefixLength();-
636 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_qhostaddress - unknown status
else {
13
637 bool ok;-
638 netmask = subnet.midRef(slash + 1).toUInt(&ok);-
639 if (!ok
!okDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
4-52
640 return
executed 4 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 4 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
4
641 }
executed 52 times by 2 tests: end of block
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
52
642 }-
643-
644 if (isIpv6
isIpv6Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
30-48
645-
646 if (netmask > 128
netmask > 128Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-29
647 return
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
1
648 if (netmask < 0
netmask < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-28
649 netmask = 128;
executed 1 time by 1 test: netmask = 128;
Executed by:
  • tst_qhostaddress - unknown status
1
650-
651 QHostAddress net;-
652 if (!net.setAddress(netStr)
!net.setAddress(netStr)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-28
653 return
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
1
654-
655 clearBits(net.d->a6.c, netmask, 128);-
656 return
executed 28 times by 2 tests: return qMakePair(net, netmask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
qMakePair(net, netmask);
executed 28 times by 2 tests: return qMakePair(net, netmask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
28
657 }-
658-
659 if (netmask > 32
netmask > 32Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 47 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
1-47
660 return
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 1 time by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
1
661-
662-
663 auto parts = netStr.splitRef(QLatin1Char('.'));-
664 if (parts.isEmpty()
parts.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 47 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
|| parts.count() > 4
parts.count() > 4Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
0-47
665 return
executed 2 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 2 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
2
666-
667 if (parts.constLast().isEmpty()
parts.constLast().isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 43 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
2-43
668 parts.removeLast();
executed 2 times by 1 test: parts.removeLast();
Executed by:
  • tst_qhostaddress - unknown status
2
669-
670 quint32 addr = 0;-
671 for (int i = 0; i < parts.count()
i < parts.count()Description
TRUEevaluated 154 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
; ++i) {
42-154
672 bool ok;-
673 uint byteValue = parts.at(i).toUInt(&ok);-
674 if (!ok
!okDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 151 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
|| byteValue > 255
byteValue > 255Description
TRUEnever evaluated
FALSEevaluated 151 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
)
0-151
675 return
executed 3 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
invalid;
executed 3 times by 1 test: return invalid;
Executed by:
  • tst_qhostaddress - unknown status
3
676-
677 addr <<= 8;-
678 addr += byteValue;-
679 }
executed 151 times by 2 tests: end of block
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
151
680 addr <<= 8 * (4 - parts.count());-
681 if (netmask == -1
netmask == -1Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
7-35
682 netmask = 8 * parts.count();-
683 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_qhostaddress - unknown status
else if (netmask == 0
netmask == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
) {
3-32
684-
685-
686-
687 addr = 0;-
688 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qhostaddress - unknown status
else if (netmask != 32
netmask != 32Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
) {
2-30
689-
690 quint32 mask = quint32(0xffffffff) >> (32 - netmask) << (32 - netmask);-
691 addr &= mask;-
692 }
executed 30 times by 2 tests: end of block
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
30
693-
694 return
executed 42 times by 2 tests: return qMakePair(QHostAddress(addr), netmask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
qMakePair(QHostAddress(addr), netmask);
executed 42 times by 2 tests: return qMakePair(QHostAddress(addr), netmask);
Executed by:
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
42
695}-
696-
697-
698-
699-
700-
701-
702-
703bool QHostAddress::isLoopback() const-
704{-
705 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 838 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 10150 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
) (
executed 838 times by 11 tests: (this)->d->parse();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
this)->d->parse();
executed 838 times by 11 tests: (this)->d->parse();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qtcpsocket - unknown status
} while (0);
838-10150
706 if ((
(d->a & 0xFF00... == 0x7F000000Description
TRUEevaluated 2396 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8592 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
d->a & 0xFF000000) == 0x7F000000
(d->a & 0xFF00... == 0x7F000000Description
TRUEevaluated 2396 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8592 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • ...
)
2396-8592
707 return
executed 2396 times by 21 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 2396 times by 21 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
2396
708 if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 884 times by 11 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 7708 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
) {
884-7708
709-
710 const __m128i loopback = _mm_setr_epi8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);-
711 __m128i ipv6 = _mm_loadu_si128((const __m128i *)d->a6.c);-
712 __m128i cmp = _mm_cmpeq_epi8(ipv6, loopback);-
713 return
executed 884 times by 11 tests: return _mm_movemask_epi8(cmp) == 0xffff;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
_mm_movemask_epi8(cmp) == 0xffff;
executed 884 times by 11 tests: return _mm_movemask_epi8(cmp) == 0xffff;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
884
714-
715-
716-
717-
718 return
dead code: return true;
true;
dead code: return true;
-
719 }-
720 return
executed 7708 times by 25 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
false;
executed 7708 times by 25 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qhostaddress - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
7708
721}-
722-
723-
724-
725-
726-
727-
728-
729bool QHostAddress::isMulticast() const-
730{-
731 do { if (!(this)->d->isParsed
!(this)->d->isParsedDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
) (
executed 17 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
this)->d->parse();
executed 17 times by 1 test: (this)->d->parse();
Executed by:
  • tst_qhostaddress - unknown status
} while (0);
8-17
732 if ((
(d->a & 0xF000... == 0xE0000000Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
d->a & 0xF0000000) == 0xE0000000
(d->a & 0xF000... == 0xE0000000Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
)
4-21
733 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_qhostaddress - unknown status
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_qhostaddress - unknown status
4
734 if (d->protocol == QAbstractSocket::IPv6Protocol
d->protocol ==...::IPv6ProtocolDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
)
10-11
735 return
executed 11 times by 1 test: return d->a6.c[0] == 0xff;
Executed by:
  • tst_qhostaddress - unknown status
d->a6.c[0] == 0xff;
executed 11 times by 1 test: return d->a6.c[0] == 0xff;
Executed by:
  • tst_qhostaddress - unknown status
11
736 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_qhostaddress - unknown status
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qhostaddress - unknown status
10
737}-
738-
739-
740QDebug operator<<(QDebug d, const QHostAddress &address)-
741{-
742 QDebugStateSaver saver(d);-
743 d.resetFormat().nospace();-
744 if (address == QHostAddress::Any
address == QHostAddress::AnyDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
)
0-4
745 d << "QHostAddress(QHostAddress::Any)";
never executed: d << "QHostAddress(QHostAddress::Any)";
0
746 else-
747 d << "QHostAddress(" << address.toString() << ')';
executed 4 times by 2 tests: d << "QHostAddress(" << address.toString() << ')';
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
4
748 return
executed 4 times by 2 tests: return d;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
d;
executed 4 times by 2 tests: return d;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
4
749}-
750-
751-
752uint qHash(const QHostAddress &key, uint seed)-
753{-
754-
755 do { if (!(&key)->d->isParsed
!(&key)->d->isParsedDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
) (
never executed: (&key)->d->parse();
&key)->d->parse();
never executed: (&key)->d->parse();
} while (0);
0-10
756 return
executed 10 times by 1 test: return qHashBits(key.d->a6.c, 16, seed);
Executed by:
  • tst_qhostaddress - unknown status
qHashBits(key.d->a6.c, 16, seed);
executed 10 times by 1 test: return qHashBits(key.d->a6.c, 16, seed);
Executed by:
  • tst_qhostaddress - unknown status
10
757}-
758QDataStream &operator<<(QDataStream &out, const QHostAddress &address)-
759{-
760 qint8 prot;-
761 prot = qint8(address.protocol());-
762 out << prot;-
763 switch (address.protocol()) {-
764 case
executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::UnknownNetworkLayerProtocol:
executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol:
Executed by:
  • tst_qhostaddress - unknown status
3
765 case
executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::AnyIPProtocol:
executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol:
Executed by:
  • tst_qhostaddress - unknown status
1
766 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
4
767 case
executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::IPv4Protocol:
executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol:
Executed by:
  • tst_qhostaddress - unknown status
5
768 out << address.toIPv4Address();-
769 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
5
770 case
executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::IPv6Protocol:
executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol:
Executed by:
  • tst_qhostaddress - unknown status
4
771 {-
772 Q_IPV6ADDR ipv6 = address.toIPv6Address();-
773 for (int i = 0; i < 16
i < 16Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
; ++i)
4-64
774 out << ipv6[i];
executed 64 times by 1 test: out << ipv6[i];
Executed by:
  • tst_qhostaddress - unknown status
64
775 out << address.scopeId();-
776 }-
777 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
4
778 }-
779 return
executed 13 times by 1 test: return out;
Executed by:
  • tst_qhostaddress - unknown status
out;
executed 13 times by 1 test: return out;
Executed by:
  • tst_qhostaddress - unknown status
13
780}-
781QDataStream &operator>>(QDataStream &in, QHostAddress &address)-
782{-
783 qint8 prot;-
784 in >> prot;-
785 switch (QAbstractSocket::NetworkLayerProtocol(prot)) {-
786 case
executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::UnknownNetworkLayerProtocol:
executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol:
Executed by:
  • tst_qhostaddress - unknown status
3
787 address.clear();-
788 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
3
789 case
executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::IPv4Protocol:
executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol:
Executed by:
  • tst_qhostaddress - unknown status
5
790 {-
791 quint32 ipv4;-
792 in >> ipv4;-
793 address.setAddress(ipv4);-
794 }-
795 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
5
796 case
executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::IPv6Protocol:
executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol:
Executed by:
  • tst_qhostaddress - unknown status
4
797 {-
798 Q_IPV6ADDR ipv6;-
799 for (int i = 0; i < 16
i < 16Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qhostaddress - unknown status
; ++i)
4-64
800 in >> ipv6[i];
executed 64 times by 1 test: in >> ipv6[i];
Executed by:
  • tst_qhostaddress - unknown status
64
801 address.setAddress(ipv6);-
802-
803 QString scope;-
804 in >> scope;-
805 address.setScopeId(scope);-
806 }-
807 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
4
808 case
executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol:
Executed by:
  • tst_qhostaddress - unknown status
QAbstractSocket::AnyIPProtocol:
executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol:
Executed by:
  • tst_qhostaddress - unknown status
1
809 address = QHostAddress::Any;-
810 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_qhostaddress - unknown status
1
811 default
never executed: default:
:
never executed: default:
0
812 address.clear();-
813 in.setStatus(QDataStream::ReadCorruptData);-
814 }
never executed: end of block
0
815 return
executed 13 times by 1 test: return in;
Executed by:
  • tst_qhostaddress - unknown status
in;
executed 13 times by 1 test: return in;
Executed by:
  • tst_qhostaddress - unknown status
13
816}-
817-
818-
819-
820-
Switch to Source codePreprocessed file

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