qnetworkinterface.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/kernel/qnetworkinterface.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static QList<QNetworkInterfacePrivate *> postProcess(QList<QNetworkInterfacePrivate *> list)-
8{-
9 QList<QNetworkInterfacePrivate *>::Iterator it = list.begin();-
10 const QList<QNetworkInterfacePrivate *>::Iterator end = list.end();-
11 for ( ; it != end
it != endDescription
TRUEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 204 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
; ++it) {
204-612
12 QList<QNetworkAddressEntry>::Iterator addr_it = (*it)->addressEntries.begin();-
13 const QList<QNetworkAddressEntry>::Iterator addr_end = (*it)->addressEntries.end();-
14 for ( ; addr_it != addr_end
addr_it != addr_endDescription
TRUEevaluated 1224 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
; ++addr_it) {
612-1224
15 if (addr_it->ip().protocol() != QAbstractSocket::IPv4Protocol
addr_it->ip()....::IPv4ProtocolDescription
TRUEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
)
612
16 continue;
executed 612 times by 19 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
612
17-
18 if (!addr_it->netmask().isNull()
!addr_it->netmask().isNull()Description
TRUEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEnever evaluated
&& addr_it->broadcast().isNull()
addr_it->broadcast().isNull()Description
TRUEevaluated 204 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 408 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
) {
0-612
19 QHostAddress bcast = addr_it->ip();-
20 bcast = QHostAddress(bcast.toIPv4Address() | ~addr_it->netmask().toIPv4Address());-
21 addr_it->setBroadcast(bcast);-
22 }
executed 204 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
204
23 }
executed 612 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
612
24 }
executed 612 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
612
25-
26 return
executed 204 times by 19 tests: return list;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
list;
executed 204 times by 19 tests: return list;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
204
27}-
28-
29namespace { namespace Q_QGS_manager { typedef QNetworkInterfaceManager Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 20 times by 20 tests
Evaluated by:
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qftp - unknown status
  • tst_qhostinfo - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qnetworkaccessmanager - unknown status
  • tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
  • tst_qnetworkconfiguration - unknown status
  • tst_qnetworkconfigurationmanager - unknown status
  • tst_qnetworkconfigurationmanagerqappless - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qnetworkinterface - unknown status
  • tst_qnetworkproxyfactory - unknown status
  • tst_qnetworksession - unknown status
  • tst_qtcpserver - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qudpsocket - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlstream - unknown status
  • tst_spdy - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 20 times by 20 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qftp - unknown status
  • tst_qhostinfo - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qnetworkaccessmanager - unknown status
  • tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
  • tst_qnetworkconfiguration - unknown status
  • tst_qnetworkconfigurationmanager - unknown status
  • tst_qnetworkconfigurationmanagerqappless - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qnetworkinterface - unknown status
  • tst_qnetworkproxyfactory - unknown status
  • tst_qnetworksession - unknown status
  • tst_qtcpserver - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qudpsocket - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlstream - unknown status
  • tst_spdy - unknown status
}
executed 20 times by 20 tests: end of block
Executed by:
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qftp - unknown status
  • tst_qhostinfo - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qnetworkaccessmanager - unknown status
  • tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
  • tst_qnetworkconfiguration - unknown status
  • tst_qnetworkconfigurationmanager - unknown status
  • tst_qnetworkconfigurationmanagerqappless - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qnetworkinterface - unknown status
  • tst_qnetworkproxyfactory - unknown status
  • tst_qnetworksession - unknown status
  • tst_qtcpserver - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qudpsocket - unknown status
  • tst_qxmlinputsource - unknown status
  • tst_qxmlstream - unknown status
  • tst_spdy - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 204 times by 19 tests: return &holder.value;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
&holder.value;
executed 204 times by 19 tests: return &holder.value;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
} } } static QGlobalStatic<QNetworkInterfaceManager, Q_QGS_manager::innerFunction, Q_QGS_manager::guard> manager;
0-204
30-
31QNetworkInterfaceManager::QNetworkInterfaceManager()-
32{-
33}-
34-
35QNetworkInterfaceManager::~QNetworkInterfaceManager()-
36{-
37}-
38-
39QSharedDataPointer<QNetworkInterfacePrivate> QNetworkInterfaceManager::interfaceFromName(const QString &name)-
40{-
41 QList<QSharedDataPointer<QNetworkInterfacePrivate> > interfaceList = allInterfaces();-
42 QList<QSharedDataPointer<QNetworkInterfacePrivate> >::ConstIterator it = interfaceList.constBegin();-
43-
44 bool ok;-
45 uint index = name.toUInt(&ok);-
46-
47 for ( ; it != interfaceList.constEnd()
it != interfaceList.constEnd()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkInterface
; ++it) {
1-16
48 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
&& (*
(*it)->index == int(index)Description
TRUEnever evaluated
FALSEnever evaluated
it)->index == int(index)
(*it)->index == int(index)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-16
49 return
never executed: return *it;
*it;
never executed: return *it;
0
50 else if ((*
(*it)->name == nameDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
it)->name == name
(*it)->name == nameDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
)
6-10
51 return
executed 6 times by 2 tests: return *it;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
*it;
executed 6 times by 2 tests: return *it;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
6
52 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
10
53-
54 return
executed 1 time by 1 test: return empty;
Executed by:
  • tst_QNetworkInterface
empty;
executed 1 time by 1 test: return empty;
Executed by:
  • tst_QNetworkInterface
1
55}-
56-
57QSharedDataPointer<QNetworkInterfacePrivate> QNetworkInterfaceManager::interfaceFromIndex(int index)-
58{-
59 QList<QSharedDataPointer<QNetworkInterfacePrivate> > interfaceList = allInterfaces();-
60 QList<QSharedDataPointer<QNetworkInterfacePrivate> >::ConstIterator it = interfaceList.constBegin();-
61 for ( ; it != interfaceList.constEnd()
it != interfaceList.constEnd()Description
TRUEevaluated 66 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
FALSEevaluated 18 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
; ++it)
18-66
62 if ((*
(*it)->index == indexDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QUdpSocket
FALSEevaluated 60 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
it)->index == index
(*it)->index == indexDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QUdpSocket
FALSEevaluated 60 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
)
6-60
63 return
executed 6 times by 2 tests: return *it;
Executed by:
  • tst_QNetworkInterface
  • tst_QUdpSocket
*it;
executed 6 times by 2 tests: return *it;
Executed by:
  • tst_QNetworkInterface
  • tst_QUdpSocket
6
64-
65 return
executed 18 times by 16 tests: return empty;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
empty;
executed 18 times by 16 tests: return empty;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
18
66}-
67-
68QList<QSharedDataPointer<QNetworkInterfacePrivate> > QNetworkInterfaceManager::allInterfaces()-
69{-
70 const QList<QNetworkInterfacePrivate *> list = postProcess(scan());-
71 QList<QSharedDataPointer<QNetworkInterfacePrivate> > result;-
72 result.reserve(list.size());-
73-
74 for (QNetworkInterfacePrivate *ptr : list)-
75 result << QSharedDataPointer<QNetworkInterfacePrivate>(ptr);
executed 612 times by 19 tests: result << QSharedDataPointer<QNetworkInterfacePrivate>(ptr);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
612
76-
77 return
executed 204 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
result;
executed 204 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
204
78}-
79-
80QString QNetworkInterfacePrivate::makeHwAddress(int len, uchar *data)-
81{-
82 const int outLen = qMax(len * 2 + (len - 1) * 1, 0);-
83 QString result(outLen, Qt::Uninitialized);-
84 QChar *out = result.data();-
85 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 3672 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
; ++i) {
612-3672
86 if (i
iDescription
TRUEevaluated 3060 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
FALSEevaluated 612 times by 19 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
)
612-3060
87 *
executed 3060 times by 19 tests: *out++ = QLatin1Char(':');
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
out++ = QLatin1Char(':');
executed 3060 times by 19 tests: *out++ = QLatin1Char(':');
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
3060
88 *out++ = QLatin1Char(QtMiscUtils::toHexUpper(data[i] / 16));-
89 *out++ = QLatin1Char(QtMiscUtils::toHexUpper(data[i] % 16));-
90 }
executed 3672 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
3672
91 return
executed 612 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
result;
executed 612 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
612
92}-
93QNetworkAddressEntry::QNetworkAddressEntry()-
94 : d(new QNetworkAddressEntryPrivate)-
95{-
96}
executed 1860 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1860
97-
98-
99-
100-
101-
102QNetworkAddressEntry::QNetworkAddressEntry(const QNetworkAddressEntry &other)-
103 : d(new QNetworkAddressEntryPrivate(*other.d.data()))-
104{-
105}
executed 1248 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
1248
106-
107-
108-
109-
110QNetworkAddressEntry &QNetworkAddressEntry::operator=(const QNetworkAddressEntry &other)-
111{-
112 *d.data() = *other.d.data();-
113 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_qnetworkaddressentry - unknown status
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_qnetworkaddressentry - unknown status
1
114}-
115QNetworkAddressEntry::~QNetworkAddressEntry()-
116{-
117}-
118-
119-
120-
121-
122-
123bool QNetworkAddressEntry::operator==(const QNetworkAddressEntry &other) const-
124{-
125 if (d == other.d
d == other.dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) return
executed 1 time by 1 test: return true;
Executed by:
  • tst_qnetworkaddressentry - unknown status
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_qnetworkaddressentry - unknown status
1-4
126 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
|| !other.d
!other.dDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
) return
never executed: return false;
false;
never executed: return false;
0-4
127 return
executed 4 times by 1 test: return d->address == other.d->address && d->netmask == other.d->netmask && d->broadcast == other.d->broadcast;
Executed by:
  • tst_qnetworkaddressentry - unknown status
