Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | static 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()TRUE | never evaluated | FALSE | evaluated 168 times by 9 testsEvaluated 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 (constTRUE | evaluated 3 times by 2 tests | FALSE | evaluated 165 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QIODevice
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
|
QFile *f = qobject_cast<const QFile *>(device)TRUE | evaluated 3 times by 2 tests | FALSE | evaluated 165 times by 7 testsEvaluated 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()) << '"'; | 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 |
33 | QIODevicePrivate::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 | | - |
47 | QIODevicePrivate::~QIODevicePrivate() | - |
48 | { | - |
49 | } | - |
50 | QIODevice::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 | | - |
64 | QIODevice::QIODevice(QObject *parent) | - |
65 | : QObject(*new QIODevicePrivate, parent) | - |
66 | { | - |
67 | | - |
68 | | - |
69 | | - |
70 | }executed 13 times by 1 test: end of block | 13 |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | QIODevice::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 |
79 | QIODevice::~QIODevice() | - |
80 | { | - |
81 | | - |
82 | | - |
83 | | - |
84 | } | - |
85 | bool QIODevice::isSequential() const | - |
86 | { | - |
87 | returnexecuted 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 | | - |
96 | QIODevice::OpenMode QIODevice::openMode() const | - |
97 | { | - |
98 | returnexecuted 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 | } | - |
100 | void 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()TRUE | evaluated 2 times by 2 testsEvaluated by:- tst_QIODevice
- tst_QTemporaryFile
| FALSE | evaluated 759 times by 12 testsEvaluated 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 |
111 | void QIODevice::setTextModeEnabled(bool enabled) | - |
112 | { | - |
113 | QIODevicePrivate * const d = d_func(); | - |
114 | if (!isOpen()TRUE | never evaluated | FALSE | evaluated 82080469 times by 7 testsEvaluated 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 (enabledTRUE | evaluated 41040053 times by 6 testsEvaluated by:- tst_QFile
- tst_QFileInfo
- tst_QLayout
- tst_QLoggingRegistry
- tst_QTextStream
- tst_QXmlSimpleReader
| FALSE | evaluated 41040416 times by 7 testsEvaluated 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 | | - |
129 | bool QIODevice::isTextModeEnabled() const | - |
130 | { | - |
131 | returnexecuted 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 | } | - |
133 | bool QIODevice::isOpen() const | - |
134 | { | - |
135 | returnexecuted 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 | } | - |
137 | bool QIODevice::isReadable() const | - |
138 | { | - |
139 | returnexecuted 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 | } | - |
141 | bool QIODevice::isWritable() const | - |
142 | { | - |
143 | returnexecuted 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 | } | - |
145 | bool QIODevice::open(OpenMode mode) | - |
146 | { | - |
147 | QIODevicePrivate * const d = d_func(); | - |
148 | d->openMode = mode; | - |
149 | d->pos = (TRUE | evaluated 285 times by 10 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QBuffer
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QLocalSocket
- tst_QMetaObjectBuilder
- tst_QPrinter
- tst_qfileopenevent
- tst_qmakelib
| FALSE | evaluated 64213 times by 234 testsEvaluated 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)TRUE | evaluated 285 times by 10 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QBuffer
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QLocalSocket
- tst_QMetaObjectBuilder
- tst_QPrinter
- tst_qfileopenevent
- tst_qmakelib
| FALSE | evaluated 64213 times by 234 testsEvaluated 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 | returnexecuted 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 | | - |
164 | void QIODevice::close() | - |
165 | { | - |
166 | QIODevicePrivate * const d = d_func(); | - |
167 | if (d->openMode == NotOpenTRUE | evaluated 1930 times by 18 testsEvaluated 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
| FALSE | evaluated 50027 times by 201 testsEvaluated 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 |
182 | qint64 QIODevice::pos() const | - |
183 | { | - |
184 | const QIODevicePrivate * const d = d_func(); | - |
185 | | - |
186 | | - |
187 | | - |
188 | returnexecuted 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 | } | - |
190 | qint64 QIODevice::size() const | - |
191 | { | - |
192 | returnexecuted 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()TRUE | evaluated 74 times by 4 testsEvaluated by:- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
| FALSE | never 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 | } | - |
194 | bool QIODevice::seek(qint64 pos) | - |
195 | { | - |
196 | QIODevicePrivate * const d = d_func(); | - |
197 | if (d->isSequential()TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QIODevice
- tst_QNetworkReply
- tst_QSslSocket
| FALSE | evaluated 275944 times by 107 testsEvaluated 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 | returnexecuted 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 == NotOpenTRUE | never evaluated | FALSE | evaluated 275944 times by 107 testsEvaluated 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 < 0TRUE | never evaluated | FALSE | evaluated 275944 times by 107 testsEvaluated 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 < 0TRUE | evaluated 129216 times by 33 testsEvaluated 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
- ...
| FALSE | evaluated 146728 times by 98 testsEvaluated 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()TRUE | evaluated 134720 times by 42 testsEvaluated 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
- ...
| FALSE | evaluated 12008 times by 77 testsEvaluated 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()TRUE | evaluated 12008 times by 77 testsEvaluated 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
- ...
| FALSE | never 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 | returnexecuted 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 | } | - |
234 | bool QIODevice::atEnd() const | - |
235 | { | - |
236 | const QIODevicePrivate * const d = d_func(); | - |
237 | const bool result = (d->openMode == NotOpenTRUE | evaluated 7 times by 3 testsEvaluated by:- tst_QBuffer
- tst_QProcess
- tst_QSslSocket
| FALSE | evaluated 5157 times by 36 testsEvaluated 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()TRUE | evaluated 4904 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 253 times by 3 testsEvaluated by:- tst_QImageReader
- tst_QProcess
- tst_QTcpSocket
|
| 7-5157 |
238 | && bytesAvailable() == 0TRUE | evaluated 939 times by 28 testsEvaluated 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
- ...
| FALSE | evaluated 3965 times by 29 testsEvaluated 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 | returnexecuted 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 | } | - |
245 | bool QIODevice::reset() | - |
246 | { | - |
247 | | - |
248 | | - |
249 | | - |
250 | returnexecuted 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 | } | - |
252 | qint64 QIODevice::bytesAvailable() const | - |
253 | { | - |
254 | const QIODevicePrivate * const d = d_func(); | - |
255 | if (!d->isSequential()TRUE | evaluated 9312 times by 48 testsEvaluated 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
- ...
| FALSE | evaluated 104490 times by 27 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
266 | qint64 QIODevice::bytesToWrite() const | - |
267 | { | - |
268 | return never executed: return qint64(0); qint64(0);never executed: return qint64(0); | 0 |
269 | } | - |
270 | qint64 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 == 1TRUE | evaluated 47675277 times by 72 testsEvaluated 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
- ...
| FALSE | evaluated 1018863 times by 185 testsEvaluated 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 ((TRUE | evaluated 43003676 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 4671602 times by 66 testsEvaluated 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()) != -1TRUE | evaluated 43003676 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 4671602 times by 66 testsEvaluated 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 (!sequentialTRUE | evaluated 42595857 times by 27 testsEvaluated 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
- ...
| FALSE | evaluated 407819 times by 15 testsEvaluated 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'TRUE | evaluated 27918 times by 15 testsEvaluated 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
| FALSE | evaluated 42975758 times by 36 testsEvaluated 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; | 1 |
291 | *data = c; | - |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | if (d->buffer.isEmpty()TRUE | evaluated 3679 times by 20 testsEvaluated 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
| FALSE | evaluated 42999996 times by 35 testsEvaluated 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 | returnexecuted 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 < 0TRUE | never evaluated | FALSE | evaluated 5690465 times by 191 testsEvaluated 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"); returnnever 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 > 0TRUE | evaluated 823432 times by 131 testsEvaluated 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
- ...
| FALSE | evaluated 6913218 times by 191 testsEvaluated 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 (!sequentialTRUE | evaluated 769977 times by 120 testsEvaluated 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
- ...
| FALSE | evaluated 53455 times by 24 testsEvaluated 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 ((TRUE | evaluated 111 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | evaluated 6913107 times by 191 testsEvaluated 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) == 0TRUE | evaluated 111 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | evaluated 6913107 times by 191 testsEvaluated 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 == NotOpenTRUE | evaluated 109 times by 6 testsEvaluated by:- tst_QBuffer
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | evaluated 2 times by 2 tests |
) { checkWarnMessage(this, "read", "device not open"); returnexecuted 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"); returnexecuted 2 times by 2 tests: return qint64(-1); qint64(-1);executed 2 times by 2 tests: return qint64(-1); } } 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 > 0TRUE | evaluated 4930210 times by 191 testsEvaluated 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
- ...
| FALSE | evaluated 2806329 times by 132 testsEvaluated 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
- ...
|
&& !deviceAtEofTRUE | evaluated 4927377 times by 191 testsEvaluated 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
- ...
| FALSE | evaluated 2833 times by 17 testsEvaluated 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 (sequentialTRUE | evaluated 175613 times by 51 testsEvaluated 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
- ...
| FALSE | evaluated 4751764 times by 166 testsEvaluated 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->devicePosTRUE | evaluated 4750644 times by 166 testsEvaluated 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
- ...
| FALSE | evaluated 1120 times by 23 testsEvaluated 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)TRUE | evaluated 1120 times by 23 testsEvaluated 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
| FALSE | never evaluated |
) { | 0-4751764 |
328 | madeBufferReadsOnly = false; | - |
329 | if (maxSize >= static_cast<long long>(16384LL)TRUE | evaluated 34393 times by 91 testsEvaluated 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
- ...
| FALSE | evaluated 4892984 times by 173 testsEvaluated 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 > 0TRUE | evaluated 4787013 times by 130 testsEvaluated 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
- ...
| FALSE | evaluated 21538 times by 56 testsEvaluated 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 (!sequentialTRUE | evaluated 4647676 times by 110 testsEvaluated 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
- ...
| FALSE | evaluated 139337 times by 33 testsEvaluated 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 > 0TRUE | evaluated 43932 times by 122 testsEvaluated 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
- ...
| FALSE | evaluated 74894 times by 33 testsEvaluated 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 (!sequentialTRUE | evaluated 41230 times by 119 testsEvaluated 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
- ...
| FALSE | evaluated 2702 times by 9 testsEvaluated 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 < 0TRUE | evaluated 6487 times by 31 testsEvaluated 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
- ...
| FALSE | evaluated 4876958 times by 141 testsEvaluated 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 == 0TRUE | evaluated 6416 times by 31 testsEvaluated 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
- ...
| FALSE | evaluated 71 times by 5 testsEvaluated by:- tst_NetworkSelfTest
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QTcpSocket
|
) { | 71-4876958 |
367 | | - |
368 | returnexecuted 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 < dataTRUE | evaluated 2002253 times by 14 testsEvaluated 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
| FALSE | evaluated 2002122 times by 14 testsEvaluated 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 (*TRUE | evaluated 43198861 times by 14 testsEvaluated 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
| FALSE | evaluated 315 times by 3 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QSslCertificate
|
readPtr != '\r'TRUE | evaluated 43198861 times by 14 testsEvaluated 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
| FALSE | evaluated 315 times by 3 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QSslCertificate
|
) { | 315-43198861 |
377 | if (++TRUE | evaluated 2001938 times by 14 testsEvaluated 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
| FALSE | evaluated 41196923 times by 13 testsEvaluated 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 == endPtrTRUE | evaluated 2001938 times by 14 testsEvaluated 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
| FALSE | evaluated 41196923 times by 13 testsEvaluated 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 < endPtrTRUE | evaluated 5790 times by 3 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QSslCertificate
| FALSE | evaluated 2002253 times by 14 testsEvaluated 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'TRUE | evaluated 5408 times by 2 testsEvaluated by:- tst_QFile
- tst_QSslCertificate
| FALSE | evaluated 382 times by 3 testsEvaluated 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 (madeBufferReadsOnlyTRUE | evaluated 763273 times by 104 testsEvaluated 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
- ...
| FALSE | evaluated 4920665 times by 190 testsEvaluated 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()TRUE | evaluated 36391 times by 97 testsEvaluated 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
- ...
| FALSE | evaluated 726882 times by 95 testsEvaluated 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 | returnexecuted 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 | } | - |
417 | QByteArray QIODevice::read(qint64 maxSize) | - |
418 | { | - |
419 | QIODevicePrivate * const d = d_func(); | - |
420 | QByteArray result; | - |
421 | | - |
422 | do { if (maxSize < 0TRUE | never evaluated | FALSE | evaluated 69075 times by 91 testsEvaluated 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"); returnnever 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 >= MaxByteArraySizeTRUE | never evaluated | FALSE | evaluated 69075 times by 91 testsEvaluated 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 (maxSizeTRUE | evaluated 69074 times by 91 testsEvaluated 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
- ...
| FALSE | evaluated 1 time by 1 test |
) { | 1-69074 |
438 | result.resize(int(maxSize)); | - |
439 | if (!result.size()TRUE | never evaluated | FALSE | evaluated 69074 times by 91 testsEvaluated 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 > 0TRUE | never evaluated | FALSE | never evaluated |
|| readBytes == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
446 | readBytes += readResult; never executed: readBytes += readResult; | 0 |
447 | } never executed: end of block while (readResult == static_cast<long long>(16384LL)TRUE | never evaluated | FALSE | never 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 <= 0TRUE | evaluated 98 times by 7 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QLabel
- tst_QMovie
- tst_QPixmap
- tst_QSslSocket
| FALSE | evaluated 68977 times by 91 testsEvaluated 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 | returnexecuted 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 | } | - |
460 | QByteArray QIODevice::readAll() | - |
461 | { | - |
462 | QIODevicePrivate * const d = d_func(); | - |
463 | | - |
464 | | - |
465 | | - |
466 | | - |
467 | | - |
468 | QByteArray result; | - |
469 | qint64 readBytes = (d->isSequential()TRUE | evaluated 14594 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 16349 times by 74 testsEvaluated 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 == 0TRUE | evaluated 14614 times by 39 testsEvaluated 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
- ...
| FALSE | evaluated 16329 times by 74 testsEvaluated 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 >= MaxByteArraySizeTRUE | never evaluated | FALSE | evaluated 28308 times by 39 testsEvaluated 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 > 0TRUE | evaluated 13694 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 14614 times by 39 testsEvaluated 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 == 0TRUE | evaluated 2291 times by 25 testsEvaluated 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
| FALSE | evaluated 12323 times by 35 testsEvaluated 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 > 0TRUE | evaluated 13694 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 14614 times by 39 testsEvaluated 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 >= MaxByteArraySizeTRUE | never evaluated | FALSE | evaluated 16329 times by 74 testsEvaluated 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 <= 0TRUE | evaluated 3512 times by 25 testsEvaluated 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
| FALSE | evaluated 27431 times by 97 testsEvaluated 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 | returnexecuted 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 | } | - |
503 | qint64 QIODevice::readLine(char *data, qint64 maxSize) | - |
504 | { | - |
505 | QIODevicePrivate * const d = d_func(); | - |
506 | if (maxSize < 2TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QIODevice
- tst_QSslSocket
| FALSE | evaluated 92313 times by 27 testsEvaluated 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 | returnexecuted 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()TRUE | evaluated 86004 times by 23 testsEvaluated 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
| FALSE | evaluated 6309 times by 22 testsEvaluated 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()TRUE | evaluated 5217 times by 22 testsEvaluated 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
| FALSE | evaluated 80787 times by 22 testsEvaluated 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 (!sequentialTRUE | evaluated 80143 times by 18 testsEvaluated 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
| FALSE | evaluated 5861 times by 9 testsEvaluated 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 (readSoFarTRUE | evaluated 86004 times by 23 testsEvaluated 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
| FALSE | never evaluated |
&& data[readSoFar - 1] == '\n'TRUE | evaluated 85500 times by 22 testsEvaluated 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
| FALSE | evaluated 504 times by 11 testsEvaluated 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 & TextTRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QCssParser
- tst_QFile
- tst_QProcess
| FALSE | evaluated 85464 times by 21 testsEvaluated 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 > 1TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QCssParser
- tst_QFile
- tst_QProcess
| FALSE | never evaluated |
&& data[readSoFar - 2] == '\r'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 35 times by 3 testsEvaluated 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 | 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 | returnexecuted 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->devicePosTRUE | evaluated 169 times by 4 testsEvaluated by:- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QPixmap
| FALSE | evaluated 6644 times by 23 testsEvaluated 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
|
&& !sequentialTRUE | evaluated 169 times by 4 testsEvaluated by:- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QPixmap
| FALSE | never evaluated |
&& !seek(d->pos)TRUE | never evaluated | FALSE | evaluated 169 times by 4 testsEvaluated 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 < 0TRUE | evaluated 365 times by 10 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QLockFile
- tst_QNetworkReply
- tst_QPixmap
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | evaluated 6448 times by 19 testsEvaluated 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 | returnexecuted 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
readSoFarTRUE | evaluated 122 times by 4 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QPixmap
| FALSE | evaluated 243 times by 10 testsEvaluated 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->baseReadLineDataCalledTRUE | never evaluated | FALSE | evaluated 6448 times by 19 testsEvaluated 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
|
&& !sequentialTRUE | never evaluated | FALSE | never 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 & TextTRUE | evaluated 411 times by 4 testsEvaluated by:- tst_QCssParser
- tst_QFile
- tst_QIODevice
- tst_QProcess
| FALSE | evaluated 6037 times by 18 testsEvaluated 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 > 1TRUE | evaluated 333 times by 4 testsEvaluated by:- tst_QCssParser
- tst_QFile
- tst_QIODevice
- tst_QProcess
| FALSE | evaluated 78 times by 1 test |
&& data[readSoFar - 1] == '\n'TRUE | evaluated 227 times by 4 testsEvaluated by:- tst_QCssParser
- tst_QFile
- tst_QIODevice
- tst_QProcess
| FALSE | evaluated 106 times by 1 test |
&& data[readSoFar - 2] == '\r'TRUE | never evaluated | FALSE | evaluated 227 times by 4 testsEvaluated 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 | returnexecuted 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 | } | - |
586 | QByteArray QIODevice::readLine(qint64 maxSize) | - |
587 | { | - |
588 | QIODevicePrivate * const d = d_func(); | - |
589 | QByteArray result; | - |
590 | | - |
591 | do { if (maxSize < 0TRUE | never evaluated | FALSE | evaluated 35787 times by 20 testsEvaluated 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"); returnnever 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 >= MaxByteArraySizeTRUE | never evaluated | FALSE | evaluated 35787 times by 20 testsEvaluated 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()TRUE | evaluated 35778 times by 20 testsEvaluated 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
| FALSE | evaluated 9 times by 1 test |
) { | 9-35778 |
608 | | - |
609 | if (maxSize == 0TRUE | evaluated 35778 times by 20 testsEvaluated 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
| FALSE | never 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 > 0TRUE | evaluated 35735 times by 19 testsEvaluated 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
| FALSE | evaluated 115 times by 6 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QLockFile
- tst_QNetworkReply
- tst_QTcpSocket
- tst_QUdpSocket
|
|| readBytes == 0TRUE | evaluated 115 times by 6 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QLockFile
- tst_QNetworkReply
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | never 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)TRUE | evaluated 80 times by 2 testsEvaluated by:- tst_QIODevice
- tst_QNetworkReply
| FALSE | evaluated 35770 times by 20 testsEvaluated 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'TRUE | evaluated 72 times by 2 testsEvaluated by:- tst_QIODevice
- tst_QNetworkReply
| FALSE | evaluated 8 times by 1 test |
); | 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()); | 9 |
625 | | - |
626 | if (readBytes <= 0TRUE | evaluated 115 times by 6 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QLockFile
- tst_QNetworkReply
- tst_QTcpSocket
- tst_QUdpSocket
| FALSE | evaluated 35672 times by 19 testsEvaluated 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 | returnexecuted 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 | } | - |
633 | qint64 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 < maxSizeTRUE | evaluated 4516396 times by 23 testsEvaluated 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
| FALSE | evaluated 213 times by 5 testsEvaluated by:- tst_QBuffer
- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QTcpSocket
|
&& (TRUE | evaluated 4515995 times by 18 testsEvaluated 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
| FALSE | evaluated 401 times by 12 testsEvaluated 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)) == 1TRUE | evaluated 4515995 times by 18 testsEvaluated 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
| FALSE | evaluated 401 times by 12 testsEvaluated 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'TRUE | evaluated 6191 times by 18 testsEvaluated 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
| FALSE | evaluated 4509804 times by 18 testsEvaluated 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 != 1TRUE | evaluated 535 times by 12 testsEvaluated 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
| FALSE | evaluated 6270 times by 18 testsEvaluated 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 == 0TRUE | evaluated 386 times by 11 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QLockFile
- tst_QNetworkReply
- tst_QPixmap
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QXmlInputSource
| FALSE | evaluated 149 times by 2 tests |
) | 149-6270 |
653 | returnexecuted 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()TRUE | evaluated 78 times by 6 testsEvaluated by:- tst_QIODevice
- tst_QNetworkReply
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QXmlInputSource
| FALSE | evaluated 308 times by 6 testsEvaluated 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 | returnexecuted 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 | } | - |
656 | bool QIODevice::canReadLine() const | - |
657 | { | - |
658 | returnexecuted 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 | } | - |
660 | qint64 QIODevice::write(const char *data, qint64 maxSize) | - |
661 | { | - |
662 | QIODevicePrivate * const d = d_func(); | - |
663 | do { if ((TRUE | evaluated 35 times by 5 testsEvaluated by:- tst_QFile
- tst_QProcess
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
| FALSE | evaluated 1044397 times by 117 testsEvaluated 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) == 0TRUE | evaluated 35 times by 5 testsEvaluated by:- tst_QFile
- tst_QProcess
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
| FALSE | evaluated 1044397 times by 117 testsEvaluated 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 == NotOpenTRUE | evaluated 34 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
| FALSE | evaluated 1 time by 1 test |
) { checkWarnMessage(this, "write", "device not open"); returnexecuted 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"); returnexecuted 1 time by 1 test: return qint64(-1); qint64(-1);executed 1 time by 1 test: return qint64(-1); } } while (0); | 1-1044397 |
664 | do { if (maxSize < 0TRUE | never evaluated | FALSE | evaluated 1044397 times by 117 testsEvaluated 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"); returnnever 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->devicePosTRUE | evaluated 54 times by 7 testsEvaluated by:- tst_QFile
- tst_QFileSystemWatcher
- tst_QIODevice
- tst_QSaveFile
- tst_QSettings
- tst_QSharedPointer
- tst_qmakelib
| FALSE | evaluated 1044343 times by 117 testsEvaluated 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
- ...
|
&& !sequentialTRUE | evaluated 54 times by 7 testsEvaluated by:- tst_QFile
- tst_QFileSystemWatcher
- tst_QIODevice
- tst_QSaveFile
- tst_QSettings
- tst_QSharedPointer
- tst_qmakelib
| FALSE | never evaluated |
&& !seek(d->pos)TRUE | never evaluated | FALSE | evaluated 54 times by 7 testsEvaluated 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 > 0TRUE | evaluated 1042119 times by 117 testsEvaluated 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
- ...
| FALSE | evaluated 2278 times by 17 testsEvaluated 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 (!sequentialTRUE | evaluated 346893 times by 92 testsEvaluated 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
- ...
| FALSE | evaluated 695226 times by 36 testsEvaluated 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()TRUE | evaluated 362 times by 8 testsEvaluated by:- tst_QFile
- tst_QHttpNetworkConnection
- tst_QIODevice
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_Spdy
| FALSE | evaluated 1041757 times by 117 testsEvaluated 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
- ...
|
&& !sequentialTRUE | evaluated 2 times by 2 tests | FALSE | evaluated 360 times by 6 testsEvaluated 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); | 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 | returnexecuted 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 | } | - |
681 | qint64 QIODevice::write(const char *data) | - |
682 | { | - |
683 | returnexecuted 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 | } | - |
685 | void QIODevice::ungetChar(char c) | - |
686 | { | - |
687 | QIODevicePrivate * const d = d_func(); | - |
688 | do { if ((TRUE | never evaluated | FALSE | evaluated 36238 times by 8 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QTcpSocket
|
d->openMode & ReadOnly) == 0TRUE | never evaluated | FALSE | evaluated 36238 times by 8 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QTcpSocket
|
) { if (d->openMode == NotOpenTRUE | never evaluated | FALSE | never evaluated |
) { checkWarnMessage(this, "read", "device not open"); returnnever executed: return ; ;never executed: return ; } checkWarnMessage(this, "read", "WriteOnly device"); returnnever executed: return ; ;never executed: return ; } } while (0); | 0-36238 |
689 | | - |
690 | | - |
691 | | - |
692 | | - |
693 | | - |
694 | d->buffer.ungetChar(c); | - |
695 | if (!d->isSequential()TRUE | evaluated 35727 times by 5 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
| FALSE | evaluated 511 times by 5 testsEvaluated 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 |
698 | bool QIODevice::putChar(char c) | - |
699 | { | - |
700 | returnexecuted 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 | | - |
706 | bool QIODevicePrivate::putCharHelper(char c) | - |
707 | { | - |
708 | returnexecuted 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 | | - |
714 | qint64 QIODevicePrivate::peek(char *data, qint64 maxSize) | - |
715 | { | - |
716 | qint64 readBytes = q_func()->read(data, maxSize); | - |
717 | if (readBytes <= 0TRUE | evaluated 322 times by 7 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QImageReader
- tst_QImageWriter
- tst_QMovie
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_qnetworkreply - unknown status
| FALSE | evaluated 17486 times by 80 testsEvaluated 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 | returnexecuted 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()TRUE | evaluated 13782 times by 72 testsEvaluated 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
- ...
| FALSE | evaluated 3704 times by 9 testsEvaluated 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 | returnexecuted 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 | | - |
729 | QByteArray QIODevicePrivate::peek(qint64 maxSize) | - |
730 | { | - |
731 | QByteArray result = q_func()->read(maxSize); | - |
732 | | - |
733 | if (result.isEmpty()TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QImageReader
- tst_QLabel
| FALSE | evaluated 19929 times by 76 testsEvaluated 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 | returnexecuted 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()TRUE | evaluated 19898 times by 73 testsEvaluated 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
- ...
| FALSE | evaluated 31 times by 6 testsEvaluated 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 | returnexecuted 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 | } | - |
741 | bool QIODevice::getChar(char *c) | - |
742 | { | - |
743 | | - |
744 | char ch; | - |
745 | returnexecuted 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 | } | - |
747 | qint64 QIODevice::peek(char *data, qint64 maxSize) | - |
748 | { | - |
749 | returnexecuted 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 | } | - |
751 | QByteArray QIODevice::peek(qint64 maxSize) | - |
752 | { | - |
753 | returnexecuted 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 | } | - |
755 | bool QIODevice::waitForReadyRead(int msecs) | - |
756 | { | - |
757 | (void)msecs;; | - |
758 | returnexecuted 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 | } | - |
760 | bool 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 | | - |
772 | void 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 | | - |
783 | QString QIODevice::errorString() const | - |
784 | { | - |
785 | const QIODevicePrivate * const d = d_func(); | - |
786 | if (d->errorString.isEmpty()TRUE | evaluated 4965 times by 41 testsEvaluated 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
- ...
| FALSE | evaluated 729 times by 21 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
795 | int qt_subtract_from_timeout(int timeout, int elapsed) | - |
796 | { | - |
797 | if (timeout == -1TRUE | evaluated 753 times by 8 testsEvaluated by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
| FALSE | evaluated 62458 times by 46 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 62457 times by 46 testsEvaluated 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 | | - |
806 | QDebug operator<<(QDebug debug, QIODevice::OpenMode modes) | - |
807 | { | - |
808 | debug << "OpenMode("; | - |
809 | QStringList modeList; | - |
810 | if (modes == QIODevice::NotOpenTRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) { | 0-16 |
811 | modeList << QLatin1String("NotOpen"); | - |
812 | } never executed: end of block else { | 0 |
813 | if (modes & QIODevice::ReadOnlyTRUE | evaluated 16 times by 1 test | FALSE | never evaluated |
) | 0-16 |
814 | modeList << QLatin1String("ReadOnly");executed 16 times by 1 test: modeList << QLatin1String("ReadOnly"); | 16 |
815 | if (modes & QIODevice::WriteOnlyTRUE | evaluated 5 times by 1 test | FALSE | evaluated 11 times by 1 test |
) | 5-11 |
816 | modeList << QLatin1String("WriteOnly");executed 5 times by 1 test: modeList << QLatin1String("WriteOnly"); | 5 |
817 | if (modes & QIODevice::AppendTRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
818 | modeList << QLatin1String("Append"); never executed: modeList << QLatin1String("Append"); | 0 |
819 | if (modes & QIODevice::TruncateTRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
820 | modeList << QLatin1String("Truncate"); never executed: modeList << QLatin1String("Truncate"); | 0 |
821 | if (modes & QIODevice::TextTRUE | evaluated 3 times by 1 test | FALSE | evaluated 13 times by 1 test |
) | 3-13 |
822 | modeList << QLatin1String("Text");executed 3 times by 1 test: modeList << QLatin1String("Text"); | 3 |
823 | if (modes & QIODevice::UnbufferedTRUE | evaluated 3 times by 1 test | FALSE | evaluated 13 times by 1 test |
) | 3-13 |
824 | modeList << QLatin1String("Unbuffered");executed 3 times by 1 test: modeList << QLatin1String("Unbuffered"); | 3 |
825 | }executed 16 times by 1 test: end of block | 16 |
826 | std::sort(modeList.begin(), modeList.end()); | - |
827 | debug << modeList.join(QLatin1Char('|')); | - |
828 | debug << ')'; | - |
829 | returnexecuted 16 times by 1 test: return debug; debug;executed 16 times by 1 test: return debug; | 16 |
830 | } | - |
831 | | - |
832 | | - |
833 | | - |
| | |