qnativesocketengine_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/socket/qnativesocketengine_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static inline void qt_socket_getPortAndAddress(const qt_sockaddr *s, quint16 *port, QHostAddress *addr)-
5{-
6 if (s->a.sa_family == 10
s->a.sa_family == 10Description
TRUEevaluated 1789 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 8249 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
) {
1789-8249
7 Q_IPV6ADDR tmp;-
8 memcpy(&tmp, &s->a6.sin6_addr, sizeof(tmp));-
9 if (addr
addrDescription
TRUEevaluated 1789 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-1789
10 QHostAddress tmpAddress;-
11 tmpAddress.setAddress(tmp);-
12 *addr = tmpAddress;-
13 if (s->a6.sin6_scope_id
s->a6.sin6_scope_idDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
FALSEevaluated 1759 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
)
30-1759
14 addr->setScopeId(QNetworkInterface::interfaceNameFromIndex(s->a6.sin6_scope_id));
executed 30 times by 2 tests: addr->setScopeId(QNetworkInterface::interfaceNameFromIndex(s->a6.sin6_scope_id));
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
30
15 }
executed 1789 times by 14 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1789
16 if (port
portDescription
TRUEevaluated 1789 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
)
0-1789
17 *
executed 1789 times by 14 tests: *port = ntohs(s->a6.sin6_port);
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
port = ntohs(s->a6.sin6_port);
executed 1789 times by 14 tests: *port = ntohs(s->a6.sin6_port);
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1789
18 return;
executed 1789 times by 14 tests: return;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1789
19 }-
20-
21 if (port
portDescription
TRUEevaluated 8249 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
FALSEnever evaluated
)
0-8249
22 *
executed 8249 times by 30 tests: *port = ntohs(s->a4.sin_port);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
port = ntohs(s->a4.sin_port);
executed 8249 times by 30 tests: *port = ntohs(s->a4.sin_port);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
8249
23 if (addr
addrDescription
TRUEevaluated 8249 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
FALSEnever evaluated
) {
0-8249
24 QHostAddress tmpAddress;-
25 tmpAddress.setAddress(ntohl(s->a4.sin_addr.s_addr));-
26 *addr = tmpAddress;-
27 }
executed 8249 times by 30 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
8249
28}
executed 8249 times by 30 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
8249
29-
30static void convertToLevelAndOption(QNativeSocketEngine::SocketOption opt,-
31 QAbstractSocket::NetworkLayerProtocol socketProtocol, int &level, int &n)-
32{-
33 n = -1;-
34 level = 1;-
35-
36 switch (opt) {-
37 case
never executed: case QNativeSocketEngine::NonBlockingSocketOption:
QNativeSocketEngine::NonBlockingSocketOption:
never executed: case QNativeSocketEngine::NonBlockingSocketOption:
0
38 case
never executed: case QNativeSocketEngine::BindExclusively:
QNativeSocketEngine::BindExclusively:
never executed: case QNativeSocketEngine::BindExclusively:
0
39 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,145) : qt_noop()); __builtin_unreachable(); } while (0);-
40-
41 case
executed 140 times by 4 tests: case QNativeSocketEngine::BroadcastSocketOption:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
code before this statement never executed: case QNativeSocketEngine::BroadcastSocketOption:
executed 140 times by 4 tests: case QNativeSocketEngine::BroadcastSocketOption:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
QNativeSocketEngine::BroadcastSocketOption:
code before this statement never executed: case QNativeSocketEngine::BroadcastSocketOption:
executed 140 times by 4 tests: case QNativeSocketEngine::BroadcastSocketOption:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
0-140
42 n = 6;-
43 break;
executed 140 times by 4 tests: break;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
44 case
executed 3 times by 1 test: case QNativeSocketEngine::ReceiveBufferSocketOption:
Executed by:
  • tst_platformsocketengine - unknown status
QNativeSocketEngine::ReceiveBufferSocketOption:
executed 3 times by 1 test: case QNativeSocketEngine::ReceiveBufferSocketOption:
Executed by:
  • tst_platformsocketengine - unknown status
3
45 n = 8;-
46 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_platformsocketengine - unknown status
3
47 case
executed 3 times by 1 test: case QNativeSocketEngine::SendBufferSocketOption:
Executed by:
  • tst_platformsocketengine - unknown status
QNativeSocketEngine::SendBufferSocketOption:
executed 3 times by 1 test: case QNativeSocketEngine::SendBufferSocketOption:
Executed by:
  • tst_platformsocketengine - unknown status
3
48 n = 7;-
49 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_platformsocketengine - unknown status
3
50 case
executed 748 times by 19 tests: case QNativeSocketEngine::AddressReusable:
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
QNativeSocketEngine::AddressReusable:
executed 748 times by 19 tests: case QNativeSocketEngine::AddressReusable:
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
748
51 n = 2;-
52 break;
executed 748 times by 19 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
748
53 case
executed 70161 times by 29 tests: case QNativeSocketEngine::ReceiveOutOfBandData:
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
  • ...
QNativeSocketEngine::ReceiveOutOfBandData:
executed 70161 times by 29 tests: case QNativeSocketEngine::ReceiveOutOfBandData:
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
  • ...
70161
54 n = 10;-
55 break;
executed 70161 times by 29 tests: break;
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
  • ...
70161
56 case
executed 645 times by 3 tests: case QNativeSocketEngine::LowDelayOption:
Executed by:
  • tst_QFtp
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
QNativeSocketEngine::LowDelayOption:
executed 645 times by 3 tests: case QNativeSocketEngine::LowDelayOption:
Executed by:
  • tst_QFtp
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
645
57 level = IPPROTO_TCP;-
58 n = 1;-
59 break;
executed 645 times by 3 tests: break;
Executed by:
  • tst_QFtp
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
645
60 case
executed 789 times by 9 tests: case QNativeSocketEngine::KeepAliveOption:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qtcpsocket - unknown status
QNativeSocketEngine::KeepAliveOption:
executed 789 times by 9 tests: case QNativeSocketEngine::KeepAliveOption:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qtcpsocket - unknown status
789
61 n = 9;-
62 break;
executed 789 times by 9 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qtcpsocket - unknown status
789
63 case
executed 24 times by 1 test: case QNativeSocketEngine::MulticastTtlOption:
Executed by:
  • tst_QUdpSocket
QNativeSocketEngine::MulticastTtlOption:
executed 24 times by 1 test: case QNativeSocketEngine::MulticastTtlOption:
Executed by:
  • tst_QUdpSocket
24
64 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUdpSocket
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
0-12
65 level = IPPROTO_IPV6;-
66 n = 18;-
67 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
else
12
68 {-
69 level = IPPROTO_IP;-
70 n = 33;-
71 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
12
72 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QUdpSocket
24
73 case
executed 28 times by 1 test: case QNativeSocketEngine::MulticastLoopbackOption:
Executed by:
  • tst_QUdpSocket
QNativeSocketEngine::MulticastLoopbackOption:
executed 28 times by 1 test: case QNativeSocketEngine::MulticastLoopbackOption:
Executed by:
  • tst_QUdpSocket
28
74 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QUdpSocket
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
0-14
75 level = IPPROTO_IPV6;-
76 n = 19;-
77 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
else
14
78 {-
79 level = IPPROTO_IP;-
80 n = 34;-
81 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
14
82 break;
executed 28 times by 1 test: break;
Executed by:
  • tst_QUdpSocket
28
83 case
executed 4 times by 1 test: case QNativeSocketEngine::TypeOfServiceOption:
Executed by:
  • tst_qtcpsocket - unknown status
QNativeSocketEngine::TypeOfServiceOption:
executed 4 times by 1 test: case QNativeSocketEngine::TypeOfServiceOption:
Executed by:
  • tst_qtcpsocket - unknown status
4
84 if (socketProtocol == QAbstractSocket::IPv4Protocol
socketProtocol...::IPv4ProtocolDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
) {
0-4
85 level = IPPROTO_IP;-
86 n = 1;-
87 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qtcpsocket - unknown status
4
88 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qtcpsocket - unknown status
4
89 case
executed 140 times by 4 tests: case QNativeSocketEngine::ReceivePacketInformation:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
QNativeSocketEngine::ReceivePacketInformation:
executed 140 times by 4 tests: case QNativeSocketEngine::ReceivePacketInformation:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
90 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 42 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
FALSEevaluated 98 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEevaluated 54 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
) {
42-98
91 level = IPPROTO_IPV6;-
92 n = 49;-
93 }
executed 96 times by 4 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
else if (socketProtocol == QAbstractSocket::IPv4Protocol
socketProtocol...::IPv4ProtocolDescription
TRUEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEnever evaluated
) {
0-96
94 level = IPPROTO_IP;-
95-
96 n = 8;-
97-
98-
99-
100-
101-
102 }
executed 44 times by 4 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
44
103 break;
executed 140 times by 4 tests: break;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
104 case
executed 140 times by 4 tests: case QNativeSocketEngine::ReceiveHopLimit:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
QNativeSocketEngine::ReceiveHopLimit:
executed 140 times by 4 tests: case QNativeSocketEngine::ReceiveHopLimit:
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
105 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 42 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
FALSEevaluated 98 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEevaluated 54 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
) {
42-98
106 level = IPPROTO_IPV6;-
107 n = 51;-
108 }
executed 96 times by 4 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
else if (socketProtocol == QAbstractSocket::IPv4Protocol
socketProtocol...::IPv4ProtocolDescription
TRUEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEnever evaluated
) {
0-96
109-
110 level = IPPROTO_IP;-
111 n = 12;-
112-
113 }
executed 44 times by 4 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
44
114 break;
executed 140 times by 4 tests: break;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
115 }-
116}
executed 72825 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
  • ...