d->address == other.d->address &&
executed 4 times by 1 test: return d->address == other.d->address && d->netmask == other.d->netmask && d->broadcast == other.d->broadcast;
Executed by:
  • tst_qnetworkaddressentry - unknown status
4
128 d->netmask == other.d->netmask &&
executed 4 times by 1 test: return d->address == other.d->address && d->netmask == other.d->netmask && d->broadcast == other.d->broadcast;
Executed by:
  • tst_qnetworkaddressentry - unknown status
4
129 d->broadcast == other.d->broadcast;
executed 4 times by 1 test: return d->address == other.d->address && d->netmask == other.d->netmask && d->broadcast == other.d->broadcast;
Executed by:
  • tst_qnetworkaddressentry - unknown status
4
130}-
131QHostAddress QNetworkAddressEntry::ip() const-
132{-
133 return
executed 4698 times by 20 tests: return d->address;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
d->address;
executed 4698 times by 20 tests: return d->address;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
4698
134}-
135-
136-
137-
138-
139-
140void QNetworkAddressEntry::setIp(const QHostAddress &newIp)-
141{-
142 d->address = newIp;-
143}
executed 1861 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1861
144QHostAddress QNetworkAddressEntry::netmask() const-
145{-
146 return
executed 965 times by 20 tests: return d->netmask;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
d->netmask;
executed 965 times by 20 tests: return d->netmask;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
965
147}-
148void QNetworkAddressEntry::setNetmask(const QHostAddress &newNetmask)-
149{-
150 if (newNetmask.protocol() != ip().protocol()
newNetmask.pro...p().protocol()Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_qnetworkaddressentry - unknown status
FALSEevaluated 1244 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
) {
42-1244
151 d->netmask = QNetmaskAddress();-
152 return;
executed 42 times by 1 test: return;
Executed by:
  • tst_qnetworkaddressentry - unknown status
42
153 }-
154-
155 d->netmask.setAddress(newNetmask);-
156}
executed 1244 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1244
157int QNetworkAddressEntry::prefixLength() const-
158{-
159 return
executed 107 times by 2 tests: return d->netmask.prefixLength();
Executed by:
  • tst_QNetworkInterface
  • tst_qnetworkaddressentry - unknown status
d->netmask.prefixLength();
executed 107 times by 2 tests: return d->netmask.prefixLength();
Executed by:
  • tst_QNetworkInterface
  • tst_qnetworkaddressentry - unknown status
107
160}-
161void QNetworkAddressEntry::setPrefixLength(int length)-
162{-
163 d->netmask.setPrefixLength(d->address.protocol(), length);-
164}
executed 60 times by 1 test: end of block
Executed by:
  • tst_qnetworkaddressentry - unknown status
