Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | QFileDevicePrivate::QFileDevicePrivate() | - |
13 | : fileEngine(0), | - |
14 | cachedSize(0), | - |
15 | error(QFile::NoError), lastWasWrite(false) | - |
16 | { | - |
17 | writeBufferChunkSize = 16384; | - |
18 | }executed 65126 times by 217 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 65126 |
19 | | - |
20 | QFileDevicePrivate::~QFileDevicePrivate() | - |
21 | { | - |
22 | delete fileEngine; | - |
23 | fileEngine = 0; | - |
24 | }executed 65118 times by 252 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 65118 |
25 | | - |
26 | QAbstractFileEngine * QFileDevicePrivate::engine() const | - |
27 | { | - |
28 | if (!fileEngineTRUE | never evaluated | FALSE | evaluated 453 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
|
) | 0-453 |
29 | fileEngine = new QFSFileEngine; never executed: fileEngine = new QFSFileEngine; | 0 |
30 | returnexecuted 453 times by 7 tests: return fileEngine; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
fileEngine;executed 453 times by 7 tests: return fileEngine; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
| 453 |
31 | } | - |
32 | | - |
33 | void QFileDevicePrivate::setError(QFileDevice::FileError err) | - |
34 | { | - |
35 | error = err; | - |
36 | errorString.clear(); | - |
37 | }executed 719154 times by 248 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 719154 |
38 | | - |
39 | void QFileDevicePrivate::setError(QFileDevice::FileError err, const QString &errStr) | - |
40 | { | - |
41 | error = err; | - |
42 | errorString = errStr; | - |
43 | }executed 4367 times by 63 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLocalSocket
- ...
| 4367 |
44 | | - |
45 | void QFileDevicePrivate::setError(QFileDevice::FileError err, int errNum) | - |
46 | { | - |
47 | error = err; | - |
48 | errorString = qt_error_string(errNum); | - |
49 | } never executed: end of block | 0 |
50 | QFileDevice::QFileDevice() | - |
51 | : QIODevice(*new QFileDevicePrivate, 0) | - |
52 | { | - |
53 | } never executed: end of block | 0 |
54 | | - |
55 | | - |
56 | | - |
57 | QFileDevice::QFileDevice(QObject *parent) | - |
58 | : QIODevice(*new QFileDevicePrivate, parent) | - |
59 | { | - |
60 | } never executed: end of block | 0 |
61 | | - |
62 | | - |
63 | | - |
64 | QFileDevice::QFileDevice(QFileDevicePrivate &dd, QObject *parent) | - |
65 | : QIODevice(dd, parent) | - |
66 | { | - |
67 | }executed 65126 times by 217 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 65126 |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | QFileDevice::~QFileDevice() | - |
74 | { | - |
75 | close(); | - |
76 | }executed 65118 times by 252 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 65118 |
77 | bool QFileDevice::isSequential() const | - |
78 | { | - |
79 | const QFileDevicePrivate * const d = d_func(); | - |
80 | returnexecuted 97100 times by 144 tests: return d->fileEngine && d->fileEngine->isSequential(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- ...
d->fileEngine && d->fileEngine->isSequential();executed 97100 times by 144 tests: return d->fileEngine && d->fileEngine->isSequential(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- ...
| 97100 |
81 | } | - |
82 | int QFileDevice::handle() const | - |
83 | { | - |
84 | const QFileDevicePrivate * const d = d_func(); | - |
85 | if (!isOpen()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 35 times by 6 testsEvaluated by:- tst_QDBusMarshall
- tst_QFile
- tst_QFileInfo
- tst_QKeySequence
- tst_QTemporaryFile
- tst_QTranslator
|
|| !d->fileEngineTRUE | never evaluated | FALSE | evaluated 35 times by 6 testsEvaluated by:- tst_QDBusMarshall
- tst_QFile
- tst_QFileInfo
- tst_QKeySequence
- tst_QTemporaryFile
- tst_QTranslator
|
) | 0-35 |
86 | returnexecuted 4 times by 1 test: return -1; -1;executed 4 times by 1 test: return -1; | 4 |
87 | | - |
88 | returnexecuted 35 times by 6 tests: return d->fileEngine->handle(); Executed by:- tst_QDBusMarshall
- tst_QFile
- tst_QFileInfo
- tst_QKeySequence
- tst_QTemporaryFile
- tst_QTranslator
d->fileEngine->handle();executed 35 times by 6 tests: return d->fileEngine->handle(); Executed by:- tst_QDBusMarshall
- tst_QFile
- tst_QFileInfo
- tst_QKeySequence
- tst_QTemporaryFile
- tst_QTranslator
| 35 |
89 | } | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | QString QFileDevice::fileName() const | - |
96 | { | - |
97 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
98 | } | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | bool QFileDevice::flush() | - |
105 | { | - |
106 | QFileDevicePrivate * const d = d_func(); | - |
107 | if (!d->fileEngineTRUE | never evaluated | FALSE | evaluated 64296 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 0-64296 |
108 | QMessageLogger(__FILE__, 286, __PRETTY_FUNCTION__).warning("QFileDevice::flush: No file engine. Is IODevice open?"); | - |
109 | return never executed: return false; false;never executed: return false; | 0 |
110 | } | - |
111 | | - |
112 | if (!d->writeBuffer.isEmpty()TRUE | evaluated 18450 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| FALSE | evaluated 45846 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 18450-45846 |
113 | qint64 size = d->writeBuffer.nextDataBlockSize(); | - |
114 | qint64 written = d->fileEngine->write(d->writeBuffer.readPointer(), size); | - |
115 | if (written > 0TRUE | evaluated 18444 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| FALSE | evaluated 6 times by 1 test |
) | 6-18444 |
116 | d->writeBuffer.free(written);executed 18444 times by 43 tests: d->writeBuffer.free(written); Executed by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| 18444 |
117 | if (written != sizeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 18444 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
|
) { | 6-18444 |
118 | QFileDevice::FileError err = d->fileEngine->error(); | - |
119 | if (err == QFileDevice::UnspecifiedErrorTRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
) | 0-6 |
120 | err = QFileDevice::WriteError; never executed: err = QFileDevice::WriteError; | 0 |
121 | d->setError(err, d->fileEngine->errorString()); | - |
122 | returnexecuted 6 times by 1 test: return false; false;executed 6 times by 1 test: return false; | 6 |
123 | } | - |
124 | }executed 18444 times by 43 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| 18444 |
125 | | - |
126 | if (!d->fileEngine->flush()TRUE | never evaluated | FALSE | evaluated 64290 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 0-64290 |
127 | QFileDevice::FileError err = d->fileEngine->error(); | - |
128 | if (err == QFileDevice::UnspecifiedErrorTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
129 | err = QFileDevice::WriteError; never executed: err = QFileDevice::WriteError; | 0 |
130 | d->setError(err, d->fileEngine->errorString()); | - |
131 | return never executed: return false; false;never executed: return false; | 0 |
132 | } | - |
133 | returnexecuted 64290 times by 212 tests: return true; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
true;executed 64290 times by 212 tests: return true; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| 64290 |
134 | } | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | void QFileDevice::close() | - |
142 | { | - |
143 | QFileDevicePrivate * const d = d_func(); | - |
144 | if (!isOpen()TRUE | evaluated 38531 times by 196 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- ...
| FALSE | evaluated 46137 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) | 38531-46137 |
145 | return;executed 38531 times by 196 tests: return; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- ...
| 38531 |
146 | bool flushed = flush(); | - |
147 | QIODevice::close(); | - |
148 | | - |
149 | | - |
150 | d->lastWasWrite = false; | - |
151 | d->writeBuffer.clear(); | - |
152 | | - |
153 | | - |
154 | if (d->fileEngine->close()TRUE | evaluated 46137 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | never evaluated |
&& flushedTRUE | evaluated 46135 times by 212 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | evaluated 2 times by 1 test |
) | 0-46137 |
155 | unsetError();executed 46135 times by 212 tests: unsetError(); Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| 46135 |
156 | else if (flushedTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
157 | d->setError(d->fileEngine->error(), d->fileEngine->errorString()); never executed: d->setError(d->fileEngine->error(), d->fileEngine->errorString()); | 0 |
158 | }executed 46137 times by 212 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_QBrush
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| 46137 |
159 | | - |
160 | | - |
161 | | - |
162 | | - |
163 | qint64 QFileDevice::pos() const | - |
164 | { | - |
165 | returnexecuted 481309 times by 101 tests: return QIODevice::pos(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- ...
QIODevice::pos();executed 481309 times by 101 tests: return QIODevice::pos(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- ...
| 481309 |
166 | } | - |
167 | bool QFileDevice::atEnd() const | - |
168 | { | - |
169 | const QFileDevicePrivate * const d = d_func(); | - |
170 | | - |
171 | | - |
172 | if (!d->isBufferEmpty()TRUE | evaluated 121702 times by 36 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- ...
| FALSE | evaluated 4487 times by 45 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
|
) | 4487-121702 |
173 | returnexecuted 121702 times by 36 tests: return false; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- ...
false;executed 121702 times by 36 tests: return false; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- ...
| 121702 |
174 | | - |
175 | if (!isOpen()TRUE | never evaluated | FALSE | evaluated 4487 times by 45 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
|
) | 0-4487 |
176 | return never executed: return true; true;never executed: return true; | 0 |
177 | | - |
178 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 4487 times by 45 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
|
) | 0-4487 |
179 | return never executed: return false; false;never executed: return false; | 0 |
180 | | - |
181 | | - |
182 | if (d->fileEngine->supportsExtension(QAbstractFileEngine::AtEndExtension)TRUE | never evaluated | FALSE | evaluated 4487 times by 45 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
|
) { | 0-4487 |
183 | | - |
184 | | - |
185 | return never executed: return d->fileEngine->atEnd(); d->fileEngine->atEnd();never executed: return d->fileEngine->atEnd(); | 0 |
186 | } | - |
187 | | - |
188 | | - |
189 | | - |
190 | if (pos() < d->cachedSizeTRUE | evaluated 275 times by 5 testsEvaluated by:- tst_QFile
- tst_QFileInfo
- tst_QImageReader
- tst_QMimeDatabase
- tst_QTextStream
| FALSE | evaluated 4212 times by 45 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
|
) | 275-4212 |
191 | returnexecuted 275 times by 5 tests: return false; Executed by:- tst_QFile
- tst_QFileInfo
- tst_QImageReader
- tst_QMimeDatabase
- tst_QTextStream
false;executed 275 times by 5 tests: return false; Executed by:- tst_QFile
- tst_QFileInfo
- tst_QImageReader
- tst_QMimeDatabase
- tst_QTextStream
| 275 |
192 | | - |
193 | | - |
194 | returnexecuted 4212 times by 45 tests: return bytesAvailable() == 0; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
bytesAvailable() == 0;executed 4212 times by 45 tests: return bytesAvailable() == 0; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImageReader
- tst_QLayout
- ...
| 4212 |
195 | } | - |
196 | bool QFileDevice::seek(qint64 off) | - |
197 | { | - |
198 | QFileDevicePrivate * const d = d_func(); | - |
199 | if (!isOpen()TRUE | never evaluated | FALSE | evaluated 252027 times by 91 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
) { | 0-252027 |
200 | QMessageLogger(__FILE__, 404, __PRETTY_FUNCTION__).warning("QFileDevice::seek: IODevice is not open"); | - |
201 | return never executed: return false; false;never executed: return false; | 0 |
202 | } | - |
203 | | - |
204 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 252027 times by 91 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
) | 0-252027 |
205 | return never executed: return false; false;never executed: return false; | 0 |
206 | | - |
207 | if (!d->fileEngine->seek(off)TRUE | never evaluated | FALSE | evaluated 252027 times by 91 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
|| !QIODevice::seek(off)TRUE | never evaluated | FALSE | evaluated 252027 times by 91 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
) { | 0-252027 |
208 | QFileDevice::FileError err = d->fileEngine->error(); | - |
209 | if (err == QFileDevice::UnspecifiedErrorTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
210 | err = QFileDevice::PositionError; never executed: err = QFileDevice::PositionError; | 0 |
211 | d->setError(err, d->fileEngine->errorString()); | - |
212 | return never executed: return false; false;never executed: return false; | 0 |
213 | } | - |
214 | unsetError(); | - |
215 | returnexecuted 252027 times by 91 tests: return true; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
true;executed 252027 times by 91 tests: return true; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| 252027 |
216 | } | - |
217 | | - |
218 | | - |
219 | | - |
220 | | - |
221 | qint64 QFileDevice::readLineData(char *data, qint64 maxlen) | - |
222 | { | - |
223 | QFileDevicePrivate * const d = d_func(); | - |
224 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 665 times by 37 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
|
) | 0-665 |
225 | return never executed: return -1; -1;never executed: return -1; | 0 |
226 | | - |
227 | qint64 read; | - |
228 | if (d->fileEngine->supportsExtension(QAbstractFileEngine::FastReadLineExtension)TRUE | evaluated 8 times by 1 test | FALSE | evaluated 657 times by 37 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
|
) { | 8-657 |
229 | read = d->fileEngine->readLine(data, maxlen); | - |
230 | }executed 8 times by 1 test: end of block else { | 8 |
231 | | - |
232 | | - |
233 | read = QIODevice::readLineData(data, maxlen); | - |
234 | }executed 657 times by 37 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
| 657 |
235 | | - |
236 | if (read < maxlenTRUE | evaluated 658 times by 37 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
| FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QFile
- tst_QImageReader
|
) { | 7-658 |
237 | | - |
238 | d->cachedSize = 0; | - |
239 | }executed 658 times by 37 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
| 658 |
240 | | - |
241 | returnexecuted 665 times by 37 tests: return read; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
read;executed 665 times by 37 tests: return read; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- ...
| 665 |
242 | } | - |
243 | | - |
244 | | - |
245 | | - |
246 | | - |
247 | qint64 QFileDevice::readData(char *data, qint64 len) | - |
248 | { | - |
249 | QFileDevicePrivate * const d = d_func(); | - |
250 | if (!lenTRUE | evaluated 17026 times by 92 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- ...
| FALSE | evaluated 146243 times by 138 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFile
- ...
|
) | 17026-146243 |
251 | returnexecuted 17026 times by 92 tests: return 0; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- ...
0;executed 17026 times by 92 tests: return 0; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- ...
| 17026 |
252 | unsetError(); | - |
253 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 146243 times by 138 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFile
- ...
|
) | 0-146243 |
254 | return never executed: return -1; -1;never executed: return -1; | 0 |
255 | | - |
256 | const qint64 read = d->fileEngine->read(data, len); | - |
257 | if (read < 0TRUE | never evaluated | FALSE | evaluated 146243 times by 138 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFile
- ...
|
) { | 0-146243 |
258 | QFileDevice::FileError err = d->fileEngine->error(); | - |
259 | if (err == QFileDevice::UnspecifiedErrorTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
260 | err = QFileDevice::ReadError; never executed: err = QFileDevice::ReadError; | 0 |
261 | d->setError(err, d->fileEngine->errorString()); | - |
262 | } never executed: end of block | 0 |
263 | | - |
264 | if (read < lenTRUE | evaluated 129332 times by 128 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 16911 times by 68 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- ...
|
) { | 16911-129332 |
265 | | - |
266 | d->cachedSize = 0; | - |
267 | }executed 129332 times by 128 tests: end of block 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
- ...
| 129332 |
268 | | - |
269 | returnexecuted 146243 times by 138 tests: return read; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFile
- ...
read;executed 146243 times by 138 tests: return read; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFile
- ...
| 146243 |
270 | } | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
275 | bool QFileDevicePrivate::putCharHelper(char c) | - |
276 | { | - |
277 | | - |
278 | | - |
279 | | - |
280 | | - |
281 | | - |
282 | qint64 writeBufferSize = writeBuffer.size(); | - |
283 | if ((openMode & QIODevice::Unbuffered) || writeBufferSize + 1 >= writeBufferChunkSizeTRUE | never evaluated | FALSE | evaluated 2144 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
|
| 0-2144 |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | ) { | - |
289 | return never executed: return QIODevicePrivate::putCharHelper(c); QIODevicePrivate::putCharHelper(c);never executed: return QIODevicePrivate::putCharHelper(c); | 0 |
290 | } | - |
291 | | - |
292 | if (!(openMode & QIODevice::WriteOnly)TRUE | never evaluated | FALSE | evaluated 2144 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
|
) { | 0-2144 |
293 | if (openMode == QIODevice::NotOpenTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
294 | QMessageLogger(__FILE__, 498, __PRETTY_FUNCTION__).warning("QIODevice::putChar: Closed device"); never executed: QMessageLogger(__FILE__, 498, __PRETTY_FUNCTION__).warning("QIODevice::putChar: Closed device"); | 0 |
295 | else | - |
296 | QMessageLogger(__FILE__, 500, __PRETTY_FUNCTION__).warning("QIODevice::putChar: ReadOnly device"); never executed: QMessageLogger(__FILE__, 500, __PRETTY_FUNCTION__).warning("QIODevice::putChar: ReadOnly device"); | 0 |
297 | return never executed: return false; false;never executed: return false; | 0 |
298 | } | - |
299 | | - |
300 | | - |
301 | const bool sequential = isSequential(); | - |
302 | if (pos != devicePosTRUE | never evaluated | FALSE | evaluated 2144 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
|
&& !sequentialTRUE | never evaluated | FALSE | never evaluated |
&& !q_func()->seek(pos)TRUE | never evaluated | FALSE | never evaluated |
) | 0-2144 |
303 | return never executed: return false; false;never executed: return false; | 0 |
304 | | - |
305 | lastWasWrite = true; | - |
306 | | - |
307 | int len = 1; | - |
308 | *writeBuffer.reserve(1) = c; | - |
309 | | - |
310 | if (!sequentialTRUE | evaluated 2144 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
| FALSE | never evaluated |
) { | 0-2144 |
311 | pos += len; | - |
312 | devicePos += len; | - |
313 | if (!buffer.isEmpty()TRUE | never evaluated | FALSE | evaluated 2144 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
|
) | 0-2144 |
314 | buffer.skip(len); never executed: buffer.skip(len); | 0 |
315 | }executed 2144 times by 6 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
| 2144 |
316 | | - |
317 | returnexecuted 2144 times by 6 tests: return true; Executed by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
true;executed 2144 times by 6 tests: return true; Executed by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QFile
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
| 2144 |
318 | | - |
319 | } | - |
320 | | - |
321 | | - |
322 | | - |
323 | | - |
324 | qint64 QFileDevice::writeData(const char *data, qint64 len) | - |
325 | { | - |
326 | QFileDevicePrivate * const d = d_func(); | - |
327 | unsetError(); | - |
328 | d->lastWasWrite = true; | - |
329 | bool buffered = !(d->openMode & Unbuffered); | - |
330 | | - |
331 | | - |
332 | if (bufferedTRUE | evaluated 128830 times by 44 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| FALSE | evaluated 651 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QFile
- tst_QNetworkReply
- tst_qfileopenevent
|
&& (TRUE | evaluated 542 times by 12 testsEvaluated by:- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qnetworkreply - unknown status
| FALSE | evaluated 128288 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
|
d->writeBuffer.size() + len) > d->writeBufferChunkSizeTRUE | evaluated 542 times by 12 testsEvaluated by:- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qnetworkreply - unknown status
| FALSE | evaluated 128288 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
|
) { | 542-128830 |
333 | if (!flush()TRUE | never evaluated | FALSE | evaluated 542 times by 12 testsEvaluated by:- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qnetworkreply - unknown status
|
) | 0-542 |
334 | return never executed: return -1; -1;never executed: return -1; | 0 |
335 | }executed 542 times by 12 tests: end of block Executed by:- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qnetworkreply - unknown status
| 542 |
336 | | - |
337 | | - |
338 | | - |
339 | if (!bufferedTRUE | evaluated 651 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QFile
- tst_QNetworkReply
- tst_qfileopenevent
| FALSE | evaluated 128830 times by 44 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
|
|| len > d->writeBufferChunkSizeTRUE | evaluated 53 times by 8 testsEvaluated by:- tst_QFile
- tst_QIODevice
- tst_QImageWriter
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qnetworkreply - unknown status
| FALSE | evaluated 128777 times by 43 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
|
) { | 53-128830 |
340 | const qint64 ret = d->fileEngine->write(data, len); | - |
341 | if (ret < 0TRUE | never evaluated | FALSE | evaluated 704 times by 11 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QFile
- tst_QIODevice
- tst_QImageWriter
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
|
) { | 0-704 |
342 | QFileDevice::FileError err = d->fileEngine->error(); | - |
343 | if (err == QFileDevice::UnspecifiedErrorTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
344 | err = QFileDevice::WriteError; never executed: err = QFileDevice::WriteError; | 0 |
345 | d->setError(err, d->fileEngine->errorString()); | - |
346 | } never executed: end of block | 0 |
347 | returnexecuted 704 times by 11 tests: return ret; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QFile
- tst_QIODevice
- tst_QImageWriter
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
ret;executed 704 times by 11 tests: return ret; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QFile
- tst_QIODevice
- tst_QImageWriter
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QStorageInfo
- tst_QTextStream
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
| 704 |
348 | } | - |
349 | | - |
350 | | - |
351 | d->writeBuffer.append(data, len); | - |
352 | returnexecuted 128777 times by 43 tests: return len; Executed by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
len;executed 128777 times by 43 tests: return len; Executed by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- ...
| 128777 |
353 | } | - |
354 | QFileDevice::FileError QFileDevice::error() const | - |
355 | { | - |
356 | const QFileDevicePrivate * const d = d_func(); | - |
357 | returnexecuted 13929 times by 76 tests: return d->error; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
d->error;executed 13929 times by 76 tests: return d->error; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
| 13929 |
358 | } | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | | - |
365 | void QFileDevice::unsetError() | - |
366 | { | - |
367 | QFileDevicePrivate * const d = d_func(); | - |
368 | d->setError(QFileDevice::NoError); | - |
369 | }executed 719154 times by 248 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_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 719154 |
370 | qint64 QFileDevice::size() const | - |
371 | { | - |
372 | const QFileDevicePrivate * const d = d_func(); | - |
373 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 165638 times by 164 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
|
) | 0-165638 |
374 | return never executed: return 0; 0;never executed: return 0; | 0 |
375 | d->cachedSize = d->engine()->size(); | - |
376 | returnexecuted 165638 times by 164 tests: return d->cachedSize; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
d->cachedSize;executed 165638 times by 164 tests: return d->cachedSize; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- 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_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| 165638 |
377 | } | - |
378 | bool QFileDevice::resize(qint64 sz) | - |
379 | { | - |
380 | QFileDevicePrivate * const d = d_func(); | - |
381 | if (!d->ensureFlushed()TRUE | never evaluated | FALSE | evaluated 295 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
|
) | 0-295 |
382 | return never executed: return false; false;never executed: return false; | 0 |
383 | d->engine(); | - |
384 | if (isOpen()TRUE | evaluated 284 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
|
&& d->fileEngine->pos() > szTRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QFile
- tst_QNetworkReply
| FALSE | evaluated 279 times by 6 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QTemporaryFile
|
) | 5-284 |
385 | seek(sz);executed 5 times by 2 tests: seek(sz); Executed by:- tst_QFile
- tst_QNetworkReply
| 5 |
386 | if (d->fileEngine->setSize(sz)TRUE | evaluated 295 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| FALSE | never evaluated |
) { | 0-295 |
387 | unsetError(); | - |
388 | d->cachedSize = sz; | - |
389 | returnexecuted 295 times by 7 tests: return true; Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
true;executed 295 times by 7 tests: return true; Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| 295 |
390 | } | - |
391 | d->cachedSize = 0; | - |
392 | d->setError(QFile::ResizeError, d->fileEngine->errorString()); | - |
393 | return never executed: return false; false;never executed: return false; | 0 |
394 | } | - |
395 | | - |
396 | | - |
397 | | - |
398 | | - |
399 | | - |
400 | | - |
401 | | - |
402 | QFile::Permissions QFileDevice::permissions() const | - |
403 | { | - |
404 | const QFileDevicePrivate * const d = d_func(); | - |
405 | QAbstractFileEngine::FileFlags perms = d->engine()->fileFlags(QAbstractFileEngine::PermsMask) & QAbstractFileEngine::PermsMask; | - |
406 | returnexecuted 200 times by 12 tests: return QFile::Permissions((int)perms); Executed by:- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
QFile::Permissions((int)perms);executed 200 times by 12 tests: return QFile::Permissions((int)perms); Executed by:- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
| 200 |
407 | } | - |
408 | bool QFileDevice::setPermissions(Permissions permissions) | - |
409 | { | - |
410 | QFileDevicePrivate * const d = d_func(); | - |
411 | if (d->engine()->setPermissions(permissions)TRUE | evaluated 1074 times by 22 testsEvaluated by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
| FALSE | evaluated 1 time by 1 test |
) { | 1-1074 |
412 | unsetError(); | - |
413 | returnexecuted 1074 times by 22 tests: return true; Executed by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
true;executed 1074 times by 22 tests: return true; Executed by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
| 1074 |
414 | } | - |
415 | d->setError(QFile::PermissionsError, d->fileEngine->errorString()); | - |
416 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
417 | } | - |
418 | uchar *QFileDevice::map(qint64 offset, qint64 size, MemoryMapFlags flags) | - |
419 | { | - |
420 | QFileDevicePrivate * const d = d_func(); | - |
421 | if (d->engine()TRUE | evaluated 34390 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | never evaluated |
| 0-34390 |
422 | && d->fileEngine->supportsExtension(QAbstractFileEngine::MapExtension)TRUE | evaluated 34390 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | never evaluated |
) { | 0-34390 |
423 | unsetError(); | - |
424 | uchar *address = d->fileEngine->map(offset, size, flags); | - |
425 | if (address == 0TRUE | evaluated 24 times by 1 test | FALSE | evaluated 34366 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) | 24-34366 |
426 | d->setError(d->fileEngine->error(), d->fileEngine->errorString());executed 24 times by 1 test: d->setError(d->fileEngine->error(), d->fileEngine->errorString()); | 24 |
427 | returnexecuted 34390 times by 121 tests: return address; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
address;executed 34390 times by 121 tests: return address; Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| 34390 |
428 | } | - |
429 | return never executed: return 0; 0;never executed: return 0; | 0 |
430 | } | - |
431 | bool QFileDevice::unmap(uchar *address) | - |
432 | { | - |
433 | QFileDevicePrivate * const d = d_func(); | - |
434 | if (d->engine()TRUE | evaluated 32814 times by 2 tests | FALSE | never evaluated |
| 0-32814 |
435 | && d->fileEngine->supportsExtension(QAbstractFileEngine::UnMapExtension)TRUE | evaluated 32814 times by 2 tests | FALSE | never evaluated |
) { | 0-32814 |
436 | unsetError(); | - |
437 | bool success = d->fileEngine->unmap(address); | - |
438 | if (!successTRUE | evaluated 8 times by 1 test | FALSE | evaluated 32806 times by 2 tests |
) | 8-32806 |
439 | d->setError(d->fileEngine->error(), d->fileEngine->errorString());executed 8 times by 1 test: d->setError(d->fileEngine->error(), d->fileEngine->errorString()); | 8 |
440 | returnexecuted 32814 times by 2 tests: return success; success;executed 32814 times by 2 tests: return success; | 32814 |
441 | } | - |
442 | d->setError(PermissionsError, tr("No file engine available or engine does not support UnMapExtension")); | - |
443 | return never executed: return false; false;never executed: return false; | 0 |
444 | } | - |
445 | | - |
446 | | - |
| | |