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__, 87, __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), buffer(static_cast<long long>(16384LL)),-
35 pos(0), devicePos(0)-
36 , baseReadLineDataCalled(false)-
37 , accessMode(Unset)-
38-
39-
40-
41{-
42}
executed 81130 times by 264 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
  • ...
81130
43-
44-
45-
46-
47QIODevicePrivate::~QIODevicePrivate()-
48{-
49}-
50QIODevice::QIODevice()-
51 : QObject(*new QIODevicePrivate, 0)-
52{-
53-
54-
55-
56-
57-
58}
executed 39 times by 4 tests: end of block
Executed by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QTextStream
  • tst_Spdy
39
59-
60-
61-
62-
63-
64QIODevice::QIODevice(QObject *parent)-
65 : QObject(*new QIODevicePrivate, parent)-
66{-
67-
68-
69-
70}
executed 13 times by 1 test: end of block
Executed by:
  • tst_QNetworkReply
13
71-
72-
73-
74-
75QIODevice::QIODevice(QIODevicePrivate &dd, QObject *parent)-
76 : QObject(dd, parent)-
77{-
78}
executed 81078 times by 264 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
  • ...
81078
79QIODevice::~QIODevice()-
80{-
81-
82-
83-
84}-
85bool QIODevice::isSequential() const-
86{-
87 return
executed 12052 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 12052 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
  • ...
12052
88}-
89-
90-
91-
92-
93-
94-
95-
96QIODevice::OpenMode QIODevice::openMode() const-
97{-
98 return
executed 18499 times by 94 tests: return d_func()->openMode;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
d_func()->openMode;
executed 18499 times by 94 tests: return d_func()->openMode;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
18499
99}-
100void QIODevice::setOpenMode(OpenMode openMode)-
101{-
102 QIODevicePrivate * const d = d_func();-
103-
104-
105-
106 d->openMode = openMode;-
107 d->accessMode = QIODevicePrivate::Unset;-
108 if (!isReadable()
!isReadable()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QTemporaryFile
FALSEevaluated 759 times by 12 tests
Evaluated 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
)
2-759
109 d->buffer.clear();
executed 2 times by 2 tests: d->buffer.clear();
Executed by:
  • tst_QIODevice
  • tst_QTemporaryFile
2
110}
executed 761 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
761
111void QIODevice::setTextModeEnabled(bool enabled)-
112{-
113 QIODevicePrivate * const d = d_func();-
114 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
115 checkWarnMessage(this, "setTextModeEnabled", "The device is not open");-
116 return;
never executed: return;
0
117 }-
118 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
119 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
120 else-
121 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
122}-
123-
124-
125-
126-
127-
128-
129bool QIODevice::isTextModeEnabled() const-
130{-
131 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
132}-
133bool QIODevice::isOpen() const-
134{-
135 return
executed 82497607 times by 234 tests: return d_func()->openMode != NotOpen;
Executed by:
  • tst_Lancelot
  • 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
  • ...
d_func()->openMode != NotOpen;
executed 82497607 times by 234 tests: return d_func()->openMode != NotOpen;
Executed by:
  • tst_Lancelot
  • 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
  • ...
82497607
136}-
137bool QIODevice::isReadable() const-
138{-
139 return
executed 16830 times by 93 tests: return (openMode() & ReadOnly) != 0;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
(openMode() & ReadOnly) != 0;
executed 16830 times by 93 tests: return (openMode() & ReadOnly) != 0;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCryptographicHash
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
16830
140}-
141bool QIODevice::isWritable() const-
142{-
143 return
executed 1509 times by 21 tests: return (openMode() & WriteOnly) != 0;
Executed by:
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QSettings
  • tst_QSslSocket
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
(openMode() & WriteOnly) != 0;
executed 1509 times by 21 tests: return (openMode() & WriteOnly) != 0;
Executed by:
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QSettings
  • tst_QSslSocket
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
1509
144}-
145bool QIODevice::open(OpenMode mode)-
146{-
147 QIODevicePrivate * const d = d_func();-
148 d->openMode = mode;-
149 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 64213 times by 234 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 64213 times by 234 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-64213
150 d->buffer.clear();-
151 d->accessMode = QIODevicePrivate::Unset;-
152-
153-
154-
155 return
executed 64498 times by 234 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 64498 times by 234 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
  • ...
64498
156}-
157-
158-
159-
160-
161-
162-
163-
164void QIODevice::close()-
165{-
166 QIODevicePrivate * const d = d_func();-
167 if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 1930 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 50027 times by 201 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
  • ...
)
1930-50027
168 return;
executed 1930 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
1930
169-
170-
171-
172-
173-
174-
175 aboutToClose();-
176-
177 d->openMode = NotOpen;-
178 d->errorString.clear();-
179 d->pos = 0;-
180 d->buffer.clear();-
181}
executed 50027 times by 201 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
  • ...
