qiodevice.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qiodevice.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9static void checkWarnMessage(const QIODevice *device, const char *function, const char *what)-
10{-
11-
12 QDebug d = QMessageLogger(__FILE__, 93, __PRETTY_FUNCTION__).warning();-
13 d.noquote();-
14 d.nospace();-
15 d << "QIODevice::" << function;-
16-
17 d << " (" << device->metaObject()->className();-
18 if (!device->objectName().isEmpty()
!device->objec...me().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 168 times by 9 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
)
0-168
19 d << ", \"" << device->objectName() << '"';
never executed: d << ", \"" << device->objectName() << '"';
0
20 if (const
const QFile *f...ile *>(device)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QString
FALSEevaluated 165 times by 7 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
QFile *f = qobject_cast<const QFile *>(device)
const QFile *f...ile *>(device)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QString
FALSEevaluated 165 times by 7 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
)
3-165
21 d << ", \"" << QDir::toNativeSeparators(f->fileName()) << '"';
executed 3 times by 2 tests: d << ", \"" << QDir::toNativeSeparators(f->fileName()) << '"';
Executed by:
  • tst_QFile
  • tst_QString
3
22 d << ')';-
23-
24-
25-
26 d << ": " << what;-
27-
28-
29-
30-
31-
32}
executed 168 times by 9 tests: end of block
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
168
33QIODevicePrivate::QIODevicePrivate()-
34 : openMode(QIODevice::NotOpen),-
35 pos(0), devicePos(0),-
36 readChannelCount(0),-
37 writeChannelCount(0),-
38 currentReadChannel(0),-
39 currentWriteChannel(0),-
40 readBufferChunkSize(16384),-
41 writeBufferChunkSize(0),-
42 transactionPos(0),-
43 transactionStarted(false)-
44 , baseReadLineDataCalled(false)-
45 , accessMode(Unset)-
46-
47-
48-
49{-
50}
executed 89060 times by 265 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSocket
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
89060
51-
52-
53-
54-
55QIODevicePrivate::~QIODevicePrivate()-
56{-
57}-
58QIODevice::QIODevice()-
59 : QObject(*new QIODevicePrivate, 0)-
60{-
61-
62-
63-
64-
65-
66}
executed 199 times by 4 tests: end of block
Executed by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QTextStream
  • tst_Spdy
199
67-
68-
69-
70-
71-
72QIODevice::QIODevice(QObject *parent)-
73 : QObject(*new QIODevicePrivate, parent)-
74{-
75-
76-
77-
78}
executed 13 times by 1 test: end of block
Executed by:
  • tst_QNetworkReply
13
79-
80-
81-
82-
83QIODevice::QIODevice(QIODevicePrivate &dd, QObject *parent)-
84 : QObject(dd, parent)-
85{-
86}
executed 88848 times by 265 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSocket
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
88848
87QIODevice::~QIODevice()-
88{-
89-
90-
91-
92}-
93bool QIODevice::isSequential() const-
94{-
95 return
executed 12405 times by 79 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkReply
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
false;
executed 12405 times by 79 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkReply
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
12405
96}-
97-
98-
99-
100-
101-
102-
103-
104QIODevice::OpenMode QIODevice::openMode() const-
105{-
106 return
executed 205379 times by 236 tests: return d_func()->openMode;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
d_func()->openMode;
executed 205379 times by 236 tests: return d_func()->openMode;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
205379
107}-
108void QIODevice::setOpenMode(OpenMode openMode)-
109{-
110 QIODevicePrivate * const d = d_func();-
111-
112-
113-
114 d->openMode = openMode;-
115 d->accessMode = QIODevicePrivate::Unset;-
116 d->setReadChannelCount(isReadable() ? qMax(d->readChannelCount, 1) : 0);-
117 d->setWriteChannelCount(isWritable() ? qMax(d->writeChannelCount, 1) : 0);-
118}
executed 770 times by 12 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QFileDialog2
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTemporaryFile
  • tst_Spdy
