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