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 | #include "qipaddress_p.h" | - |
35 | #include "private/qlocale_tools_p.h" | - |
36 | #include "private/qtools_p.h" | - |
37 | #include "qvarlengtharray.h" | - |
38 | | - |
39 | QT_BEGIN_NAMESPACE | - |
40 | namespace QIPAddressUtils { | - |
41 | | - |
42 | static QString number(quint8 val, int base = 10) | - |
43 | { | - |
44 | QChar zero(0x30); | - |
45 | return val ? qulltoa(val, base, zero) : zero;executed 15052 times by 31 tests: return val ? qulltoa(val, base, zero) : zero; Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- ...
TRUE | evaluated 11906 times by 31 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- ...
| FALSE | evaluated 3146 times by 27 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSslSocket
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- ...
|
| 3146-15052 |
46 | } | - |
47 | | - |
48 | typedef QVarLengthArray<char, 64> Buffer; | - |
49 | static const QChar *checkedToAscii(Buffer &buffer, const QChar *begin, const QChar *end) | - |
50 | { | - |
51 | const ushort *const ubegin = reinterpret_cast<const ushort *>(begin); | - |
52 | const ushort *const uend = reinterpret_cast<const ushort *>(end); | - |
53 | const ushort *src = ubegin; | - |
54 | | - |
55 | buffer.resize(uend - ubegin + 1); | - |
56 | char *dst = buffer.data(); | - |
57 | | - |
58 | while (src != uend) {TRUE | evaluated 821263 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
| FALSE | evaluated 40987 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
|
| 40987-821263 |
59 | if (*src >= 0x7f)TRUE | evaluated 390 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 820873 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
|
| 390-820873 |
60 | return reinterpret_cast<const QChar *>(src);executed 390 times by 3 tests: return reinterpret_cast<const QChar *>(src); Executed by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| 390 |
61 | *dst++ = *src++; | - |
62 | }executed 820873 times by 51 tests: end of block Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
| 820873 |
63 | *dst = '\0'; | - |
64 | return 0;executed 40987 times by 51 tests: return 0; Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
| 40987 |
65 | } | - |
66 | | - |
67 | static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptLeadingZero); | - |
68 | bool parseIp4(IPv4Address &address, const QChar *begin, const QChar *end) | - |
69 | { | - |
70 | Q_ASSERT(begin != end); | - |
71 | Buffer buffer; | - |
72 | if (checkedToAscii(buffer, begin, end))TRUE | evaluated 382 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 40326 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
|
| 382-40326 |
73 | return false;executed 382 times by 3 tests: return false; Executed by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| 382 |
74 | | - |
75 | const char *ptr = buffer.data(); | - |
76 | return parseIp4Internal(address, ptr, true);executed 40326 times by 51 tests: return parseIp4Internal(address, ptr, true); Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
| 40326 |
77 | } | - |
78 | | - |
79 | static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptLeadingZero) | - |
80 | { | - |
81 | address = 0; | - |
82 | int dotCount = 0; | - |
83 | while (dotCount < 4) {TRUE | evaluated 54251 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
| FALSE | never evaluated |
| 0-54251 |
84 | if (!acceptLeadingZero && *ptr == '0' &&TRUE | evaluated 224 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 54027 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkAddressEntry
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- ...
|
TRUE | evaluated 60 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 164 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
|
| 60-54027 |
85 | ptr[1] != '.' && ptr[1] != '\0')TRUE | evaluated 10 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 50 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
|
TRUE | evaluated 4 times by 1 test | FALSE | evaluated 6 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
|
| 4-50 |
86 | return false;executed 4 times by 1 test: return false; | 4 |
87 | | - |
88 | const char *endptr; | - |
89 | bool ok; | - |
90 | quint64 ll = qstrtoull(ptr, &endptr, 0, &ok); | - |
91 | quint32 x = ll; | - |
92 | if (!ok || endptr == ptr || ll != x)TRUE | evaluated 35716 times by 43 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QFileSelector
- tst_QFtp
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- ...
| FALSE | evaluated 18531 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
TRUE | never evaluated | FALSE | evaluated 18531 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 18530 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
| 0-35716 |
93 | return false;executed 35717 times by 43 tests: return false; Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QFileSelector
- tst_QFtp
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- ...
| 35717 |
94 | | - |
95 | if (*endptr == '.' || dotCount == 3) {TRUE | evaluated 13880 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| FALSE | evaluated 4650 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
TRUE | evaluated 4600 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| FALSE | evaluated 50 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
|
| 50-13880 |
96 | if (x & ~0xff)TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 18473 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
| 7-18473 |
97 | return false;executed 7 times by 2 tests: return false; Executed by:- tst_QHostAddress
- tst_QIpAddress
| 7 |
98 | address <<= 8; | - |
99 | } else if (dotCount == 2) {executed 18473 times by 30 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 44 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
|
| 6-18473 |
100 | if (x & ~0xffff)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
|
| 1-5 |
101 | return false;executed 1 time by 1 test: return false; | 1 |
102 | address <<= 16; | - |
103 | } else if (dotCount == 1) {executed 5 times by 2 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 39 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
|
| 5-39 |
104 | if (x & ~0xffffff)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
|
| 1-4 |
105 | return false;executed 1 time by 1 test: return false; | 1 |
106 | address <<= 24; | - |
107 | }executed 4 times by 2 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
| 4 |
108 | address |= x; | - |
109 | | - |
110 | if (dotCount == 3 && *endptr != '\0')TRUE | evaluated 4604 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| FALSE | evaluated 13917 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
TRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 4595 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
| 9-13917 |
111 | return false;executed 9 times by 3 tests: return false; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| 9 |
112 | else if (dotCount == 3 || *endptr == '\0')TRUE | evaluated 4595 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| FALSE | evaluated 13917 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 13906 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
| 11-13917 |
113 | return true;executed 4606 times by 30 tests: return true; Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| 4606 |
114 | if (*endptr != '.')TRUE | evaluated 37 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 13869 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
| 37-13869 |
115 | return false;executed 37 times by 4 tests: return false; Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| 37 |
116 | | - |
117 | ++dotCount; | - |
118 | ptr = endptr + 1; | - |
119 | }executed 13869 times by 30 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- ...
| 13869 |
120 | return false; never executed: return false; | 0 |
121 | } | - |
122 | | - |
123 | void toString(QString &appendTo, IPv4Address address) | - |
124 | { | - |
125 | | - |
126 | | - |
127 | appendTo += number(address >> 24) | - |
128 | % QLatin1Char('.') | - |
129 | % number(address >> 16) | - |
130 | % QLatin1Char('.') | - |
131 | % number(address >> 8) | - |
132 | % QLatin1Char('.') | - |
133 | % number(address); | - |
134 | }executed 3763 times by 31 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- ...
| 3763 |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | const QChar *parseIp6(IPv6Address &address, const QChar *begin, const QChar *end) | - |
147 | { | - |
148 | Q_ASSERT(begin != end); | - |
149 | Buffer buffer; | - |
150 | const QChar *ret = checkedToAscii(buffer, begin, end); | - |
151 | if (ret)TRUE | evaluated 8 times by 2 tests | FALSE | evaluated 661 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
| 8-661 |
152 | return ret;executed 8 times by 2 tests: return ret; | 8 |
153 | | - |
154 | const char *ptr = buffer.data(); | - |
155 | | - |
156 | | - |
157 | int colonCount = 0; | - |
158 | int dotCount = 0; | - |
159 | while (*ptr) {TRUE | evaluated 8925 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 661 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
| 661-8925 |
160 | if (*ptr == ':')TRUE | evaluated 2143 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 6782 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
| 2143-6782 |
161 | ++colonCount;executed 2143 times by 16 tests: ++colonCount; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| 2143 |
162 | if (*ptr == '.')TRUE | evaluated 325 times by 6 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 8600 times by 16 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
| 325-8600 |
163 | ++dotCount;executed 325 times by 6 tests: ++dotCount; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUrl
- tst_Spdy
| 325 |
164 | ++ptr; | - |
165 | }executed 8925 times by 16 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| 8925 |
166 | | - |
167 | if (dotCount != 0 && dotCount != 3)TRUE | evaluated 144 times by 6 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 517 times by 15 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
|
TRUE | evaluated 68 times by 5 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 76 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
|
| 68-517 |
168 | return end;executed 68 times by 5 tests: return end; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 68 |
169 | | - |
170 | memset(address, 0, sizeof address); | - |
171 | if (colonCount == 2 && end - begin == 2) TRUE | evaluated 230 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 363 times by 12 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUrl
- tst_QUrlInternal
|
TRUE | evaluated 37 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpSocket
- tst_QUrl
| FALSE | evaluated 193 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 37-363 |
172 | return 0;executed 37 times by 4 tests: return 0; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpSocket
- tst_QUrl
| 37 |
173 | | - |
174 | | - |
175 | int zeroWordsToFill; | - |
176 | ptr = buffer.data(); | - |
177 | | - |
178 | | - |
179 | | - |
180 | if ((ptr[0] == ':' && ptr[1] == ':') ||TRUE | evaluated 185 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 371 times by 13 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
|
TRUE | evaluated 173 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
|
| 12-371 |
181 | (ptr[end - begin - 2] == ':' && ptr[end - begin - 1] == ':')) {TRUE | evaluated 186 times by 10 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 197 times by 10 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
|
TRUE | evaluated 84 times by 7 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 102 times by 7 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QTcpSocket
- tst_QUrl
|
| 84-197 |
182 | zeroWordsToFill = 9 - colonCount; | - |
183 | } else if (colonCount < 2 || colonCount > 7) {executed 257 times by 11 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
TRUE | evaluated 61 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 238 times by 12 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 235 times by 12 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 3-257 |
184 | return end;executed 64 times by 4 tests: return end; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
- tst_QUrlInternal
| 64 |
185 | } else { | - |
186 | zeroWordsToFill = 8 - colonCount; | - |
187 | }executed 235 times by 12 tests: end of block Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 235 |
188 | if (dotCount)TRUE | evaluated 69 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 423 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 69-423 |
189 | --zeroWordsToFill;executed 69 times by 4 tests: --zeroWordsToFill; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 69 |
190 | | - |
191 | int pos = 0; | - |
192 | while (pos < 15) {TRUE | evaluated 2118 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 73 times by 7 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 73-2118 |
193 | if (*ptr == ':') {TRUE | evaluated 394 times by 13 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1724 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 394-1724 |
194 | | - |
195 | if (zeroWordsToFill < 1)TRUE | evaluated 26 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 368 times by 13 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 26-368 |
196 | return begin + (ptr - buffer.data());executed 26 times by 4 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| 26 |
197 | if (pos == 0 || pos == colonCount * 2) {TRUE | evaluated 181 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 187 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | never evaluated | FALSE | evaluated 187 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 0-187 |
198 | if (ptr[0] == '\0' || ptr[1] != ':')TRUE | never evaluated | FALSE | evaluated 181 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 173 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 0-181 |
199 | return begin + (ptr - buffer.data());executed 8 times by 2 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QIpAddress
| 8 |
200 | ++ptr; | - |
201 | }executed 173 times by 10 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 173 |
202 | pos += zeroWordsToFill * 2; | - |
203 | zeroWordsToFill = 0; | - |
204 | ++ptr; | - |
205 | continue;executed 360 times by 13 tests: continue; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 360 |
206 | } | - |
207 | | - |
208 | const char *endptr; | - |
209 | bool ok; | - |
210 | quint64 ll = qstrtoull(ptr, &endptr, 16, &ok); | - |
211 | quint16 x = ll; | - |
212 | | - |
213 | if (!ok || ll != x)TRUE | evaluated 14 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 1710 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 1705 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 5-1710 |
214 | return begin + (ptr - buffer.data());executed 19 times by 3 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| 19 |
215 | | - |
216 | if (*endptr == '.') {TRUE | evaluated 63 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 1642 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 63-1642 |
217 | | - |
218 | | - |
219 | if (pos != 12)TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 56 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
|
| 7-56 |
220 | return begin + (ptr - buffer.data());executed 7 times by 2 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QIpAddress
| 7 |
221 | | - |
222 | IPv4Address ip4; | - |
223 | if (!parseIp4Internal(ip4, ptr, false))TRUE | evaluated 4 times by 1 test | FALSE | evaluated 52 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
|
| 4-52 |
224 | return begin + (ptr - buffer.data());executed 4 times by 1 test: return begin + (ptr - buffer.data()); | 4 |
225 | | - |
226 | address[12] = ip4 >> 24; | - |
227 | address[13] = ip4 >> 16; | - |
228 | address[14] = ip4 >> 8; | - |
229 | address[15] = ip4; | - |
230 | return 0;executed 52 times by 4 tests: return 0; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 52 |
231 | } | - |
232 | | - |
233 | address[pos++] = x >> 8; | - |
234 | address[pos++] = x & 0xff; | - |
235 | | - |
236 | if (*endptr == '\0')TRUE | evaluated 294 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1348 times by 12 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 294-1348 |
237 | break;executed 294 times by 14 tests: break; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 294 |
238 | if (*endptr != ':')TRUE | evaluated 9 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 1339 times by 12 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 9-1339 |
239 | return begin + (endptr - buffer.data());executed 9 times by 4 tests: return begin + (endptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
| 9 |
240 | ptr = endptr + 1; | - |
241 | }executed 1339 times by 12 tests: end of block Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 1339 |
242 | return pos == 16 ? 0 : end;executed 367 times by 14 tests: return pos == 16 ? 0 : end; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
TRUE | evaluated 360 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
|
| 7-367 |
243 | } | - |
244 | | - |
245 | static inline QChar toHex(uchar c) | - |
246 | { | - |
247 | return QtMiscUtils::toHexLower(c);executed 3406 times by 14 tests: return QtMiscUtils::toHexLower(c); Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 3406 |
248 | } | - |
249 | | - |
250 | void toString(QString &appendTo, IPv6Address address) | - |
251 | { | - |
252 | | - |
253 | | - |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | static const int Ip6AddressMaxLen = sizeof "1111:2222:3333:4444:5555:6666:7777:8888"; | - |
260 | static const int Ip6WithIp4AddressMaxLen = sizeof "::ffff:255.255.255.255"; | - |
261 | | - |
262 | | - |
263 | const quint64 zeroes[] = { 0, 0 }; | - |
264 | bool embeddedIp4 = false; | - |
265 | | - |
266 | | - |
267 | | - |
268 | | - |
269 | if (memcmp(address, zeroes, 10) == 0) {TRUE | evaluated 177 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 252 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
|
| 177-252 |
270 | if (address[10] == 0xff && address[11] == 0xff) {TRUE | evaluated 22 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 155 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 22 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | never evaluated |
| 0-155 |
271 | embeddedIp4 = true; | - |
272 | } else if (address[10] == 0 && address[11] == 0) {executed 22 times by 4 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
TRUE | evaluated 155 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | never evaluated |
TRUE | evaluated 155 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | never evaluated |
| 0-155 |
273 | if (address[12] != 0 || address[13] != 0 || address[14] != 0) {TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 149 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | never evaluated | FALSE | evaluated 149 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | never evaluated | FALSE | evaluated 149 times by 11 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 0-149 |
274 | embeddedIp4 = true; | - |
275 | } else if (address[15] == 0) {executed 6 times by 3 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
TRUE | evaluated 62 times by 7 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 87 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 6-87 |
276 | appendTo.append(QLatin1String("::")); | - |
277 | return;executed 62 times by 7 tests: return; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 62 |
278 | } | - |
279 | }executed 93 times by 10 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 93 |
280 | }executed 115 times by 10 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 115 |
281 | | - |
282 | | - |
283 | appendTo.reserve(appendTo.size() + | - |
284 | (embeddedIp4 ? Ip6WithIp4AddressMaxLen : Ip6AddressMaxLen)); | - |
285 | | - |
286 | | - |
287 | int zeroRunLength = 0; | - |
288 | int zeroRunOffset = 0; | - |
289 | for (int i = 0; i < 16; i += 2) {TRUE | evaluated 1369 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 367 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 367-1369 |
290 | if (address[i] == 0 && address[i + 1] == 0) {TRUE | evaluated 704 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 665 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 376 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 328 times by 7 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QTcpServer
- tst_QUrl
|
| 328-704 |
291 | | - |
292 | int j; | - |
293 | for (j = i; j < 16; j += 2) {TRUE | evaluated 1968 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 94 times by 5 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QUrl
|
| 94-1968 |
294 | if (address[j] != 0 || address[j+1] != 0)TRUE | evaluated 70 times by 8 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1898 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 212 times by 12 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1686 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 70-1898 |
295 | break;executed 282 times by 13 tests: break; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 282 |
296 | }executed 1686 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 1686 |
297 | | - |
298 | if (j - i > zeroRunLength) {TRUE | evaluated 348 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
|
| 28-348 |
299 | zeroRunLength = j - i; | - |
300 | zeroRunOffset = i; | - |
301 | i = j; | - |
302 | }executed 348 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 348 |
303 | }executed 376 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 376 |
304 | }executed 1369 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 1369 |
305 | | - |
306 | const QChar colon = ushort(':'); | - |
307 | if (zeroRunLength < 4)TRUE | evaluated 60 times by 6 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QUrl
| FALSE | evaluated 307 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 60-307 |
308 | zeroRunOffset = -1;executed 60 times by 6 tests: zeroRunOffset = -1; Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkInterface
- tst_QUrl
| 60 |
309 | else if (zeroRunOffset == 0)TRUE | evaluated 117 times by 10 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 190 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
|
| 117-190 |
310 | appendTo.append(colon);executed 117 times by 10 tests: appendTo.append(colon); Executed by:- tst_PlatformSocketEngine
- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 117 |
311 | | - |
312 | for (int i = 0; i < 16; i += 2) {TRUE | evaluated 1616 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 339 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 339-1616 |
313 | if (i == zeroRunOffset) {TRUE | evaluated 307 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1309 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 307-1309 |
314 | appendTo.append(colon); | - |
315 | i += zeroRunLength - 2; | - |
316 | continue;executed 307 times by 14 tests: continue; Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 307 |
317 | } | - |
318 | | - |
319 | if (i == 12 && embeddedIp4) {TRUE | evaluated 160 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 1149 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
TRUE | evaluated 28 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 132 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
|
| 28-1149 |
320 | IPv4Address ip4 = address[12] << 24 | | - |
321 | address[13] << 16 | | - |
322 | address[14] << 8 | | - |
323 | address[15]; | - |
324 | toString(appendTo, ip4); | - |
325 | return;executed 28 times by 4 tests: return; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 28 |
326 | } | - |
327 | | - |
328 | if (address[i]) {TRUE | evaluated 685 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 596 times by 13 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 596-685 |
329 | if (address[i] >> 4) {TRUE | evaluated 560 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 125 times by 10 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
|
| 125-560 |
330 | appendTo.append(toHex(address[i] >> 4)); | - |
331 | appendTo.append(toHex(address[i] & 0xf)); | - |
332 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
333 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
334 | } else if (address[i] & 0xf) {executed 560 times by 11 tests: end of block Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
TRUE | evaluated 125 times by 10 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | never evaluated |
| 0-560 |
335 | appendTo.append(toHex(address[i] & 0xf)); | - |
336 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
337 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
338 | }executed 125 times by 10 tests: end of block Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| 125 |
339 | } else if (address[i + 1] >> 4) {executed 685 times by 11 tests: end of block Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
TRUE | evaluated 195 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 401 times by 13 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 195-685 |
340 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
341 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
342 | } else {executed 195 times by 4 tests: end of block Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| 195 |
343 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
344 | }executed 401 times by 13 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 401 |
345 | | - |
346 | if (i != 14)TRUE | evaluated 1015 times by 11 testsEvaluated by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 266 times by 14 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
| 266-1015 |
347 | appendTo.append(colon);executed 1015 times by 11 tests: appendTo.append(colon); Executed by:- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QUrl
| 1015 |
348 | }executed 1281 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 1281 |
349 | }executed 339 times by 14 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QDnsLookup
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 339 |
350 | | - |
351 | } | - |
352 | QT_END_NAMESPACE | - |
| | |