50027
182qint64 QIODevice::pos() const-
183{-
184 const QIODevicePrivate * const d = d_func();-
185-
186-
187-
188 return
executed 10224261 times by 150 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 10224261 times by 150 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
  • ...
10224261
189}-
190qint64 QIODevice::size() const-
191{-
192 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()
d_func()->isSequential()Description
TRUEevaluated 74 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
FALSEnever evaluated
? 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
0-74
193}-
194bool QIODevice::seek(qint64 pos)-
195{-
196 QIODevicePrivate * const d = d_func();-
197 if (d->isSequential()
d->isSequential()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
FALSEevaluated 275944 times by 107 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-275944
198 checkWarnMessage(this, "seek", "Cannot call seek on a sequential device");-
199 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
200 }-
201 if (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEnever evaluated
FALSEevaluated 275944 times by 107 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-275944
202 checkWarnMessage(this, "seek", "The device is not open");-
203 return
never executed: return false;
false;
never executed: return false;
0
204 }-
205 if (pos < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 275944 times by 107 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-275944
206 QMessageLogger(__FILE__, 654, __PRETTY_FUNCTION__).warning("QIODevice::seek: Invalid pos: %lld", pos);-
207 return
never executed: return false;
false;
never executed: return false;
0
208 }-
209-
210-
211-
212-
213-
214-
215 qint64 offset = pos - d->pos;-
216 d->pos = pos;-
217 d->devicePos = pos;-
218-
219 if (offset < 0
offset < 0Description
TRUEevaluated 129216 times by 33 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDate
  • tst_QFile
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMovie
  • tst_QNetworkCacheMetaData
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPoint
  • tst_QPointF
  • tst_QPrinter
  • ...
FALSEevaluated 146728 times by 98 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 >= d->buffer.size()
offset >= d->buffer.size()Description
TRUEevaluated 134720 times by 42 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFont
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QMetaType
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • ...
FALSEevaluated 12008 times by 77 tests
Evaluated by:
  • tst_LargeFile
  • 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
  • tst_QFontDialog
  • tst_QFrame
  • ...
)
12008-146728
220-
221-
222-
223-
224 d->buffer.clear();
executed 263936 times by 51 tests: d->buffer.clear();
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QDataStream
  • tst_QDate
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFont
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMovie
  • ...
263936
225 else if (!d->buffer.isEmpty()
!d->buffer.isEmpty()Description
TRUEevaluated 12008 times by 77 tests
Evaluated by:
  • tst_LargeFile
  • 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
  • tst_QFontDialog
  • tst_QFrame
  • ...
FALSEnever evaluated
)
0-12008
226 d->buffer.skip(offset);
executed 12008 times by 77 tests: d->buffer.skip(offset);
Executed by:
  • tst_LargeFile
  • 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
  • tst_QFontDialog
  • tst_QFrame
  • ...
12008
227-
228-
229-
230-
231-
232 return
executed 275944 times by 107 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 275944 times by 107 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
  • ...
275944
233}-
234bool QIODevice::atEnd() const-
235{-
236 const QIODevicePrivate * const d = d_func();-
237 const bool result = (d->openMode == NotOpen
d->openMode == NotOpenDescription
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QBuffer
  • tst_QProcess
  • tst_QSslSocket
FALSEevaluated 5157 times by 36 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_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • ...
|| (d->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 4904 times by 36 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_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • ...
FALSEevaluated 253 times by 3 tests
Evaluated by:
  • tst_QImageReader
  • tst_QProcess
  • tst_QTcpSocket
7-5157
238 && bytesAvailable() == 0
bytesAvailable() == 0Description
TRUEevaluated 939 times by 28 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_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QStandardItemModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTranslator
  • tst_QTreeWidget
  • ...
FALSEevaluated 3965 times by 29 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_QMetaObjectBuilder
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QStandardItemModel
  • tst_QTcpSocket
  • ...
));
939-3965
239-
240-
241-
242-
243 return
executed 5164 times by 37 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_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • ...
result;
executed 5164 times by 37 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_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPixmap
  • tst_QPrinter
  • ...
5164
244}-
245bool QIODevice::reset()-
246{-
247-
248-
249-
250 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
251}-
252qint64 QIODevice::bytesAvailable() const-
253{-
254 const QIODevicePrivate * const d = d_func();-
255 if (!d->isSequential()
!d->isSequential()Description
TRUEevaluated 9312 times by 48 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • ...
FALSEevaluated 104490 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • 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
  • tst_Spdy
  • tst_qnetworkreply - unknown status
  • ...
)
9312-104490
256 return
executed 9312 times by 48 tests: return qMax(size() - d->pos, qint64(0));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • ...
qMax(size() - d->pos, qint64(0));
executed 9312 times by 48 tests: return qMax(size() - d->pos, qint64(0));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • ...
9312
257 return
executed 104490 times by 27 tests: return d->buffer.size();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • 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
  • tst_Spdy
  • tst_qnetworkreply - unknown status
  • ...
d->buffer.size();
executed 104490 times by 27 tests: return d->buffer.size();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFile
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • 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
  • tst_Spdy
  • tst_qnetworkreply - unknown status
  • ...
104490
258}-
259-
260-
261-
262-
263-
264-
265-
266qint64 QIODevice::bytesToWrite() const-
267{-
268 return
never executed: return qint64(0);
qint64(0);
never executed: return qint64(0);
0
269}-
270qint64 QIODevice::read(char *data, qint64 maxSize)-
271{-
272 QIODevicePrivate * const d = d_func();-
273-
274-
275-
276-
277-
278-
279 const bool sequential = d->isSequential();-
280-
281-
282 if (maxSize == 1
maxSize == 1Description
TRUEevaluated 47675277 times by 72 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • ...
FALSEevaluated 1018863 times by 185 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
  • ...
) {
1018863-47675277
283 int chint;-
284 while ((
(chint = d->bu...tChar()) != -1Description
TRUEevaluated 43003676 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • ...
FALSEevaluated 4671602 times by 66 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • ...
chint = d->buffer.getChar()) != -1
(chint = d->bu...tChar()) != -1Description
TRUEevaluated 43003676 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • ...
FALSEevaluated 4671602 times by 66 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • ...
) {
4671602-43003676
285 if (!sequential
!sequentialDescription
TRUEevaluated 42595857 times by 27 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • ...
FALSEevaluated 407819 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
)
407819-42595857
286 ++
executed 42595857 times by 27 tests: ++d->pos;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • ...
d->pos;
executed 42595857 times by 27 tests: ++d->pos;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • ...
42595857
287-
288 char c = char(uchar(chint));-
289 if (c == '\r'
c == '\r'Description
TRUEevaluated 27918 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 42975758 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • ...
&& (d->openMode & Text))
27918-42975758
290 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QFile
1
291 *data = c;-
292-
293-
294-
295-
296 if (d->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 3679 times by 20 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_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Spdy
FALSEevaluated 42999996 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • tst_QSslSocket
  • ...
)
3679-42999996
297 readData(data, 0);
executed 3679 times by 20 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_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Spdy
3679
298 return
executed 43003675 times by 36 tests: return qint64(1);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • ...
qint64(1);
executed 43003675 times by 36 tests: return qint64(1);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QFile
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSettings
  • ...
43003675
299 }-
300 }
executed 4671602 times by 66 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDebug
  • tst_QDockWidget
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • ...
4671602
301-
302 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 5690465 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
  • ...
) { checkWarnMessage(this, "read", "Called with maxSize < 0"); return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
} } while (0);
0-5690465
303 qint64 readSoFar = 0;-
304 bool madeBufferReadsOnly = true;-
305 bool deviceAtEof = false;-
306 char *readPtr = data;-
307 for(;;) {-
308-
309 qint64 bufferReadChunkSize = d->buffer.read(data, maxSize);-
310 if (bufferReadChunkSize > 0
bufferReadChunkSize > 0Description
TRUEevaluated 823432 times by 131 tests
Evaluated by:
  • 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_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 6913218 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
  • ...
) {
823432-6913218
311 if (!sequential
!sequentialDescription
TRUEevaluated 769977 times by 120 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 53455 times by 24 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Spdy
)
53455-769977
312 d->pos += bufferReadChunkSize;
executed 769977 times by 120 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
  • ...
769977
313 readSoFar += bufferReadChunkSize;-
314 data += bufferReadChunkSize;-
315 maxSize -= bufferReadChunkSize;-
316-
317-
318-
319-
320 }
executed 823432 times by 131 tests: end of block
Executed by:
  • 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_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
else {
823432
321 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 6913107 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->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 6913107 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
  • ...
) { 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-6913107
322 }
executed 6913107 times by 191 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
  • ...
6913107
323-
324 if (maxSize > 0
maxSize > 0Description
TRUEevaluated 4930210 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
  • ...
FALSEevaluated 2806329 times by 132 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 4927377 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
  • ...
FALSEevaluated 2833 times by 17 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QTcpSocket
  • tst_QTemporaryFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Spdy
) {
2833-4930210
325 qint64 readFromDevice = 0;-
326-
327 if (sequential
sequentialDescription
TRUEevaluated 175613 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 4751764 times by 166 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 4750644 times by 166 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 1120 times by 23 tests
Evaluated by:
  • tst_QBitArray
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QMovie
  • tst_QPicture
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProcess
  • tst_QRawFont
  • tst_QSaveFile
  • tst_QStyle
  • tst_QTemporaryFile
  • tst_QTextEdit
  • tst_QTextStream
  • tst_QWizard
  • tst_QXmlSimpleReader
|| seek(d->pos)
seek(d->pos)Description
TRUEevaluated 1120 times by 23 tests
Evaluated by:
  • tst_QBitArray
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFont
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QMovie
  • tst_QPicture
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProcess
  • tst_QRawFont
  • tst_QSaveFile
  • tst_QStyle
  • tst_QTemporaryFile
  • tst_QTextEdit
  • tst_QTextStream
  • tst_QWizard
  • tst_QXmlSimpleReader
FALSEnever evaluated
) {
0-4751764
328 madeBufferReadsOnly = false;-
329 if (maxSize >= static_cast<long long>(16384LL)
maxSize >= sta...long>(16384LL)Description
TRUEevaluated 34393 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 4892984 times by 173 tests
Evaluated by:
  • 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_QDataStream
  • tst_QDate
  • ...
|| (d->openMode & Unbuffered)) {
34393-4892984
330-
331 readFromDevice = readData(data, maxSize);-
332 deviceAtEof = (readFromDevice != maxSize);-
333-
334-
335-
336-
337 if (readFromDevice > 0
readFromDevice > 0Description
TRUEevaluated 4787013 times by 130 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 21538 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_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
) {
21538-4787013
338 readSoFar += readFromDevice;-
339 data += readFromDevice;-
340 maxSize -= readFromDevice;-
341 if (!sequential
!sequentialDescription
TRUEevaluated 4647676 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 139337 times by 33 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QFont
  • tst_QHttpNetworkReply
  • tst_QLocalSocket
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QRawFont
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Selftests
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • ...
) {
139337-4647676
342 d->pos += readFromDevice;-
343 d->devicePos += readFromDevice;-
344 }
executed 4647676 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
  • ...
4647676
345 }
executed 4787013 times by 130 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
  • ...
4787013
346 }
executed 4808551 times by 137 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 {
4808551
347 const qint64 bytesToBuffer = static_cast<long long>(16384LL);-
348-
349 readFromDevice = readData(d->buffer.reserve(bytesToBuffer), bytesToBuffer);-
350 deviceAtEof = (readFromDevice != bytesToBuffer);-
351 d->buffer.chop(bytesToBuffer - qMax(static_cast<long long>(0LL), readFromDevice));-
352 if (readFromDevice > 0
readFromDevice > 0Description
TRUEevaluated 43932 times by 122 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 74894 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCryptographicHash
  • tst_QFile
  • 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
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
) {
43932-74894
353 if (!sequential
!sequentialDescription
TRUEevaluated 41230 times by 119 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 2702 times by 9 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlStream
)
2702-41230
354 d->devicePos += readFromDevice;
executed 41230 times by 119 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
  • ...
41230
355-
356-
357-
358-
359 continue;
executed 43932 times by 122 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
  • ...
43932
360 }-
361 }
executed 74894 times by 33 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QCryptographicHash
  • tst_QFile
  • 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
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
74894
362 } else {-
363 readFromDevice = -1;-
364 }
never executed: end of block
0
365-
366 if (readFromDevice < 0
readFromDevice < 0Description
TRUEevaluated 6487 times by 31 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 4876958 times by 141 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_QCryptographicHash
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
&& readSoFar == 0
readSoFar == 0Description
TRUEevaluated 6416 times by 31 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 71 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QTcpSocket
) {
71-4876958
367-
368 return
executed 6416 times by 31 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 6416 times by 31 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
  • ...
6416
369 }-
370 }
executed 4877029 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
  • ...
4877029
371-
372 if ((d->openMode & Text) && readPtr < data
readPtr < dataDescription
TRUEevaluated 2002253 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 2002122 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
) {
2002122-2002253
373 const char *endPtr = data;-
374-
375-
376 while (*
*readPtr != '\r'Description
TRUEevaluated 43198861 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 43198861 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-43198861
377 if (++
++readPtr == endPtrDescription
TRUEevaluated 2001938 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 41196923 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 2001938 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 41196923 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
)
2001938-41196923
378 break;
executed 2001938 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
2001938
379 }
executed 41196923 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
41196923
380-
381 char *writePtr = readPtr;-
382-
383 while (readPtr < endPtr
readPtr < endPtrDescription
TRUEevaluated 5790 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
FALSEevaluated 2002253 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-2002253
384 char ch = *readPtr++;-
385 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
386 *
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
387 else {-
388 --readSoFar;-
389 --data;-
390 ++maxSize;-
391 }
executed 382 times by 3 tests: end of block
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QSslCertificate
382
392 }-
393-
394-
395-
396-
397 readPtr = data;-
398 continue;
executed 2002253 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
2002253
399 }-
400-
401 break;
executed 5683938 times by 190 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
  • ...
5683938
402 }-
403-
404-
405-
406-
407-
408-
409-
410 if (madeBufferReadsOnly
madeBufferReadsOnlyDescription
TRUEevaluated 763273 times by 104 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 4920665 times by 190 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->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 36391 times by 97 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 726882 times by 95 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
  • ...
) {
36391-4920665
411 d->buffer.clear();-
412 readData(data, 0);-
413 }
executed 36391 times by 97 tests: end of block
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
  • ...
