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 "qhostinfo.h" | - |
41 | #include "qhostinfo_p.h" | - |
42 | | - |
43 | #include "QtCore/qscopedpointer.h" | - |
44 | #include <qabstracteventdispatcher.h> | - |
45 | #include <qcoreapplication.h> | - |
46 | #include <qmetaobject.h> | - |
47 | #include <qstringlist.h> | - |
48 | #include <qthread.h> | - |
49 | #include <qurl.h> | - |
50 | #include <private/qnetworksession_p.h> | - |
51 | | - |
52 | #include <algorithm> | - |
53 | | - |
54 | #ifdef Q_OS_UNIX | - |
55 | # include <unistd.h> | - |
56 | #endif | - |
57 | | - |
58 | QT_BEGIN_NAMESPACE | - |
59 | | - |
60 | | - |
61 | | - |
62 | Q_GLOBAL_STATIC(QHostInfoLookupManager, theHostInfoLookupManager)executed 24 times by 24 tests: end of block Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
executed 24 times by 24 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
executed 16542 times by 25 tests: return &holder.value; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
TRUE | evaluated 24 times by 24 testsEvaluated by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
| FALSE | never evaluated |
| 0-16542 |
63 | | - |
64 | namespace { | - |
65 | struct ToBeLookedUpEquals { | - |
66 | typedef bool result_type; | - |
67 | explicit ToBeLookedUpEquals(const QString &toBeLookedUp) Q_DECL_NOTHROW : m_toBeLookedUp(toBeLookedUp) {}executed 22925 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 22925 |
68 | result_type operator()(QHostInfoRunnable* lookup) const Q_DECL_NOTHROW | - |
69 | { | - |
70 | return m_toBeLookedUp == lookup->toBeLookedUp;executed 45527 times by 4 tests: return m_toBeLookedUp == lookup->toBeLookedUp; Executed by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 45527 |
71 | } | - |
72 | private: | - |
73 | QString m_toBeLookedUp; | - |
74 | }; | - |
75 | | - |
76 | | - |
77 | template<class InputIt, class UnaryPredicate> | - |
78 | bool any_of(InputIt first, InputIt last, UnaryPredicate p) | - |
79 | { | - |
80 | return std::find_if(first, last, p) != last;executed 22720 times by 18 tests: return std::find_if(first, last, p) != last; Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 22720 |
81 | } | - |
82 | | - |
83 | template <typename InputIt, typename OutputIt1, typename OutputIt2, typename UnaryPredicate> | - |
84 | std::pair<OutputIt1, OutputIt2> separate_if(InputIt first, InputIt last, OutputIt1 dest1, OutputIt2 dest2, UnaryPredicate p) | - |
85 | { | - |
86 | while (first != last) {TRUE | evaluated 22720 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 8148 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 8148-22720 |
87 | if (p(*first)) {TRUE | evaluated 22262 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 458 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 458-22262 |
88 | *dest1 = *first; | - |
89 | ++dest1; | - |
90 | } else {executed 22262 times by 4 tests: end of block Executed by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 22262 |
91 | *dest2 = *first; | - |
92 | ++dest2; | - |
93 | }executed 458 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 458 |
94 | ++first; | - |
95 | }executed 22720 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 22720 |
96 | return std::make_pair(dest1, dest2);executed 8148 times by 19 tests: return std::make_pair(dest1, dest2); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 8148 |
97 | } | - |
98 | } | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
154 | static QBasicAtomicInt theIdCounter = Q_BASIC_ATOMIC_INITIALIZER(1); | - |
155 | | - |
156 | | - |
157 | | - |
158 | | - |
159 | | - |
160 | | - |
161 | | - |
162 | | - |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | | - |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | int QHostInfo::lookupHost(const QString &name, QObject *receiver, | - |
186 | const char *member) | - |
187 | { | - |
188 | #if defined QHOSTINFO_DEBUG | - |
189 | qDebug("QHostInfo::lookupHost(\"%s\", %p, %s)", | - |
190 | name.toLatin1().constData(), receiver, member ? member + 1 : 0); | - |
191 | #endif | - |
192 | | - |
193 | if (!QAbstractEventDispatcher::instance(QThread::currentThread())) {TRUE | never evaluated | FALSE | evaluated 3640 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-3640 |
194 | qWarning("QHostInfo::lookupHost() called with no event dispatcher"); | - |
195 | return -1; never executed: return -1; | 0 |
196 | } | - |
197 | | - |
198 | qRegisterMetaType<QHostInfo>(); | - |
199 | | - |
200 | int id = theIdCounter.fetchAndAddRelaxed(1); | - |
201 | | - |
202 | if (name.isEmpty()) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3638 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 2-3638 |
203 | if (!receiver)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
204 | return -1; never executed: return -1; | 0 |
205 | | - |
206 | QHostInfo hostInfo(id); | - |
207 | hostInfo.setError(QHostInfo::HostNotFound); | - |
208 | hostInfo.setErrorString(QCoreApplication::translate("QHostInfo", "No host name given")); | - |
209 | QScopedPointer<QHostInfoResult> result(new QHostInfoResult); | - |
210 | QObject::connect(result.data(), SIGNAL(resultsReady(QHostInfo)), | - |
211 | receiver, member, Qt::QueuedConnection); | - |
212 | result.data()->emitResultsReady(hostInfo); | - |
213 | return id;executed 2 times by 1 test: return id; | 2 |
214 | } | - |
215 | | - |
216 | QHostInfoLookupManager *manager = theHostInfoLookupManager(); | - |
217 | | - |
218 | if (manager) {TRUE | evaluated 3638 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-3638 |
219 | | - |
220 | if (manager->cache.isEnabled()) {TRUE | evaluated 2335 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1303 times by 1 test |
| 1303-2335 |
221 | | - |
222 | bool valid = false; | - |
223 | QHostInfo info = manager->cache.get(name, &valid); | - |
224 | if (valid) {TRUE | never evaluated | FALSE | evaluated 2335 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-2335 |
225 | if (!receiver)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
226 | return -1; never executed: return -1; | 0 |
227 | | - |
228 | info.setLookupId(id); | - |
229 | QHostInfoResult result; | - |
230 | QObject::connect(&result, SIGNAL(resultsReady(QHostInfo)), receiver, member, Qt::QueuedConnection); | - |
231 | result.emitResultsReady(info); | - |
232 | return id; never executed: return id; | 0 |
233 | } | - |
234 | }executed 2335 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2335 |
235 | | - |
236 | | - |
237 | QHostInfoRunnable* runnable = new QHostInfoRunnable(name, id); | - |
238 | if (receiver)TRUE | evaluated 3638 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-3638 |
239 | QObject::connect(&runnable->resultEmitter, SIGNAL(resultsReady(QHostInfo)), receiver, member, Qt::QueuedConnection);executed 3638 times by 18 tests: QObject::connect(&runnable->resultEmitter, qFlagLocation("2""resultsReady(QHostInfo)" "\0" __FILE__ ":" "239"), receiver, member, Qt::QueuedConnection); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3638 |
240 | manager->scheduleLookup(runnable); | - |
241 | }executed 3638 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3638 |
242 | return id;executed 3638 times by 18 tests: return id; Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3638 |
243 | } | - |
244 | | - |
245 | | - |
246 | | - |
247 | | - |
248 | | - |
249 | | - |
250 | void QHostInfo::abortHostLookup(int id) | - |
251 | { | - |
252 | theHostInfoLookupManager()->abortLookup(id); | - |
253 | }executed 2961 times by 9 tests: end of block Executed by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2961 |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | | - |
265 | | - |
266 | | - |
267 | | - |
268 | QHostInfo QHostInfo::fromName(const QString &name) | - |
269 | { | - |
270 | #if defined QHOSTINFO_DEBUG | - |
271 | qDebug("QHostInfo::fromName(\"%s\")",name.toLatin1().constData()); | - |
272 | #endif | - |
273 | | - |
274 | QHostInfo hostInfo = QHostInfoAgent::fromName(name); | - |
275 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
276 | manager->cache.put(name, hostInfo); | - |
277 | return hostInfo;executed 2115 times by 21 tests: return hostInfo; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2115 |
278 | } | - |
279 | | - |
280 | #ifndef QT_NO_BEARERMANAGEMENT | - |
281 | QHostInfo QHostInfoPrivate::fromName(const QString &name, QSharedPointer<QNetworkSession> session) | - |
282 | { | - |
283 | #if defined QHOSTINFO_DEBUG | - |
284 | qDebug("QHostInfoPrivate::fromName(\"%s\") with session %p",name.toLatin1().constData(), session.data()); | - |
285 | #endif | - |
286 | | - |
287 | QHostInfo hostInfo = QHostInfoAgent::fromName(name, session); | - |
288 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
289 | manager->cache.put(name, hostInfo); | - |
290 | return hostInfo; never executed: return hostInfo; | 0 |
291 | } | - |
292 | #endif | - |
293 | | - |
294 | #ifndef QT_NO_BEARERMANAGEMENT | - |
295 | QHostInfo QHostInfoAgent::fromName(const QString &hostName, QSharedPointer<QNetworkSession>) | - |
296 | { | - |
297 | return QHostInfoAgent::fromName(hostName); never executed: return QHostInfoAgent::fromName(hostName); | 0 |
298 | } | - |
299 | #endif | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | | - |
309 | | - |
310 | | - |
311 | | - |
312 | | - |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | | - |
320 | QHostInfo::QHostInfo(int id) | - |
321 | : d(new QHostInfoPrivate) | - |
322 | { | - |
323 | d->lookupId = id; | - |
324 | }executed 15038 times by 31 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- ...
| 15038 |
325 | | - |
326 | | - |
327 | | - |
328 | | - |
329 | QHostInfo::QHostInfo(const QHostInfo &other) | - |
330 | : d(new QHostInfoPrivate(*other.d.data())) | - |
331 | { | - |
332 | }executed 5398 times by 22 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 5398 |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | QHostInfo &QHostInfo::operator=(const QHostInfo &other) | - |
339 | { | - |
340 | *d.data() = *other.d.data(); | - |
341 | return *this;executed 3888 times by 25 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
| 3888 |
342 | } | - |
343 | | - |
344 | | - |
345 | | - |
346 | | - |
347 | QHostInfo::~QHostInfo() | - |
348 | { | - |
349 | } | - |
350 | | - |
351 | | - |
352 | | - |
353 | | - |
354 | | - |
355 | | - |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | QList<QHostAddress> QHostInfo::addresses() const | - |
362 | { | - |
363 | return d->addrs;executed 7607 times by 30 tests: return d->addrs; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 7607 |
364 | } | - |
365 | | - |
366 | | - |
367 | | - |
368 | | - |
369 | | - |
370 | | - |
371 | void QHostInfo::setAddresses(const QList<QHostAddress> &addresses) | - |
372 | { | - |
373 | d->addrs = addresses; | - |
374 | }executed 4189 times by 29 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_platformsocketengine - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 4189 |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | QString QHostInfo::hostName() const | - |
382 | { | - |
383 | return d->hostName;executed 39 times by 1 test: return d->hostName; | 39 |
384 | } | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | | - |
390 | | - |
391 | void QHostInfo::setHostName(const QString &hostName) | - |
392 | { | - |
393 | d->hostName = hostName; | - |
394 | }executed 2444 times by 25 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2444 |
395 | | - |
396 | | - |
397 | | - |
398 | | - |
399 | | - |
400 | | - |
401 | | - |
402 | QHostInfo::HostInfoError QHostInfo::error() const | - |
403 | { | - |
404 | return d->err;executed 4199 times by 26 tests: return d->err; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- ...
| 4199 |
405 | } | - |
406 | | - |
407 | | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | void QHostInfo::setError(HostInfoError error) | - |
413 | { | - |
414 | d->err = error; | - |
415 | }executed 182 times by 13 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 182 |
416 | | - |
417 | | - |
418 | | - |
419 | | - |
420 | | - |
421 | | - |
422 | int QHostInfo::lookupId() const | - |
423 | { | - |
424 | return d->lookupId;executed 63 times by 7 tests: return d->lookupId; Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 63 |
425 | } | - |
426 | | - |
427 | | - |
428 | | - |
429 | | - |
430 | | - |
431 | | - |
432 | void QHostInfo::setLookupId(int id) | - |
433 | { | - |
434 | d->lookupId = id; | - |
435 | }executed 686 times by 12 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 686 |
436 | | - |
437 | | - |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | QString QHostInfo::errorString() const | - |
444 | { | - |
445 | return d->errorStr;executed 2 times by 1 test: return d->errorStr; | 2 |
446 | } | - |
447 | | - |
448 | | - |
449 | | - |
450 | | - |
451 | | - |
452 | | - |
453 | | - |
454 | void QHostInfo::setErrorString(const QString &str) | - |
455 | { | - |
456 | d->errorStr = str; | - |
457 | }executed 178 times by 13 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 178 |
458 | | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | | - |
464 | | - |
465 | | - |
466 | | - |
467 | | - |
468 | | - |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | QString QHostInfo::localHostName() | - |
475 | { | - |
476 | return QSysInfo::machineHostName();executed 3 times by 2 tests: return QSysInfo::machineHostName(); Executed by:- tst_QHostInfo
- tst_lancelot - unknown status
| 3 |
477 | } | - |
478 | | - |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
483 | | - |
484 | | - |
485 | | - |
486 | | - |
487 | | - |
488 | | - |
489 | | - |
490 | QHostInfoRunnable::QHostInfoRunnable(const QString &hn, int i) : toBeLookedUp(hn), id(i) | - |
491 | { | - |
492 | setAutoDelete(true); | - |
493 | }executed 3638 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3638 |
494 | | - |
495 | | - |
496 | void QHostInfoRunnable::run() | - |
497 | { | - |
498 | QHostInfoLookupManager *manager = theHostInfoLookupManager(); | - |
499 | | - |
500 | if (manager->wasAborted(id)) {TRUE | evaluated 107 times by 9 testsEvaluated by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 329 times by 14 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUdpSocket
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 107-329 |
501 | manager->lookupFinished(this); | - |
502 | return;executed 107 times by 9 tests: return; Executed by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 107 |
503 | } | - |
504 | | - |
505 | QHostInfo hostInfo; | - |
506 | | - |
507 | | - |
508 | | - |
509 | | - |
510 | if (manager->cache.isEnabled()) {TRUE | evaluated 151 times by 14 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUdpSocket
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 178 times by 1 test |
| 151-178 |
511 | | - |
512 | bool valid = false; | - |
513 | hostInfo = manager->cache.get(toBeLookedUp, &valid); | - |
514 | if (!valid) {TRUE | evaluated 151 times by 14 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUdpSocket
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-151 |
515 | | - |
516 | hostInfo = QHostInfoAgent::fromName(toBeLookedUp); | - |
517 | manager->cache.put(toBeLookedUp, hostInfo); | - |
518 | }executed 151 times by 14 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 151 |
519 | } else {executed 151 times by 14 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 151 |
520 | | - |
521 | hostInfo = QHostInfoAgent::fromName(toBeLookedUp); | - |
522 | }executed 178 times by 1 test: end of block | 178 |
523 | | - |
524 | | - |
525 | if (manager->wasAborted(id)) {TRUE | evaluated 124 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qudpsocket - unknown status
| FALSE | evaluated 205 times by 12 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 124-205 |
526 | manager->lookupFinished(this); | - |
527 | return;executed 124 times by 4 tests: return; Executed by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qudpsocket - unknown status
| 124 |
528 | } | - |
529 | | - |
530 | | - |
531 | hostInfo.setLookupId(id); | - |
532 | resultEmitter.emitResultsReady(hostInfo); | - |
533 | | - |
534 | | - |
535 | { | - |
536 | QMutexLocker locker(&manager->mutex); | - |
537 | const auto partitionBegin = std::stable_partition(manager->postponedLookups.rbegin(), manager->postponedLookups.rend(), | - |
538 | ToBeLookedUpEquals(toBeLookedUp)).base(); | - |
539 | const auto partitionEnd = manager->postponedLookups.end(); | - |
540 | for (auto it = partitionBegin; it != partitionEnd; ++it) {TRUE | evaluated 475 times by 2 testsEvaluated by:- tst_QHostInfo
- tst_qtcpsocket - unknown status
| FALSE | evaluated 205 times by 12 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 205-475 |
541 | QHostInfoRunnable* postponed = *it; | - |
542 | | - |
543 | hostInfo.setLookupId(postponed->id); | - |
544 | postponed->resultEmitter.emitResultsReady(hostInfo); | - |
545 | delete postponed; | - |
546 | }executed 475 times by 2 tests: end of block Executed by:- tst_QHostInfo
- tst_qtcpsocket - unknown status
| 475 |
547 | manager->postponedLookups.erase(partitionBegin, partitionEnd); | - |
548 | } | - |
549 | | - |
550 | manager->lookupFinished(this); | - |
551 | | - |
552 | | - |
553 | }executed 205 times by 12 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 205 |
554 | | - |
555 | QHostInfoLookupManager::QHostInfoLookupManager() : mutex(QMutex::Recursive), wasDeleted(false) | - |
556 | { | - |
557 | moveToThread(QCoreApplicationPrivate::mainThread()); | - |
558 | connect(QCoreApplication::instance(), SIGNAL(destroyed()), SLOT(waitForThreadPoolDone()), Qt::DirectConnection); | - |
559 | threadPool.setMaxThreadCount(20); | - |
560 | }executed 24 times by 24 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 24 |
561 | | - |
562 | QHostInfoLookupManager::~QHostInfoLookupManager() | - |
563 | { | - |
564 | wasDeleted = true; | - |
565 | | - |
566 | | - |
567 | clear(); | - |
568 | }executed 24 times by 24 tests: end of block Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
| 24 |
569 | | - |
570 | void QHostInfoLookupManager::clear() | - |
571 | { | - |
572 | { | - |
573 | QMutexLocker locker(&mutex); | - |
574 | qDeleteAll(postponedLookups); | - |
575 | qDeleteAll(scheduledLookups); | - |
576 | qDeleteAll(finishedLookups); | - |
577 | postponedLookups.clear(); | - |
578 | scheduledLookups.clear(); | - |
579 | finishedLookups.clear(); | - |
580 | } | - |
581 | | - |
582 | threadPool.waitForDone(); | - |
583 | cache.clear(); | - |
584 | }executed 1369 times by 25 tests: end of block Executed by:- tst_QHostInfo
- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
| 1369 |
585 | | - |
586 | void QHostInfoLookupManager::work() | - |
587 | { | - |
588 | if (wasDeleted)TRUE | never evaluated | FALSE | evaluated 4074 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 0-4074 |
589 | return; never executed: return; | 0 |
590 | | - |
591 | | - |
592 | | - |
593 | | - |
594 | | - |
595 | QMutexLocker locker(&mutex); | - |
596 | | - |
597 | if (!finishedLookups.isEmpty()) {TRUE | evaluated 436 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| FALSE | evaluated 3638 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 436-3638 |
598 | | - |
599 | for (int i = 0; i < finishedLookups.length(); i++) {TRUE | evaluated 436 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| FALSE | evaluated 436 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 436 |
600 | abortedLookups.removeAll(finishedLookups.at(i)->id); | - |
601 | }executed 436 times by 19 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 436 |
602 | | - |
603 | finishedLookups.clear(); | - |
604 | }executed 436 times by 19 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 436 |
605 | | - |
606 | auto isAlreadyRunning = [this](QHostInfoRunnable *lookup) { | - |
607 | return any_of(currentLookups.cbegin(), currentLookups.cend(), ToBeLookedUpEquals(lookup->toBeLookedUp));executed 22720 times by 18 tests: return any_of(currentLookups.cbegin(), currentLookups.cend(), ToBeLookedUpEquals(lookup->toBeLookedUp)); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 22720 |
608 | }; | - |
609 | | - |
610 | | - |
611 | postponedLookups.erase(separate_if(postponedLookups.begin(), | - |
612 | postponedLookups.end(), | - |
613 | postponedLookups.begin(), | - |
614 | std::front_inserter(scheduledLookups), | - |
615 | isAlreadyRunning).first, | - |
616 | postponedLookups.end()); | - |
617 | | - |
618 | | - |
619 | scheduledLookups.erase(separate_if(scheduledLookups.begin(), | - |
620 | scheduledLookups.end(), | - |
621 | std::back_inserter(postponedLookups), | - |
622 | scheduledLookups.begin(), | - |
623 | isAlreadyRunning).second, | - |
624 | scheduledLookups.end()); | - |
625 | | - |
626 | const int availableThreads = threadPool.maxThreadCount() - currentLookups.size(); | - |
627 | if (availableThreads > 0) {TRUE | evaluated 4074 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| FALSE | never evaluated |
| 0-4074 |
628 | int readyToStartCount = qMin(availableThreads, scheduledLookups.size()); | - |
629 | auto it = scheduledLookups.begin(); | - |
630 | while (readyToStartCount--) {TRUE | evaluated 436 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 4074 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 436-4074 |
631 | | - |
632 | threadPool.start(*it); | - |
633 | currentLookups.push_back(std::move(*it)); | - |
634 | ++it; | - |
635 | }executed 436 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 436 |
636 | scheduledLookups.erase(scheduledLookups.begin(), it); | - |
637 | }executed 4074 times by 19 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 4074 |
638 | }executed 4074 times by 19 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 4074 |
639 | | - |
640 | | - |
641 | void QHostInfoLookupManager::scheduleLookup(QHostInfoRunnable *r) | - |
642 | { | - |
643 | if (wasDeleted)TRUE | never evaluated | FALSE | evaluated 3638 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-3638 |
644 | return; never executed: return; | 0 |
645 | | - |
646 | QMutexLocker locker(&this->mutex); | - |
647 | scheduledLookups.enqueue(r); | - |
648 | work(); | - |
649 | }executed 3638 times by 18 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3638 |
650 | | - |
651 | | - |
652 | void QHostInfoLookupManager::abortLookup(int id) | - |
653 | { | - |
654 | if (wasDeleted)TRUE | never evaluated | FALSE | evaluated 2961 times by 9 testsEvaluated by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-2961 |
655 | return; never executed: return; | 0 |
656 | | - |
657 | QMutexLocker locker(&this->mutex); | - |
658 | | - |
659 | | - |
660 | for (int i = 0; i < postponedLookups.length(); i++) {TRUE | evaluated 2727 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
| FALSE | evaluated 234 times by 9 testsEvaluated by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 234-2727 |
661 | if (postponedLookups.at(i)->id == id) {TRUE | evaluated 2727 times by 3 testsEvaluated by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
| FALSE | never evaluated |
| 0-2727 |
662 | delete postponedLookups.takeAt(i); | - |
663 | return;executed 2727 times by 3 tests: return; Executed by:- tst_QHostInfo
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
| 2727 |
664 | } | - |
665 | } never executed: end of block | 0 |
666 | | - |
667 | | - |
668 | for (int i = 0; i < scheduledLookups.length(); i++) {TRUE | never evaluated | FALSE | evaluated 234 times by 9 testsEvaluated by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-234 |
669 | if (scheduledLookups.at(i)->id == id) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
670 | delete scheduledLookups.takeAt(i); | - |
671 | return; never executed: return; | 0 |
672 | } | - |
673 | } never executed: end of block | 0 |
674 | | - |
675 | if (!abortedLookups.contains(id))TRUE | evaluated 233 times by 9 testsEvaluated by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qtcpsocket - unknown status
|
| 1-233 |
676 | abortedLookups.append(id);executed 233 times by 9 tests: abortedLookups.append(id); Executed by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 233 |
677 | }executed 234 times by 9 tests: end of block Executed by:- tst_QHostInfo
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qobject - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 234 |
678 | | - |
679 | | - |
680 | bool QHostInfoLookupManager::wasAborted(int id) | - |
681 | { | - |
682 | if (wasDeleted)TRUE | never evaluated | FALSE | evaluated 765 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 0-765 |
683 | return true; never executed: return true; | 0 |
684 | | - |
685 | QMutexLocker locker(&this->mutex); | - |
686 | return abortedLookups.contains(id);executed 765 times by 19 tests: return abortedLookups.contains(id); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 765 |
687 | } | - |
688 | | - |
689 | | - |
690 | void QHostInfoLookupManager::lookupFinished(QHostInfoRunnable *r) | - |
691 | { | - |
692 | if (wasDeleted)TRUE | never evaluated | FALSE | evaluated 436 times by 19 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
|
| 0-436 |
693 | return; never executed: return; | 0 |
694 | | - |
695 | QMutexLocker locker(&this->mutex); | - |
696 | currentLookups.removeOne(r); | - |
697 | finishedLookups.append(r); | - |
698 | work(); | - |
699 | }executed 436 times by 19 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 436 |
700 | | - |
701 | | - |
702 | QHostInfo qt_qhostinfo_lookup(const QString &name, QObject *receiver, const char *member, bool *valid, int *id) | - |
703 | { | - |
704 | *valid = false; | - |
705 | *id = -1; | - |
706 | | - |
707 | | - |
708 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
709 | if (manager && manager->cache.isEnabled()) {TRUE | evaluated 5376 times by 23 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| FALSE | never evaluated |
TRUE | evaluated 4375 times by 23 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| FALSE | evaluated 1001 times by 1 test |
| 0-5376 |
710 | QHostInfo info = manager->cache.get(name, valid); | - |
711 | if (*valid) {TRUE | evaluated 2343 times by 21 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| FALSE | evaluated 2032 times by 17 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 2032-2343 |
712 | return info;executed 2343 times by 21 tests: return info; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2343 |
713 | } | - |
714 | }executed 2032 times by 17 tests: end of block Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2032 |
715 | | - |
716 | | - |
717 | *id = QHostInfo::lookupHost(name, receiver, member); | - |
718 | | - |
719 | | - |
720 | return QHostInfo();executed 3033 times by 17 tests: return QHostInfo(); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3033 |
721 | } | - |
722 | | - |
723 | void qt_qhostinfo_clear_cache() | - |
724 | { | - |
725 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
726 | if (manager) {TRUE | evaluated 1345 times by 5 testsEvaluated by:- tst_QHostInfo
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-1345 |
727 | manager->clear(); | - |
728 | }executed 1345 times by 5 tests: end of block Executed by:- tst_QHostInfo
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1345 |
729 | }executed 1345 times by 5 tests: end of block Executed by:- tst_QHostInfo
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1345 |
730 | | - |
731 | #ifdef QT_BUILD_INTERNAL | - |
732 | void Q_AUTOTEST_EXPORT qt_qhostinfo_enable_cache(bool e) | - |
733 | { | - |
734 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
735 | if (manager) {TRUE | evaluated 82 times by 1 test | FALSE | never evaluated |
| 0-82 |
736 | manager->cache.setEnabled(e); | - |
737 | }executed 82 times by 1 test: end of block | 82 |
738 | }executed 82 times by 1 test: end of block | 82 |
739 | | - |
740 | void qt_qhostinfo_cache_inject(const QString &hostname, const QHostInfo &resolution) | - |
741 | { | - |
742 | QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager(); | - |
743 | if (!manager || !manager->cache.isEnabled())TRUE | never evaluated | FALSE | evaluated 589 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | evaluated 589 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
|
| 0-589 |
744 | return; never executed: return; | 0 |
745 | | - |
746 | manager->cache.put(hostname, resolution); | - |
747 | }executed 589 times by 1 test: end of block Executed by:- tst_qtcpsocket - unknown status
| 589 |
748 | #endif | - |
749 | | - |
750 | | - |
751 | | - |
752 | QHostInfoCache::QHostInfoCache() : max_age(60), enabled(true), cache(128) | - |
753 | { | - |
754 | #ifdef QT_QHOSTINFO_CACHE_DISABLED_BY_DEFAULT | - |
755 | enabled = false; | - |
756 | #endif | - |
757 | }executed 24 times by 24 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 24 |
758 | | - |
759 | bool QHostInfoCache::isEnabled() | - |
760 | { | - |
761 | return enabled;executed 9932 times by 24 tests: return enabled; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 9932 |
762 | } | - |
763 | | - |
764 | | - |
765 | | - |
766 | void QHostInfoCache::setEnabled(bool e) | - |
767 | { | - |
768 | enabled = e; | - |
769 | }executed 82 times by 1 test: end of block | 82 |
770 | | - |
771 | | - |
772 | QHostInfo QHostInfoCache::get(const QString &name, bool *valid) | - |
773 | { | - |
774 | QMutexLocker locker(&this->mutex); | - |
775 | | - |
776 | *valid = false; | - |
777 | if (QHostInfoCacheElement *element = cache.object(name)) {TRUE | evaluated 2373 times by 21 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| FALSE | evaluated 4488 times by 18 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 2373-4488 |
778 | if (element->age.elapsed() < max_age*1000)TRUE | evaluated 2343 times by 21 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| FALSE | evaluated 30 times by 2 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
|
| 30-2343 |
779 | *valid = true;executed 2343 times by 21 tests: *valid = true; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2343 |
780 | return element->info;executed 2373 times by 21 tests: return element->info; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2373 |
781 | | - |
782 | | - |
783 | | - |
784 | | - |
785 | } | - |
786 | | - |
787 | return QHostInfo();executed 4488 times by 18 tests: return QHostInfo(); Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 4488 |
788 | } | - |
789 | | - |
790 | void QHostInfoCache::put(const QString &name, const QHostInfo &info) | - |
791 | { | - |
792 | | - |
793 | if (info.error() != QHostInfo::NoError)TRUE | evaluated 57 times by 13 testsEvaluated by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| FALSE | evaluated 2798 times by 23 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
|
| 57-2798 |
794 | return;executed 57 times by 13 tests: return; Executed by:- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qudpsocket - unknown status
| 57 |
795 | | - |
796 | QHostInfoCacheElement* element = new QHostInfoCacheElement(); | - |
797 | element->info = info; | - |
798 | element->age = QElapsedTimer(); | - |
799 | element->age.start(); | - |
800 | | - |
801 | QMutexLocker locker(&this->mutex); | - |
802 | cache.insert(name, element); | - |
803 | }executed 2798 times by 23 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_platformsocketengine - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
| 2798 |
804 | | - |
805 | void QHostInfoCache::clear() | - |
806 | { | - |
807 | QMutexLocker locker(&this->mutex); | - |
808 | cache.clear(); | - |
809 | }executed 1369 times by 25 tests: end of block Executed by:- tst_QHostInfo
- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpserver - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
| 1369 |
810 | | - |
811 | QAbstractHostInfoLookupManager* QAbstractHostInfoLookupManager::globalInstance() | - |
812 | { | - |
813 | return theHostInfoLookupManager(); never executed: return theHostInfoLookupManager(); | 0 |
814 | } | - |
815 | | - |
816 | QT_END_NAMESPACE | - |
| | |