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 | #include "qipaddress_p.h" | - |
41 | #include "private/qlocale_tools_p.h" | - |
42 | #include "private/qtools_p.h" | - |
43 | #include "qvarlengtharray.h" | - |
44 | | - |
45 | QT_BEGIN_NAMESPACE | - |
46 | namespace QIPAddressUtils { | - |
47 | | - |
48 | static QString number(quint8 val, int base = 10) | - |
49 | { | - |
50 | QChar zero(0x30); | - |
51 | return val ? qulltoa(val, base, zero) : zero;executed 15104 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
- ...
| 15104 |
52 | } | - |
53 | | - |
54 | typedef QVarLengthArray<char, 64> Buffer; | - |
55 | static const QChar *checkedToAscii(Buffer &buffer, const QChar *begin, const QChar *end) | - |
56 | { | - |
57 | const ushort *const ubegin = reinterpret_cast<const ushort *>(begin); | - |
58 | const ushort *const uend = reinterpret_cast<const ushort *>(end); | - |
59 | const ushort *src = ubegin; | - |
60 | | - |
61 | buffer.resize(uend - ubegin + 1); | - |
62 | char *dst = buffer.data(); | - |
63 | | - |
64 | while (src != uend) {TRUE | evaluated 802927 times by 50 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 41034 times by 50 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
- ...
|
| 41034-802927 |
65 | if (*src >= 0x7f)TRUE | evaluated 364 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 802563 times by 50 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
- ...
|
| 364-802563 |
66 | return reinterpret_cast<const QChar *>(src);executed 364 times by 3 tests: return reinterpret_cast<const QChar *>(src); Executed by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| 364 |
67 | *dst++ = *src++; | - |
68 | }executed 802563 times by 50 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
- ...
| 802563 |
69 | *dst = '\0'; | - |
70 | return 0;executed 41034 times by 50 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
- ...
| 41034 |
71 | } | - |
72 | | - |
73 | static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptLeadingZero); | - |
74 | bool parseIp4(IPv4Address &address, const QChar *begin, const QChar *end) | - |
75 | { | - |
76 | Q_ASSERT(begin != end); | - |
77 | Buffer buffer; | - |
78 | if (checkedToAscii(buffer, begin, end))TRUE | evaluated 356 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 40373 times by 50 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
- ...
|
| 356-40373 |
79 | return false;executed 356 times by 3 tests: return false; Executed by:- tst_QHostInfo
- tst_QUrl
- tst_QUrlInternal
| 356 |
80 | | - |
81 | const char *ptr = buffer.data(); | - |
82 | return parseIp4Internal(address, ptr, true);executed 40373 times by 50 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
- ...
| 40373 |
83 | } | - |
84 | | - |
85 | static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptLeadingZero) | - |
86 | { | - |
87 | address = 0; | - |
88 | int dotCount = 0; | - |
89 | while (dotCount < 4) {TRUE | evaluated 54388 times by 50 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-54388 |
90 | if (!acceptLeadingZero && *ptr == '0' &&TRUE | evaluated 224 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| FALSE | evaluated 54164 times by 50 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-54164 |
91 | 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 |
92 | return false;executed 4 times by 1 test: return false; | 4 |
93 | | - |
94 | const char *endptr; | - |
95 | bool ok; | - |
96 | quint64 ll = qstrtoull(ptr, &endptr, 0, &ok); | - |
97 | quint32 x = ll; | - |
98 | if (!ok || endptr == ptr || ll != x)TRUE | evaluated 35733 times by 42 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 18651 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 18651 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 18650 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-35733 |
99 | return false;executed 35734 times by 42 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
- ...
| 35734 |
100 | | - |
101 | if (*endptr == '.' || dotCount == 3) {TRUE | evaluated 13970 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 4680 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 4630 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-13970 |
102 | if (x & ~0xff)TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
| FALSE | evaluated 18593 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-18593 |
103 | return false;executed 7 times by 2 tests: return false; Executed by:- tst_QHostAddress
- tst_QIpAddress
| 7 |
104 | address <<= 8; | - |
105 | } else if (dotCount == 2) {executed 18593 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-18593 |
106 | if (x & ~0xffff)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
|
| 1-5 |
107 | return false;executed 1 time by 1 test: return false; | 1 |
108 | address <<= 16; | - |
109 | } 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 |
110 | if (x & ~0xffffff)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QHostAddress
- tst_QIpAddress
|
| 1-4 |
111 | return false;executed 1 time by 1 test: return false; | 1 |
112 | address <<= 24; | - |
113 | }executed 4 times by 2 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
| 4 |
114 | address |= x; | - |
115 | | - |
116 | if (dotCount == 3 && *endptr != '\0')TRUE | evaluated 4634 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 14007 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 4625 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-14007 |
117 | return false;executed 9 times by 3 tests: return false; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
| 9 |
118 | else if (dotCount == 3 || *endptr == '\0')TRUE | evaluated 4625 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 14007 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 13996 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-14007 |
119 | return true;executed 4636 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
- ...
| 4636 |
120 | if (*endptr != '.')TRUE | evaluated 37 times by 4 testsEvaluated by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| FALSE | evaluated 13959 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-13959 |
121 | return false;executed 37 times by 4 tests: return false; Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| 37 |
122 | | - |
123 | ++dotCount; | - |
124 | ptr = endptr + 1; | - |
125 | }executed 13959 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
- ...
| 13959 |
126 | return false; never executed: return false; | 0 |
127 | } | - |
128 | | - |
129 | void toString(QString &appendTo, IPv4Address address) | - |
130 | { | - |
131 | | - |
132 | | - |
133 | appendTo += number(address >> 24) | - |
134 | % QLatin1Char('.') | - |
135 | % number(address >> 16) | - |
136 | % QLatin1Char('.') | - |
137 | % number(address >> 8) | - |
138 | % QLatin1Char('.') | - |
139 | % number(address); | - |
140 | }executed 3776 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
- ...
| 3776 |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | const QChar *parseIp6(IPv6Address &address, const QChar *begin, const QChar *end) | - |
153 | { | - |
154 | Q_ASSERT(begin != end); | - |
155 | Buffer buffer; | - |
156 | const QChar *ret = checkedToAscii(buffer, begin, end); | - |
157 | 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 |
158 | return ret;executed 8 times by 2 tests: return ret; | 8 |
159 | | - |
160 | const char *ptr = buffer.data(); | - |
161 | | - |
162 | | - |
163 | int colonCount = 0; | - |
164 | int dotCount = 0; | - |
165 | 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 |
166 | 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 |
167 | ++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 |
168 | 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 |
169 | ++dotCount;executed 325 times by 6 tests: ++dotCount; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUrl
- tst_Spdy
| 325 |
170 | ++ptr; | - |
171 | }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 |
172 | | - |
173 | 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 |
174 | return end;executed 68 times by 5 tests: return end; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 68 |
175 | | - |
176 | memset(address, 0, sizeof address); | - |
177 | 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 |
178 | return 0;executed 37 times by 4 tests: return 0; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpSocket
- tst_QUrl
| 37 |
179 | | - |
180 | | - |
181 | int zeroWordsToFill; | - |
182 | ptr = buffer.data(); | - |
183 | | - |
184 | | - |
185 | | - |
186 | 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 |
187 | (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 |
188 | zeroWordsToFill = 9 - colonCount; | - |
189 | } 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 |
190 | return end;executed 64 times by 4 tests: return end; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
- tst_QUrlInternal
| 64 |
191 | } else { | - |
192 | zeroWordsToFill = 8 - colonCount; | - |
193 | }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 |
194 | 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 |
195 | --zeroWordsToFill;executed 69 times by 4 tests: --zeroWordsToFill; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 69 |
196 | | - |
197 | int pos = 0; | - |
198 | 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 |
199 | 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 |
200 | | - |
201 | 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 |
202 | 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 |
203 | 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 |
204 | 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 |
205 | return begin + (ptr - buffer.data());executed 8 times by 2 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QIpAddress
| 8 |
206 | ++ptr; | - |
207 | }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 |
208 | pos += zeroWordsToFill * 2; | - |
209 | zeroWordsToFill = 0; | - |
210 | ++ptr; | - |
211 | 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 |
212 | } | - |
213 | | - |
214 | const char *endptr; | - |
215 | bool ok; | - |
216 | quint64 ll = qstrtoull(ptr, &endptr, 16, &ok); | - |
217 | quint16 x = ll; | - |
218 | | - |
219 | 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 |
220 | 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 |
221 | | - |
222 | 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 |
223 | | - |
224 | | - |
225 | 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 |
226 | return begin + (ptr - buffer.data());executed 7 times by 2 tests: return begin + (ptr - buffer.data()); Executed by:- tst_QHostAddress
- tst_QIpAddress
| 7 |
227 | | - |
228 | IPv4Address ip4; | - |
229 | 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 |
230 | return begin + (ptr - buffer.data());executed 4 times by 1 test: return begin + (ptr - buffer.data()); | 4 |
231 | | - |
232 | address[12] = ip4 >> 24; | - |
233 | address[13] = ip4 >> 16; | - |
234 | address[14] = ip4 >> 8; | - |
235 | address[15] = ip4; | - |
236 | return 0;executed 52 times by 4 tests: return 0; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 52 |
237 | } | - |
238 | | - |
239 | address[pos++] = x >> 8; | - |
240 | address[pos++] = x & 0xff; | - |
241 | | - |
242 | 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 |
243 | 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 |
244 | 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 |
245 | 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 |
246 | ptr = endptr + 1; | - |
247 | }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 |
248 | 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
| 367 |
249 | } | - |
250 | | - |
251 | static inline QChar toHex(uchar c) | - |
252 | { | - |
253 | 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 |
254 | } | - |
255 | | - |
256 | void toString(QString &appendTo, IPv6Address address) | - |
257 | { | - |
258 | | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | | - |
265 | static const int Ip6AddressMaxLen = sizeof "1111:2222:3333:4444:5555:6666:7777:8888"; | - |
266 | static const int Ip6WithIp4AddressMaxLen = sizeof "::ffff:255.255.255.255"; | - |
267 | | - |
268 | | - |
269 | const quint64 zeroes[] = { 0, 0 }; | - |
270 | bool embeddedIp4 = false; | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
275 | if (memcmp(address, zeroes, 10) == 0) {TRUE | evaluated 166 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
|
| 166-252 |
276 | 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 144 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-144 |
277 | embeddedIp4 = true; | - |
278 | } 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 144 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 144 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-144 |
279 | 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 138 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 138 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 138 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-138 |
280 | embeddedIp4 = true; | - |
281 | } else if (address[15] == 0) {executed 6 times by 3 tests: end of block Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QUrl
TRUE | evaluated 51 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 |
282 | appendTo.append(QLatin1String("::")); | - |
283 | return;executed 51 times by 7 tests: return; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QNetworkAddressEntry
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 51 |
284 | } | - |
285 | }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 |
286 | }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 |
287 | | - |
288 | | - |
289 | appendTo.reserve(appendTo.size() + | - |
290 | (embeddedIp4 ? Ip6WithIp4AddressMaxLen : Ip6AddressMaxLen)); | - |
291 | | - |
292 | | - |
293 | int zeroRunLength = 0; | - |
294 | int zeroRunOffset = 0; | - |
295 | 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 |
296 | 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 |
297 | | - |
298 | int j; | - |
299 | 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 |
300 | 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 |
301 | 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 |
302 | }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 |
303 | | - |
304 | 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 |
305 | zeroRunLength = j - i; | - |
306 | zeroRunOffset = i; | - |
307 | i = j; | - |
308 | }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 |
309 | }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 |
310 | }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 |
311 | | - |
312 | const QChar colon = ushort(':'); | - |
313 | 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 |
314 | 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 |
315 | 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 |
316 | 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 |
317 | | - |
318 | 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 |
319 | 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 |
320 | appendTo.append(colon); | - |
321 | i += zeroRunLength - 2; | - |
322 | 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 |
323 | } | - |
324 | | - |
325 | 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 |
326 | IPv4Address ip4 = address[12] << 24 | | - |
327 | address[13] << 16 | | - |
328 | address[14] << 8 | | - |
329 | address[15]; | - |
330 | toString(appendTo, ip4); | - |
331 | return;executed 28 times by 4 tests: return; Executed by:- tst_QHostAddress
- tst_QIpAddress
- tst_QTcpServer
- tst_QUrl
| 28 |
332 | } | - |
333 | | - |
334 | 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 |
335 | 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 |
336 | appendTo.append(toHex(address[i] >> 4)); | - |
337 | appendTo.append(toHex(address[i] & 0xf)); | - |
338 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
339 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
340 | } 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 |
341 | appendTo.append(toHex(address[i] & 0xf)); | - |
342 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
343 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
344 | }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 |
345 | } 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 |
346 | appendTo.append(toHex(address[i + 1] >> 4)); | - |
347 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
348 | } else {executed 195 times by 4 tests: end of block Executed by:- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QUrl
| 195 |
349 | appendTo.append(toHex(address[i + 1] & 0xf)); | - |
350 | }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 |
351 | | - |
352 | 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 |
353 | 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 |
354 | }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 |
355 | }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 |
356 | | - |
357 | } | - |
358 | QT_END_NAMESPACE | - |
| | |