36391
414-
415 return
executed 5683938 times by 190 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 5683938 times by 190 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
  • ...
5683938
416}-
417QByteArray QIODevice::read(qint64 maxSize)-
418{-
419 QIODevicePrivate * const d = d_func();-
420 QByteArray result;-
421-
422 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 69075 times by 91 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-69075
423-
424-
425-
426-
427-
428 (void)d;;-
429-
430-
431 if (maxSize >= MaxByteArraySize
maxSize >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 69075 times by 91 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-69075
432 checkWarnMessage(this, "read", "maxSize argument exceeds QByteArray size limit");-
433 maxSize = MaxByteArraySize - 1;-
434 }
never executed: end of block
0
435-
436 qint64 readBytes = 0;-
437 if (maxSize
maxSizeDescription
TRUEevaluated 69074 times by 91 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-69074
438 result.resize(int(maxSize));-
439 if (!result.size()
!result.size()Description
TRUEnever evaluated
FALSEevaluated 69074 times by 91 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-69074
440-
441 qint64 readResult;-
442 do {-
443 result.resize(int(qMin(maxSize, result.size() + static_cast<long long>(16384LL))));-
444 readResult = read(result.data() + readBytes, result.size() - readBytes);-
445 if (readResult > 0
readResult > 0Description
TRUEnever evaluated
FALSEnever evaluated
|| readBytes == 0
readBytes == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
446 readBytes += readResult;
never executed: readBytes += readResult;
0
447 }
never executed: end of block
while (readResult == static_cast<long long>(16384LL)
readResult == ...long>(16384LL)Description
TRUEnever evaluated
FALSEnever evaluated
);
0
448 }
never executed: end of block
else {
0
449 readBytes = read(result.data(), result.size());-
450 }
executed 69074 times by 91 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
  • ...
69074
451 }-
452-
453 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 68977 times by 91 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-68977
454 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
455 else-
456 result.resize(int(readBytes));
executed 68977 times by 91 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
  • ...
68977
457-
458 return
executed 69075 times by 91 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 69075 times by 91 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
  • ...
69075
459}-
460QByteArray QIODevice::readAll()-
461{-
462 QIODevicePrivate * const d = d_func();-
463-
464-
465-
466-
467-
468 QByteArray result;-
469 qint64 readBytes = (d->isSequential()
d->isSequential()Description
TRUEevaluated 14594 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 16349 times by 74 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());
14594-16349
470 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 14614 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 16329 times by 74 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
  • ...
) {
14614-16329
471-
472 qint64 readChunkSize = qMax(d->buffer.size(), static_cast<long long>(16384LL));-
473 qint64 readResult;-
474 do {-
475 if (readBytes + readChunkSize >= MaxByteArraySize
readBytes + re...xByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 28308 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-28308
476-
477 break;
never executed: break;
0
478 }-
479 result.resize(readBytes + readChunkSize);-
480 readResult = read(result.data() + readBytes, readChunkSize);-
481 if (readResult > 0
readResult > 0Description
TRUEevaluated 13694 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 14614 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 2291 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 12323 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
  • ...
) {
2291-14614
482 readBytes += readResult;-
483 readChunkSize = static_cast<long long>(16384LL);-
484 }
executed 15985 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
  • ...
15985
485 }
executed 28308 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 13694 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 14614 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
  • ...
);
13694-28308
486 }
executed 14614 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 {
14614
487-
488-
489 readBytes -= d->pos;-
490 if (readBytes >= MaxByteArraySize
readBytes >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 16329 times by 74 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-16329
491 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
492 result.resize(readBytes);-
493 readBytes = read(result.data(), readBytes);-
494 }
executed 16329 times by 74 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
  • ...
16329
495-
496 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 3512 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 27431 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
  • ...
)
3512-27431
497 result.clear();
executed 3512 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
3512
498 else-
499 result.resize(int(readBytes));
executed 27431 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
  • ...