770
119void QIODevice::setTextModeEnabled(bool enabled)-
120{-
121 QIODevicePrivate * const d = d_func();-
122 if (!isOpen()
!isOpen()Description
TRUEnever evaluated
FALSEevaluated 82080469 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
) {
0-82080469
123 checkWarnMessage(this, "setTextModeEnabled", "The device is not open");-
124 return;
never executed: return;
0
125 }-
126 if (enabled
enabledDescription
TRUEevaluated 41040053 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 41040416 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
)
41040053-41040416
127 d->openMode |= Text;
executed 41040053 times by 6 tests: d->openMode |= Text;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41040053
128 else-
129 d->openMode &= ~Text;
executed 41040416 times by 7 tests: d->openMode &= ~Text;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
41040416
130}-
131-
132-
133-
134-
135-
136-
137bool QIODevice::isTextModeEnabled() const-
138{-
139 return
executed 41042623 times by 18 tests: return d_func()->openMode & Text;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
d_func()->openMode & Text;
executed 41042623 times by 18 tests: return d_func()->openMode & Text;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
41042623
140}-
141bool QIODevice::isOpen() const-
142{-
143 return
executed 82532409 times by 265 tests: return d_func()->openMode != NotOpen;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
d_func()->openMode != NotOpen;
executed 82532409 times by 265 tests: return d_func()->openMode != NotOpen;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
82532409
144}-
145bool QIODevice::isReadable() const-
146{-
147 return
executed 126507 times by 236 tests: return (openMode() & ReadOnly) != 0;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
(openMode() & ReadOnly) != 0;
executed 126507 times by 236 tests: return (openMode() & ReadOnly) != 0;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
126507
148}-
149bool QIODevice::isWritable() const-
150{-
151 return
executed 78711 times by 235 tests: return (openMode() & WriteOnly) != 0;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
(openMode() & WriteOnly) != 0;
executed 78711 times by 235 tests: return (openMode() & WriteOnly) != 0;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
78711
152}-
153int QIODevice::readChannelCount() const-
154{-
155 return
executed 776 times by 9 tests: return d_func()->readChannelCount;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
d_func()->readChannelCount;
executed 776 times by 9 tests: return d_func()->readChannelCount;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
776
156}-
157int QIODevice::writeChannelCount() const-
158{-
159 return
executed 776 times by 9 tests: return d_func()->writeChannelCount;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
d_func()->writeChannelCount;
executed 776 times by 9 tests: return d_func()->writeChannelCount;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
776
160}-
161int QIODevice::currentReadChannel() const-
162{-
163 return
never executed: return d_func()->currentReadChannel;
d_func()->currentReadChannel;
never executed: return d_func()->currentReadChannel;
0
164}-
165void QIODevice::setCurrentReadChannel(int channel)-
166{-
167 QIODevicePrivate * const d = d_func();-
168-
169 if (d->transactionStarted
d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 5181 times by 18 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
) {
0-5181
170 checkWarnMessage(this, "setReadChannel", "Failed due to read transaction being in progress");-
171 return;
never executed: return;
0
172 }-
173-
174-
175-
176-
177-
178-
179 d->setCurrentReadChannel(channel);-
180}
executed 5181 times by 18 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
5181
181-
182-
183-
184-
185void QIODevicePrivate::setReadChannelCount(int count)-
186{-
187 if (count > readBuffers.size()
count > readBuffers.size()Description
TRUEevaluated 66663 times by 233 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 77495 times by 253 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
) {
66663-77495
188 readBuffers.insert(readBuffers.end(), count - readBuffers.size(),-
189 QRingBuffer(readBufferChunkSize));-
190 }
executed 66663 times by 233 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
else {
66663
191 readBuffers.resize(count);-
192 }
executed 77495 times by 253 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
77495
193 readChannelCount = count;-
194 setCurrentReadChannel(currentReadChannel);-
195}
executed 144158 times by 273 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
144158
196int QIODevice::currentWriteChannel() const-
197{-
198 return
never executed: return d_func()->currentWriteChannel;
d_func()->currentWriteChannel;
never executed: return d_func()->currentWriteChannel;
0
199}-
200void QIODevice::setCurrentWriteChannel(int channel)-
201{-
202 QIODevicePrivate * const d = d_func();-
203-
204-
205-
206-
207-
208-
209 d->setCurrentWriteChannel(channel);-
210}
never executed: end of block
0
211-
212-
213-
214-
215void QIODevicePrivate::setWriteChannelCount(int count)-
216{-
217 if (count > writeBuffers.size()
count > writeBuffers.size()Description
TRUEevaluated 24805 times by 144 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • ...
FALSEevaluated 74019 times by 210 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
) {
24805-74019
218-
219-
220 if (writeBufferChunkSize != 0
writeBufferChunkSize != 0Description
TRUEevaluated 17771 times by 100 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 7034 times by 70 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
) {
7034-17771
221 writeBuffers.insert(writeBuffers.end(), count - writeBuffers.size(),-
222 QRingBuffer(writeBufferChunkSize));-
223 }
executed 17771 times by 100 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
17771
224 }
executed 24805 times by 144 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • ...
else {
24805
225 writeBuffers.resize(count);-
226 }
executed 74019 times by 210 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
74019
227 writeChannelCount = count;-
228 setCurrentWriteChannel(currentWriteChannel);-
229}
executed 98824 times by 237 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
98824
230bool QIODevice::open(OpenMode mode)-
231{-
232 QIODevicePrivate * const d = d_func();-
233 d->openMode = mode;-
234 d->pos = (
(mode & Append)Description
TRUEevaluated 285 times by 10 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QBuffer
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QLocalSocket
  • tst_QMetaObjectBuilder
  • tst_QPrinter
  • tst_qfileopenevent
  • tst_qmakelib
FALSEevaluated 70920 times by 235 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
mode & Append)
(mode & Append)Description
TRUEevaluated 285 times by 10 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QBuffer
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QLocalSocket
  • tst_QMetaObjectBuilder
  • tst_QPrinter
  • tst_qfileopenevent
  • tst_qmakelib
FALSEevaluated 70920 times by 235 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
? size() : qint64(0);
285-70920
235 d->accessMode = QIODevicePrivate::Unset;-
236 d->readBuffers.clear();-
237 d->writeBuffers.clear();-
238 d->setReadChannelCount(isReadable() ? 1 : 0);-
239 d->setWriteChannelCount(isWritable() ? 1 : 0);-
240-
241-
242-
243 return
executed 71205 times by 235 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
true;
executed 71205 times by 235 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
71205
244}-
245-
246-
247-
248-
249-
250-
251-
252void QIODevice::close()-
253{-
254 QIODevicePrivate * const d = d_func();-
255 if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 1937 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 55374 times by 233 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
1937-55374
256 return;
executed 1937 times by 18 tests: return;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_Spdy
1937
257-
258-
259-
260-
261-
262-
263 aboutToClose();-
264-
265 d->openMode = NotOpen;-
266 d->errorString.clear();-
267 d->pos = 0;-
268 d->transactionStarted = false;-
269 d->transactionPos = 0;-
270 d->setReadChannelCount(0);-
271-
272 d->writeChannelCount = 0;-
273}
executed 55374 times by 233 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
55374
274qint64 QIODevice::pos() const-
275{-
276 const QIODevicePrivate * const d = d_func();-
277-
278-
279-
280 return
executed 10231566 times by 151 tests: return d->pos;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
d->pos;
executed 10231566 times by 151 tests: return d->pos;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
10231566
281}-
282qint64 QIODevice::size() const-
283{-
284 return
executed 74 times by 4 tests: return d_func()->isSequential() ? bytesAvailable() : qint64(0);
Executed by:
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
d_func()->isSequential() ? bytesAvailable() : qint64(0);
executed 74 times by 4 tests: return d_func()->isSequential() ? bytesAvailable() : qint64(0);
Executed by:
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
74
285}-
286bool QIODevice::seek(qint64 pos)-
287{-
288 QIODevicePrivate * const d = d_func();-
289 if (d->isSequential()
d->isSequential()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
FALSEevaluated 297795 times by 108 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
12-297795
290 checkWarnMessage(this, "seek", "Cannot call seek on a sequential device");-
291 return
executed 12 times by 3 tests: return false;
Executed by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
false;
executed 12 times by 3 tests: return false;
Executed by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
12
292 }-
293 if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEnever evaluated
FALSEevaluated 297795 times by 108 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
0-297795
294 checkWarnMessage(this, "seek", "The device is not open");-
295 return
never executed: return false;
false;
never executed: return false;
0
296 }-
297 if (pos < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 297795 times by 108 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
0-297795
298 QMessageLogger(__FILE__, 861, __PRETTY_FUNCTION__).warning("QIODevice::seek: Invalid pos: %lld", pos);-
299 return
never executed: return false;
false;
never executed: return false;
0
300 }-
301-
302-
303-
304-
305-
306-
307 d->devicePos = pos;-
308 d->seekBuffer(pos);-
309-
310-
311-
312-
313-
314 return
executed 297795 times by 108 tests: return true;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
true;
executed 297795 times by 108 tests: return true;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
297795
315}-
316-
317-
318-
319-
320void QIODevicePrivate::seekBuffer(qint64 newPos)-
321{-
322 const qint64 offset = newPos - pos;-
323 pos = newPos;-
324-
325 if (offset < 0
offset < 0Description
TRUEevaluated 163179 times by 96 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
FALSEevaluated 168725 times by 99 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
|| offset >= buffer.size()
offset >= buffer.size()Description
TRUEevaluated 168244 times by 99 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 481 times by 8 tests
Evaluated by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
) {
481-168725
326-
327-
328-
329 buffer.clear();-
330 }
executed 331423 times by 109 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
else {
331423
331 buffer.free(offset);-
332 }
executed 481 times by 8 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
481
333}-
334bool QIODevice::atEnd() const-
335{-
336 const QIODevicePrivate * const d = d_func();-
337 const bool result = (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QBuffer
  • tst_QProcess
  • tst_QSslSocket
FALSEevaluated 6887 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QStandardItemModel
  • ...
|| (d->isBufferEmpty()
d->isBufferEmpty()Description
TRUEevaluated 6188 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QStandardItemModel
  • ...
FALSEevaluated 699 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QIODevice
  • tst_QImageReader
  • tst_QProcess
  • tst_QTcpSocket
7-6887
338 && bytesAvailable() == 0
bytesAvailable() == 0Description
TRUEevaluated 2201 times by 25 tests
Evaluated by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QStandardItemModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTranslator
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 3987 times by 24 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QStandardItemModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTranslator
  • tst_qmakelib
));
2201-3987
339-
340-
341-
342-
343 return
executed 6894 times by 31 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSslSocket
  • ...
result;
executed 6894 times by 31 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSslSocket
  • ...
6894
344}-
345bool QIODevice::reset()-
346{-
347-
348-
349-
350 return
executed 384 times by 10 tests: return seek(0);
Executed by:
  • tst_QDate
  • tst_QFile
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QTemporaryFile
  • tst_QTextStream
seek(0);
executed 384 times by 10 tests: return seek(0);
Executed by:
  • tst_QDate
  • tst_QFile
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QTemporaryFile
  • tst_QTextStream
384
351}-
352qint64 QIODevice::bytesAvailable() const-
353{-
354 const QIODevicePrivate * const d = d_func();-
355 if (!d->isSequential()
!d->isSequential()Description
TRUEevaluated 9984 times by 58 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
FALSEevaluated 106572 times by 28 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
)
9984-106572
356 return
executed 9984 times by 58 tests: return qMax(size() - d->pos, qint64(0));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
qMax(size() - d->pos, qint64(0));
executed 9984 times by 58 tests: return qMax(size() - d->pos, qint64(0));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
9984
357 return
executed 106572 times by 28 tests: return d->buffer.size() - d->transactionPos;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
d->buffer.size() - d->transactionPos;
executed 106572 times by 28 tests: return d->buffer.size() - d->transactionPos;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
106572
358}-
359qint64 QIODevice::bytesToWrite() const-
360{-
361 return
executed 41893 times by 17 tests: return d_func()->writeBuffer.size();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdbusxml2cpp
  • tst_spdy - unknown status
d_func()->writeBuffer.size();
executed 41893 times by 17 tests: return d_func()->writeBuffer.size();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdbusxml2cpp
  • tst_spdy - unknown status
41893
362}-
363qint64 QIODevice::read(char *data, qint64 maxSize)-
364{-
365 QIODevicePrivate * const d = d_func();-
366-
367-
368-
369-
370-
371-
372 const bool sequential = d->isSequential();-
373 const bool keepDataInBuffer = sequential
sequentialDescription
TRUEevaluated 622589 times by 51 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRawFont
  • tst_QSharedPointer
  • ...
FALSEevaluated 48080659 times by 168 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • ...
&& d->transactionStarted
d->transactionStartedDescription
TRUEevaluated 11432 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 611157 times by 51 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRawFont
  • tst_QSharedPointer
  • ...
;
11432-48080659
374-
375-
376 if (maxSize == 1
maxSize == 1Description
TRUEevaluated 47672997 times by 86 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • ...
FALSEevaluated 1030251 times by 186 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • ...
&& !keepDataInBuffer
!keepDataInBufferDescription
TRUEevaluated 47671065 times by 86 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • ...
FALSEevaluated 1932 times by 7 tests
Evaluated by:
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
) {
1932-47672997
377 int chint;-
378 while ((
(chint = d->bu...tChar()) != -1Description
TRUEevaluated 42998528 times by 56 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • ...
FALSEevaluated 4672538 times by 80 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
chint = d->buffer.getChar()) != -1
(chint = d->bu...tChar()) != -1Description
TRUEevaluated 42998528 times by 56 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • ...
FALSEevaluated 4672538 times by 80 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
) {
4672538-42998528
379 if (!sequential
!sequentialDescription
TRUEevaluated 42599224 times by 47 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • ...
FALSEevaluated 399304 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_Spdy
)
399304-42599224
380 ++
executed 42599224 times by 47 tests: ++d->pos;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • ...
d->pos;
executed 42599224 times by 47 tests: ++d->pos;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • ...
42599224
381-
382 char c = char(uchar(chint));-
383 if (c == '\r'
c == '\r'Description
TRUEevaluated 27926 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_Spdy
FALSEevaluated 42970602 times by 56 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • ...
&& (d->openMode & Text))
27926-42970602
384 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QFile
1
385 *data = c;-
386-
387-
388-
389-
390 if (d->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 3665 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QProcess
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Spdy
FALSEevaluated 42994862 times by 55 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • ...
)
3665-42994862
391 readData(data, 0);
executed 3665 times by 22 tests: readData(data, 0);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QProcess
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Spdy
3665
392 return
executed 42998527 times by 56 tests: return qint64(1);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • ...
qint64(1);
executed 42998527 times by 56 tests: return qint64(1);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • ...
42998527
393 }-
394 }
executed 4672538 times by 80 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
4672538
395-
396 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 5704721 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
) { checkWarnMessage(this, "read", "Called with maxSize < 0"); return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
} } while (0);
0-5704721
397 qint64 readSoFar = 0;-
398 bool madeBufferReadsOnly = true;-
399 bool deviceAtEof = false;-
400 char *readPtr = data;-
401 for(;;) {-
402-
403 qint64 bufferReadChunkSize = keepDataInBuffer
keepDataInBufferDescription
TRUEevaluated 15488 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 7775691 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
15488-7775691
404 ? d->buffer.peek(data, maxSize, d->transactionPos)-
405 : d->buffer.read(data, maxSize);-
406 if (bufferReadChunkSize > 0
bufferReadChunkSize > 0Description
TRUEevaluated 837056 times by 143 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • ...
FALSEevaluated 6954123 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
) {
837056-6954123
407 if (keepDataInBuffer
keepDataInBufferDescription
TRUEevaluated 11882 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 825174 times by 143 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • ...
)
11882-825174
408 d->transactionPos += bufferReadChunkSize;
executed 11882 times by 13 tests: d->transactionPos += bufferReadChunkSize;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
11882
409 else if (!sequential
!sequentialDescription
TRUEevaluated 774216 times by 122 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 50958 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • ...
)
50958-774216
410 d->pos += bufferReadChunkSize;
executed 774216 times by 122 tests: d->pos += bufferReadChunkSize;
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
774216
411 readSoFar += bufferReadChunkSize;-
412 data += bufferReadChunkSize;-
413 maxSize -= bufferReadChunkSize;-
414-
415-
416-
417-
418 }
executed 837056 times by 143 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • ...
else {
837056
419 do { if ((
(d->openMode & ReadOnly) == 0Description
TRUEevaluated 111 times by 7 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 6954012 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
d->openMode & ReadOnly) == 0
(d->openMode & ReadOnly) == 0Description
TRUEevaluated 111 times by 7 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 6954012 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
) { if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 109 times by 6 tests
Evaluated by:
  • tst_QBuffer
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
) { checkWarnMessage(this, "read", "device not open"); return
executed 109 times by 6 tests: return qint64(-1);
Executed by:
  • tst_QBuffer
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
qint64(-1);
executed 109 times by 6 tests: return qint64(-1);
Executed by:
  • tst_QBuffer
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
} checkWarnMessage(this, "read", "WriteOnly device"); return
executed 2 times by 2 tests: return qint64(-1);
Executed by:
  • tst_QBuffer
  • tst_QFile
qint64(-1);
executed 2 times by 2 tests: return qint64(-1);
Executed by:
  • tst_QBuffer
  • tst_QFile
} } while (0);
2-6954012
420 }
executed 6954012 times by 192 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
6954012
421-
422 if (maxSize > 0
maxSize > 0Description
TRUEevaluated 4975009 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
FALSEevaluated 2816059 times by 136 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • ...
&& !deviceAtEof
!deviceAtEofDescription
TRUEevaluated 4969329 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
FALSEevaluated 5680 times by 41 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QMovie
  • ...
) {
5680-4975009
423 qint64 readFromDevice = 0;-
424-
425 if (sequential
sequentialDescription
TRUEevaluated 178186 times by 51 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRawFont
  • tst_QSharedPointer
  • ...
FALSEevaluated 4791143 times by 168 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • ...
|| d->pos == d->devicePos
d->pos == d->devicePosDescription
TRUEevaluated 4768137 times by 168 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • ...
FALSEevaluated 23006 times by 86 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBitArray
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
|| seek(d->pos)
seek(d->pos)Description
TRUEevaluated 23006 times by 86 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBitArray
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
FALSEnever evaluated
) {
0-4791143
426 madeBufferReadsOnly = false;-
427 if ((maxSize >= d->readBufferChunkSize
maxSize >= d->...ufferChunkSizeDescription
TRUEevaluated 32516 times by 91 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 4936813 times by 182 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • ...
|| (d->openMode & Unbuffered))
32516-4936813
428 && !keepDataInBuffer
!keepDataInBufferDescription
TRUEevaluated 4809281 times by 136 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 3970 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
) {
3970-4809281
429-
430 readFromDevice = readData(data, maxSize);-
431 deviceAtEof = (readFromDevice != maxSize);-
432-
433-
434-
435-
436 if (readFromDevice > 0
readFromDevice > 0Description
TRUEevaluated 4788007 times by 120 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 21274 times by 56 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHeaderView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinterInfo
  • ...
) {
21274-4788007
437 readSoFar += readFromDevice;-
438 data += readFromDevice;-
439 maxSize -= readFromDevice;-
440 if (!sequential
!sequentialDescription
TRUEevaluated 4650749 times by 110 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
FALSEevaluated 137258 times by 18 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkReply
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRawFont
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Spdy
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
  • tst_quuid - unknown status
) {
137258-4650749
441 d->pos += readFromDevice;-
442 d->devicePos += readFromDevice;-
443 }
executed 4650749 times by 110 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
4650749
444 }
executed 4788007 times by 120 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
4788007
445 }
executed 4809281 times by 136 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • ...
else {
4809281
446-
447 const qint64 bytesToBuffer = (
(d->openMode & Unbuffered)Description
TRUEevaluated 3959 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_Spdy
FALSEevaluated 156089 times by 143 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
d->openMode & Unbuffered)
(d->openMode & Unbuffered)Description
TRUEevaluated 3959 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_Spdy
FALSEevaluated 156089 times by 143 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
3959-156089
448 ? qMin(maxSize, qint64(d->readBufferChunkSize))-
449 : qint64(d->readBufferChunkSize);-
450-
451 readFromDevice = readData(d->buffer.reserve(bytesToBuffer), bytesToBuffer);-
452 deviceAtEof = (readFromDevice != bytesToBuffer);-
453 d->buffer.chop(bytesToBuffer - qMax(static_cast<long long>(0LL), readFromDevice));-
454 if (readFromDevice > 0
readFromDevice > 0Description
TRUEevaluated 84201 times by 124 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 75847 times by 50 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCryptographicHash
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
) {
75847-84201
455 if (!sequential
!sequentialDescription
TRUEevaluated 77630 times by 121 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 6571 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Spdy
)
6571-77630
456 d->devicePos += readFromDevice;
executed 77630 times by 121 tests: d->devicePos += readFromDevice;
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
77630
457-
458-
459-
460-
461 continue;
executed 84201 times by 124 tests: continue;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
84201
462 }-
463 }
executed 75847 times by 50 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCryptographicHash
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
75847
464 } else {-
465 readFromDevice = -1;-
466 }
never executed: end of block
0
467-
468 if (readFromDevice < 0
readFromDevice < 0Description
TRUEevaluated 7792 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 4877336 times by 135 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • ...
&& readSoFar == 0
readSoFar == 0Description
TRUEevaluated 6695 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 1097 times by 20 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFont
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_uic
) {
1097-4877336
469-
470 return
executed 6695 times by 30 tests: return qint64(-1);
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
qint64(-1);
executed 6695 times by 30 tests: return qint64(-1);
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFont
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
6695
471 }-
472 }
executed 4878433 times by 141 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
4878433
473-
474 if ((d->openMode & Text) && readPtr < data
readPtr < dataDescription
TRUEevaluated 2002257 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 2002126 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
) {
2002126-2002257
475 const char *endPtr = data;-
476-
477-
478 while (*
*readPtr != '\r'Description
TRUEevaluated 43209181 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 315 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
readPtr != '\r'
*readPtr != '\r'Description
TRUEevaluated 43209181 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 315 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
) {
315-43209181
479 if (++
++readPtr == endPtrDescription
TRUEevaluated 2001942 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 41207239 times by 13 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
readPtr == endPtr
++readPtr == endPtrDescription
TRUEevaluated 2001942 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 41207239 times by 13 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
)
2001942-41207239
480 break;
executed 2001942 times by 14 tests: break;
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
2001942
481 }
executed 41207239 times by 13 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
41207239
482-
483 char *writePtr = readPtr;-
484-
485 while (readPtr < endPtr
readPtr < endPtrDescription
TRUEevaluated 5790 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
FALSEevaluated 2002257 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
) {
5790-2002257
486 char ch = *readPtr++;-
487 if (ch != '\r'
ch != '\r'Description
TRUEevaluated 5408 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QSslCertificate
FALSEevaluated 382 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
)
382-5408
488 *
executed 5408 times by 2 tests: *writePtr++ = ch;
Executed by:
  • tst_QFile
  • tst_QSslCertificate
writePtr++ = ch;
executed 5408 times by 2 tests: *writePtr++ = ch;
Executed by:
  • tst_QFile
  • tst_QSslCertificate
5408
489 else {-
490 --readSoFar;-
491 --data;-
492 ++maxSize;-
493 }
executed 382 times by 3 tests: end of block
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
382
494 }-
495-
496-
497-
498-
499 readPtr = data;-
500 continue;
executed 2002257 times by 14 tests: continue;
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
  • tst_uic
2002257
501 }-
502-
503 break;
executed 5697915 times by 191 tests: break;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
5697915
504 }-
505-
506-
507-
508-
509-
510-
511-
512 if (madeBufferReadsOnly
madeBufferReadsOnlyDescription
TRUEevaluated 735577 times by 110 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 4962338 times by 191 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
&& d->isBufferEmpty()
d->isBufferEmpty()Description
TRUEevaluated 36654 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 698923 times by 96 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
)
36654-4962338
513 readData(data, 0);
executed 36654 times by 102 tests: readData(data, 0);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
36654
514-
515 return
executed 5697915 times by 191 tests: return readSoFar;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
readSoFar;
executed 5697915 times by 191 tests: return readSoFar;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
5697915
516}-
517QByteArray QIODevice::read(qint64 maxSize)-
518{-
519 QIODevicePrivate * const d = d_func();-
520 QByteArray result;-
521-
522 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 69121 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
) { checkWarnMessage(this, "read", "Called with maxSize < 0"); return
never executed: return result;
result;
never executed: return result;
} } while (0);
0-69121
523 do { if (maxSize >= MaxByteArraySize
maxSize >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 69121 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
) { checkWarnMessage(this, "read", "maxSize argument exceeds QByteArray size limit"); maxSize = MaxByteArraySize - 1; }
never executed: end of block
} while (0);
0-69121
524-
525-
526-
527-
528-
529-
530 qint64 readBytes = 0;-
531 if (maxSize
maxSizeDescription
TRUEevaluated 69120 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QIODevice
) {
1-69120
532 result.resize(int(maxSize));-
533 if (!result.size()
!result.size()Description
TRUEnever evaluated
FALSEevaluated 69120 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
) {
0-69120
534-
535 qint64 readResult;-
536 do {-
537 result.resize(int(qMin(maxSize, qint64(result.size() + d->readBufferChunkSize))));-
538 readResult = read(result.data() + readBytes, result.size() - readBytes);-
539 if (readResult > 0
readResult > 0Description
TRUEnever evaluated
FALSEnever evaluated
|| readBytes == 0
readBytes == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
540 readBytes += readResult;
never executed: readBytes += readResult;
0
541 }
never executed: end of block
while (readResult == d->readBufferChunkSize
readResult == ...ufferChunkSizeDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
542 }
never executed: end of block
else {
0
543 readBytes = read(result.data(), result.size());-
544 }
executed 69120 times by 92 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
69120
545 }-
546-
547 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 98 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLabel
  • tst_QMovie
  • tst_QPixmap
  • tst_QSslSocket
FALSEevaluated 69023 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
98-69023
548 result.clear();
executed 98 times by 7 tests: result.clear();
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLabel
  • tst_QMovie
  • tst_QPixmap
  • tst_QSslSocket
98
549 else-
550 result.resize(int(readBytes));
executed 69023 times by 92 tests: result.resize(int(readBytes));
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
69023
551-
552 return
executed 69121 times by 92 tests: return result;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
result;
executed 69121 times by 92 tests: return result;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
69121
553}-
554QByteArray QIODevice::readAll()-
555{-
556 QIODevicePrivate * const d = d_func();-
557-
558-
559-
560-
561-
562 QByteArray result;-
563 qint64 readBytes = (d->isSequential()
d->isSequential()Description
TRUEevaluated 14488 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • ...
FALSEevaluated 16656 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
? static_cast<long long>(0LL) : size());
14488-16656
564 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 14508 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
FALSEevaluated 16636 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
) {
14508-16636
565-
566 qint64 readChunkSize = qMax(qint64(d->readBufferChunkSize),-
567 d->isSequential() ? (d->buffer.size() - d->transactionPos)-
568 : d->buffer.size());-
569 qint64 readResult;-
570 do {-
571 if (readBytes + readChunkSize >= MaxByteArraySize
readBytes + re...xByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 27495 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
) {
0-27495
572-
573 break;
never executed: break;
0
574 }-
575 result.resize(readBytes + readChunkSize);-
576 readResult = read(result.data() + readBytes, readChunkSize);-
577 if (readResult > 0
readResult > 0Description
TRUEevaluated 12987 times by 35 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Selftests
  • ...
FALSEevaluated 14508 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
|| readBytes == 0
readBytes == 0Description
TRUEevaluated 2477 times by 25 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qnetworkreply - unknown status
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
FALSEevaluated 12031 times by 35 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Selftests
  • ...
) {
2477-14508
578 readBytes += readResult;-
579 readChunkSize = d->readBufferChunkSize;-
580 }
executed 15464 times by 39 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
15464
581 }
executed 27495 times by 39 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
while (readResult > 0
readResult > 0Description
TRUEevaluated 12987 times by 35 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Selftests
  • ...
FALSEevaluated 14508 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
);
12987-27495
582 }
executed 14508 times by 39 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFont
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • ...
else {
14508
583-
584-
585 readBytes -= d->pos;-
586 if (readBytes >= MaxByteArraySize
readBytes >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 16636 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
)
0-16636
587 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
588 result.resize(readBytes);-
589 readBytes = read(result.data(), readBytes);-
590 }
executed 16636 times by 75 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
16636
591-
592 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 3698 times by 25 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qnetworkreply - unknown status
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
FALSEevaluated 27446 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
)
3698-27446
593 result.clear();
executed 3698 times by 25 tests: result.clear();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qnetworkreply - unknown status
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
3698
594 else-
595 result.resize(int(readBytes));
executed 27446 times by 97 tests: result.resize(int(readBytes));
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
27446
596-
597 return
executed 31144 times by 98 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
result;
executed 31144 times by 98 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
31144
598}-
599qint64 QIODevice::readLine(char *data, qint64 maxSize)-
600{-
601 QIODevicePrivate * const d = d_func();-
602 if (maxSize < 2
maxSize < 2Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QSslSocket
FALSEevaluated 107424 times by 46 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
) {
10-107424
603 checkWarnMessage(this, "readLine", "Called with maxSize < 2");-
604 return
executed 10 times by 2 tests: return qint64(-1);
Executed by:
  • tst_QIODevice
  • tst_QSslSocket
qint64(-1);
executed 10 times by 2 tests: return qint64(-1);
Executed by:
  • tst_QIODevice
  • tst_QSslSocket
10
605 }-
606-
607-
608-
609-
610-
611-
612-
613 --maxSize;-
614-
615 const bool sequential = d->isSequential();-
616 const bool keepDataInBuffer = sequential
sequentialDescription
TRUEevaluated 5971 times by 12 tests
Evaluated by:
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
FALSEevaluated 101453 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
&& d->transactionStarted
d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 5971 times by 12 tests
Evaluated by:
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
;
0-101453
617-
618 qint64 readSoFar = 0;-
619 if (keepDataInBuffer
keepDataInBufferDescription
TRUEnever evaluated
FALSEevaluated 107424 times by 46 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
) {
0-107424
620 if (d->transactionPos < d->buffer.size()
d->transaction...>buffer.size()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
621-
622 const qint64 i = d->buffer.indexOf('\n', maxSize, d->transactionPos);-
623 readSoFar = d->buffer.peek(data, i >= 0 ? (i - d->transactionPos + 1) : maxSize,-
624 d->transactionPos);-
625 d->transactionPos += readSoFar;-
626 if (d->transactionPos == d->buffer.size()
d->transaction...>buffer.size()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
627 readData(data, 0);
never executed: readData(data, 0);
0
628 }
never executed: end of block
0
629 }
never executed: end of block
else if (!d->buffer.isEmpty()
!d->buffer.isEmpty()Description
TRUEevaluated 101031 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 6393 times by 42 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
) {
0-101031
630-
631 readSoFar = d->buffer.readLine(data, maxSize + 1);-
632 if (d->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 5236 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 95795 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
)
5236-95795
633 readData(data,0);
executed 5236 times by 41 tests: readData(data,0);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
5236
634 if (!sequential
!sequentialDescription
TRUEevaluated 95165 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • ...
FALSEevaluated 5866 times by 9 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QXmlInputSource
)
5866-95165
635 d->pos += readSoFar;
executed 95165 times by 35 tests: d->pos += readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • ...
95165
636 }
executed 101031 times by 41 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
101031
637-
638 if (readSoFar
readSoFarDescription
TRUEevaluated 101031 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 6393 times by 42 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
) {
6393-101031
639-
640-
641-
642-
643-
644 if (data[readSoFar - 1] == '\n'
data[readSoFar - 1] == '\n'Description
TRUEevaluated 100535 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 496 times by 10 tests
Evaluated by:
  • tst_QChar
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
) {
496-100535
645 if (d->openMode & Text
d->openMode & TextDescription
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
FALSEevaluated 100499 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
) {
36-100499
646-
647 if (readSoFar > 1
readSoFar > 1Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
FALSEnever evaluated
&& data[readSoFar - 2] == '\r'
data[readSoFar - 2] == '\r'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
) {
0-36
648 --readSoFar;-
649 data[readSoFar - 1] = '\n';-
650 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFile
1
651 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
36
652 data[readSoFar] = '\0';-
653 return
executed 100535 times by 41 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
readSoFar;
executed 100535 times by 41 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
100535
654 }-
655 }
executed 496 times by 10 tests: end of block
Executed by:
  • tst_QChar
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
496
656-
657 if (d->pos != d->devicePos
d->pos != d->devicePosDescription
TRUEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
FALSEevaluated 6777 times by 43 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
&& !sequential
!sequentialDescription
TRUEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
FALSEnever evaluated
&& !seek(d->pos)
!seek(d->pos)Description
TRUEnever evaluated
FALSEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
)
0-6777
658 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
659 d->baseReadLineDataCalled = false;-
660-
661-
662 qint64 readBytes = keepDataInBuffer
keepDataInBufferDescription
TRUEnever evaluated
FALSEevaluated 6889 times by 43 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
0-6889
663 ? QIODevice::readLineData(data + readSoFar, maxSize - readSoFar)-
664 : readLineData(data + readSoFar, maxSize - readSoFar);-
665-
666-
667-
668-
669-
670-
671-
672 if (readBytes < 0
readBytes < 0Description
TRUEevaluated 354 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 6535 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
) {
354-6535
673 data[readSoFar] = '\0';-
674 return
executed 354 times by 10 tests: return readSoFar ? readSoFar : -1;
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
readSoFar ? readSoFar : -1;
executed 354 times by 10 tests: return readSoFar ? readSoFar : -1;
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
354
675 }-
676 readSoFar += readBytes;-
677 if (!d->baseReadLineDataCalled
!d->baseReadLineDataCalledDescription
TRUEnever evaluated
FALSEevaluated 6535 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
&& !sequential
!sequentialDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-6535
678 d->pos += readBytes;-
679-
680-
681 d->devicePos = qint64(-1);-
682 }
never executed: end of block
0
683 data[readSoFar] = '\0';-
684-
685 if (d->openMode & Text
d->openMode & TextDescription
TRUEevaluated 411 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
FALSEevaluated 6124 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • ...
) {
411-6124
686 if (readSoFar > 1
readSoFar > 1Description
TRUEevaluated 333 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
FALSEevaluated 78 times by 1 test
Evaluated by:
  • tst_QIODevice
&& data[readSoFar - 1] == '\n'
data[readSoFar - 1] == '\n'Description
TRUEevaluated 227 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
FALSEevaluated 106 times by 1 test
Evaluated by:
  • tst_QIODevice
&& data[readSoFar - 2] == '\r'
data[readSoFar - 2] == '\r'Description
TRUEnever evaluated
FALSEevaluated 227 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
) {
0-333
687 data[readSoFar - 2] = '\n';-
688 data[readSoFar - 1] = '\0';-
689 --readSoFar;-
690 }
never executed: end of block
0
691 }
executed 411 times by 4 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
411
692-
693-
694-
695-
696-
697-
698 return
executed 6535 times by 41 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
readSoFar;
executed 6535 times by 41 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
6535
699}-
700QByteArray QIODevice::readLine(qint64 maxSize)-
701{-
702 QIODevicePrivate * const d = d_func();-
703 QByteArray result;-
704-
705 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 50903 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
) { checkWarnMessage(this, "readLine", "Called with maxSize < 0"); return
never executed: return result;
result;
never executed: return result;
} } while (0);
0-50903
706 do { if (maxSize >= MaxByteArraySize
maxSize >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 50903 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
) { checkWarnMessage(this, "readLine", "maxSize argument exceeds QByteArray size limit"); maxSize = MaxByteArraySize - 1; }
never executed: end of block
} while (0);
0-50903
707-
708-
709-
710-
711-
712-
713 result.resize(int(maxSize));-
714 qint64 readBytes = 0;-
715 if (!result.size()
!result.size()Description
TRUEevaluated 50894 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QIODevice
) {
9-50894
716-
717 if (maxSize == 0
maxSize == 0Description
TRUEevaluated 50894 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
FALSEnever evaluated
)
0-50894
718 maxSize = MaxByteArraySize - 1;
executed 50894 times by 40 tests: maxSize = MaxByteArraySize - 1;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
50894
719-
720-
721 result.resize(1);-
722-
723 qint64 readResult;-
724 do {-
725 result.resize(int(qMin(maxSize, qint64(result.size() + d->readBufferChunkSize))));-
726 readResult = readLine(result.data() + readBytes, result.size() - readBytes);-
727 if (readResult > 0
readResult > 0Description
TRUEevaluated 50855 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
FALSEevaluated 111 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
|| readBytes == 0
readBytes == 0Description
TRUEevaluated 111 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEnever evaluated
)
0-50855
728 readBytes += readResult;
executed 50966 times by 40 tests: readBytes += readResult;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
50966
729 }
executed 50966 times by 40 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
while (readResult == d->readBufferChunkSize
readResult == ...ufferChunkSizeDescription
TRUEevaluated 80 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
FALSEevaluated 50886 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
80-50966
730 && result[int(readBytes - 1)] != '\n'
result[int(rea... - 1)] != '\n'Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QIODevice
);
8-72
731 }
executed 50894 times by 40 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
else
50894
732 readBytes = readLine(result.data(), result.size());
executed 9 times by 1 test: readBytes = readLine(result.data(), result.size());
Executed by:
  • tst_QIODevice
9
733-
734 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 111 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 50792 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
)
111-50792
735 result.clear();
executed 111 times by 6 tests: result.clear();
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
111
736 else-
737 result.resize(readBytes);
executed 50792 times by 39 tests: result.resize(readBytes);
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
50792
738-
739 return
executed 50903 times by 40 tests: return result;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
result;
executed 50903 times by 40 tests: return result;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • ...
50903
740}-
741qint64 QIODevice::readLineData(char *data, qint64 maxSize)-
742{-
743 QIODevicePrivate * const d = d_func();-
744 qint64 readSoFar = 0;-
745 char c;-
746 int lastReadReturn = 0;-
747 d->baseReadLineDataCalled = true;-
748-
749 while (readSoFar < maxSize
readSoFar < maxSizeDescription
TRUEevaluated 4511454 times by 43 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
FALSEevaluated 213 times by 5 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QTcpSocket
&& (
(lastReadRetur...d(&c, 1)) == 1Description
TRUEevaluated 4511057 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
FALSEevaluated 397 times by 12 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
lastReadReturn = read(&c, 1)) == 1
(lastReadRetur...d(&c, 1)) == 1Description
TRUEevaluated 4511057 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
FALSEevaluated 397 times by 12 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
) {
213-4511454
750 *data++ = c;-
751 ++readSoFar;-
752 if (c == '\n'
c == '\n'Description
TRUEevaluated 6271 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
FALSEevaluated 4504786 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
)
6271-4504786
753 break;
executed 6271 times by 39 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
6271
754 }
executed 4504786 times by 40 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
4504786
755-
756-
757-
758-
759-
760 if (lastReadReturn != 1
lastReadReturn != 1Description
TRUEevaluated 529 times by 12 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
FALSEevaluated 6352 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
&& readSoFar == 0
readSoFar == 0Description
TRUEevaluated 379 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
FALSEevaluated 150 times by 3 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
  • tst_QPixmap
)
150-6352
761 return
executed 379 times by 11 tests: return isSequential() ? lastReadReturn : -1;
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
isSequential() ? lastReadReturn : -1;
executed 379 times by 11 tests: return isSequential() ? lastReadReturn : -1;
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
379
762 return
executed 6502 times by 40 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
readSoFar;
executed 6502 times by 40 tests: return readSoFar;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
6502
763}-
764bool QIODevice::canReadLine() const-
765{-
766 const QIODevicePrivate * const d = d_func();-
767 return
executed 10381 times by 12 tests: return d->buffer.indexOf('\n', d->buffer.size(), d->isSequential() ? d->transactionPos : static_cast<long long>(0LL)) >= 0;
Executed by:
  • tst_QBuffer
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
d->buffer.indexOf('\n', d->buffer.size(),
executed 10381 times by 12 tests: return d->buffer.indexOf('\n', d->buffer.size(), d->isSequential() ? d->transactionPos : static_cast<long long>(0LL)) >= 0;
Executed by:
  • tst_QBuffer
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
10381
768 d->isSequential() ? d->transactionPos : static_cast<long long>(0LL)) >= 0;
executed 10381 times by 12 tests: return d->buffer.indexOf('\n', d->buffer.size(), d->isSequential() ? d->transactionPos : static_cast<long long>(0LL)) >= 0;
Executed by:
  • tst_QBuffer
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
10381
769}-
770void QIODevice::startTransaction()-
771{-
772 QIODevicePrivate * const d = d_func();-
773 if (d->transactionStarted
d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 38871 times by 85 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
) {
0-38871
774 checkWarnMessage(this, "startTransaction", "Called while transaction already in progress");-
775 return;
never executed: return;
0
776 }-
777 d->transactionPos = d->pos;-
778 d->transactionStarted = true;-
779}
executed 38871 times by 85 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
38871
780void QIODevice::commitTransaction()-
781{-
782 QIODevicePrivate * const d = d_func();-
783 if (!d->transactionStarted
!d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 653 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QIODevice
) {
0-653
784 checkWarnMessage(this, "commitTransaction", "Called while no transaction in progress");-
785 return;
never executed: return;
0
786 }-
787 if (d->isSequential()
d->isSequential()Description
TRUEevaluated 456 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QIODevice
FALSEevaluated 197 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QIODevice
)
197-456
788 d->buffer.free(d->transactionPos);
executed 456 times by 2 tests: d->buffer.free(d->transactionPos);
Executed by:
  • tst_QDataStream
  • tst_QIODevice
456
789 d->transactionStarted = false;-
790 d->transactionPos = 0;-
791}
executed 653 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QIODevice
653
792void QIODevice::rollbackTransaction()-
793{-
794 QIODevicePrivate * const d = d_func();-
795 if (!d->transactionStarted
!d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 38218 times by 85 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
) {
0-38218
796 checkWarnMessage(this, "rollbackTransaction", "Called while no transaction in progress");-
797 return;
never executed: return;
0
798 }-
799 if (!d->isSequential()
!d->isSequential()Description
TRUEevaluated 34109 times by 75 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
FALSEevaluated 4109 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
)
4109-34109
800 d->seekBuffer(d->transactionPos);
executed 34109 times by 75 tests: d->seekBuffer(d->transactionPos);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
34109
801 d->transactionStarted = false;-
802 d->transactionPos = 0;-
803}
executed 38218 times by 85 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
38218
804bool QIODevice::isTransactionStarted() const-
805{-
806 return
executed 5030 times by 29 tests: return d_func()->transactionStarted;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBrush
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPen
  • tst_QSettings
  • tst_QSplitter
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • ...
d_func()->transactionStarted;
executed 5030 times by 29 tests: return d_func()->transactionStarted;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBrush
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPen
  • tst_QSettings
  • tst_QSplitter
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • ...
5030
807}-
808qint64 QIODevice::write(const char *data, qint64 maxSize)-
809{-
810 QIODevicePrivate * const d = d_func();-
811 do { if ((
(d->openMode & WriteOnly) == 0Description
TRUEevaluated 35 times by 5 tests
Evaluated by:
  • tst_QFile
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
FALSEevaluated 1012161 times by 117 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
d->openMode & WriteOnly) == 0
(d->openMode & WriteOnly) == 0Description
TRUEevaluated 35 times by 5 tests
Evaluated by:
  • tst_QFile
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
FALSEevaluated 1012161 times by 117 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
) { if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 34 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
) { checkWarnMessage(this, "write", "device not open"); return
executed 34 times by 4 tests: return qint64(-1);
Executed by:
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
qint64(-1);
executed 34 times by 4 tests: return qint64(-1);
Executed by:
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
} checkWarnMessage(this, "write", "ReadOnly device"); return
executed 1 time by 1 test: return qint64(-1);
Executed by:
  • tst_QFile
qint64(-1);
executed 1 time by 1 test: return qint64(-1);
Executed by:
  • tst_QFile
} } while (0);
1-1012161
812 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 1012161 times by 117 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
) { checkWarnMessage(this, "write", "Called with maxSize < 0"); return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
} } while (0);
0-1012161
813-
814 const bool sequential = d->isSequential();-
815-
816 if (d->pos != d->devicePos
d->pos != d->devicePosDescription
TRUEevaluated 54 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_qmakelib
FALSEevaluated 1012107 times by 117 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
&& !sequential
!sequentialDescription
TRUEevaluated 54 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_qmakelib
FALSEnever evaluated
&& !seek(d->pos)
!seek(d->pos)Description
TRUEnever evaluated
FALSEevaluated 54 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_qmakelib
)
0-1012107
817 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
818 qint64 written = writeData(data, maxSize);-
819 if (!sequential
!sequentialDescription
TRUEevaluated 349534 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
FALSEevaluated 662627 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFile
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • ...
&& written > 0
written > 0Description
TRUEevaluated 347302 times by 92 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
FALSEevaluated 2232 times by 12 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSharedPointer
  • tst_QTextEdit
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qmakelib
) {
2232-662627
820 d->pos += written;-
821 d->devicePos += written;-
822 d->buffer.skip(written);-
823 }
executed 347302 times by 92 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
347302
824 return
executed 1012161 times by 117 tests: return written;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
written;
executed 1012161 times by 117 tests: return written;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • ...
1012161
825}-
826qint64 QIODevice::write(const char *data)-
827{-
828 return
executed 3488 times by 29 tests: return write(data, qstrlen(data));
Executed by:
  • tst_QBuffer
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRingBuffer
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextStream
  • ...
write(data, qstrlen(data));
executed 3488 times by 29 tests: return write(data, qstrlen(data));
Executed by:
  • tst_QBuffer
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRingBuffer
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextStream
  • ...
3488
829}-
830void QIODevice::ungetChar(char c)-
831{-
832 QIODevicePrivate * const d = d_func();-
833 do { if ((
(d->openMode & ReadOnly) == 0Description
TRUEnever evaluated
FALSEevaluated 36238 times by 8 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QTcpSocket
d->openMode & ReadOnly) == 0
(d->openMode & ReadOnly) == 0Description
TRUEnever evaluated
FALSEevaluated 36238 times by 8 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QTcpSocket
) { if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEnever evaluated
FALSEnever evaluated
) { checkWarnMessage(this, "read", "device not open"); return
never executed: return ;
;
never executed: return ;
} checkWarnMessage(this, "read", "WriteOnly device"); return
never executed: return ;
;
never executed: return ;
} } while (0);
0-36238
834-
835 if (d->transactionStarted
d->transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 36238 times by 8 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QTcpSocket
) {
0-36238
836 checkWarnMessage(this, "ungetChar", "Called while transaction is in progress");-
837 return;
never executed: return;
0
838 }-
839-
840-
841-
842-
843-
844 d->buffer.ungetChar(c);-
845 if (!d->isSequential()
!d->isSequential()Description
TRUEevaluated 35727 times by 5 tests
Evaluated by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
FALSEevaluated 511 times by 5 tests
Evaluated by:
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QProcess
  • tst_QTcpSocket
)
511-35727
846 --
executed 35727 times by 5 tests: --d->pos;
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
d->pos;
executed 35727 times by 5 tests: --d->pos;
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
35727
847}
executed 36238 times by 8 tests: end of block
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QTcpSocket
36238
848bool QIODevice::putChar(char c)-
849{-
850 return
executed 29711 times by 46 tests: return d_func()->putCharHelper(c);
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • ...
d_func()->putCharHelper(c);
executed 29711 times by 46 tests: return d_func()->putCharHelper(c);
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • ...
29711
851}-
852-
853-
854-
855-
856bool QIODevicePrivate::putCharHelper(char c)-
857{-
858 return
executed 27567 times by 42 tests: return q_func()->write(&c, 1) == 1;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QPen
  • tst_QPicture
  • ...
q_func()->write(&c, 1) == 1;
executed 27567 times by 42 tests: return q_func()->write(&c, 1) == 1;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QPen
  • tst_QPicture
  • ...
27567
859}-
860-
861-
862-
863-
864qint64 QIODevicePrivate::peek(char *data, qint64 maxSize)-
865{-
866 QIODevice * const q = q_func();-
867-
868 if (transactionStarted
transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 17550 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
) {
0-17550
869 const qint64 savedTransactionPos = transactionPos;-
870 const qint64 savedPos = pos;-
871-
872 qint64 readBytes = q->read(data, maxSize);-
873-
874-
875 if (isSequential()
isSequential()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
876 transactionPos = savedTransactionPos;
never executed: transactionPos = savedTransactionPos;
0
877 else-
878 seekBuffer(savedPos);
never executed: seekBuffer(savedPos);
0
879 return
never executed: return readBytes;
readBytes;
never executed: return readBytes;
0
880 }-
881-
882 q->startTransaction();-
883 qint64 readBytes = q->read(data, maxSize);-
884 q->rollbackTransaction();-
885-
886 return
executed 17550 times by 82 tests: return readBytes;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
readBytes;
executed 17550 times by 82 tests: return readBytes;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
17550
887}-
888-
889-
890-
891-
892QByteArray QIODevicePrivate::peek(qint64 maxSize)-
893{-
894 QIODevice * const q = q_func();-
895-
896 if (transactionStarted
transactionStartedDescription
TRUEnever evaluated
FALSEevaluated 19982 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
) {
0-19982
897 const qint64 savedTransactionPos = transactionPos;-
898 const qint64 savedPos = pos;-
899-
900 QByteArray result = q->read(maxSize);-
901-
902-
903 if (isSequential()
isSequential()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
904 transactionPos = savedTransactionPos;
never executed: transactionPos = savedTransactionPos;
0
905 else-
906 seekBuffer(savedPos);
never executed: seekBuffer(savedPos);
0
907 return
never executed: return result;
result;
never executed: return result;
0
908 }-
909-
910 q->startTransaction();-
911 QByteArray result = q->read(maxSize);-
912 q->rollbackTransaction();-
913-
914 return
executed 19982 times by 77 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
result;
executed 19982 times by 77 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
19982
915}-
916bool QIODevice::getChar(char *c)-
917{-
918-
919 char ch;-
920 return
executed 1453579 times by 10 tests: return (1 == read(c ? c : &ch, 1));
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qfileopenevent
(1 == read(c ? c : &ch, 1));
executed 1453579 times by 10 tests: return (1 == read(c ? c : &ch, 1));
Executed by:
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qfileopenevent
1453579
921}-
922qint64 QIODevice::peek(char *data, qint64 maxSize)-
923{-
924 return
executed 19085 times by 86 tests: return d_func()->peek(data, maxSize);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • ...
d_func()->peek(data, maxSize);
executed 19085 times by 86 tests: return d_func()->peek(data, maxSize);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • ...
19085
925}-
926QByteArray QIODevice::peek(qint64 maxSize)-
927{-
928 return
executed 20207 times by 81 tests: return d_func()->peek(maxSize);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
d_func()->peek(maxSize);
executed 20207 times by 81 tests: return d_func()->peek(maxSize);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
20207
929}-
930bool QIODevice::waitForReadyRead(int msecs)-
931{-
932 (void)msecs;;-
933 return
executed 223 times by 3 tests: return false;
Executed by:
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
false;
executed 223 times by 3 tests: return false;
Executed by:
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
223
934}-
935bool QIODevice::waitForBytesWritten(int msecs)-
936{-
937 (void)msecs;;-
938 return
never executed: return false;
false;
never executed: return false;
0
939}-
940-
941-
942-
943-
944-
945-
946-
947void QIODevice::setErrorString(const QString &str)-
948{-
949 d_func()->errorString = str;-
950}
executed 187 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QNetworkAccessManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_Spdy
187
951-
952-
953-
954-
955-
956-
957-
958QString QIODevice::errorString() const-
959{-
960 const QIODevicePrivate * const d = d_func();-
961 if (d->errorString.isEmpty()
d->errorString.isEmpty()Description
TRUEevaluated 5355 times by 42 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • ...
FALSEevaluated 741 times by 22 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTemporaryFile
  • tst_QUdpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmakelib
) {
741-5355
962-
963-
964-
965 return
executed 5355 times by 42 tests: return tr("Unknown error");
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • ...
tr("Unknown error");
executed 5355 times by 42 tests: return tr("Unknown error");
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • ...
5355
966-
967 }-
968 return
executed 741 times by 22 tests: return d->errorString;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTemporaryFile
  • tst_QUdpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmakelib
d->errorString;
executed 741 times by 22 tests: return d->errorString;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTemporaryFile
  • tst_QUdpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmakelib
741
969}-
970int qt_subtract_from_timeout(int timeout, int elapsed)-
971{-
972 if (timeout == -1
timeout == -1Description
TRUEevaluated 756 times by 8 tests
Evaluated by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qmake
  • tst_qmakelib
FALSEevaluated 65846 times by 47 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QEventLoop
  • tst_QFont
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • ...
)
756-65846
973 return
executed 756 times by 8 tests: return -1;
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qmake
  • tst_qmakelib
-1;
executed 756 times by 8 tests: return -1;
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qmake
  • tst_qmakelib
756
974-
975 timeout = timeout - elapsed;-
976 return
executed 65846 times by 47 tests: return timeout < 0 ? 0 : timeout;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QEventLoop
  • tst_QFont
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • ...
timeout < 0 ? 0 : timeout;
executed 65846 times by 47 tests: return timeout < 0 ? 0 : timeout;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QEventLoop
  • tst_QFont
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • ...
65846
977}-
978-
979-
980-
981QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)-
982{-
983 debug << "OpenMode(";-
984 QStringList modeList;-
985 if (modes == QIODevice::NotOpen
modes == QIODevice::NotOpenDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
) {
0-16
986 modeList << QLatin1String("NotOpen");-
987 }
never executed: end of block
else {
0
988 if (modes & QIODevice::ReadOnly
modes & QIODevice::ReadOnlyDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
)
0-16
989 modeList << QLatin1String("ReadOnly");
executed 16 times by 1 test: modeList << QLatin1String("ReadOnly");
Executed by:
  • tst_QFile
16
990 if (modes & QIODevice::WriteOnly
modes & QIODevice::WriteOnlyDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QFile
)
5-11
991 modeList << QLatin1String("WriteOnly");
executed 5 times by 1 test: modeList << QLatin1String("WriteOnly");
Executed by:
  • tst_QFile
5
992 if (modes & QIODevice::Append
modes & QIODevice::AppendDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
)
0-16
993 modeList << QLatin1String("Append");
never executed: modeList << QLatin1String("Append");
0
994 if (modes & QIODevice::Truncate
modes & QIODevice::TruncateDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
)
0-16
995 modeList << QLatin1String("Truncate");
never executed: modeList << QLatin1String("Truncate");
0
996 if (modes & QIODevice::Text
modes & QIODevice::TextDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QFile
)
3-13
997 modeList << QLatin1String("Text");
executed 3 times by 1 test: modeList << QLatin1String("Text");
Executed by:
  • tst_QFile
3
998 if (modes & QIODevice::Unbuffered
modes & QIODevice::UnbufferedDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QFile
)
3-13
999 modeList << QLatin1String("Unbuffered");
executed 3 times by 1 test: modeList << QLatin1String("Unbuffered");
Executed by:
  • tst_QFile
3
1000 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_QFile
16
1001 std::sort(modeList.begin(), modeList.end());-
1002 debug << modeList.join(QLatin1Char('|'));-
1003 debug << ')';-
1004 return
executed 16 times by 1 test: return debug;
Executed by:
  • tst_QFile
debug;
executed 16 times by 1 test: return debug;
Executed by:
  • tst_QFile
16
1005}-
1006-
1007-
1008-
Switch to Source codePreprocessed file

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