60
165QHostAddress QNetworkAddressEntry::broadcast() const-
166{-
167 return
executed 640 times by 20 tests: return d->broadcast;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
d->broadcast;
executed 640 times by 20 tests: return d->broadcast;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
640
168}-
169-
170-
171-
172-
173-
174void QNetworkAddressEntry::setBroadcast(const QHostAddress &newBroadcast)-
175{-
176 d->broadcast = newBroadcast;-
177}
executed 1023 times by 20 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qnetworkaddressentry - unknown status
  • tst_qtcpsocket - unknown status
1023
178QNetworkInterface::QNetworkInterface()-
179 : d(0)-
180{-
181}
executed 558 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
558
182-
183-
184-
185-
186QNetworkInterface::~QNetworkInterface()-
187{-
188}-
189-
190-
191-
192-
193-
194QNetworkInterface::QNetworkInterface(const QNetworkInterface &other)-
195 : d(other.d)-
196{-
197}
executed 999 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
999
198-
199-
200-
201-
202-
203QNetworkInterface &QNetworkInterface::operator=(const QNetworkInterface &other)-
204{-
205 d = other.d;-
206 return
never executed: return *this;
*this;
never executed: return *this;
0
207}-
208bool QNetworkInterface::isValid() const-
209{-
210 return
executed 497 times by 19 tests: return !name().isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
!name().isEmpty();
executed 497 times by 19 tests: return !name().isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
497
211}-
212int QNetworkInterface::index() const-
213{-
214 return
executed 648 times by 18 tests: return d ? d->index : 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
d ? d->index : 0;
executed 648 times by 18 tests: return d ? d->index : 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
648
215}-
216-
217-
218-
219-
220-
221-
222-
223QString QNetworkInterface::name() const-
224{-
225 return
executed 1247 times by 19 tests: return d ? d->name : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
d ? d->name : QString();
executed 1247 times by 19 tests: return d ? d->name : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
1247
226}-
227QString QNetworkInterface::humanReadableName() const-
228{-
229 return
executed 323 times by 18 tests: return d ? !d->friendlyName.isEmpty() ? d->friendlyName : name() : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
d ? !d->friendlyName.isEmpty() ? d->friendlyName : name() : QString();
executed 323 times by 18 tests: return d ? !d->friendlyName.isEmpty() ? d->friendlyName : name() : QString();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
323
230}-
231-
232-
233-
234-
235QNetworkInterface::InterfaceFlags QNetworkInterface::flags() const-
236{-
237 return
executed 817 times by 18 tests: return d ? d->flags : InterfaceFlags(0);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
d ? d->flags : InterfaceFlags(0);
executed 817 times by 18 tests: return d ? d->flags : InterfaceFlags(0);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
817
238}-
239QString QNetworkInterface::hardwareAddress() const-
240{-
241 return
executed 4 times by 1 test: return d ? d->hardwareAddress : QString();
Executed by:
  • tst_QNetworkInterface
d ? d->hardwareAddress : QString();
executed 4 times by 1 test: return d ? d->hardwareAddress : QString();
Executed by:
  • tst_QNetworkInterface
4
242}-
243QList<QNetworkAddressEntry> QNetworkInterface::addressEntries() const-
244{-
245 return
executed 357 times by 19 tests: return d ? d->addressEntries : QList<QNetworkAddressEntry>();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
d ? d->addressEntries : QList<QNetworkAddressEntry>();
executed 357 times by 19 tests: return d ? d->addressEntries : QList<QNetworkAddressEntry>();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
357
246}-
247int QNetworkInterface::interfaceIndexFromName(const QString &name)-
248{-
249 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 1556 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QHostInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_platformsocketengine - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qimagereader - unknown status
  • tst_qobject - unknown status
  • tst_qsocketnotifier - unknown status
  • tst_qsocks5socketengine - unknown status
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
  • tst_qxmlsimplereader - unknown status
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
)
27-1556
250 return
executed 1556 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 1556 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
1556
251-
252 bool ok;-
253 uint id = name.toUInt(&ok);-
254 if (!ok
!okDescription
TRUEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
FALSEnever evaluated
)
0-27
255 id = QNetworkInterfaceManager::interfaceIndexFromName(name);
executed 27 times by 3 tests: id = QNetworkInterfaceManager::interfaceIndexFromName(name);
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
27
256 return
executed 27 times by 3 tests: return int(id);
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
int(id);
executed 27 times by 3 tests: return int(id);
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
27
257}-
258QNetworkInterface QNetworkInterface::interfaceFromName(const QString &name)-
259{-
260 QNetworkInterface result;-
261 result.d = manager()->interfaceFromName(name);-
262 return
executed 7 times by 2 tests: return result;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
result;
executed 7 times by 2 tests: return result;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkSession
7
263}-
264QNetworkInterface QNetworkInterface::interfaceFromIndex(int index)-
265{-
266 QNetworkInterface result;-
267 result.d = manager()->interfaceFromIndex(index);-
268 return
executed 24 times by 16 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
result;
executed 24 times by 16 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
24
269}-
270QString QNetworkInterface::interfaceNameFromIndex(int index)-
271{-
272 if (!index
!indexDescription
TRUEnever evaluated
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
)
0-33
273 return
never executed: return QString();
QString();
never executed: return QString();
0
274 return
executed 33 times by 3 tests: return QNetworkInterfaceManager::interfaceNameFromIndex(index);
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
QNetworkInterfaceManager::interfaceNameFromIndex(index);
executed 33 times by 3 tests: return QNetworkInterfaceManager::interfaceNameFromIndex(index);
Executed by:
  • tst_QNetworkInterface
  • tst_QTcpServer
  • tst_QUdpSocket
33
275}-
276-
277-
278-
279-
280-
281QList<QNetworkInterface> QNetworkInterface::allInterfaces()-
282{-
283 const QList<QSharedDataPointer<QNetworkInterfacePrivate> > privs = manager()->allInterfaces();-
284 QList<QNetworkInterface> result;-
285 result.reserve(privs.size());-
286 for (const auto &p : privs) {-
287 QNetworkInterface item;-
288 item.d = p;-
289 result << item;-
290 }
executed 507 times by 19 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
507
291-
292 return
executed 169 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
result;
executed 169 times by 19 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qtcpsocket - unknown status
169
293}-
294-
295-
296-
297-
298-
299-
300-
301QList<QHostAddress> QNetworkInterface::allAddresses()-
302{-
303 const QList<QSharedDataPointer<QNetworkInterfacePrivate> > privs = manager()->allInterfaces();-
304 QList<QHostAddress> result;-
305 for (const auto &p : privs) {-
306 for (const QNetworkAddressEntry &entry : qAsConst(p->addressEntries))-
307 result += entry.ip();
executed 24 times by 2 tests: result += entry.ip();
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
24
308 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
12
309-
310 return
executed 4 times by 2 tests: return result;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
result;
executed 4 times by 2 tests: return result;
Executed by:
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
4
311}-
312-
313-
314static inline QDebug flagsDebug(QDebug debug, QNetworkInterface::InterfaceFlags flags)-
315{-
316 if (flags & QNetworkInterface::IsUp
flags & QNetwo...nterface::IsUpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
317 debug << "IsUp ";
never executed: debug << "IsUp ";
0
318 if (flags & QNetworkInterface::IsRunning
flags & QNetwo...ace::IsRunningDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
319 debug << "IsRunning ";
never executed: debug << "IsRunning ";
0
320 if (flags & QNetworkInterface::CanBroadcast
flags & QNetwo...::CanBroadcastDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
321 debug << "CanBroadcast ";
never executed: debug << "CanBroadcast ";
0
322 if (flags & QNetworkInterface::IsLoopBack
flags & QNetwo...ce::IsLoopBackDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
323 debug << "IsLoopBack ";
never executed: debug << "IsLoopBack ";
0
324 if (flags & QNetworkInterface::IsPointToPoint
flags & QNetwo...IsPointToPointDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
325 debug << "IsPointToPoint ";
never executed: debug << "IsPointToPoint ";
0
326 if (flags & QNetworkInterface::CanMulticast
flags & QNetwo...::CanMulticastDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
327 debug << "CanMulticast ";
never executed: debug << "CanMulticast ";
0
328 return
never executed: return debug;
debug;
never executed: return debug;
0
329}-
330-
331static inline QDebug operator<<(QDebug debug, const QNetworkAddressEntry &entry)-
332{-
333 debug << "(address = " << entry.ip();-
334 if (!entry.netmask().isNull()
!entry.netmask().isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
335 debug << ", netmask = " << entry.netmask();
never executed: debug << ", netmask = " << entry.netmask();
0
336 if (!entry.broadcast().isNull()
!entry.broadcast().isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
337 debug << ", broadcast = " << entry.broadcast();
never executed: debug << ", broadcast = " << entry.broadcast();
0
338 debug << ')';-
339 return
never executed: return debug;
debug;
never executed: return debug;
0
340}-
341-
342QDebug operator<<(QDebug debug, const QNetworkInterface &networkInterface)-
343{-
344 QDebugStateSaver saver(debug);-
345 debug.resetFormat().nospace();-
346 debug << "QNetworkInterface(name = " << networkInterface.name()-
347 << ", hardware address = " << networkInterface.hardwareAddress()-
348 << ", flags = ";-
349 flagsDebug(debug, networkInterface.flags());-
350 debug << ", entries = " << networkInterface.addressEntries()-
351 << ")\n";-
352 return
never executed: return debug;
debug;
never executed: return debug;
0
353}-
354-
355-
356-
Switch to Source codePreprocessed file

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