27431
500-
501 return
executed 30943 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 30943 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
  • ...
30943
502}-
503qint64 QIODevice::readLine(char *data, qint64 maxSize)-
504{-
505 QIODevicePrivate * const d = d_func();-
506 if (maxSize < 2
maxSize < 2Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QSslSocket
FALSEevaluated 92313 times by 27 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • ...
) {
10-92313
507 checkWarnMessage(this, "readLine", "Called with maxSize < 2");-
508 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
509 }-
510-
511-
512-
513-
514-
515-
516-
517 --maxSize;-
518-
519 const bool sequential = d->isSequential();-
520-
521 qint64 readSoFar = 0;-
522 if (!d->buffer.isEmpty()
!d->buffer.isEmpty()Description
TRUEevaluated 86004 times by 23 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
FALSEevaluated 6309 times by 22 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
) {
6309-86004
523 readSoFar = d->buffer.readLine(data, maxSize);-
524 if (d->buffer.isEmpty()
d->buffer.isEmpty()Description
TRUEevaluated 5217 times by 22 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
FALSEevaluated 80787 times by 22 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
)
5217-80787
525 readData(data,0);
executed 5217 times by 22 tests: readData(data,0);
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
5217
526 if (!sequential
!sequentialDescription
TRUEevaluated 80143 times by 18 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_selftests - unknown status
FALSEevaluated 5861 times by 9 tests
Evaluated by:
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QXmlInputSource
)
5861-80143
527 d->pos += readSoFar;
executed 80143 times by 18 tests: d->pos += readSoFar;
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_selftests - unknown status
80143
528-
529-
530-
531-
532-
533-
534 if (readSoFar
readSoFarDescription
TRUEevaluated 86004 times by 23 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
FALSEnever evaluated
&& data[readSoFar - 1] == '\n'
data[readSoFar - 1] == '\n'Description
TRUEevaluated 85500 times by 22 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
FALSEevaluated 504 times by 11 tests
Evaluated by:
  • tst_QChar
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
) {
0-86004
535 if (d->openMode & Text
d->openMode & TextDescription
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
FALSEevaluated 85464 times by 21 tests
Evaluated by:
  • tst_QChar
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
) {
36-85464
536-
537 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
538 --readSoFar;-
539 data[readSoFar - 1] = '\n';-
540 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFile
1
541 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QProcess
36
542 data[readSoFar] = '\0';-
543 return
executed 85500 times by 22 tests: return readSoFar;
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
readSoFar;
executed 85500 times by 22 tests: return readSoFar;
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_selftests - unknown status
85500
544 }-
545 }
executed 504 times by 11 tests: end of block
Executed by:
  • tst_QChar
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
504
546-
547 if (d->pos != d->devicePos
d->pos != d->devicePosDescription
TRUEevaluated 169 times by 4 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
FALSEevaluated 6644 times by 23 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
&& !sequential
!sequentialDescription
TRUEevaluated 169 times by 4 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
FALSEnever evaluated
&& !seek(d->pos)
!seek(d->pos)Description
TRUEnever evaluated
FALSEevaluated 169 times by 4 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
)
0-6644
548 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
549 d->baseReadLineDataCalled = false;-
550 qint64 readBytes = readLineData(data + readSoFar, maxSize - readSoFar);-
551-
552-
553-
554-
555-
556-
557-
558 if (readBytes < 0
readBytes < 0Description
TRUEevaluated 365 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 6448 times by 19 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
) {
365-6448
559 data[readSoFar] = '\0';-
560 return
executed 365 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
readSoFarDescription
TRUEevaluated 122 times by 4 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QPixmap
FALSEevaluated 243 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
? readSoFar : -1;
executed 365 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
122-365
561 }-
562 readSoFar += readBytes;-
563 if (!d->baseReadLineDataCalled
!d->baseReadLineDataCalledDescription
TRUEnever evaluated
FALSEevaluated 6448 times by 19 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
&& !sequential
!sequentialDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-6448
564 d->pos += readBytes;-
565-
566-
567 d->devicePos = qint64(-1);-
568 }
never executed: end of block
0
569 data[readSoFar] = '\0';-
570-
571 if (d->openMode & Text
d->openMode & TextDescription
TRUEevaluated 411 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
FALSEevaluated 6037 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
) {
411-6037
572 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
573 data[readSoFar - 2] = '\n';-
574 data[readSoFar - 1] = '\0';-
575 --readSoFar;-
576 }
never executed: end of block
0
577 }
executed 411 times by 4 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
411
578-
579-
580-
581-
582-
583-
584 return
executed 6448 times by 19 tests: return readSoFar;
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
readSoFar;
executed 6448 times by 19 tests: return readSoFar;
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
6448
585}-
586QByteArray QIODevice::readLine(qint64 maxSize)-
587{-
588 QIODevicePrivate * const d = d_func();-
589 QByteArray result;-
590-
591 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 35787 times by 20 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
) { checkWarnMessage(this, "readLine", "Called with maxSize < 0"); return
never executed: return result;
result;
never executed: return result;
} } while (0);
0-35787
592-
593-
594-
595-
596-
597 (void)d;;-
598-
599-
600 if (maxSize >= MaxByteArraySize
maxSize >= MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 35787 times by 20 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
) {
0-35787
601 QMessageLogger(__FILE__, 1170, __PRETTY_FUNCTION__).warning("QIODevice::read: maxSize argument exceeds QByteArray size limit");-
602 maxSize = MaxByteArraySize - 1;-
603 }
never executed: end of block
0
604-
605 result.resize(int(maxSize));-
606 qint64 readBytes = 0;-
607 if (!result.size()
!result.size()Description
TRUEevaluated 35778 times by 20 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QIODevice
) {
9-35778
608-
609 if (maxSize == 0
maxSize == 0Description
TRUEevaluated 35778 times by 20 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-35778
610 maxSize = MaxByteArraySize - 1;
executed 35778 times by 20 tests: maxSize = MaxByteArraySize - 1;
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
35778
611-
612-
613 result.resize(1);-
614-
615 qint64 readResult;-
616 do {-
617 result.resize(int(qMin(maxSize, result.size() + static_cast<long long>(16384LL))));-
618 readResult = readLine(result.data() + readBytes, result.size() - readBytes);-
619 if (readResult > 0
readResult > 0Description
TRUEevaluated 35735 times by 19 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 115 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
|| readBytes == 0
readBytes == 0Description
TRUEevaluated 115 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEnever evaluated
)
0-35735
620 readBytes += readResult;
executed 35850 times by 20 tests: readBytes += readResult;
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
35850
621 }
executed 35850 times by 20 tests: end of block
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
while (readResult == static_cast<long long>(16384LL)
readResult == ...long>(16384LL)Description
TRUEevaluated 80 times by 2 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
FALSEevaluated 35770 times by 20 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
80-35850
622 && 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
623 }
executed 35778 times by 20 tests: end of block
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
else
35778
624 readBytes = readLine(result.data(), result.size());
executed 9 times by 1 test: readBytes = readLine(result.data(), result.size());
Executed by:
  • tst_QIODevice
9
625-
626 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 115 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
FALSEevaluated 35672 times by 19 tests
Evaluated by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
)
115-35672
627 result.clear();
executed 115 times by 6 tests: result.clear();
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
115
628 else-
629 result.resize(readBytes);
executed 35672 times by 19 tests: result.resize(readBytes);
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
35672
630-
631 return
executed 35787 times by 20 tests: return result;
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
result;
executed 35787 times by 20 tests: return result;
Executed by:
  • tst_QBuffer
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
35787
632}-
633qint64 QIODevice::readLineData(char *data, qint64 maxSize)-
634{-
635 QIODevicePrivate * const d = d_func();-
636 qint64 readSoFar = 0;-
637 char c;-
638 int lastReadReturn = 0;-
639 d->baseReadLineDataCalled = true;-
640-
641 while (readSoFar < maxSize
readSoFar < maxSizeDescription
TRUEevaluated 4516396 times by 23 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 213 times by 5 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QTcpSocket
&& (
(lastReadRetur...d(&c, 1)) == 1Description
TRUEevaluated 4515995 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 401 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 4515995 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 401 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-4516396
642 *data++ = c;-
643 ++readSoFar;-
644 if (c == '\n'
c == '\n'Description
TRUEevaluated 6191 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
FALSEevaluated 4509804 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
)
6191-4509804
645 break;
executed 6191 times by 18 tests: break;
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
6191
646 }
executed 4509804 times by 18 tests: end of block
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
4509804
647-
648-
649-
650-
651-
652 if (lastReadReturn != 1
lastReadReturn != 1Description
TRUEevaluated 535 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 6270 times by 18 tests
Evaluated by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
&& readSoFar == 0
readSoFar == 0Description
TRUEevaluated 386 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 149 times by 2 tests
Evaluated by:
  • tst_QBuffer
  • tst_QIODevice
)
149-6270
653 return
executed 386 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()
isSequential()Description
TRUEevaluated 78 times by 6 tests
Evaluated by:
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
FALSEevaluated 308 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QLockFile
  • tst_QPixmap
? lastReadReturn : -1;
executed 386 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
78-386
654 return
executed 6419 times by 18 tests: return readSoFar;
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
readSoFar;
executed 6419 times by 18 tests: return readSoFar;
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QCssParser
  • tst_QDebug
  • tst_QFile
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
6419
655}-
656bool QIODevice::canReadLine() const-
657{-
658 return
executed 10377 times by 12 tests: return d_func()->buffer.canReadLine();
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_func()->buffer.canReadLine();
executed 10377 times by 12 tests: return d_func()->buffer.canReadLine();
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
10377
659}-
660qint64 QIODevice::write(const char *data, qint64 maxSize)-
661{-
662 QIODevicePrivate * const d = d_func();-
663 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 1044397 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 1044397 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-1044397
664 do { if (maxSize < 0
maxSize < 0Description
TRUEnever evaluated
FALSEevaluated 1044397 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-1044397
665-
666 const bool sequential = d->isSequential();-
667-
668 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 1044343 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-1044343
669 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
670 qint64 written = writeData(data, maxSize);-
671 if (written > 0
written > 0Description
TRUEevaluated 1042119 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
  • ...
FALSEevaluated 2278 times by 17 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QXmlStream
  • tst_qdbusxml2cpp
  • tst_qmakelib
  • tst_qnetworkreply - unknown status
) {
2278-1042119
672 if (!sequential
!sequentialDescription
TRUEevaluated 346893 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 695226 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
  • ...
) {
346893-695226
673 d->pos += written;-
674 d->devicePos += written;-
675 }
executed 346893 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
  • ...
346893
676 if (!d->buffer.isEmpty()
!d->buffer.isEmpty()Description
TRUEevaluated 362 times by 8 tests
Evaluated by:
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 1041757 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 2 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIODevice
FALSEevaluated 360 times by 6 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_Spdy
)
2-1041757
677 d->buffer.skip(written);
executed 2 times by 2 tests: d->buffer.skip(written);
Executed by:
  • tst_QFile
  • tst_QIODevice
2
678 }
executed 1042119 times by 117 tests: end of block
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
  • ...
1042119
679 return
executed 1044397 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 1044397 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
  • ...
1044397
680}-
681qint64 QIODevice::write(const char *data)-
682{-
683 return
executed 3487 times by 28 tests: return write(data, qstrlen(data));
Executed by:
  • tst_QBuffer
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • 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
  • tst_languageChange
  • ...
write(data, qstrlen(data));
executed 3487 times by 28 tests: return write(data, qstrlen(data));
Executed by:
  • tst_QBuffer
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • 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
  • tst_languageChange
  • ...
3487
684}-
685void QIODevice::ungetChar(char c)-
686{-
687 QIODevicePrivate * const d = d_func();-
688 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
689-
690-
691-
692-
693-
694 d->buffer.ungetChar(c);-
695 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
696 --
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
697}
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
698bool QIODevice::putChar(char c)-
699{-
700 return
executed 29669 times by 45 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_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • ...
d_func()->putCharHelper(c);
executed 29669 times by 45 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_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • ...
29669
701}-
702-
703-
704-
705-
706bool QIODevicePrivate::putCharHelper(char c)-
707{-
708 return
executed 27525 times by 41 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_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QPen
  • tst_QPicture
  • tst_QPrinter
  • ...
q_func()->write(&c, 1) == 1;
executed 27525 times by 41 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_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QPen
  • tst_QPicture
  • tst_QPrinter
  • ...
27525
709}-
710-
711-
712-
713-
714qint64 QIODevicePrivate::peek(char *data, qint64 maxSize)-
715{-
716 qint64 readBytes = q_func()->read(data, maxSize);-
717 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 322 times by 7 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkreply - unknown status
FALSEevaluated 17486 times by 80 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
  • ...
)
322-17486
718 return
executed 322 times by 7 tests: return readBytes;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkreply - unknown status
readBytes;
executed 322 times by 7 tests: return readBytes;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_qnetworkreply - unknown status
322
719-
720 buffer.ungetBlock(data, readBytes);-
721 if (!isSequential()
!isSequential()Description
TRUEevaluated 13782 times by 72 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 3704 times by 9 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
)
3704-13782
722 pos -= readBytes;
executed 13782 times by 72 tests: pos -= readBytes;
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
  • ...
13782
723 return
executed 17486 times by 80 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 17486 times by 80 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
  • ...
17486
724}-
725-
726-
727-
728-
729QByteArray QIODevicePrivate::peek(qint64 maxSize)-
730{-
731 QByteArray result = q_func()->read(maxSize);-
732-
733 if (result.isEmpty()
result.isEmpty()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QLabel
FALSEevaluated 19929 times by 76 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
  • ...
)
7-19929
734 return
executed 7 times by 2 tests: return result;
Executed by:
  • tst_QImageReader
  • tst_QLabel
result;
executed 7 times by 2 tests: return result;
Executed by:
  • tst_QImageReader
  • tst_QLabel
7
735-
736 buffer.ungetBlock(result.constData(), result.size());-
737 if (!isSequential()
!isSequential()Description
TRUEevaluated 19898 times by 73 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 31 times by 6 tests
Evaluated by:
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
)
31-19898
738 pos -= result.size();
executed 19898 times by 73 tests: pos -= result.size();
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
  • ...
19898
739 return
executed 19929 times by 76 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 19929 times by 76 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
  • ...
19929
740}-
741bool QIODevice::getChar(char *c)-
742{-
743-
744 char ch;-
745 return
executed 1584766 times by 45 tests: return (1 == read(c ? c : &ch, 1));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • 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_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • ...
(1 == read(c ? c : &ch, 1));
executed 1584766 times by 45 tests: return (1 == read(c ? c : &ch, 1));
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • 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_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • ...
1584766
746}-
747qint64 QIODevice::peek(char *data, qint64 maxSize)-
748{-
749 return
executed 19343 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 19343 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
  • ...
19343
750}-
751QByteArray QIODevice::peek(qint64 maxSize)-
752{-
753 return
executed 20161 times by 80 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 20161 times by 80 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
  • ...
20161
754}-
755bool QIODevice::waitForReadyRead(int msecs)-
756{-
757 (void)msecs;;-
758 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
759}-
760bool QIODevice::waitForBytesWritten(int msecs)-
761{-
762 (void)msecs;;-
763 return
never executed: return false;
false;
never executed: return false;
0
764}-
765-
766-
767-
768-
769-
770-
771-
772void QIODevice::setErrorString(const QString &str)-
773{-
774 d_func()->errorString = str;-
775}
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
776-
777-
778-
779-
780-
781-
782-
783QString QIODevice::errorString() const-
784{-
785 const QIODevicePrivate * const d = d_func();-
786 if (d->errorString.isEmpty()
d->errorString.isEmpty()Description
TRUEevaluated 4965 times by 41 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_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPdfWriter
  • ...
FALSEevaluated 729 times by 21 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QFile
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • 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
) {
729-4965
787-
788-
789-
790 return
executed 4965 times by 41 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_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPdfWriter
  • ...
tr("Unknown error");
executed 4965 times by 41 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_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPdfWriter
  • ...
4965
791-
792 }-
793 return
executed 729 times by 21 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_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 729 times by 21 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_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
729
794}-
795int qt_subtract_from_timeout(int timeout, int elapsed)-
796{-
797 if (timeout == -1
timeout == -1Description
TRUEevaluated 753 times by 8 tests
Evaluated by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qmake
  • tst_qmakelib
FALSEevaluated 62458 times by 46 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_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • ...
)
753-62458
798 return
executed 753 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 753 times by 8 tests: return -1;
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QProcess
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QXmlSimpleReader
  • tst_qmake
  • tst_qmakelib
753
799-
800 timeout = timeout - elapsed;-
801 return
executed 62458 times by 46 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_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • ...
timeout < 0
timeout < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEevaluated 62457 times by 46 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_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • ...
? 0 : timeout;
executed 62458 times by 46 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_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • ...
1-62458
802}-
803-
804-
805-
806QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)-
807{-
808 debug << "OpenMode(";-
809 QStringList modeList;-
810 if (modes == QIODevice::NotOpen
modes == QIODevice::NotOpenDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
) {
0-16
811 modeList << QLatin1String("NotOpen");-
812 }
never executed: end of block
else {
0
813 if (modes & QIODevice::ReadOnly
modes & QIODevice::ReadOnlyDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
)
0-16
814 modeList << QLatin1String("ReadOnly");
executed 16 times by 1 test: modeList << QLatin1String("ReadOnly");
Executed by:
  • tst_QFile
16
815 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
816 modeList << QLatin1String("WriteOnly");
executed 5 times by 1 test: modeList << QLatin1String("WriteOnly");
Executed by:
  • tst_QFile
5
817 if (modes & QIODevice::Append
modes & QIODevice::AppendDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
)
0-16
818 modeList << QLatin1String("Append");
never executed: modeList << QLatin1String("Append");
0
819 if (modes & QIODevice::Truncate
modes & QIODevice::TruncateDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFile
)
0-16
820 modeList << QLatin1String("Truncate");
never executed: modeList << QLatin1String("Truncate");
0
821 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
822 modeList << QLatin1String("Text");
executed 3 times by 1 test: modeList << QLatin1String("Text");
Executed by:
  • tst_QFile
3
823 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
824 modeList << QLatin1String("Unbuffered");
executed 3 times by 1 test: modeList << QLatin1String("Unbuffered");
Executed by:
  • tst_QFile
3
825 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_QFile
16
826 std::sort(modeList.begin(), modeList.end());-
827 debug << modeList.join(QLatin1Char('|'));-
828 debug << ')';-
829 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
830}-
831-
832-
833-
Switch to Source codePreprocessed file

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