72825
117-
118-
119-
120-
121-
122-
123bool QNativeSocketEnginePrivate::createNewSocket(QAbstractSocket::SocketType socketType,-
124 QAbstractSocket::NetworkLayerProtocol &socketProtocol)-
125{-
126 int protocol = (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 526 times by 9 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qobject - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 69776 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEevaluated 581 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 69195 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
) ? 10 : 2;
526-69776
127 int type = (
(socketType ==...et::UdpSocket)Description
TRUEevaluated 140 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 70162 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_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
  • ...
socketType == QAbstractSocket::UdpSocket)
(socketType ==...et::UdpSocket)Description
TRUEevaluated 140 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 70162 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_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
  • ...
? SOCK_DGRAM : SOCK_STREAM;
140-70162
128-
129 int socket = qt_safe_socket(protocol, type, 0, 04000);-
130 if (socket < 0
socket < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_platformsocketengine - unknown status
FALSEevaluated 70301 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_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
  • ...
&& socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_platformsocketengine - unknown status
&& (*
(*__errno_location ()) == 97Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 97
(*__errno_location ()) == 97Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-70301
131 protocol = 2;-
132 socket = qt_safe_socket(protocol, type, 0, 04000);-
133 socketProtocol = QAbstractSocket::IPv4Protocol;-
134 }
never executed: end of block
0
135-
136 if (socket < 0
socket < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_platformsocketengine - unknown status
FALSEevaluated 70301 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_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
  • ...
) {
1-70301
137 int ecopy = (*__errno_location ());-
138 switch (ecopy) {-
139 case
never executed: case 93:
93:
never executed: case 93:
0
140 case
never executed: case 97:
97:
never executed: case 97:
0
141 case
never executed: case 22:
22:
never executed: case 22:
0
142 setError(QAbstractSocket::UnsupportedSocketOperationError, ProtocolUnsupportedErrorString);-
143 break;
never executed: break;
0
144 case
never executed: case 23:
23:
never executed: case 23:
0
145 case
executed 1 time by 1 test: case 24:
Executed by:
  • tst_platformsocketengine - unknown status
24:
executed 1 time by 1 test: case 24:
Executed by:
  • tst_platformsocketengine - unknown status
1
146 case
never executed: case 105:
105:
never executed: case 105:
0
147 case
never executed: case 12:
12:
never executed: case 12:
0
148 setError(QAbstractSocket::SocketResourceError, ResourceErrorString);-
149 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_platformsocketengine - unknown status
1
150 case
never executed: case 13:
13:
never executed: case 13:
0
151 setError(QAbstractSocket::SocketAccessError, AccessErrorString);-
152 break;
never executed: break;
0
153 default
never executed: default:
:
never executed: default:
0
154 break;
never executed: break;
0
155 }-
156-
157-
158-
159-
160-
161-
162-
163 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_platformsocketengine - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_platformsocketengine - unknown status
1
164 }-
165-
166-
167-
168-
169-
170-
171 socketDescriptor = socket;-
172 if (socket != -1
socket != -1Description
TRUEevaluated 70301 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_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
  • ...
FALSEnever evaluated
) {
0-70301
173 this->socketProtocol = socketProtocol;-
174 this->socketType = socketType;-
175 }
executed 70301 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
  • ...
70301
176 return
executed 70301 times by 29 tests: return 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_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
  • ...
true;
executed 70301 times by 29 tests: return 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_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
  • ...
70301
177}-
178-
179-
180-
181-
182int QNativeSocketEnginePrivate::option(QNativeSocketEngine::SocketOption opt) const-
183{-
184 const QNativeSocketEngine * const q = q_func();-
185 if (!q->isValid()
!q->isValid()Description
TRUEnever evaluated
FALSEevaluated 41 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
)
0-41
186 return
never executed: return -1;
-1;
never executed: return -1;
0
187-
188-
189 if (opt == QNativeSocketEngine::BindExclusively
opt == QNative...indExclusivelyDescription
TRUEnever evaluated
FALSEevaluated 41 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
|| opt == QNativeSocketEngine::NonBlockingSocketOption
opt == QNative...ngSocketOptionDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_platformsocketengine - unknown status
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
0-41
190 || opt == QNativeSocketEngine::BroadcastSocketOption
opt == QNative...stSocketOptionDescription
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
)
0-40
191 return
executed 1 time by 1 test: return -1;
Executed by:
  • tst_platformsocketengine - unknown status
-1;
executed 1 time by 1 test: return -1;
Executed by:
  • tst_platformsocketengine - unknown status
1
192-
193 int n, level;-
194 int v = -1;-
195 socklen_t len = sizeof(v);-
196-
197 convertToLevelAndOption(opt, socketProtocol, level, n);-
198 if (n != -1
n != -1Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
&& ::
::getsockopt(s...v, &len) != -1Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
getsockopt(socketDescriptor, level, n, (char *) &v, &len) != -1
::getsockopt(s...v, &len) != -1Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
)
0-40
199 return
executed 40 times by 3 tests: return v;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
v;
executed 40 times by 3 tests: return v;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
40
200-
201 return
never executed: return -1;
-1;
never executed: return -1;
0
202}-
203-
204-
205-
206-
207-
208bool QNativeSocketEnginePrivate::setOption(QNativeSocketEngine::SocketOption opt, int v)-
209{-
210 QNativeSocketEngine * const q = q_func();-
211 if (!q->isValid()
!q->isValid()Description
TRUEnever evaluated
FALSEevaluated 73774 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
)
0-73774
212 return
never executed: return false;
false;
never executed: return false;
0
213-
214-
215 switch (opt) {-
216 case
executed 989 times by 19 tests: case QNativeSocketEngine::NonBlockingSocketOption:
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
QNativeSocketEngine::NonBlockingSocketOption:
executed 989 times by 19 tests: case QNativeSocketEngine::NonBlockingSocketOption:
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
{
989
217-
218-
219 int flags = ::fcntl(socketDescriptor, 3, 0);-
220 if (flags == -1
flags == -1Description
TRUEnever evaluated
FALSEevaluated 989 times by 19 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-989
221-
222-
223-
224 return
never executed: return false;
false;
never executed: return false;
0
225 }-
226 if (::
::fcntl(socket...| 04000) == -1Description
TRUEnever evaluated
FALSEevaluated 989 times by 19 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
fcntl(socketDescriptor, 4, flags | 04000) == -1
::fcntl(socket...| 04000) == -1Description
TRUEnever evaluated
FALSEevaluated 989 times by 19 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-989
227-
228-
229-
230 return
never executed: return false;
false;
never executed: return false;
0
231 }-
232 return
executed 989 times by 19 tests: return true;
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 989 times by 19 tests: return true;
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
989
233 }-
234 case
never executed: case QNativeSocketEngine::BindExclusively:
QNativeSocketEngine::BindExclusively:
never executed: case QNativeSocketEngine::BindExclusively:
0
235 return
never executed: return true;
true;
never executed: return true;
0
236-
237 default
executed 72785 times by 29 tests: default:
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
  • ...
:
executed 72785 times by 29 tests: default:
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
  • ...
72785
238 break;
executed 72785 times by 29 tests: break;
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
  • ...
72785
239 }-
240-
241 int n, level;-
242 convertToLevelAndOption(opt, socketProtocol, level, n);-
243 return
executed 72785 times by 29 tests: return ::setsockopt(socketDescriptor, level, n, (char *) &v, sizeof(v)) == 0;
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
  • ...
::setsockopt(socketDescriptor, level, n, (char *) &v, sizeof(v)) == 0;
executed 72785 times by 29 tests: return ::setsockopt(socketDescriptor, level, n, (char *) &v, sizeof(v)) == 0;
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
  • ...
72785
244}-
245-
246bool QNativeSocketEnginePrivate::nativeConnect(const QHostAddress &addr, quint16 port)-
247{-
248-
249-
250-
251-
252 qt_sockaddr aa;-
253 socklen_t sockAddrSize;-
254 setPortAndAddress(port, addr, &aa, &sockAddrSize);-
255-
256 int connectResult = qt_safe_connect(socketDescriptor, &aa.a, sockAddrSize);-
257-
258-
259-
260 if (connectResult == -1
connectResult == -1Description
TRUEevaluated 4162 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
FALSEevaluated 3313 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
) {
3313-4162
261 switch ((*__errno_location ())) {-
262 case
never executed: case 106:
106:
never executed: case 106:
0
263 socketState = QAbstractSocket::ConnectedState;-
264 break;
never executed: break;
0
265 case
executed 322 times by 9 tests: case 111:
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
111:
executed 322 times by 9 tests: case 111:
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
322
266 case
never executed: case 22:
22:
never executed: case 22:
0
267 setError(QAbstractSocket::ConnectionRefusedError, ConnectionRefusedErrorString);-
268 socketState = QAbstractSocket::UnconnectedState;-
269 break;
executed 322 times by 9 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_Spdy
  • tst_qhttpsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qtcpsocket - unknown status
322
270 case
never executed: case 110:
110:
never executed: case 110:
0
271 setError(QAbstractSocket::NetworkError, ConnectionTimeOutErrorString);-
272 break;
never executed: break;
0
273 case
never executed: case 113:
113:
never executed: case 113:
0
274 setError(QAbstractSocket::NetworkError, HostUnreachableErrorString);-
275 socketState = QAbstractSocket::UnconnectedState;-
276 break;
never executed: break;
0
277 case
executed 4 times by 2 tests: case 101:
Executed by:
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
101:
executed 4 times by 2 tests: case 101:
Executed by:
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
4
278 setError(QAbstractSocket::NetworkError, NetworkUnreachableErrorString);-
279 socketState = QAbstractSocket::UnconnectedState;-
280 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
4
281 case
never executed: case 98:
98:
never executed: case 98:
0
282 setError(QAbstractSocket::NetworkError, AddressInuseErrorString);-
283 break;
never executed: break;
0
284 case
executed 3836 times by 28 tests: case 115:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
115:
executed 3836 times by 28 tests: case 115:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
3836
285 case
never executed: case 114:
114:
never executed: case 114:
0
286 setError(QAbstractSocket::UnfinishedSocketOperationError, InvalidSocketErrorString);-
287 socketState = QAbstractSocket::ConnectingState;-
288 break;
executed 3836 times by 28 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
3836
289 case
never executed: case 11:
11:
never executed: case 11:
0
290 setError(QAbstractSocket::UnfinishedSocketOperationError, InvalidSocketErrorString);-
291 break;
never executed: break;
0
292 case
never executed: case 13:
13:
never executed: case 13:
0
293 case
never executed: case 1:
1:
never executed: case 1:
0
294 setError(QAbstractSocket::SocketAccessError, AccessErrorString);-
295 socketState = QAbstractSocket::UnconnectedState;-
296 break;
never executed: break;
0
297 case
never executed: case 97:
97:
never executed: case 97:
0
298 case
never executed: case 9:
9:
never executed: case 9:
0
299 case
never executed: case 14:
14:
never executed: case 14:
0
300 case
never executed: case 88:
88:
never executed: case 88:
0
301 socketState = QAbstractSocket::UnconnectedState;-
302 default
never executed: default:
:
never executed: default:
code before this statement never executed: default:
0
303 break;
never executed: break;
0
304 }-
305-
306 if (socketState != QAbstractSocket::ConnectedState
socketState !=...ConnectedStateDescription
TRUEevaluated 4162 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
FALSEnever evaluated
) {
0-4162
307-
308-
309-
310-
311-
312-
313 return
executed 4162 times by 28 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
false;
executed 4162 times by 28 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
4162
314 }-
315 }
never executed: end of block
0
316-
317-
318-
319-
320-
321-
322 socketState = QAbstractSocket::ConnectedState;-
323 return
executed 3313 times by 28 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
true;
executed 3313 times by 28 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
3313
324}-
325-
326bool QNativeSocketEnginePrivate::nativeBind(const QHostAddress &address, quint16 port)-
327{-
328 qt_sockaddr aa;-
329 socklen_t sockAddrSize;-
330 setPortAndAddress(port, address, &aa, &sockAddrSize);-
331-
332-
333 if (aa.a.sa_family == 10
aa.a.sa_family == 10Description
TRUEevaluated 663 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 291 times by 14 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
) {
291-663
334 int ipv6only = 0;-
335 if (address.protocol() == QAbstractSocket::IPv6Protocol
address.protoc...::IPv6ProtocolDescription
TRUEevaluated 80 times by 6 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 583 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
)
80-583
336 ipv6only = 1;
executed 80 times by 6 tests: ipv6only = 1;
Executed by:
  • tst_QHostInfo
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
80
337-
338 ::setsockopt(socketDescriptor, IPPROTO_IPV6, 26, (char*)&ipv6only, sizeof(ipv6only) );-
339 }
executed 663 times by 14 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
663
340-
341-
342 int bindResult = ::bind(socketDescriptor, &aa.a, sockAddrSize);-
343 if (bindResult < 0
bindResult < 0Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 930 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
&& (*
(*__errno_location ()) == 97Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
__errno_location ()) == 97
(*__errno_location ()) == 97Description
TRUEnever evaluated
FALSEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
&& address.protocol() == QAbstractSocket::AnyIPProtocol
address.protoc...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-930
344-
345 aa.a4.sin_family = 2;-
346 aa.a4.sin_port = htons(port);-
347 aa.a4.sin_addr.s_addr = htonl(address.toIPv4Address());-
348 sockAddrSize = sizeof(aa.a4);-
349 bindResult = ::bind(socketDescriptor, &aa.a, sockAddrSize);-
350 }
never executed: end of block
0
351-
352 if (bindResult < 0
bindResult < 0Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 930 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
24-930
353-
354-
355-
356 switch((*__errno_location ())) {-
357 case
executed 13 times by 3 tests: case 98:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
98:
executed 13 times by 3 tests: case 98:
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
13
358 setError(QAbstractSocket::AddressInUseError, AddressInuseErrorString);-
359 break;
executed 13 times by 3 tests: break;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
13
360 case
executed 5 times by 2 tests: case 13:
Executed by:
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
13:
executed 5 times by 2 tests: case 13:
Executed by:
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
5
361 setError(QAbstractSocket::SocketAccessError, AddressProtectedErrorString);-
362 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
5
363 case
executed 1 time by 1 test: case 22:
Executed by:
  • tst_QUdpSocket
22:
executed 1 time by 1 test: case 22:
Executed by:
  • tst_QUdpSocket
1
364 setError(QAbstractSocket::UnsupportedSocketOperationError, OperationUnsupportedErrorString);-
365 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QUdpSocket
1
366 case
executed 5 times by 2 tests: case 99:
Executed by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
99:
executed 5 times by 2 tests: case 99:
Executed by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
5
367 setError(QAbstractSocket::SocketAddressNotAvailableError, AddressNotAvailableErrorString);-
368 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
5
369 default
never executed: default:
:
never executed: default:
0
370 break;
never executed: break;
0
371 }-
372-
373-
374-
375-
376-
377-
378 return
executed 24 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
false;
executed 24 times by 4 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
24
379 }-
380-
381-
382-
383-
384-
385 socketState = QAbstractSocket::BoundState;-
386 return
executed 930 times by 20 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 930 times by 20 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
930
387}-
388-
389bool QNativeSocketEnginePrivate::nativeListen(int backlog)-
390{-
391 if (qt_safe_listen(socketDescriptor, backlog) < 0
qt_safe_listen..., backlog) < 0Description
TRUEnever evaluated
FALSEevaluated 738 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-738
392-
393-
394-
395 switch ((*__errno_location ())) {-
396 case
never executed: case 98:
98:
never executed: case 98:
0
397 setError(QAbstractSocket::AddressInUseError,-
398 PortInuseErrorString);-
399 break;
never executed: break;
0
400 default
never executed: default:
:
never executed: default:
0
401 break;
never executed: break;
0
402 }-
403-
404-
405-
406-
407-
408 return
never executed: return false;
false;
never executed: return false;
0
409 }-
410-
411-
412-
413-
414-
415 socketState = QAbstractSocket::ListeningState;-
416 return
executed 738 times by 19 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
true;
executed 738 times by 19 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
738
417}-
418-
419int QNativeSocketEnginePrivate::nativeAccept()-
420{-
421 int acceptedDescriptor = qt_safe_accept(socketDescriptor, 0, 0);-
422 if (acceptedDescriptor == -1
acceptedDescriptor == -1Description
TRUEevaluated 796 times by 15 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 827 times by 17 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
796-827
423 switch ((*__errno_location ())) {-
424 case
never executed: case 9:
9:
never executed: case 9:
0
425 case
never executed: case 95:
95:
never executed: case 95:
0
426 setError(QAbstractSocket::UnsupportedSocketOperationError, InvalidSocketErrorString);-
427 break;
never executed: break;
0
428 case
never executed: case 103:
103:
never executed: case 103:
0
429 setError(QAbstractSocket::NetworkError, RemoteHostClosedErrorString);-
430 break;
never executed: break;
0
431 case
never executed: case 14:
14:
never executed: case 14:
0
432 case
never executed: case 88:
88:
never executed: case 88:
0
433 setError(QAbstractSocket::SocketResourceError, NotSocketErrorString);-
434 break;
never executed: break;
0
435 case
never executed: case 93:
93:
never executed: case 93:
0
436-
437 case
never executed: case 71:
71:
never executed: case 71:
0
438-
439 case
never executed: case 97:
97:
never executed: case 97:
0
440 case
never executed: case 22:
22:
never executed: case 22:
0
441 setError(QAbstractSocket::UnsupportedSocketOperationError, ProtocolUnsupportedErrorString);-
442 break;
never executed: break;
0
443 case
never executed: case 23:
23:
never executed: case 23:
0
444 case
never executed: case 24:
24:
never executed: case 24:
0
445 case
never executed: case 105:
105:
never executed: case 105:
0
446 case
never executed: case 12:
12:
never executed: case 12:
0
447 setError(QAbstractSocket::SocketResourceError, ResourceErrorString);-
448 break;
never executed: break;
0
449 case
never executed: case 13:
13:
never executed: case 13:
0
450 case
never executed: case 1:
1:
never executed: case 1:
0
451 setError(QAbstractSocket::SocketAccessError, AccessErrorString);-
452 break;
never executed: break;
0
453-
454-
455-
456 case
executed 796 times by 15 tests: case 11:
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
11:
executed 796 times by 15 tests: case 11:
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
796
457 setError(QAbstractSocket::TemporaryError, TemporaryErrorString);-
458 break;
executed 796 times by 15 tests: break;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
796
459 default
never executed: default:
:
never executed: default:
0
460 setError(QAbstractSocket::UnknownSocketError, UnknownSocketErrorString);-
461 break;
never executed: break;
0
462 }-
463 }-
464-
465 return
executed 1623 times by 17 tests: return acceptedDescriptor;
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
acceptedDescriptor;
executed 1623 times by 17 tests: return acceptedDescriptor;
Executed by:
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1623
466}-
467-
468-
469-
470static bool multicastMembershipHelper(QNativeSocketEnginePrivate *d,-
471 int how6,-
472 int how4,-
473 const QHostAddress &groupAddress,-
474 const QNetworkInterface &interface)-
475{-
476 int level = 0;-
477 int sockOpt = 0;-
478 void *sockArg;-
479 int sockArgSize;-
480-
481 ip_mreq mreq4;-
482 ipv6_mreq mreq6;-
483-
484 if (groupAddress.protocol() == QAbstractSocket::IPv6Protocol
groupAddress.p...::IPv6ProtocolDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
6
485 level = IPPROTO_IPV6;-
486 sockOpt = how6;-
487 sockArg = &mreq6;-
488 sockArgSize = sizeof(mreq6);-
489 memset(&mreq6, 0, sizeof(mreq6));-
490 Q_IPV6ADDR ip6 = groupAddress.toIPv6Address();-
491 memcpy(&mreq6.ipv6mr_multiaddr, &ip6, sizeof(ip6));-
492 mreq6.ipv6mr_interface = interface.index();-
493 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
else
6
494 if (groupAddress.protocol() == QAbstractSocket::IPv4Protocol
groupAddress.p...::IPv4ProtocolDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
) {
0-6
495 level = IPPROTO_IP;-
496 sockOpt = how4;-
497 sockArg = &mreq4;-
498 sockArgSize = sizeof(mreq4);-
499 memset(&mreq4, 0, sizeof(mreq4));-
500 mreq4.imr_multiaddr.s_addr = htonl(groupAddress.toIPv4Address());-
501-
502 if (interface.
interface.isValid()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
isValid()
interface.isValid()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
0-6
503 const QList<QNetworkAddressEntry> addressEntries = interface.addressEntries();-
504 if (!addressEntries.isEmpty()
!addressEntries.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
505 QHostAddress firstIP = addressEntries.first().ip();-
506 mreq4.imr_interface.s_addr = htonl(firstIP.toIPv4Address());-
507 }
never executed: end of block
else {
0
508 d->setError(QAbstractSocket::NetworkError,-
509 QNativeSocketEnginePrivate::NetworkUnreachableErrorString);-
510 return
never executed: return false;
false;
never executed: return false;
0
511 }-
512 } else {-
513 mreq4.imr_interface.s_addr = ((in_addr_t) 0x00000000);-
514 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
6
515 } else {-
516-
517 d->setError(QAbstractSocket::UnsupportedSocketOperationError,-
518 QNativeSocketEnginePrivate::ProtocolUnsupportedErrorString);-
519 return
never executed: return false;
false;
never executed: return false;
0
520 }-
521-
522 int res = setsockopt(d->socketDescriptor, level, sockOpt, sockArg, sockArgSize);-
523 if (res == -1
res == -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
2-10
524 switch ((*__errno_location ())) {-
525 case
never executed: case 92:
92:
never executed: case 92:
0
526 d->setError(QAbstractSocket::UnsupportedSocketOperationError,-
527 QNativeSocketEnginePrivate::OperationUnsupportedErrorString);-
528 break;
never executed: break;
0
529 case
never executed: case 99:
99:
never executed: case 99:
0
530 d->setError(QAbstractSocket::SocketAddressNotAvailableError,-
531 QNativeSocketEnginePrivate::AddressNotAvailableErrorString);-
532 break;
never executed: break;
0
533 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QUdpSocket
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QUdpSocket
2
534 d->setError(QAbstractSocket::UnknownSocketError,-
535 QNativeSocketEnginePrivate::UnknownSocketErrorString);-
536 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QUdpSocket
2
537 }-
538 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUdpSocket
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUdpSocket
2
539 }-
540 return
executed 10 times by 1 test: return true;
Executed by:
  • tst_QUdpSocket
true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_QUdpSocket
10
541}-
542-
543bool QNativeSocketEnginePrivate::nativeJoinMulticastGroup(const QHostAddress &groupAddress,-
544 const QNetworkInterface &interface)-
545{-
546 return
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
multicastMembershipHelper(this,
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
8
547 20,
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
8
548 35,
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
8
549 groupAddress,
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
8
550 interface);
executed 8 times by 1 test: return multicastMembershipHelper(this, 20, 35, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
8
551}-
552-
553bool QNativeSocketEnginePrivate::nativeLeaveMulticastGroup(const QHostAddress &groupAddress,-
554 const QNetworkInterface &interface)-
555{-
556 return
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
multicastMembershipHelper(this,
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
4
557 21,
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
4
558 36,
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
4
559 groupAddress,
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
4
560 interface);
executed 4 times by 1 test: return multicastMembershipHelper(this, 21, 36, groupAddress, interface);
Executed by:
  • tst_QUdpSocket
4
561}-
562-
563QNetworkInterface QNativeSocketEnginePrivate::nativeMulticastInterface() const-
564{-
565 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
0-3
566 uint v;-
567 socklen_t sizeofv = sizeof(v);-
568 if (::
::getsockopt(s...sizeofv) == -1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
getsockopt(socketDescriptor, IPPROTO_IPV6, 17, &v, &sizeofv) == -1
::getsockopt(s...sizeofv) == -1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
)
0-3
569 return
never executed: return QNetworkInterface();
QNetworkInterface();
never executed: return QNetworkInterface();
0
570 return
executed 3 times by 1 test: return QNetworkInterface::interfaceFromIndex(v);
Executed by:
  • tst_QUdpSocket
QNetworkInterface::interfaceFromIndex(v);
executed 3 times by 1 test: return QNetworkInterface::interfaceFromIndex(v);
Executed by:
  • tst_QUdpSocket
3
571 }-
572-
573 struct in_addr v = { 0 };-
574 socklen_t sizeofv = sizeof(v);-
575 if (::
::getsockopt(s...sizeofv) == -1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
getsockopt(socketDescriptor, IPPROTO_IP, 32, &v, &sizeofv) == -1
::getsockopt(s...sizeofv) == -1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
)
0-3
576 return
never executed: return QNetworkInterface();
QNetworkInterface();
never executed: return QNetworkInterface();
0
577 if (v.s_addr != 0
v.s_addr != 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
&& sizeofv >= socklen_t(sizeof(v))
sizeofv >= soc...n_t(sizeof(v))Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
) {
0-3
578 QHostAddress ipv4(ntohl(v.s_addr));-
579 QList<QNetworkInterface> ifaces = QNetworkInterface::allInterfaces();-
580 for (int i = 0; i < ifaces.count()
i < ifaces.count()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
; ++i) {
0-6
581 const QNetworkInterface &iface = ifaces.at(i);-
582 QList<QNetworkAddressEntry> entries = iface.addressEntries();-
583 for (int j = 0; j < entries.count()
j < entries.count()Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
; ++j) {
3-9
584 const QNetworkAddressEntry &entry = entries.at(j);-
585 if (entry.ip() == ipv4
entry.ip() == ipv4Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUdpSocket
)
3-6
586 return
executed 3 times by 1 test: return iface;
Executed by:
  • tst_QUdpSocket
iface;
executed 3 times by 1 test: return iface;
Executed by:
  • tst_QUdpSocket
3
587 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
6
588 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
3
589 }
never executed: end of block
0
590 return
never executed: return QNetworkInterface();
QNetworkInterface();
never executed: return QNetworkInterface();
0
591}-
592-
593bool QNativeSocketEnginePrivate::nativeSetMulticastInterface(const QNetworkInterface &iface)-
594{-
595 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
|| socketProtocol == QAbstractSocket::AnyIPProtocol
socketProtocol...:AnyIPProtocolDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
) {
0-3
596 uint v = iface.index();-
597 return
executed 3 times by 1 test: return (::setsockopt(socketDescriptor, IPPROTO_IPV6, 17, &v, sizeof(v)) != -1);
Executed by:
  • tst_QUdpSocket
(::setsockopt(socketDescriptor, IPPROTO_IPV6, 17, &v, sizeof(v)) != -1);
executed 3 times by 1 test: return (::setsockopt(socketDescriptor, IPPROTO_IPV6, 17, &v, sizeof(v)) != -1);
Executed by:
  • tst_QUdpSocket
3
598 }-
599-
600 struct in_addr v;-
601 if (iface.isValid()
iface.isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
) {
0-3
602 QList<QNetworkAddressEntry> entries = iface.addressEntries();-
603 for (int i = 0; i < entries.count()
i < entries.count()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
; ++i) {
0-3
604 const QNetworkAddressEntry &entry = entries.at(i);-
605 const QHostAddress &ip = entry.ip();-
606 if (ip.protocol() == QAbstractSocket::IPv4Protocol
ip.protocol() ...::IPv4ProtocolDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
) {
0-3
607 v.s_addr = htonl(ip.toIPv4Address());-
608 int r = ::setsockopt(socketDescriptor, IPPROTO_IP, 32, &v, sizeof(v));-
609 if (r != -1
r != -1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEnever evaluated
)
0-3
610 return
executed 3 times by 1 test: return true;
Executed by:
  • tst_QUdpSocket
true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QUdpSocket
3
611 }
never executed: end of block
0
612 }
never executed: end of block
0
613 return
never executed: return false;
false;
never executed: return false;
0
614 }-
615-
616 v.s_addr = ((in_addr_t) 0x00000000);-
617 return
never executed: return (::setsockopt(socketDescriptor, IPPROTO_IP, 32, &v, sizeof(v)) != -1);
(::setsockopt(socketDescriptor, IPPROTO_IP, 32, &v, sizeof(v)) != -1);
never executed: return (::setsockopt(socketDescriptor, IPPROTO_IP, 32, &v, sizeof(v)) != -1);
0
618}-
619-
620-
621-
622qint64 QNativeSocketEnginePrivate::nativeBytesAvailable() const-
623{-
624 int nbytes = 0;-
625-
626 qint64 available = -1;-
627 if (available == -1
available == -1Description
TRUEevaluated 74694 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
FALSEnever evaluated
&& qt_safe_ioctl(socketDescriptor, 0x541B, (char *) &nbytes) >= 0
qt_safe_ioctl(... &nbytes) >= 0Description
TRUEevaluated 74694 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
FALSEnever evaluated
)
0-74694
628 available = nbytes;
executed 74694 times by 29 tests: available = nbytes;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
74694
629-
630-
631-
632-
633 return
executed 74694 times by 29 tests: return available > 0 ? available : 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
available > 0 ? available : 0;
executed 74694 times by 29 tests: return available > 0 ? available : 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
74694
634}-
635-
636bool QNativeSocketEnginePrivate::nativeHasPendingDatagrams() const-
637{-
638-
639 qt_sockaddr storage;-
640 socklen_t storageSize = sizeof(storage);-
641 memset(&storage, 0, storageSize);-
642-
643-
644-
645 ssize_t readBytes;-
646 do {-
647 char c;-
648 readBytes = ::recvfrom(socketDescriptor, &c, 1, MSG_PEEK, &storage.a, &storageSize);-
649 }
executed 1079078 times by 3 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
while (readBytes == -1
readBytes == -1Description
TRUEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 225424 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
);
0-1079078
650-
651-
652-
653 bool result = (
(readBytes != -1)Description
TRUEevaluated 225424 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
readBytes != -1)
(readBytes != -1)Description
TRUEevaluated 225424 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
|| (*
(*__errno_location ()) == 90Description
TRUEnever evaluated
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
__errno_location ()) == 90
(*__errno_location ()) == 90Description
TRUEnever evaluated
FALSEevaluated 853654 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
;
0-853654
654-
655-
656-
657-
658-
659 return
executed 1079078 times by 3 tests: return result;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
result;
executed 1079078 times by 3 tests: return result;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
1079078
660}-
661-
662qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize() const-
663{-
664 QVarLengthArray<char, 8192> udpMessagePeekBuffer(8192);-
665 ssize_t recvResult = -1;-
666-
667 for (;;) {-
668-
669-
670-
671 recvResult = ::recv(socketDescriptor, udpMessagePeekBuffer.data(),-
672 udpMessagePeekBuffer.size(), MSG_PEEK);-
673 if (recvResult == -1
recvResult == -1Description
TRUEnever evaluated
FALSEevaluated 731 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
)
0-731
674 continue;
never executed: continue;
0
675-
676 if (recvResult != (ssize_t) udpMessagePeekBuffer.size()
recvResult != ...kBuffer.size()Description
TRUEevaluated 595 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 136 times by 1 test
Evaluated by:
  • tst_QUdpSocket
)
136-595
677 break;
executed 595 times by 3 tests: break;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
595
678-
679 udpMessagePeekBuffer.resize(udpMessagePeekBuffer.size() * 2);-
680 }
executed 136 times by 1 test: end of block
Executed by:
  • tst_QUdpSocket
136
681-
682-
683-
684-
685-
686 return
executed 595 times by 3 tests: return qint64(recvResult);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
qint64(recvResult);
executed 595 times by 3 tests: return qint64(recvResult);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
595
687}-
688-
689qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram(char *data, qint64 maxSize, QIpPacketHeader *header,-
690 QAbstractSocketEngine::PacketHeaderOptions options)-
691{-
692-
693 quintptr cbuf[(((((sizeof(struct in6_pktinfo)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))) + ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)))-
694-
695-
696-
697 + sizeof(quintptr) - 1) / sizeof(quintptr)];-
698-
699 struct msghdr msg;-
700 struct iovec vec;-
701 qt_sockaddr aa;-
702 char c;-
703 memset(&msg, 0, sizeof(msg));-
704 memset(&aa, 0, sizeof(aa));-
705-
706-
707 vec.iov_base = maxSize
maxSizeDescription
TRUEevaluated 854030 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 186 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
? data : &c;
186-854030
708 vec.iov_len = maxSize
maxSizeDescription
TRUEevaluated 854030 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 186 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
? maxSize : 1;
186-854030
709 msg.msg_iov = &vec;-
710 msg.msg_iovlen = 1;-
711 if (options & QAbstractSocketEngine::WantDatagramSender
options & QAbs...DatagramSenderDescription
TRUEevaluated 509 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 853707 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
) {
509-853707
712 msg.msg_name = &aa;-
713 msg.msg_namelen = sizeof(aa);-
714 }
executed 509 times by 3 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
509
715 if (options & (QAbstractSocketEngine::WantDatagramHopLimit | QAbstractSocketEngine::WantDatagramDestination)
options & (QAb...amDestination)Description
TRUEnever evaluated
FALSEevaluated 854216 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
) {
0-854216
716 msg.msg_control = cbuf;-
717 msg.msg_controllen = sizeof(cbuf);-
718 }
never executed: end of block
0
719-
720 ssize_t recvResult = 0;-
721 do {-
722 recvResult = ::recvmsg(socketDescriptor, &msg, 0);-
723 }
executed 854216 times by 4 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
while (recvResult == -1
recvResult == -1Description
TRUEnever evaluated
FALSEevaluated 854216 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
);
0-854216
724-
725 if (recvResult == -1
recvResult == -1Description
TRUEnever evaluated
FALSEevaluated 854216 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
) {
0-854216
726 setError(QAbstractSocket::NetworkError, ReceiveDatagramErrorString);-
727 if (header
headerDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
728 header->clear();
never executed: header->clear();
0
729 }
never executed: end of block
else if (options != QAbstractSocketEngine::WantNone
options != QAb...gine::WantNoneDescription
TRUEevaluated 509 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEevaluated 853707 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
) {
0-853707
730 ((!(header)) ? qt_assert("header",__FILE__,866) : qt_noop());-
731 qt_socket_getPortAndAddress(&aa, &header->senderPort, &header->senderAddress);-
732 header->destinationPort = localPort;-
733-
734-
735 struct cmsghdr *cmsgptr;-
736 for (cmsgptr = ((size_t) (&msg)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (&msg)->msg_control : (struct cmsghdr *) 0); cmsgptr != __null
cmsgptr != __nullDescription
TRUEnever evaluated
FALSEevaluated 509 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
;
0-509
737 cmsgptr = __cmsg_nxthdr (&msg, cmsgptr)) {-
738 if (cmsgptr->cmsg_level == IPPROTO_IPV6
cmsgptr->cmsg_...= IPPROTO_IPV6Description
TRUEnever evaluated
FALSEnever evaluated
&& cmsgptr->cmsg_type == 50
cmsgptr->cmsg_type == 50Description
TRUEnever evaluated
FALSEnever evaluated
0
739 && cmsgptr->cmsg_len >= ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(in6_pktinfo)))
cmsgptr->cmsg_...in6_pktinfo)))Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
740 in6_pktinfo *info = reinterpret_cast<in6_pktinfo *>(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)));-
741-
742 header->destinationAddress.setAddress(reinterpret_cast<quint8 *>(&info->ipi6_addr));-
743 header->ifindex = info->ipi6_ifindex;-
744 if (header->ifindex
header->ifindexDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
745 header->destinationAddress.setScopeId(QString::number(info->ipi6_ifindex));
never executed: header->destinationAddress.setScopeId(QString::number(info->ipi6_ifindex));
0
746 }
never executed: end of block
0
747-
748-
749 if (cmsgptr->cmsg_level == IPPROTO_IP
cmsgptr->cmsg_... == IPPROTO_IPDescription
TRUEnever evaluated
FALSEnever evaluated
&& cmsgptr->cmsg_type == 8
cmsgptr->cmsg_type == 8Description
TRUEnever evaluated
FALSEnever evaluated
0
750 && cmsgptr->cmsg_len >= ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(in_pktinfo)))
cmsgptr->cmsg_...(in_pktinfo)))Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
751 in_pktinfo *info = reinterpret_cast<in_pktinfo *>(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)));-
752-
753 header->destinationAddress.setAddress(ntohl(info->ipi_addr.s_addr));-
754 header->ifindex = info->ipi_ifindex;-
755 }
never executed: end of block
0
756 if (cmsgptr->cmsg_len == ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(int)))
cmsgptr->cmsg_...(sizeof(int)))Description
TRUEnever evaluated
FALSEnever evaluated
0
757 && ((cmsgptr->cmsg_level == IPPROTO_IPV6
cmsgptr->cmsg_...= IPPROTO_IPV6Description
TRUEnever evaluated
FALSEnever evaluated
&& cmsgptr->cmsg_type == 52
cmsgptr->cmsg_type == 52Description
TRUEnever evaluated
FALSEnever evaluated
)
0
758 || (cmsgptr->cmsg_level == IPPROTO_IP
cmsgptr->cmsg_... == IPPROTO_IPDescription
TRUEnever evaluated
FALSEnever evaluated
&& cmsgptr->cmsg_type == 2
cmsgptr->cmsg_type == 2Description
TRUEnever evaluated
FALSEnever evaluated
))) {
0
759 header->hopLimit = *reinterpret_cast<int *>(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)));-
760 }
never executed: end of block
0
761 }
never executed: end of block
0
762 }
executed 509 times by 3 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocks5socketengine - unknown status
509
763 return
executed 854216 times by 4 tests: return qint64(maxSize ? recvResult : recvResult == -1 ? -1 : 0);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
qint64(maxSize ? recvResult : recvResult == -1 ? -1 : 0);
executed 854216 times by 4 tests: return qint64(maxSize ? recvResult : recvResult == -1 ? -1 : 0);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
854216
764}-
765-
766qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 len, const QIpPacketHeader &header)-
767{-
768-
769 quintptr cbuf[(((((sizeof(struct in6_pktinfo)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))) + ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))) + sizeof(quintptr) - 1) / sizeof(quintptr)];-
770-
771 struct cmsghdr *cmsgptr = reinterpret_cast<struct cmsghdr *>(cbuf);-
772 struct msghdr msg;-
773 struct iovec vec;-
774 qt_sockaddr aa;-
775-
776 memset(&msg, 0, sizeof(msg));-
777 memset(&aa, 0, sizeof(aa));-
778 vec.iov_base = const_cast<char *>(data);-
779 vec.iov_len = len;-
780 msg.msg_iov = &vec;-
781 msg.msg_iovlen = 1;-
782 msg.msg_name = &aa.a;-
783 msg.msg_control = &cbuf;-
784-
785 setPortAndAddress(header.destinationPort, header.destinationAddress, &aa, &msg.msg_namelen);-
786-
787 if (msg.msg_namelen == sizeof(aa.a6)
msg.msg_namele... sizeof(aa.a6)Description
TRUEevaluated 151 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
FALSEevaluated 485 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
) {
151-485
788 if (header.hopLimit != -1
header.hopLimit != -1Description
TRUEnever evaluated
FALSEevaluated 151 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
) {
0-151
789 msg.msg_controllen += ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)));-
790 cmsgptr->cmsg_len = ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(int)));-
791 cmsgptr->cmsg_level = IPPROTO_IPV6;-
792 cmsgptr->cmsg_type = 52;-
793 memcpy(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)), &header.hopLimit, sizeof(int));-
794 cmsgptr = reinterpret_cast<cmsghdr *>(reinterpret_cast<char *>(cmsgptr) + ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))));-
795 }
never executed: end of block
0
796 if (header.ifindex != 0
header.ifindex != 0Description
TRUEnever evaluated
FALSEevaluated 151 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
|| !header.senderAddress.isNull()
!header.senderAddress.isNull()Description
TRUEnever evaluated
FALSEevaluated 151 times by 3 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
) {
0-151
797 struct in6_pktinfo *data = reinterpret_cast<in6_pktinfo *>(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)));-
798 memset(data, 0, sizeof(*data));-
799 msg.msg_controllen += ((((sizeof(*data)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)));-
800 cmsgptr->cmsg_len = ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(*data)));-
801 cmsgptr->cmsg_level = IPPROTO_IPV6;-
802 cmsgptr->cmsg_type = 50;-
803 data->ipi6_ifindex = header.ifindex;-
804-
805 QIPv6Address tmp = header.senderAddress.toIPv6Address();-
806 memcpy(&data->ipi6_addr, &tmp, sizeof(tmp));-
807 cmsgptr = reinterpret_cast<cmsghdr *>(reinterpret_cast<char *>(cmsgptr) + ((((sizeof(*data)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))));-
808 }
never executed: end of block
0
809 }
executed 151 times by 3 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
else {
151
810 if (header.hopLimit != -1
header.hopLimit != -1Description
TRUEnever evaluated
FALSEevaluated 485 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
) {
0-485
811 msg.msg_controllen += ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)));-
812 cmsgptr->cmsg_len = ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(int)));-
813 cmsgptr->cmsg_level = IPPROTO_IP;-
814 cmsgptr->cmsg_type = 2;-
815 memcpy(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)), &header.hopLimit, sizeof(int));-
816 cmsgptr = reinterpret_cast<cmsghdr *>(reinterpret_cast<char *>(cmsgptr) + ((((sizeof(int)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))));-
817 }
never executed: end of block
0
818-
819-
820 if (header.ifindex != 0
header.ifindex != 0Description
TRUEnever evaluated
FALSEevaluated 485 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
|| !header.senderAddress.isNull()
!header.senderAddress.isNull()Description
TRUEnever evaluated
FALSEevaluated 485 times by 2 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
) {
0-485
821-
822 struct in_pktinfo *data = reinterpret_cast<in_pktinfo *>(((unsigned char *) ((struct cmsghdr *) (cmsgptr) + 1)));-
823 memset(data, 0, sizeof(*data));-
824 cmsgptr->cmsg_type = 8;-
825 data->ipi_ifindex = header.ifindex;-
826 data->ipi_addr.s_addr = htonl(header.senderAddress.toIPv4Address());-
827-
828-
829-
830-
831-
832 cmsgptr->cmsg_level = IPPROTO_IP;-
833 msg.msg_controllen += ((((sizeof(*data)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)));-
834 cmsgptr->cmsg_len = ((((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (sizeof(*data)));-
835 cmsgptr = reinterpret_cast<cmsghdr *>(reinterpret_cast<char *>(cmsgptr) + ((((sizeof(*data)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) + (((sizeof (struct cmsghdr)) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))));-
836 }
never executed: end of block
0
837-
838 }
executed 485 times by 2 tests: end of block
Executed by:
  • tst_QUdpSocket
  • tst_qsocks5socketengine - unknown status
485
839-
840 if (msg.msg_controllen == 0
msg.msg_controllen == 0Description
TRUEevaluated 636 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEnever evaluated
)
0-636
841 msg.msg_control = 0;
executed 636 times by 4 tests: msg.msg_control = 0;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
636
842 ssize_t sentBytes = qt_safe_sendmsg(socketDescriptor, &msg, 0);-
843-
844 if (sentBytes < 0
sentBytes < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUdpSocket
FALSEevaluated 635 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
) {
1-635
845 switch ((*__errno_location ())) {-
846 case
executed 1 time by 1 test: case 90:
Executed by:
  • tst_QUdpSocket
90:
executed 1 time by 1 test: case 90:
Executed by:
  • tst_QUdpSocket
1
847 setError(QAbstractSocket::DatagramTooLargeError, DatagramTooLargeErrorString);-
848 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QUdpSocket
1
849 default
never executed: default:
:
never executed: default:
0
850 setError(QAbstractSocket::NetworkError, SendDatagramErrorString);-
851 }
never executed: end of block
0
852 }-
853 return
executed 636 times by 4 tests: return qint64(sentBytes);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
qint64(sentBytes);
executed 636 times by 4 tests: return qint64(sentBytes);
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
636
854}-
855-
856bool QNativeSocketEnginePrivate::fetchConnectionParameters()-
857{-
858 localPort = 0;-
859 localAddress.clear();-
860 peerPort = 0;-
861 peerAddress.clear();-
862 inboundStreamCount = outboundStreamCount = 0;-
863-
864 if (socketDescriptor == -1
socketDescriptor == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlocalsocket - unknown status
FALSEevaluated 5240 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
)
1-5240
865 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_qlocalsocket - unknown status
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_qlocalsocket - unknown status
1
866-
867 qt_sockaddr sa;-
868 socklen_t sockAddrSize = sizeof(sa);-
869-
870-
871 memset(&sa, 0, sizeof(sa));-
872 if (::
::getsockname(...AddrSize) == 0Description
TRUEevaluated 5232 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
getsockname(socketDescriptor, &sa.a, &sockAddrSize) == 0
::getsockname(...AddrSize) == 0Description
TRUEevaluated 5232 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
) {
8-5232
873 qt_socket_getPortAndAddress(&sa, &localPort, &localAddress);-
874-
875-
876 switch (sa.a.sa_family) {-
877 case
executed 3867 times by 28 tests: case 2:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
2:
executed 3867 times by 28 tests: case 2:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
3867
878 socketProtocol = QAbstractSocket::IPv4Protocol;-
879 break;
executed 3867 times by 28 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
3867
880 case
executed 1207 times by 14 tests: case 10:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
10:
executed 1207 times by 14 tests: case 10:
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1207
881 socketProtocol = QAbstractSocket::IPv6Protocol;-
882 break;
executed 1207 times by 14 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
1207
883 default
executed 158 times by 3 tests: default:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_qlocalsocket - unknown status
:
executed 158 times by 3 tests: default:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_qlocalsocket - unknown status
158
884 socketProtocol = QAbstractSocket::UnknownNetworkLayerProtocol;-
885 break;
executed 158 times by 3 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_qlocalsocket - unknown status
158
886 }-
887-
888 } else if ((*
(*__errno_location ()) == 9Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
__errno_location ()) == 9
(*__errno_location ()) == 9Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
) {
0-8
889 setError(QAbstractSocket::UnsupportedSocketOperationError, InvalidSocketErrorString);-
890 return
executed 8 times by 2 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
false;
executed 8 times by 2 tests: return false;
Executed by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
8
891 }-
892-
893-
894-
895-
896-
897-
898 int ipv6only = 0;-
899 socklen_t optlen = sizeof(ipv6only);-
900 if (socketProtocol == QAbstractSocket::IPv6Protocol
socketProtocol...::IPv6ProtocolDescription
TRUEevaluated 1207 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 4025 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
1207-4025
901 && (localAddress == QHostAddress::AnyIPv4
localAddress =...dress::AnyIPv4Description
TRUEnever evaluated
FALSEevaluated 1207 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
|| localAddress == QHostAddress::AnyIPv6
localAddress =...dress::AnyIPv6Description
TRUEevaluated 616 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 591 times by 12 tests
Evaluated by:
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
)
0-1207
902 && !getsockopt(socketDescriptor, IPPROTO_IPV6, 26, (char*)&ipv6only, &optlen )
!getsockopt(so...nly, &optlen )Description
TRUEevaluated 616 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEnever evaluated
) {
0-616
903 if (optlen != sizeof(ipv6only)
optlen != sizeof(ipv6only)Description
TRUEnever evaluated
FALSEevaluated 616 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
)
0-616
904 QMessageLogger(__FILE__, 1076, __PRETTY_FUNCTION__).warning("unexpected size of IPV6_V6ONLY socket option");
never executed: QMessageLogger(__FILE__, 1076, __PRETTY_FUNCTION__).warning("unexpected size of IPV6_V6ONLY socket option");
0
905 if (!ipv6only
!ipv6onlyDescription
TRUEevaluated 580 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 36 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qtcpsocket - unknown status
) {
36-580
906 socketProtocol = QAbstractSocket::AnyIPProtocol;-
907 localAddress = QHostAddress::Any;-
908 }
executed 580 times by 13 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
580
909 }
executed 616 times by 13 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
616
910-
911-
912-
913 if (!::getpeername(socketDescriptor, &sa.a, &sockAddrSize)
!::getpeername...&sockAddrSize)Description
TRUEevaluated 4297 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
FALSEevaluated 935 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
) {
935-4297
914 qt_socket_getPortAndAddress(&sa, &peerPort, &peerAddress);-
915 inboundStreamCount = outboundStreamCount = 1;-
916 }
executed 4297 times by 30 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • ...
4297
917-
918-
919 int value = 0;-
920 socklen_t valueSize = sizeof(int);-
921 if (::
::getsockopt(s...alueSize) == 0Description
TRUEevaluated 5232 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
FALSEnever evaluated
getsockopt(socketDescriptor, 1, 3, &value, &valueSize) == 0
::getsockopt(s...alueSize) == 0Description
TRUEevaluated 5232 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
FALSEnever evaluated
) {
0-5232
922 if (value == SOCK_STREAM
value == SOCK_STREAMDescription
TRUEevaluated 5092 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
FALSEevaluated 140 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
)
140-5092
923 socketType = QAbstractSocket::TcpSocket;
executed 5092 times by 31 tests: socketType = QAbstractSocket::TcpSocket;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
5092
924 else if (value == SOCK_DGRAM
value == SOCK_DGRAMDescription
TRUEevaluated 140 times by 4 tests
Evaluated by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
FALSEnever evaluated
)
0-140
925 socketType = QAbstractSocket::UdpSocket;
executed 140 times by 4 tests: socketType = QAbstractSocket::UdpSocket;
Executed by:
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
140
926 else-
927 socketType = QAbstractSocket::UnknownSocketType;
never executed: socketType = QAbstractSocket::UnknownSocketType;
0
928 }-
929 return
executed 5232 times by 31 tests: return 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_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
true;
executed 5232 times by 31 tests: return 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_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
5232
930}-
931-
932void QNativeSocketEnginePrivate::nativeClose()-
933{-
934-
935-
936-
937-
938 qt_safe_close(socketDescriptor);-
939}
executed 71284 times by 32 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • ...
71284
940-
941qint64 QNativeSocketEnginePrivate::nativeWrite(const char *data, qint64 len)-
942{-
943 QNativeSocketEngine * const q = q_func();-
944-
945 ssize_t writtenBytes;-
946 writtenBytes = qt_safe_write_nosignal(socketDescriptor, data, len);-
947-
948 if (writtenBytes < 0
writtenBytes < 0Description
TRUEevaluated 199 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 912945 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
) {
199-912945
949 switch ((*__errno_location ())) {-
950 case
executed 1 time by 1 test: case 32:
Executed by:
  • tst_qtcpsocket - unknown status
32:
executed 1 time by 1 test: case 32:
Executed by:
  • tst_qtcpsocket - unknown status
1
951 case
never executed: case 104:
104:
never executed: case 104:
0
952 writtenBytes = -1;-
953 setError(QAbstractSocket::RemoteHostClosedError, RemoteHostClosedErrorString);-
954 q->close();-
955 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_qtcpsocket - unknown status
1
956 case
executed 198 times by 2 tests: case 11:
Executed by:
  • tst_QNetworkReply
  • tst_qsslsocket - unknown status
11:
executed 198 times by 2 tests: case 11:
Executed by:
  • tst_QNetworkReply
  • tst_qsslsocket - unknown status
198
957 writtenBytes = 0;-
958 break;
executed 198 times by 2 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_qsslsocket - unknown status
198
959 case
never executed: case 90:
90:
never executed: case 90:
0
960 setError(QAbstractSocket::DatagramTooLargeError, DatagramTooLargeErrorString);-
961 break;
never executed: break;
0
962 default
never executed: default:
:
never executed: default:
0
963 break;
never executed: break;
0
964 }-
965 }-
966-
967-
968-
969-
970-
971-
972-
973 return
executed 913144 times by 27 tests: return qint64(writtenBytes);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
qint64(writtenBytes);
executed 913144 times by 27 tests: return qint64(writtenBytes);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_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_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • ...
913144
974}-
975-
976-
977qint64 QNativeSocketEnginePrivate::nativeRead(char *data, qint64 maxSize)-
978{-
979 QNativeSocketEngine * const q = q_func();-
980 if (!q->isValid()
!q->isValid()Description
TRUEnever evaluated
FALSEevaluated 193247 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
) {
0-193247
981 QMessageLogger(__FILE__, 1168, __PRETTY_FUNCTION__).warning("QNativeSocketEngine::nativeRead: Invalid socket");-
982 return
never executed: return -1;
-1;
never executed: return -1;
0
983 }-
984-
985 ssize_t r = 0;-
986 r = qt_safe_read(socketDescriptor, data, maxSize);-
987-
988 if (r < 0
r < 0Description
TRUEevaluated 1199 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_platformsocketengine - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 192048 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
) {
1199-192048
989 r = -1;-
990 switch ((*__errno_location ())) {-
991-
992-
993-
994 case
executed 1177 times by 2 tests: case 11:
Executed by:
  • tst_QNetworkReply
  • tst_qsocketnotifier - unknown status
11:
executed 1177 times by 2 tests: case 11:
Executed by:
  • tst_QNetworkReply
  • tst_qsocketnotifier - unknown status
1177
995-
996 r = -2;-
997 break;
executed 1177 times by 2 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_qsocketnotifier - unknown status
1177
998 case
executed 1 time by 1 test: case 9:
Executed by:
  • tst_platformsocketengine - unknown status
9:
executed 1 time by 1 test: case 9:
Executed by:
  • tst_platformsocketengine - unknown status
1
999 case
never executed: case 22:
22:
never executed: case 22:
0
1000 case
never executed: case 5:
5:
never executed: case 5:
0
1001-
1002 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_platformsocketengine - unknown status
1
1003 case
executed 21 times by 3 tests: case 104:
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
104:
executed 21 times by 3 tests: case 104:
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
21
1004-
1005-
1006-
1007 r = 0;-
1008 break;
executed 21 times by 3 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_qtcpsocket - unknown status
21
1009 default
never executed: default:
:
never executed: default:
0
1010 break;
never executed: break;
0
1011 }-
1012 }-
1013-
1014-
1015-
1016-
1017-
1018-
1019-
1020 return
executed 193247 times by 29 tests: return qint64(r);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
qint64(r);
executed 193247 times by 29 tests: return qint64(r);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • 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_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • ...
193247
1021}-
1022-
1023int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool selectForRead) const-
1024{-
1025 bool dummy;-
1026 return
executed 262400 times by 20 tests: return nativeSelect(timeout, selectForRead, !selectForRead, &dummy, &dummy);
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
nativeSelect(timeout, selectForRead, !selectForRead, &dummy, &dummy);
executed 262400 times by 20 tests: return nativeSelect(timeout, selectForRead, !selectForRead, &dummy, &dummy);
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
262400
1027}-
1028-
1029int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool checkRead, bool checkWrite,-
1030 bool *selectForRead, bool *selectForWrite) const-
1031{-
1032 pollfd pfd = qt_make_pollfd(socketDescriptor, 0);-
1033-
1034 if (checkRead
checkReadDescription
TRUEevaluated 275986 times by 23 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 1102 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
)
1102-275986
1035 pfd.events |= 0x001;
executed 275986 times by 23 tests: pfd.events |= 0x001;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
275986
1036-
1037 if (checkWrite
checkWriteDescription
TRUEevaluated 10869 times by 22 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 266219 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
)
10869-266219
1038 pfd.events |= 0x004;
executed 10869 times by 22 tests: pfd.events |= 0x004;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
10869
1039-
1040 const int ret = qt_poll_msecs(&pfd, 1, timeout);-
1041-
1042 if (ret <= 0
ret <= 0Description
TRUEevaluated 138 times by 10 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 276950 times by 23 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
)
138-276950
1043 return
executed 138 times by 10 tests: return ret;
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
ret;
executed 138 times by 10 tests: return ret;
Executed by:
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qlocalsocket - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
138
1044-
1045 if (pfd.revents & 0x020
pfd.revents & 0x020Description
TRUEnever evaluated
FALSEevaluated 276950 times by 23 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
) {
0-276950
1046 (*__errno_location ()) = 9;-
1047 return
never executed: return -1;
-1;
never executed: return -1;
0
1048 }-
1049-
1050 static const short read_flags = 0x001 | 0x010 | 0x008;-
1051 static const short write_flags = 0x004 | 0x008;-
1052-
1053 *selectForRead = ((pfd.revents & read_flags) != 0);-
1054 *selectForWrite = ((pfd.revents & write_flags) != 0);-
1055-
1056 return
executed 276950 times by 23 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
ret;
executed 276950 times by 23 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_Spdy
  • tst_platformsocketengine - unknown status
  • tst_qeventloop - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qiodevice - unknown status
  • tst_qlocalsocket - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qtextstream - unknown status
  • tst_qxmlsimplereader - unknown status
276950
1057}-
1058-
1059-
Switch to Source codePreprocessed file

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