Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | #include "qhostaddress.h" | - |
42 | #include "qhostaddress_p.h" | - |
43 | #include "private/qipaddress_p.h" | - |
44 | #include "qdebug.h" | - |
45 | #if defined(Q_OS_WIN) | - |
46 | # include <winsock2.h> | - |
47 | #else | - |
48 | # include <netinet/in.h> | - |
49 | #endif | - |
50 | #include "qplatformdefs.h" | - |
51 | #include "qstringlist.h" | - |
52 | #include "qendian.h" | - |
53 | #ifndef QT_NO_DATASTREAM | - |
54 | #include <qdatastream.h> | - |
55 | #endif | - |
56 | #ifdef __SSE2__ | - |
57 | # include <private/qsimd_p.h> | - |
58 | #endif | - |
59 | | - |
60 | #ifdef QT_LINUXBASE | - |
61 | # include <arpa/inet.h> | - |
62 | #endif | - |
63 | | - |
64 | QT_BEGIN_NAMESPACE | - |
65 | | - |
66 | #define QT_ENSURE_PARSED(a) \ | - |
67 | do { \ | - |
68 | if (!(a)->d->isParsed) \ | - |
69 | (a)->d->parse(); \ | - |
70 | } while (0) | - |
71 | | - |
72 | #ifdef Q_OS_WIN | - |
73 | | - |
74 | | - |
75 | | - |
76 | #if defined(Q_OS_WINCE) || defined(Q_OS_WINRT) | - |
77 | # if !defined(u_char) | - |
78 | # define u_char unsigned char | - |
79 | # endif | - |
80 | # if !defined(u_short) | - |
81 | # define u_short unsigned short | - |
82 | # endif | - |
83 | # if !defined(u_long) | - |
84 | # define u_long unsigned long | - |
85 | # endif | - |
86 | #endif | - |
87 | struct qt_in6_addr { | - |
88 | u_char qt_s6_addr[16]; | - |
89 | }; | - |
90 | typedef struct { | - |
91 | short sin6_family; | - |
92 | u_short sin6_port; | - |
93 | u_long sin6_flowinfo; | - |
94 | struct qt_in6_addr sin6_addr; | - |
95 | u_long sin6_scope_id; | - |
96 | } qt_sockaddr_in6; | - |
97 | #else | - |
98 | #define qt_sockaddr_in6 sockaddr_in6 | - |
99 | #define qt_s6_addr s6_addr | - |
100 | #endif | - |
101 | | - |
102 | | - |
103 | class QHostAddressPrivate | - |
104 | { | - |
105 | public: | - |
106 | QHostAddressPrivate(); | - |
107 | | - |
108 | void setAddress(quint32 a_ = 0); | - |
109 | void setAddress(const quint8 *a_); | - |
110 | void setAddress(const Q_IPV6ADDR &a_); | - |
111 | | - |
112 | bool parse(); | - |
113 | void clear(); | - |
114 | | - |
115 | QString ipString; | - |
116 | QString scopeId; | - |
117 | | - |
118 | union { | - |
119 | Q_IPV6ADDR a6; | - |
120 | struct { quint64 c[2]; } a6_64; | - |
121 | struct { quint32 c[4]; } a6_32; | - |
122 | }; | - |
123 | quint32 a; | - |
124 | qint8 protocol; | - |
125 | bool isParsed; | - |
126 | | - |
127 | friend class QHostAddress; | - |
128 | }; | - |
129 | | - |
130 | QHostAddressPrivate::QHostAddressPrivate() | - |
131 | : a(0), protocol(QAbstractSocket::UnknownNetworkLayerProtocol), isParsed(true) | - |
132 | { | - |
133 | memset(&a6, 0, sizeof(a6)); | - |
134 | }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 |
135 | | - |
136 | void QHostAddressPrivate::setAddress(quint32 a_) | - |
137 | { | - |
138 | a = a_; | - |
139 | protocol = QAbstractSocket::IPv4Protocol; | - |
140 | isParsed = true; | - |
141 | | - |
142 | | - |
143 | a6_64.c[0] = 0; | - |
144 | if (a) {TRUE | evaluated 20978 times by 40 testsEvaluated 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
- ...
| FALSE | evaluated 644 times by 11 testsEvaluated 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 |
145 | a6_32.c[2] = qToBigEndian(0xffff); | - |
146 | a6_32.c[3] = qToBigEndian(a); | - |
147 | } else {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
- ...
| 20978 |
148 | a6_64.c[1] = 0; | - |
149 | }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 |
150 | } | - |
151 | | - |
152 | | - |
153 | | - |
154 | static bool convertToIpv4(quint32& a, const Q_IPV6ADDR &a6) | - |
155 | { | - |
156 | const uchar *ptr = a6.c; | - |
157 | if (qFromUnaligned<quint64>(ptr) != 0)TRUE | evaluated 1566 times by 26 testsEvaluated 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 | evaluated 2282 times by 29 testsEvaluated 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 |
158 | return 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 |
159 | if (qFromBigEndian<quint32>(ptr + 8) == 0) {TRUE | evaluated 1295 times by 29 testsEvaluated 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
- ...
| FALSE | evaluated 987 times by 11 testsEvaluated 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 |
160 | | - |
161 | a = 0; | - |
162 | return 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 |
163 | } | - |
164 | if (qFromBigEndian<quint32>(ptr + 8) != 0xFFFF)TRUE | never evaluated | FALSE | evaluated 987 times by 11 testsEvaluated 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 |
165 | return false; never executed: return false; | 0 |
166 | a = qFromBigEndian<quint32>(ptr + 12); | - |
167 | return 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 |
168 | } | - |
169 | | - |
170 | void QHostAddressPrivate::setAddress(const quint8 *a_) | - |
171 | { | - |
172 | protocol = QAbstractSocket::IPv6Protocol; | - |
173 | isParsed = true; | - |
174 | memcpy(a6.c, a_, sizeof(a6)); | - |
175 | a = 0; | - |
176 | convertToIpv4(a, a6); | - |
177 | }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 |
178 | | - |
179 | void QHostAddressPrivate::setAddress(const Q_IPV6ADDR &a_) | - |
180 | { | - |
181 | setAddress(a_.c); | - |
182 | }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 |
183 | | - |
184 | static bool parseIp6(const QString &address, QIPAddressUtils::IPv6Address &addr, QString *scopeId) | - |
185 | { | - |
186 | QString tmp = address; | - |
187 | int scopeIdPos = tmp.lastIndexOf(QLatin1Char('%')); | - |
188 | if (scopeIdPos != -1) {TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QTcpServer
- tst_qhostaddress - unknown status
| FALSE | evaluated 313 times by 13 testsEvaluated 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 |
189 | *scopeId = tmp.mid(scopeIdPos + 1); | - |
190 | tmp.chop(tmp.size() - scopeIdPos); | - |
191 | } else {executed 6 times by 2 tests: end of block Executed by:- tst_QTcpServer
- tst_qhostaddress - unknown status
| 6 |
192 | scopeId->clear(); | - |
193 | }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 |
194 | return 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 |
195 | } | - |
196 | | - |
197 | Q_NEVER_INLINE bool QHostAddressPrivate::parse() | - |
198 | { | - |
199 | isParsed = true; | - |
200 | protocol = QAbstractSocket::UnknownNetworkLayerProtocol; | - |
201 | QString a = ipString.simplified(); | - |
202 | if (a.isEmpty())TRUE | evaluated 3499 times by 21 testsEvaluated 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 | evaluated 19113 times by 36 testsEvaluated 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 |
203 | return 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 |
204 | | - |
205 | | - |
206 | if (a.contains(QLatin1Char(':'))) {TRUE | evaluated 319 times by 13 testsEvaluated 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
| FALSE | evaluated 18794 times by 36 testsEvaluated 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 |
207 | quint8 maybeIp6[16]; | - |
208 | if (parseIp6(a, maybeIp6, &scopeId)) {TRUE | evaluated 272 times by 12 testsEvaluated 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
| FALSE | evaluated 47 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_Spdy
- tst_qhostaddress - unknown status
|
| 47-272 |
209 | setAddress(maybeIp6); | - |
210 | return 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 |
211 | } | - |
212 | }executed 47 times by 3 tests: end of block Executed by:- tst_QHostInfo
- tst_Spdy
- tst_qhostaddress - unknown status
| 47 |
213 | | - |
214 | quint32 maybeIp4 = 0; | - |
215 | if (QIPAddressUtils::parseIp4(maybeIp4, a.constBegin(), a.constEnd())) {TRUE | evaluated 3326 times by 28 testsEvaluated 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
- ...
| FALSE | evaluated 15515 times by 28 testsEvaluated 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 |
216 | setAddress(maybeIp4); | - |
217 | return 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 |
218 | } | - |
219 | | - |
220 | return 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 |
221 | } | - |
222 | | - |
223 | void QHostAddressPrivate::clear() | - |
224 | { | - |
225 | a = 0; | - |
226 | protocol = QAbstractSocket::UnknownNetworkLayerProtocol; | - |
227 | isParsed = true; | - |
228 | memset(&a6, 0, sizeof(a6)); | - |
229 | }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 |
230 | | - |
231 | | - |
232 | bool QNetmaskAddress::setAddress(const QString &address) | - |
233 | { | - |
234 | length = -1; | - |
235 | QHostAddress other; | - |
236 | return other.setAddress(address) && setAddress(other);executed 16 times by 1 test: return other.setAddress(address) && setAddress(other); Executed by:- tst_qhostaddress - unknown status
| 16 |
237 | } | - |
238 | | - |
239 | bool QNetmaskAddress::setAddress(const QHostAddress &address) | - |
240 | { | - |
241 | static const quint8 zeroes[16] = { 0 }; | - |
242 | union { | - |
243 | quint32 v4; | - |
244 | quint8 v6[16]; | - |
245 | } ip; | - |
246 | | - |
247 | int netmask = 0; | - |
248 | quint8 *ptr = ip.v6; | - |
249 | quint8 *end; | - |
250 | length = -1; | - |
251 | | - |
252 | QHostAddress::operator=(address); | - |
253 | | - |
254 | if (d->protocol == QAbstractSocket::IPv4Protocol) {TRUE | evaluated 634 times by 21 testsEvaluated 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
| FALSE | evaluated 625 times by 20 testsEvaluated 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 |
255 | ip.v4 = qToBigEndian(d->a); | - |
256 | end = ptr + 4; | - |
257 | } else if (d->protocol == QAbstractSocket::IPv6Protocol) {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
TRUE | evaluated 621 times by 20 testsEvaluated 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
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 4-634 |
258 | memcpy(ip.v6, d->a6.c, 16); | - |
259 | end = ptr + 16; | - |
260 | } else {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
| 621 |
261 | d->clear(); | - |
262 | return false;executed 4 times by 1 test: return false; Executed by:- tst_qnetworkaddressentry - unknown status
| 4 |
263 | } | - |
264 | | - |
265 | while (ptr < end) {TRUE | evaluated 8881 times by 21 testsEvaluated 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
| FALSE | evaluated 207 times by 21 testsEvaluated 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 |
266 | switch (*ptr) { | - |
267 | case 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 |
268 | netmask += 8; | - |
269 | ++ptr; | - |
270 | 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 |
271 | | - |
272 | default:executed 4 times by 2 tests: default: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 4 |
273 | d->clear(); | - |
274 | return false; executed 4 times by 2 tests: return false; Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 4 |
275 | | - |
276 | | - |
277 | case 254:executed 4 times by 2 tests: case 254: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 4 |
278 | ++netmask; | - |
279 | case 252:code before this statement executed 4 times by 2 tests: case 252: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
executed 1 time by 1 test: case 252: Executed by:- tst_qhostaddress - unknown status
| 1-4 |
280 | ++netmask; | - |
281 | case 248:code before this statement executed 5 times by 2 tests: case 248: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
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
| 5-205 |
282 | ++netmask; | - |
283 | case 240: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
executed 3 times by 2 tests: case 240: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 3-210 |
284 | ++netmask; | - |
285 | case 224: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
executed 2 times by 2 tests: case 224: Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 2-213 |
286 | ++netmask; | - |
287 | case 192: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
executed 1 time by 1 test: case 192: Executed by:- tst_qhostaddress - unknown status
| 1-215 |
288 | ++netmask; | - |
289 | case 128: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
executed 1 time by 1 test: case 128: Executed by:- tst_qhostaddress - unknown status
| 1-216 |
290 | ++netmask; | - |
291 | case 0: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
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
| 217-1044 |
292 | 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 |
293 | } | - |
294 | 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 |
295 | } | - |
296 | | - |
297 | | - |
298 | if (ptr < end && memcmp(ptr + 1, zeroes, end - ptr - 1) != 0) {TRUE | evaluated 1044 times by 21 testsEvaluated 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
| FALSE | evaluated 207 times by 21 testsEvaluated 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 | evaluated 2 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 1042 times by 21 testsEvaluated 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 |
299 | d->clear(); | - |
300 | return false;executed 2 times by 2 tests: return false; Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 2 |
301 | } | - |
302 | | - |
303 | length = netmask; | - |
304 | return 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 |
305 | } | - |
306 | | - |
307 | static void clearBits(quint8 *where, int start, int end) | - |
308 | { | - |
309 | Q_ASSERT(end == 32 || end == 128); | - |
310 | if (start == end)TRUE | evaluated 2 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
- tst_qtcpsocket - unknown status
|
| 2-33 |
311 | return;executed 2 times by 2 tests: return; Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 2 |
312 | | - |
313 | | - |
314 | quint8 bytemask = 256 - (1 << (8 - (start & 7))); | - |
315 | where[start / 8] &= bytemask; | - |
316 | | - |
317 | | - |
318 | memset(where + (start + 7) / 8, 0, end / 8 - (start + 7) / 8); | - |
319 | }executed 33 times by 3 tests: end of block Executed by:- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
- tst_qtcpsocket - unknown status
| 33 |
320 | | - |
321 | int QNetmaskAddress::prefixLength() const | - |
322 | { | - |
323 | return length;executed 120 times by 3 tests: return length; Executed by:- tst_QNetworkInterface
- tst_qhostaddress - unknown status
- tst_qnetworkaddressentry - unknown status
| 120 |
324 | } | - |
325 | | - |
326 | void QNetmaskAddress::setPrefixLength(QAbstractSocket::NetworkLayerProtocol proto, int newLength) | - |
327 | { | - |
328 | length = newLength; | - |
329 | if (length < 0 || length > (proto == QAbstractSocket::IPv4Protocol ? 32 :TRUE | evaluated 32 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 28 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 12 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 12-32 |
330 | proto == QAbstractSocket::IPv6Protocol ? 128 : -1)) {TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 12 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 12-16 |
331 | | - |
332 | d->protocol = QAbstractSocket::UnknownNetworkLayerProtocol; | - |
333 | length = -1; | - |
334 | return;executed 48 times by 1 test: return; Executed by:- tst_qnetworkaddressentry - unknown status
| 48 |
335 | } | - |
336 | | - |
337 | d->protocol = proto; | - |
338 | if (d->protocol == QAbstractSocket::IPv4Protocol) {TRUE | evaluated 5 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 7 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 5-7 |
339 | if (length == 0) {TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 1-4 |
340 | d->a = 0; | - |
341 | } else if (length == 32) {executed 1 time by 1 test: end of block Executed by:- tst_qnetworkaddressentry - unknown status
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_qnetworkaddressentry - unknown status
|
| 1-3 |
342 | d->a = quint32(0xffffffff); | - |
343 | } else {executed 1 time by 1 test: end of block Executed by:- tst_qnetworkaddressentry - unknown status
| 1 |
344 | d->a = quint32(0xffffffff) >> (32 - length) << (32 - length); | - |
345 | }executed 3 times by 1 test: end of block Executed by:- tst_qnetworkaddressentry - unknown status
| 3 |
346 | } else { | - |
347 | memset(d->a6.c, 0xFF, sizeof(d->a6)); | - |
348 | clearBits(d->a6.c, length, 128); | - |
349 | }executed 7 times by 1 test: end of block Executed by:- tst_qnetworkaddressentry - unknown status
| 7 |
350 | } | - |
351 | | - |
352 | | - |
353 | | - |
354 | | - |
355 | | - |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | | - |
365 | | - |
366 | | - |
367 | | - |
368 | | - |
369 | | - |
370 | | - |
371 | | - |
372 | | - |
373 | | - |
374 | | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
382 | | - |
383 | | - |
384 | | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | | - |
390 | | - |
391 | | - |
392 | QHostAddress::QHostAddress() | - |
393 | : d(new QHostAddressPrivate) | - |
394 | { | - |
395 | }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 |
396 | | - |
397 | | - |
398 | | - |
399 | | - |
400 | QHostAddress::QHostAddress(quint32 ip4Addr) | - |
401 | : d(new QHostAddressPrivate) | - |
402 | { | - |
403 | setAddress(ip4Addr); | - |
404 | }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 |
405 | | - |
406 | | - |
407 | | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | QHostAddress::QHostAddress(quint8 *ip6Addr) | - |
413 | : d(new QHostAddressPrivate) | - |
414 | { | - |
415 | setAddress(ip6Addr); | - |
416 | }executed 18 times by 1 test: end of block Executed by:- tst_qdnslookup - unknown status
| 18 |
417 | | - |
418 | | - |
419 | | - |
420 | | - |
421 | | - |
422 | | - |
423 | | - |
424 | | - |
425 | QHostAddress::QHostAddress(const quint8 *ip6Addr) | - |
426 | : d(new QHostAddressPrivate) | - |
427 | { | - |
428 | setAddress(ip6Addr); | - |
429 | } never executed: end of block | 0 |
430 | | - |
431 | | - |
432 | | - |
433 | | - |
434 | QHostAddress::QHostAddress(const Q_IPV6ADDR &ip6Addr) | - |
435 | : d(new QHostAddressPrivate) | - |
436 | { | - |
437 | setAddress(ip6Addr); | - |
438 | }executed 14 times by 3 tests: end of block Executed by:- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 14 |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | | - |
444 | | - |
445 | | - |
446 | QHostAddress::QHostAddress(const QString &address) | - |
447 | : d(new QHostAddressPrivate) | - |
448 | { | - |
449 | d->ipString = address; | - |
450 | d->isParsed = false; | - |
451 | }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 |
452 | | - |
453 | | - |
454 | | - |
455 | | - |
456 | | - |
457 | | - |
458 | | - |
459 | | - |
460 | | - |
461 | QHostAddress::QHostAddress(const struct sockaddr *sockaddr) | - |
462 | : d(new QHostAddressPrivate) | - |
463 | { | - |
464 | #ifndef Q_OS_WINRT | - |
465 | if (sockaddr->sa_family == AF_INET)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
466 | setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr)); never executed: setAddress(htonl(((const sockaddr_in *)sockaddr)->sin_addr.s_addr)); | 0 |
467 | else if (sockaddr->sa_family == AF_INET6)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
468 | setAddress(((const qt_sockaddr_in6 *)sockaddr)->sin6_addr.qt_s6_addr); never executed: setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8); | 0 |
469 | #else | - |
470 | Q_UNUSED(sockaddr) | - |
471 | #endif | - |
472 | } never executed: end of block | 0 |
473 | | - |
474 | | - |
475 | | - |
476 | | - |
477 | QHostAddress::QHostAddress(const QHostAddress &address) | - |
478 | : d(new QHostAddressPrivate(*address.d.data())) | - |
479 | { | - |
480 | }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 |
481 | | - |
482 | | - |
483 | | - |
484 | | - |
485 | QHostAddress::QHostAddress(SpecialAddress address) | - |
486 | : d(new QHostAddressPrivate) | - |
487 | { | - |
488 | Q_IPV6ADDR ip6; | - |
489 | memset(&ip6, 0, sizeof ip6); | - |
490 | quint32 ip4 = INADDR_ANY; | - |
491 | | - |
492 | switch (address) { | - |
493 | case Null:executed 11 times by 2 tests: case Null: Executed by:- tst_QTcpServer
- tst_qhostaddress - unknown status
| 11 |
494 | return;executed 11 times by 2 tests: return; Executed by:- tst_QTcpServer
- tst_qhostaddress - unknown status
| 11 |
495 | | - |
496 | case Broadcast:executed 174 times by 3 tests: case Broadcast: Executed by:- tst_QUdpSocket
- tst_platformsocketengine - unknown status
- tst_qhostaddress - unknown status
| 174 |
497 | ip4 = INADDR_BROADCAST; | - |
498 | break;executed 174 times by 3 tests: break; Executed by:- tst_QUdpSocket
- tst_platformsocketengine - unknown status
- tst_qhostaddress - unknown status
| 174 |
499 | case 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 |
500 | ip4 = INADDR_LOOPBACK; | - |
501 | 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 |
502 | case 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 |
503 | 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 |
504 | | - |
505 | case 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 |
506 | ip6[15] = 1; | - |
507 | | - |
508 | case AnyIPv6: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
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
| 49-52 |
509 | d->setAddress(ip6); | - |
510 | 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 |
511 | | - |
512 | case 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 |
513 | d->protocol = QAbstractSocket::AnyIPProtocol; | - |
514 | 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 |
515 | } | - |
516 | | - |
517 | | - |
518 | d->setAddress(ip4); | - |
519 | }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 |
520 | | - |
521 | | - |
522 | | - |
523 | | - |
524 | QHostAddress::~QHostAddress() | - |
525 | { | - |
526 | } | - |
527 | | - |
528 | | - |
529 | | - |
530 | | - |
531 | | - |
532 | QHostAddress &QHostAddress::operator=(const QHostAddress &address) | - |
533 | { | - |
534 | *d.data() = *address.d.data(); | - |
535 | return *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 |
536 | } | - |
537 | | - |
538 | | - |
539 | | - |
540 | | - |
541 | | - |
542 | | - |
543 | | - |
544 | QHostAddress &QHostAddress::operator=(const QString &address) | - |
545 | { | - |
546 | setAddress(address); | - |
547 | return *this;executed 2 times by 1 test: return *this; Executed by:- tst_qhostaddress - unknown status
| 2 |
548 | } | - |
549 | | - |
550 | | - |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
555 | | - |
556 | | - |
557 | | - |
558 | | - |
559 | | - |
560 | | - |
561 | | - |
562 | | - |
563 | | - |
564 | | - |
565 | | - |
566 | | - |
567 | | - |
568 | void QHostAddress::clear() | - |
569 | { | - |
570 | d->clear(); | - |
571 | }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 |
572 | | - |
573 | | - |
574 | | - |
575 | | - |
576 | void QHostAddress::setAddress(quint32 ip4Addr) | - |
577 | { | - |
578 | d->setAddress(ip4Addr); | - |
579 | }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 |
580 | | - |
581 | | - |
582 | | - |
583 | | - |
584 | | - |
585 | | - |
586 | | - |
587 | | - |
588 | | - |
589 | void QHostAddress::setAddress(quint8 *ip6Addr) | - |
590 | { | - |
591 | d->setAddress(ip6Addr); | - |
592 | }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 |
593 | | - |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | | - |
601 | | - |
602 | | - |
603 | void QHostAddress::setAddress(const quint8 *ip6Addr) | - |
604 | { | - |
605 | d->setAddress(ip6Addr); | - |
606 | } never executed: end of block | 0 |
607 | | - |
608 | | - |
609 | | - |
610 | | - |
611 | | - |
612 | | - |
613 | void QHostAddress::setAddress(const Q_IPV6ADDR &ip6Addr) | - |
614 | { | - |
615 | d->setAddress(ip6Addr); | - |
616 | }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 |
617 | | - |
618 | | - |
619 | | - |
620 | | - |
621 | | - |
622 | | - |
623 | | - |
624 | | - |
625 | | - |
626 | bool QHostAddress::setAddress(const QString &address) | - |
627 | { | - |
628 | d->ipString = address; | - |
629 | return 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 |
630 | } | - |
631 | | - |
632 | | - |
633 | | - |
634 | | - |
635 | | - |
636 | | - |
637 | | - |
638 | | - |
639 | | - |
640 | void QHostAddress::setAddress(const struct sockaddr *sockaddr) | - |
641 | { | - |
642 | #ifndef Q_OS_WINRT | - |
643 | clear(); | - |
644 | if (sockaddr->sa_family == AF_INET)TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | never evaluated |
| 0-1 |
645 | 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 |
646 | else if (sockaddr->sa_family == AF_INET6)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
647 | setAddress(((const qt_sockaddr_in6 *)sockaddr)->sin6_addr.qt_s6_addr); never executed: setAddress(((const sockaddr_in6 *)sockaddr)->sin6_addr.__in6_u.__u6_addr8); | 0 |
648 | #else | - |
649 | Q_UNUSED(sockaddr) | - |
650 | #endif | - |
651 | }executed 1 time by 1 test: end of block Executed by:- tst_qhostaddress - unknown status
| 1 |
652 | | - |
653 | | - |
654 | | - |
655 | | - |
656 | | - |
657 | | - |
658 | | - |
659 | | - |
660 | | - |
661 | | - |
662 | | - |
663 | | - |
664 | | - |
665 | | - |
666 | | - |
667 | quint32 QHostAddress::toIPv4Address() const | - |
668 | { | - |
669 | return toIPv4Address(Q_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 |
670 | } | - |
671 | | - |
672 | | - |
673 | | - |
674 | | - |
675 | | - |
676 | | - |
677 | | - |
678 | | - |
679 | | - |
680 | | - |
681 | | - |
682 | | - |
683 | | - |
684 | | - |
685 | | - |
686 | | - |
687 | quint32 QHostAddress::toIPv4Address(bool *ok) const | - |
688 | { | - |
689 | QT_ENSURE_PARSED(this);executed 7 times by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 7 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 10699 times by 37 testsEvaluated 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
- ...
|
| 7-10699 |
690 | quint32 dummy; | - |
691 | if (ok)TRUE | evaluated 9 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 10697 times by 37 testsEvaluated 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 |
692 | *ok = d->protocol == QAbstractSocket::IPv4Protocol || d->protocol == QAbstractSocket::AnyIPProtocolexecuted 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
TRUE | never evaluated | FALSE | evaluated 9 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 8 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 0-9 |
693 | || (d->protocol == QAbstractSocket::IPv6Protocol && convertToIpv4(dummy, d->a6));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
TRUE | evaluated 8 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | never evaluated |
TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 5 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 0-9 |
694 | return 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 |
695 | } | - |
696 | | - |
697 | | - |
698 | | - |
699 | | - |
700 | QAbstractSocket::NetworkLayerProtocol QHostAddress::protocol() const | - |
701 | { | - |
702 | QT_ENSURE_PARSED(this);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
TRUE | evaluated 286 times by 12 testsEvaluated 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
| FALSE | evaluated 40148 times by 38 testsEvaluated 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
- ...
|
| 286-40148 |
703 | return 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 |
704 | } | - |
705 | | - |
706 | | - |
707 | | - |
708 | | - |
709 | | - |
710 | | - |
711 | | - |
712 | | - |
713 | | - |
714 | | - |
715 | | - |
716 | | - |
717 | | - |
718 | | - |
719 | | - |
720 | Q_IPV6ADDR QHostAddress::toIPv6Address() const | - |
721 | { | - |
722 | QT_ENSURE_PARSED(this);executed 1 time by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 1611 times by 16 testsEvaluated 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
|
| 1-1611 |
723 | return 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 |
724 | } | - |
725 | | - |
726 | | - |
727 | | - |
728 | | - |
729 | | - |
730 | | - |
731 | | - |
732 | | - |
733 | | - |
734 | | - |
735 | | - |
736 | QString QHostAddress::toString() const | - |
737 | { | - |
738 | QT_ENSURE_PARSED(this);executed 3 times by 2 tests: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
- tst_qhttpsocketengine - unknown status
TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 2970 times by 25 testsEvaluated 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
|
| 3-2970 |
739 | QString s; | - |
740 | if (d->protocol == QAbstractSocket::IPv4ProtocolTRUE | evaluated 2486 times by 25 testsEvaluated 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
| FALSE | evaluated 487 times by 13 testsEvaluated 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 |
741 | || d->protocol == QAbstractSocket::AnyIPProtocol) {TRUE | evaluated 23 times by 2 testsEvaluated by:- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 464 times by 13 testsEvaluated 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 |
742 | quint32 i = toIPv4Address(); | - |
743 | QIPAddressUtils::toString(s, i); | - |
744 | } else if (d->protocol == QAbstractSocket::IPv6Protocol) {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
TRUE | evaluated 283 times by 10 testsEvaluated 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
| FALSE | evaluated 181 times by 6 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 181-2509 |
745 | QIPAddressUtils::toString(s, d->a6.c); | - |
746 | if (!d->scopeId.isEmpty())TRUE | evaluated 33 times by 5 testsEvaluated by:- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
| FALSE | evaluated 250 times by 10 testsEvaluated 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 |
747 | 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 |
748 | }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 |
749 | return 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 |
750 | } | - |
751 | | - |
752 | | - |
753 | | - |
754 | | - |
755 | | - |
756 | | - |
757 | | - |
758 | | - |
759 | | - |
760 | | - |
761 | | - |
762 | | - |
763 | | - |
764 | | - |
765 | | - |
766 | | - |
767 | | - |
768 | | - |
769 | | - |
770 | | - |
771 | | - |
772 | | - |
773 | | - |
774 | | - |
775 | | - |
776 | | - |
777 | | - |
778 | | - |
779 | | - |
780 | | - |
781 | | - |
782 | | - |
783 | | - |
784 | | - |
785 | | - |
786 | | - |
787 | | - |
788 | QString QHostAddress::scopeId() const | - |
789 | { | - |
790 | QT_ENSURE_PARSED(this);executed 2 times by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 1601 times by 16 testsEvaluated 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
|
| 2-1601 |
791 | return (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 |
792 | } | - |
793 | | - |
794 | | - |
795 | | - |
796 | | - |
797 | | - |
798 | | - |
799 | | - |
800 | | - |
801 | | - |
802 | | - |
803 | | - |
804 | | - |
805 | | - |
806 | void QHostAddress::setScopeId(const QString &id) | - |
807 | { | - |
808 | QT_ENSURE_PARSED(this); never executed: (this)->d->parse(); TRUE | never evaluated | FALSE | evaluated 443 times by 20 testsEvaluated 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
|
| 0-443 |
809 | if (d->protocol == QAbstractSocket::IPv6Protocol)TRUE | evaluated 443 times by 20 testsEvaluated 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
| FALSE | never evaluated |
| 0-443 |
810 | 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 |
811 | }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 |
812 | | - |
813 | | - |
814 | | - |
815 | | - |
816 | | - |
817 | bool QHostAddress::operator==(const QHostAddress &other) const | - |
818 | { | - |
819 | QT_ENSURE_PARSED(this); never executed: (this)->d->parse(); TRUE | never evaluated | FALSE | evaluated 6340 times by 26 testsEvaluated 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
- ...
|
| 0-6340 |
820 | QT_ENSURE_PARSED(&other);executed 53 times by 3 tests: (&other)->d->parse(); Executed by:- tst_platformsocketengine - unknown status
- tst_qhostaddress - unknown status
- tst_qsocks5socketengine - unknown status
TRUE | evaluated 53 times by 3 testsEvaluated by:- tst_platformsocketengine - unknown status
- tst_qhostaddress - unknown status
- tst_qsocks5socketengine - unknown status
| FALSE | evaluated 6287 times by 26 testsEvaluated 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
- ...
|
| 53-6287 |
821 | | - |
822 | if (d->protocol == QAbstractSocket::IPv4Protocol)TRUE | evaluated 5508 times by 26 testsEvaluated 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
- ...
| FALSE | evaluated 832 times by 20 testsEvaluated 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 |
823 | return 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 |
824 | if (d->protocol == QAbstractSocket::IPv6Protocol) {TRUE | evaluated 685 times by 18 testsEvaluated 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
| FALSE | evaluated 147 times by 8 testsEvaluated 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 |
825 | return other.d->protocol == QAbstractSocket::IPv6Protocolexecuted 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 |
826 | && 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 |
827 | } | - |
828 | return 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 |
829 | } | - |
830 | | - |
831 | | - |
832 | | - |
833 | | - |
834 | | - |
835 | bool QHostAddress::operator ==(SpecialAddress other) const | - |
836 | { | - |
837 | QT_ENSURE_PARSED(this);executed 15 times by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 15 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 2547 times by 16 testsEvaluated 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
|
| 15-2547 |
838 | quint32 ip4 = INADDR_ANY; | - |
839 | switch (other) { | - |
840 | case Null:executed 6 times by 1 test: case Null: Executed by:- tst_qhostaddress - unknown status
| 6 |
841 | return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol;executed 6 times by 1 test: return d->protocol == QAbstractSocket::UnknownNetworkLayerProtocol; Executed by:- tst_qhostaddress - unknown status
| 6 |
842 | | - |
843 | case Broadcast:executed 6 times by 1 test: case Broadcast: Executed by:- tst_qhostaddress - unknown status
| 6 |
844 | ip4 = INADDR_BROADCAST; | - |
845 | break;executed 6 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 6 |
846 | | - |
847 | case LocalHost:executed 9 times by 1 test: case LocalHost: Executed by:- tst_qhostaddress - unknown status
| 9 |
848 | ip4 = INADDR_LOOPBACK; | - |
849 | break;executed 9 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 9 |
850 | | - |
851 | case 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 |
852 | return 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 |
853 | | - |
854 | case 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 |
855 | 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 |
856 | | - |
857 | case LocalHostIPv6:executed 13 times by 3 tests: case LocalHostIPv6: Executed by:- tst_QNetworkInterface
- tst_QTcpServer
- tst_qhostaddress - unknown status
| 13 |
858 | case 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 |
859 | if (d->protocol == QAbstractSocket::IPv6Protocol) {TRUE | evaluated 1226 times by 16 testsEvaluated 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
| FALSE | evaluated 16 times by 4 testsEvaluated by:- tst_QNetworkInterface
- tst_QTcpServer
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 16-1226 |
860 | quint64 second = quint8(other == LocalHostIPv6); | - |
861 | return 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 |
862 | } | - |
863 | return false;executed 16 times by 4 tests: return false; Executed by:- tst_QNetworkInterface
- tst_QTcpServer
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 16 |
864 | } | - |
865 | | - |
866 | | - |
867 | return 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 |
868 | } | - |
869 | | - |
870 | | - |
871 | | - |
872 | | - |
873 | | - |
874 | | - |
875 | bool QHostAddress::isNull() const | - |
876 | { | - |
877 | QT_ENSURE_PARSED(this);executed 76 times by 2 tests: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
- tst_qsslsocket - unknown status
TRUE | evaluated 76 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qsslsocket - unknown status
| FALSE | evaluated 4241 times by 28 testsEvaluated 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
- ...
|
| 76-4241 |
878 | return 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 |
879 | } | - |
880 | | - |
881 | | - |
882 | | - |
883 | | - |
884 | | - |
885 | | - |
886 | | - |
887 | | - |
888 | | - |
889 | | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | | - |
896 | | - |
897 | | - |
898 | | - |
899 | | - |
900 | bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask) const | - |
901 | { | - |
902 | QT_ENSURE_PARSED(this);executed 12 times by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 12 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 62 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 12-62 |
903 | if (subnet.protocol() != d->protocol || netmask < 0)TRUE | evaluated 26 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 48 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 47 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-48 |
904 | return false;executed 27 times by 4 tests: return false; Executed by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 27 |
905 | | - |
906 | union { | - |
907 | quint32 ip; | - |
908 | quint8 data[4]; | - |
909 | } ip4, net4; | - |
910 | const quint8 *ip; | - |
911 | const quint8 *net; | - |
912 | if (d->protocol == QAbstractSocket::IPv4Protocol) {TRUE | evaluated 26 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 21-26 |
913 | if (netmask > 32)TRUE | never evaluated | FALSE | evaluated 26 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 0-26 |
914 | netmask = 32; never executed: netmask = 32; | 0 |
915 | ip4.ip = qToBigEndian(d->a); | - |
916 | net4.ip = qToBigEndian(subnet.d->a); | - |
917 | ip = ip4.data; | - |
918 | net = net4.data; | - |
919 | } else if (d->protocol == QAbstractSocket::IPv6Protocol) {executed 26 times by 4 tests: end of block Executed by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
TRUE | evaluated 20 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 1-26 |
920 | if (netmask > 128)TRUE | never evaluated | FALSE | evaluated 20 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 0-20 |
921 | netmask = 128; never executed: netmask = 128; | 0 |
922 | ip = d->a6.c; | - |
923 | net = subnet.d->a6.c; | - |
924 | } else {executed 20 times by 4 tests: end of block Executed by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 20 |
925 | return false;executed 1 time by 1 test: return false; Executed by:- tst_qhostaddress - unknown status
| 1 |
926 | } | - |
927 | | - |
928 | if (netmask >= 8 && memcmp(ip, net, netmask / 8) != 0)TRUE | evaluated 30 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 16 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
TRUE | evaluated 13 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 17 times by 4 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 13-30 |
929 | return false;executed 13 times by 4 tests: return false; Executed by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 13 |
930 | if ((netmask & 7) == 0)TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
| FALSE | evaluated 17 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 16-17 |
931 | return true;executed 16 times by 3 tests: return true; Executed by:- tst_QTcpServer
- tst_QUdpSocket
- tst_qhostaddress - unknown status
| 16 |
932 | | - |
933 | | - |
934 | quint8 bytemask = 256 - (1 << (8 - (netmask & 7))); | - |
935 | quint8 ipbyte = ip[netmask / 8]; | - |
936 | quint8 netbyte = net[netmask / 8]; | - |
937 | return (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 |
938 | } | - |
939 | | - |
940 | | - |
941 | | - |
942 | | - |
943 | | - |
944 | | - |
945 | | - |
946 | | - |
947 | | - |
948 | | - |
949 | bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet) const | - |
950 | { | - |
951 | return isInSubnet(subnet.first, subnet.second);executed 10 times by 1 test: return isInSubnet(subnet.first, subnet.second); Executed by:- tst_qtcpsocket - unknown status
| 10 |
952 | } | - |
953 | | - |
954 | | - |
955 | | - |
956 | | - |
957 | | - |
958 | | - |
959 | | - |
960 | | - |
961 | | - |
962 | | - |
963 | | - |
964 | | - |
965 | | - |
966 | | - |
967 | | - |
968 | | - |
969 | | - |
970 | | - |
971 | | - |
972 | | - |
973 | | - |
974 | | - |
975 | | - |
976 | | - |
977 | | - |
978 | | - |
979 | QPair<QHostAddress, int> QHostAddress::parseSubnet(const QString &subnet) | - |
980 | { | - |
981 | | - |
982 | | - |
983 | | - |
984 | | - |
985 | | - |
986 | | - |
987 | | - |
988 | | - |
989 | | - |
990 | | - |
991 | | - |
992 | | - |
993 | | - |
994 | | - |
995 | | - |
996 | const QPair<QHostAddress, int> invalid = qMakePair(QHostAddress(), -1); | - |
997 | if (subnet.isEmpty())TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 85 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-85 |
998 | return invalid;executed 1 time by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 1 |
999 | | - |
1000 | int slash = subnet.indexOf(QLatin1Char('/')); | - |
1001 | QString netStr = subnet; | - |
1002 | if (slash != -1)TRUE | evaluated 72 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 13-72 |
1003 | netStr.truncate(slash);executed 72 times by 2 tests: netStr.truncate(slash); Executed by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 72 |
1004 | | - |
1005 | int netmask = -1; | - |
1006 | bool isIpv6 = netStr.contains(QLatin1Char(':')); | - |
1007 | | - |
1008 | if (slash != -1) {TRUE | evaluated 72 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 13-72 |
1009 | | - |
1010 | if (!isIpv6 && subnet.indexOf(QLatin1Char('.'), slash + 1) != -1) {TRUE | evaluated 40 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 16 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 16-40 |
1011 | | - |
1012 | QNetmaskAddress parser; | - |
1013 | if (!parser.setAddress(subnet.mid(slash + 1)))TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 13 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 3-13 |
1014 | return invalid;executed 3 times by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 3 |
1015 | netmask = parser.prefixLength(); | - |
1016 | } else {executed 13 times by 1 test: end of block Executed by:- tst_qhostaddress - unknown status
| 13 |
1017 | bool ok; | - |
1018 | netmask = subnet.midRef(slash + 1).toUInt(&ok); | - |
1019 | if (!ok)TRUE | evaluated 4 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 52 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 4-52 |
1020 | return invalid; executed 4 times by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 4 |
1021 | }executed 52 times by 2 tests: end of block Executed by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 52 |
1022 | } | - |
1023 | | - |
1024 | if (isIpv6) {TRUE | evaluated 30 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 48 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 30-48 |
1025 | | - |
1026 | if (netmask > 128)TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 29 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-29 |
1027 | return invalid; executed 1 time by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 1 |
1028 | if (netmask < 0)TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-28 |
1029 | netmask = 128;executed 1 time by 1 test: netmask = 128; Executed by:- tst_qhostaddress - unknown status
| 1 |
1030 | | - |
1031 | QHostAddress net; | - |
1032 | if (!net.setAddress(netStr))TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-28 |
1033 | return invalid; executed 1 time by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 1 |
1034 | | - |
1035 | clearBits(net.d->a6.c, netmask, 128); | - |
1036 | return qMakePair(net, netmask);executed 28 times by 2 tests: return qMakePair(net, netmask); Executed by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 28 |
1037 | } | - |
1038 | | - |
1039 | if (netmask > 32)TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 47 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 1-47 |
1040 | return invalid; executed 1 time by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 1 |
1041 | | - |
1042 | | - |
1043 | auto parts = netStr.splitRef(QLatin1Char('.')); | - |
1044 | if (parts.isEmpty() || parts.count() > 4)TRUE | never evaluated | FALSE | evaluated 47 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 45 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 0-47 |
1045 | return invalid; executed 2 times by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 2 |
1046 | | - |
1047 | if (parts.constLast().isEmpty())TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 43 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 2-43 |
1048 | parts.removeLast();executed 2 times by 1 test: parts.removeLast(); Executed by:- tst_qhostaddress - unknown status
| 2 |
1049 | | - |
1050 | quint32 addr = 0; | - |
1051 | for (int i = 0; i < parts.count(); ++i) {TRUE | evaluated 154 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 42 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 42-154 |
1052 | bool ok; | - |
1053 | uint byteValue = parts.at(i).toUInt(&ok); | - |
1054 | if (!ok || byteValue > 255)TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 0-151 |
1055 | return invalid; executed 3 times by 1 test: return invalid; Executed by:- tst_qhostaddress - unknown status
| 3 |
1056 | | - |
1057 | addr <<= 8; | - |
1058 | addr += byteValue; | - |
1059 | }executed 151 times by 2 tests: end of block Executed by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 151 |
1060 | addr <<= 8 * (4 - parts.count()); | - |
1061 | if (netmask == -1) {TRUE | evaluated 7 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 35 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 7-35 |
1062 | netmask = 8 * parts.count(); | - |
1063 | } else if (netmask == 0) {executed 7 times by 1 test: end of block Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
|
| 3-32 |
1064 | | - |
1065 | | - |
1066 | | - |
1067 | addr = 0; | - |
1068 | } else if (netmask != 32) {executed 3 times by 1 test: end of block Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 30 times by 2 testsEvaluated by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 2-30 |
1069 | | - |
1070 | quint32 mask = quint32(0xffffffff) >> (32 - netmask) << (32 - netmask); | - |
1071 | addr &= mask; | - |
1072 | }executed 30 times by 2 tests: end of block Executed by:- tst_qhostaddress - unknown status
- tst_qtcpsocket - unknown status
| 30 |
1073 | | - |
1074 | return 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 |
1075 | } | - |
1076 | | - |
1077 | | - |
1078 | | - |
1079 | | - |
1080 | | - |
1081 | | - |
1082 | | - |
1083 | bool QHostAddress::isLoopback() const | - |
1084 | { | - |
1085 | QT_ENSURE_PARSED(this);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
TRUE | evaluated 838 times by 11 testsEvaluated 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
| FALSE | evaluated 10150 times by 30 testsEvaluated 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
- ...
|
| 838-10150 |
1086 | if ((d->a & 0xFF000000) == 0x7F000000)TRUE | evaluated 2396 times by 21 testsEvaluated 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
| FALSE | evaluated 8592 times by 27 testsEvaluated 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 |
1087 | return 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 |
1088 | if (d->protocol == QAbstractSocket::IPv6Protocol) {TRUE | evaluated 884 times by 11 testsEvaluated 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
| FALSE | evaluated 7708 times by 25 testsEvaluated 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 |
1089 | #ifdef __SSE2__ | - |
1090 | const __m128i loopback = _mm_setr_epi8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); | - |
1091 | __m128i ipv6 = _mm_loadu_si128((const __m128i *)d->a6.c); | - |
1092 | __m128i cmp = _mm_cmpeq_epi8(ipv6, loopback); | - |
1093 | return _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 |
1094 | #else | - |
1095 | if (d->a6_64.c[0] != 0 || qFromBigEndian(d->a6_64.c[1]) != 1) | - |
1096 | return false; | - |
1097 | #endif | - |
1098 | return true; dead code: return true; | - |
1099 | } | - |
1100 | return 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 |
1101 | } | - |
1102 | | - |
1103 | | - |
1104 | | - |
1105 | | - |
1106 | | - |
1107 | | - |
1108 | | - |
1109 | bool QHostAddress::isMulticast() const | - |
1110 | { | - |
1111 | QT_ENSURE_PARSED(this);executed 17 times by 1 test: (this)->d->parse(); Executed by:- tst_qhostaddress - unknown status
TRUE | evaluated 17 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 8 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 8-17 |
1112 | if ((d->a & 0xF0000000) == 0xE0000000)TRUE | evaluated 4 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 21 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 4-21 |
1113 | return true; executed 4 times by 1 test: return true; Executed by:- tst_qhostaddress - unknown status
| 4 |
1114 | if (d->protocol == QAbstractSocket::IPv6Protocol)TRUE | evaluated 11 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 10-11 |
1115 | return d->a6.c[0] == 0xff;executed 11 times by 1 test: return d->a6.c[0] == 0xff; Executed by:- tst_qhostaddress - unknown status
| 11 |
1116 | return false;executed 10 times by 1 test: return false; Executed by:- tst_qhostaddress - unknown status
| 10 |
1117 | } | - |
1118 | | - |
1119 | #ifndef QT_NO_DEBUG_STREAM | - |
1120 | QDebug operator<<(QDebug d, const QHostAddress &address) | - |
1121 | { | - |
1122 | QDebugStateSaver saver(d); | - |
1123 | d.resetFormat().nospace(); | - |
1124 | if (address == QHostAddress::Any)TRUE | never evaluated | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QTcpServer
- tst_QUdpSocket
|
| 0-4 |
1125 | d << "QHostAddress(QHostAddress::Any)"; never executed: d << "QHostAddress(QHostAddress::Any)"; | 0 |
1126 | else | - |
1127 | d << "QHostAddress(" << address.toString() << ')';executed 4 times by 2 tests: d << "QHostAddress(" << address.toString() << ')'; Executed by:- tst_QTcpServer
- tst_QUdpSocket
| 4 |
1128 | return d;executed 4 times by 2 tests: return d; Executed by:- tst_QTcpServer
- tst_QUdpSocket
| 4 |
1129 | } | - |
1130 | #endif | - |
1131 | | - |
1132 | uint qHash(const QHostAddress &key, uint seed) | - |
1133 | { | - |
1134 | | - |
1135 | QT_ENSURE_PARSED(&key); never executed: (&key)->d->parse(); TRUE | never evaluated | FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 0-10 |
1136 | return 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 |
1137 | } | - |
1138 | | - |
1139 | #ifndef QT_NO_DATASTREAM | - |
1140 | | - |
1141 | | - |
1142 | | - |
1143 | | - |
1144 | | - |
1145 | | - |
1146 | | - |
1147 | | - |
1148 | QDataStream &operator<<(QDataStream &out, const QHostAddress &address) | - |
1149 | { | - |
1150 | qint8 prot; | - |
1151 | prot = qint8(address.protocol()); | - |
1152 | out << prot; | - |
1153 | switch (address.protocol()) { | - |
1154 | case QAbstractSocket::UnknownNetworkLayerProtocol:executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol: Executed by:- tst_qhostaddress - unknown status
| 3 |
1155 | case QAbstractSocket::AnyIPProtocol:executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol: Executed by:- tst_qhostaddress - unknown status
| 1 |
1156 | break;executed 4 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 4 |
1157 | case QAbstractSocket::IPv4Protocol:executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol: Executed by:- tst_qhostaddress - unknown status
| 5 |
1158 | out << address.toIPv4Address(); | - |
1159 | break;executed 5 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 5 |
1160 | case QAbstractSocket::IPv6Protocol:executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol: Executed by:- tst_qhostaddress - unknown status
| 4 |
1161 | { | - |
1162 | Q_IPV6ADDR ipv6 = address.toIPv6Address(); | - |
1163 | for (int i = 0; i < 16; ++i)TRUE | evaluated 64 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 4-64 |
1164 | out << ipv6[i];executed 64 times by 1 test: out << ipv6[i]; Executed by:- tst_qhostaddress - unknown status
| 64 |
1165 | out << address.scopeId(); | - |
1166 | } | - |
1167 | break;executed 4 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 4 |
1168 | } | - |
1169 | return out;executed 13 times by 1 test: return out; Executed by:- tst_qhostaddress - unknown status
| 13 |
1170 | } | - |
1171 | | - |
1172 | | - |
1173 | | - |
1174 | | - |
1175 | | - |
1176 | | - |
1177 | | - |
1178 | | - |
1179 | QDataStream &operator>>(QDataStream &in, QHostAddress &address) | - |
1180 | { | - |
1181 | qint8 prot; | - |
1182 | in >> prot; | - |
1183 | switch (QAbstractSocket::NetworkLayerProtocol(prot)) { | - |
1184 | case QAbstractSocket::UnknownNetworkLayerProtocol:executed 3 times by 1 test: case QAbstractSocket::UnknownNetworkLayerProtocol: Executed by:- tst_qhostaddress - unknown status
| 3 |
1185 | address.clear(); | - |
1186 | break;executed 3 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 3 |
1187 | case QAbstractSocket::IPv4Protocol:executed 5 times by 1 test: case QAbstractSocket::IPv4Protocol: Executed by:- tst_qhostaddress - unknown status
| 5 |
1188 | { | - |
1189 | quint32 ipv4; | - |
1190 | in >> ipv4; | - |
1191 | address.setAddress(ipv4); | - |
1192 | } | - |
1193 | break;executed 5 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 5 |
1194 | case QAbstractSocket::IPv6Protocol:executed 4 times by 1 test: case QAbstractSocket::IPv6Protocol: Executed by:- tst_qhostaddress - unknown status
| 4 |
1195 | { | - |
1196 | Q_IPV6ADDR ipv6; | - |
1197 | for (int i = 0; i < 16; ++i)TRUE | evaluated 64 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qhostaddress - unknown status
|
| 4-64 |
1198 | in >> ipv6[i];executed 64 times by 1 test: in >> ipv6[i]; Executed by:- tst_qhostaddress - unknown status
| 64 |
1199 | address.setAddress(ipv6); | - |
1200 | | - |
1201 | QString scope; | - |
1202 | in >> scope; | - |
1203 | address.setScopeId(scope); | - |
1204 | } | - |
1205 | break;executed 4 times by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 4 |
1206 | case QAbstractSocket::AnyIPProtocol:executed 1 time by 1 test: case QAbstractSocket::AnyIPProtocol: Executed by:- tst_qhostaddress - unknown status
| 1 |
1207 | address = QHostAddress::Any; | - |
1208 | break;executed 1 time by 1 test: break; Executed by:- tst_qhostaddress - unknown status
| 1 |
1209 | default: never executed: default: | 0 |
1210 | address.clear(); | - |
1211 | in.setStatus(QDataStream::ReadCorruptData); | - |
1212 | } never executed: end of block | 0 |
1213 | return in;executed 13 times by 1 test: return in; Executed by:- tst_qhostaddress - unknown status
| 13 |
1214 | } | - |
1215 | | - |
1216 | #endif //QT_NO_DATASTREAM | - |
1217 | | - |
1218 | QT_END_NAMESPACE | - |
| | |