Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "qplatformdefs.h" | - |
41 | #include "private/qabstractfileengine_p.h" | - |
42 | #include "private/qfsfileengine_p.h" | - |
43 | #include "private/qcore_unix_p.h" | - |
44 | #include "qfilesystementry_p.h" | - |
45 | #include "qfilesystemengine_p.h" | - |
46 | #include "qcoreapplication.h" | - |
47 | | - |
48 | #ifndef QT_NO_FSFILEENGINE | - |
49 | | - |
50 | #include "qfile.h" | - |
51 | #include "qdir.h" | - |
52 | #include "qdatetime.h" | - |
53 | #include "qvarlengtharray.h" | - |
54 | | - |
55 | #include <sys/mman.h> | - |
56 | #include <stdlib.h> | - |
57 | #include <limits.h> | - |
58 | #include <errno.h> | - |
59 | #if !defined(QWS) && defined(Q_OS_MAC) | - |
60 | # include <private/qcore_mac_p.h> | - |
61 | #endif | - |
62 | | - |
63 | QT_BEGIN_NAMESPACE | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | static inline QByteArray openModeToFopenMode(QIODevice::OpenMode flags, const QFileSystemEntry &fileEntry, | - |
71 | QFileSystemMetaData &metaData) | - |
72 | { | - |
73 | QByteArray mode; | - |
74 | if ((flags & QIODevice::ReadOnly) && !(flags & QIODevice::Truncate)) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
75 | mode = "rb"; | - |
76 | if (flags & QIODevice::WriteOnly) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
77 | metaData.clearFlags(QFileSystemMetaData::FileType); | - |
78 | if (!fileEntry.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
| 0 |
79 | && QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::FileType)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
80 | && metaData.isFile()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
81 | mode += '+'; | - |
82 | } else { never executed: end of block | 0 |
83 | mode = "wb+"; | - |
84 | } never executed: end of block | 0 |
85 | } | - |
86 | } else if (flags & QIODevice::WriteOnly) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
87 | mode = "wb"; | - |
88 | if (flags & QIODevice::ReadOnly)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
89 | mode += '+'; never executed: mode += '+'; | 0 |
90 | } never executed: end of block | 0 |
91 | if (flags & QIODevice::Append) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
92 | mode = "ab"; | - |
93 | if (flags & QIODevice::ReadOnly)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
94 | mode += '+'; never executed: mode += '+'; | 0 |
95 | } never executed: end of block | 0 |
96 | | - |
97 | #if defined(__GLIBC__) && (__GLIBC__ * 0x100 + __GLIBC_MINOR__) >= 0x0207 | - |
98 | | - |
99 | mode += 'e'; | - |
100 | #endif | - |
101 | | - |
102 | return mode; never executed: return mode; | 0 |
103 | } | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | static inline int openModeToOpenFlags(QIODevice::OpenMode mode) | - |
111 | { | - |
112 | int oflags = QT_OPEN_RDONLY; | - |
113 | #ifdef QT_LARGEFILE_SUPPORT | - |
114 | oflags |= QT_OPEN_LARGEFILE; | - |
115 | #endif | - |
116 | | - |
117 | if ((mode & QFile::ReadWrite) == QFile::ReadWrite) {TRUE | evaluated 635 times by 17 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
| FALSE | evaluated 31782 times by 185 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_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
| 635-31782 |
118 | oflags = QT_OPEN_RDWR | QT_OPEN_CREAT; | - |
119 | } else if (mode & QFile::WriteOnly) {executed 635 times by 17 tests: end of block Executed by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
TRUE | evaluated 1785 times by 38 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- ...
| FALSE | evaluated 29997 times by 181 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_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
| 635-29997 |
120 | oflags = QT_OPEN_WRONLY | QT_OPEN_CREAT; | - |
121 | }executed 1785 times by 38 tests: end of block Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- ...
| 1785 |
122 | | - |
123 | if (mode & QFile::Append) {TRUE | evaluated 257 times by 6 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_qfileopenevent
- tst_qmakelib
| FALSE | evaluated 32160 times by 185 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_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
| 257-32160 |
124 | oflags |= QT_OPEN_APPEND; | - |
125 | } else if (mode & QFile::WriteOnly) {executed 257 times by 6 tests: end of block Executed by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_qfileopenevent
- tst_qmakelib
TRUE | evaluated 2163 times by 43 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- ...
| FALSE | evaluated 29997 times by 181 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_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
| 257-29997 |
126 | if ((mode & QFile::Truncate) || !(mode & QFile::ReadOnly))TRUE | never evaluated | FALSE | evaluated 627 times by 17 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
|
| 0-627 |
127 | oflags |= QT_OPEN_TRUNC;executed 1536 times by 39 tests: oflags |= 01000; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- ...
| 1536 |
128 | }executed 2163 times by 43 tests: end of block Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- ...
| 2163 |
129 | | - |
130 | return oflags;executed 32417 times by 185 tests: return oflags; 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
- ...
| 32417 |
131 | } | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | static inline bool setCloseOnExec(int fd) | - |
140 | { | - |
141 | return fd != -1 && fcntl(fd, F_SETFD, FD_CLOEXEC) != -1; never executed: return fd != -1 && fcntl(fd, 2, 1) != -1; | 0 |
142 | } | - |
143 | | - |
144 | static inline QString msgOpenDirectory() | - |
145 | { | - |
146 | const char message[] = QT_TRANSLATE_NOOP("QIODevice", "file to open is a directory"); | - |
147 | #ifndef QT_BOOTSTRAPPED | - |
148 | return QIODevice::tr(message);executed 10 times by 4 tests: return QIODevice::tr(message); Executed by:- tst_QFile
- tst_QImageReader
- tst_QMimeDatabase
- tst_qmakelib
| 10 |
149 | #else | - |
150 | return QLatin1String(message); | - |
151 | #endif | - |
152 | } | - |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
157 | bool QFSFileEnginePrivate::nativeOpen(QIODevice::OpenMode openMode) | - |
158 | { | - |
159 | Q_Q(QFSFileEngine); | - |
160 | | - |
161 | if (openMode & QIODevice::Unbuffered) {TRUE | evaluated 32417 times by 185 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_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| FALSE | never evaluated |
| 0-32417 |
162 | int flags = openModeToOpenFlags(openMode); | - |
163 | | - |
164 | | - |
165 | do { | - |
166 | fd = QT_OPEN(fileEntry.nativeFilePath().constData(), flags, 0666); | - |
167 | } while (fd == -1 && errno == EINTR);executed 32417 times by 185 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
- ...
TRUE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
| FALSE | evaluated 28943 times by 169 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
|
| 0-32417 |
168 | | - |
169 | | - |
170 | if (fd == -1) {TRUE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
| FALSE | evaluated 28943 times by 169 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
- ...
|
| 3474-28943 |
171 | q->setError(errno == EMFILE ? QFile::ResourceError : QFile::OpenError, | - |
172 | qt_error_string(errno)); | - |
173 | return false;executed 3474 times by 50 tests: return false; Executed by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
| 3474 |
174 | } | - |
175 | | - |
176 | if (!(openMode & QIODevice::WriteOnly)) {TRUE | evaluated 26563 times by 165 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 2380 times by 43 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- ...
|
| 2380-26563 |
177 | | - |
178 | | - |
179 | if (QFileSystemEngine::fillMetaData(fd, metaData)TRUE | evaluated 26563 times by 165 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 |
| 0-26563 |
180 | && metaData.isDirectory()) {TRUE | evaluated 10 times by 4 testsEvaluated by:- tst_QFile
- tst_QImageReader
- tst_QMimeDatabase
- tst_qmakelib
| FALSE | evaluated 26553 times by 165 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
- ...
|
| 10-26553 |
181 | q->setError(QFile::OpenError, msgOpenDirectory()); | - |
182 | QT_CLOSE(fd); | - |
183 | return false;executed 10 times by 4 tests: return false; Executed by:- tst_QFile
- tst_QImageReader
- tst_QMimeDatabase
- tst_qmakelib
| 10 |
184 | } | - |
185 | }executed 26553 times by 165 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
- ...
| 26553 |
186 | | - |
187 | | - |
188 | if (flags & QFile::Append) {TRUE | never evaluated | FALSE | evaluated 28933 times by 169 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-28933 |
189 | int ret; | - |
190 | do { | - |
191 | ret = QT_LSEEK(fd, 0, SEEK_END); | - |
192 | } while (ret == -1 && errno == EINTR); never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
193 | | - |
194 | if (ret == -1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
195 | q->setError(errno == EMFILE ? QFile::ResourceError : QFile::OpenError, | - |
196 | qt_error_string(int(errno))); | - |
197 | return false; never executed: return false; | 0 |
198 | } | - |
199 | } never executed: end of block | 0 |
200 | | - |
201 | fh = 0; | - |
202 | } else {executed 28933 times by 169 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
- ...
| 28933 |
203 | QByteArray fopenMode = openModeToFopenMode(openMode, fileEntry, metaData); | - |
204 | | - |
205 | | - |
206 | do { | - |
207 | fh = QT_FOPEN(fileEntry.nativeFilePath().constData(), fopenMode.constData()); | - |
208 | } while (!fh && errno == EINTR); never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
209 | | - |
210 | | - |
211 | if (!fh) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
212 | q->setError(errno == EMFILE ? QFile::ResourceError : QFile::OpenError, | - |
213 | qt_error_string(int(errno))); | - |
214 | return false; never executed: return false; | 0 |
215 | } | - |
216 | | - |
217 | if (!(openMode & QIODevice::WriteOnly)) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
218 | | - |
219 | | - |
220 | if (QFileSystemEngine::fillMetaData(QT_FILENO(fh), metaData)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
221 | && metaData.isDirectory()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
222 | q->setError(QFile::OpenError, msgOpenDirectory()); | - |
223 | fclose(fh); | - |
224 | return false; never executed: return false; | 0 |
225 | } | - |
226 | } never executed: end of block | 0 |
227 | | - |
228 | setCloseOnExec(fileno(fh)); | - |
229 | | - |
230 | | - |
231 | if (openMode & QIODevice::Append) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
232 | int ret; | - |
233 | do { | - |
234 | ret = QT_FSEEK(fh, 0, SEEK_END); | - |
235 | } while (ret == -1 && errno == EINTR); never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
236 | | - |
237 | if (ret == -1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
238 | q->setError(errno == EMFILE ? QFile::ResourceError : QFile::OpenError, | - |
239 | qt_error_string(int(errno))); | - |
240 | return false; never executed: return false; | 0 |
241 | } | - |
242 | } never executed: end of block | 0 |
243 | | - |
244 | fd = -1; | - |
245 | } never executed: end of block | 0 |
246 | | - |
247 | closeFileHandle = true; | - |
248 | return true;executed 28933 times by 169 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
- ...
| 28933 |
249 | } | - |
250 | | - |
251 | | - |
252 | | - |
253 | | - |
254 | bool QFSFileEnginePrivate::nativeClose() | - |
255 | { | - |
256 | return closeFdFh();executed 33415 times by 208 tests: return closeFdFh(); 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
- ...
| 33415 |
257 | } | - |
258 | | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | bool QFSFileEnginePrivate::nativeFlush() | - |
264 | { | - |
265 | return fh ? flushFh() : fd != -1;executed 28697 times by 53 tests: return fh ? flushFh() : fd != -1; 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_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- ...
| 28697 |
266 | } | - |
267 | | - |
268 | | - |
269 | | - |
270 | | - |
271 | | - |
272 | bool QFSFileEnginePrivate::nativeSyncToDisk() | - |
273 | { | - |
274 | Q_Q(QFSFileEngine); | - |
275 | #if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0 | - |
276 | const int ret = fdatasync(nativeHandle()); | - |
277 | #else | - |
278 | const int ret = fsync(nativeHandle()); | - |
279 | #endif | - |
280 | if (ret != 0)TRUE | never evaluated | FALSE | evaluated 574 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
|
| 0-574 |
281 | q->setError(QFile::WriteError, qt_error_string(errno)); never executed: q->setError(QFile::WriteError, qt_error_string((*__errno_location ()))); | 0 |
282 | return ret == 0;executed 574 times by 7 tests: return ret == 0; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
| 574 |
283 | } | - |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | qint64 QFSFileEnginePrivate::nativeRead(char *data, qint64 len) | - |
289 | { | - |
290 | Q_Q(QFSFileEngine); | - |
291 | | - |
292 | if (fh && nativeIsSequential()) {TRUE | evaluated 394 times by 3 testsEvaluated by:- tst_QFile
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 86518 times by 102 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 5 times by 1 test |
| 5-86518 |
293 | size_t readBytes = 0; | - |
294 | int oldFlags = fcntl(QT_FILENO(fh), F_GETFL); | - |
295 | for (int i = 0; i < 2; ++i) {TRUE | evaluated 399 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-399 |
296 | | - |
297 | if ((oldFlags & O_NONBLOCK) == 0)TRUE | evaluated 399 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-399 |
298 | fcntl(QT_FILENO(fh), F_SETFL, oldFlags | O_NONBLOCK);executed 399 times by 2 tests: fcntl(fileno(fh), 4, oldFlags | 04000); Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 399 |
299 | | - |
300 | | - |
301 | size_t read = 0; | - |
302 | do { | - |
303 | read = fread(data + readBytes, 1, size_t(len - readBytes), fh); | - |
304 | } while (read == 0 && !feof(fh) && errno == EINTR);executed 399 times by 2 tests: end of block Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
TRUE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
TRUE | never evaluated | FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
| 0-399 |
305 | if (read > 0) {TRUE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
| 137-262 |
306 | readBytes += read; | - |
307 | break;executed 262 times by 2 tests: break; Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 262 |
308 | } else { | - |
309 | if (readBytes)TRUE | never evaluated | FALSE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
| 0-137 |
310 | break; never executed: break; | 0 |
311 | readBytes = read; | - |
312 | }executed 137 times by 2 tests: end of block Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 137 |
313 | | - |
314 | | - |
315 | if ((oldFlags & O_NONBLOCK) == 0) {TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-137 |
316 | fcntl(QT_FILENO(fh), F_SETFL, oldFlags); | - |
317 | if (readBytes == 0) {TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-137 |
318 | int readByte = 0; | - |
319 | do { | - |
320 | readByte = fgetc(fh); | - |
321 | } while (readByte == -1 && errno == EINTR);executed 137 times by 2 tests: end of block Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
TRUE | never evaluated | FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
| 0-137 |
322 | if (readByte != -1) {TRUE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
| 10-127 |
323 | *data = uchar(readByte); | - |
324 | readBytes += 1; | - |
325 | } else {executed 10 times by 1 test: end of block Executed by:- tst_qnetworkreply - unknown status
| 10 |
326 | break;executed 127 times by 2 tests: break; Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 127 |
327 | } | - |
328 | } | - |
329 | }executed 10 times by 1 test: end of block Executed by:- tst_qnetworkreply - unknown status
| 10 |
330 | }executed 10 times by 1 test: end of block Executed by:- tst_qnetworkreply - unknown status
| 10 |
331 | | - |
332 | if ((oldFlags & O_NONBLOCK) == 0) {TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-389 |
333 | fcntl(QT_FILENO(fh), F_SETFL, oldFlags); | - |
334 | }executed 389 times by 2 tests: end of block Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 389 |
335 | if (readBytes == 0 && !feof(fh)) {TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
TRUE | never evaluated | FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
| 0-262 |
336 | | - |
337 | q->setError(QFile::ReadError, qt_error_string(int(errno))); | - |
338 | return -1; never executed: return -1; | 0 |
339 | } | - |
340 | return readBytes;executed 389 times by 2 tests: return readBytes; Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 389 |
341 | } | - |
342 | | - |
343 | return readFdFh(data, len);executed 86523 times by 102 tests: return readFdFh(data, len); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 86523 |
344 | } | - |
345 | | - |
346 | | - |
347 | | - |
348 | | - |
349 | qint64 QFSFileEnginePrivate::nativeReadLine(char *data, qint64 maxlen) | - |
350 | { | - |
351 | return readLineFdFh(data, maxlen);executed 8 times by 1 test: return readLineFdFh(data, maxlen); | 8 |
352 | } | - |
353 | | - |
354 | | - |
355 | | - |
356 | | - |
357 | qint64 QFSFileEnginePrivate::nativeWrite(const char *data, qint64 len) | - |
358 | { | - |
359 | return writeFdFh(data, len);executed 19139 times by 46 tests: return writeFdFh(data, len); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- 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
- ...
| 19139 |
360 | } | - |
361 | | - |
362 | | - |
363 | | - |
364 | | - |
365 | qint64 QFSFileEnginePrivate::nativePos() const | - |
366 | { | - |
367 | return posFdFh();executed 282 times by 7 tests: return posFdFh(); Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| 282 |
368 | } | - |
369 | | - |
370 | | - |
371 | | - |
372 | | - |
373 | bool QFSFileEnginePrivate::nativeSeek(qint64 pos) | - |
374 | { | - |
375 | return seekFdFh(pos);executed 224254 times by 50 tests: return seekFdFh(pos); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QComboBox
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLockFile
- tst_QMimeDatabase
- ...
| 224254 |
376 | } | - |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | int QFSFileEnginePrivate::nativeHandle() const | - |
382 | { | - |
383 | return fh ? fileno(fh) : fd;executed 35000 times by 127 tests: return fh ? fileno(fh) : fd; 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_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- ...
| 35000 |
384 | } | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | bool QFSFileEnginePrivate::nativeIsSequential() const | - |
390 | { | - |
391 | return isSequentialFdFh();executed 26944 times by 109 tests: return isSequentialFdFh(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- ...
| 26944 |
392 | } | - |
393 | | - |
394 | bool QFSFileEngine::remove() | - |
395 | { | - |
396 | Q_D(QFSFileEngine); | - |
397 | QSystemError error; | - |
398 | bool ret = QFileSystemEngine::removeFile(d->fileEntry, error); | - |
399 | d->metaData.clear(); | - |
400 | if (!ret) {TRUE | evaluated 596 times by 21 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QIODevice
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QPrinter
- tst_QSaveFile
- tst_QSettings
- tst_QSharedMemory
- tst_QTextStream
- tst_QXmlStream
- tst_qmake
- tst_qstandardpaths
- tst_selftests - unknown status
| FALSE | evaluated 12669 times by 76 testsEvaluated 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
- ...
|
| 596-12669 |
401 | setError(QFile::RemoveError, error.toString()); | - |
402 | }executed 596 times by 21 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QIODevice
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QPrinter
- tst_QSaveFile
- tst_QSettings
- tst_QSharedMemory
- tst_QTextStream
- tst_QXmlStream
- tst_qmake
- tst_qstandardpaths
- tst_selftests - unknown status
| 596 |
403 | return ret;executed 13265 times by 76 tests: return ret; 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
- ...
| 13265 |
404 | } | - |
405 | | - |
406 | bool QFSFileEngine::copy(const QString &newName) | - |
407 | { | - |
408 | Q_D(QFSFileEngine); | - |
409 | QSystemError error; | - |
410 | bool ret = QFileSystemEngine::copyFile(d->fileEntry, QFileSystemEntry(newName), error); | - |
411 | if (!ret) {TRUE | evaluated 100 times by 2 testsEvaluated by:- tst_QFile
- tst_QImageReader
| FALSE | never evaluated |
| 0-100 |
412 | setError(QFile::CopyError, error.toString()); | - |
413 | }executed 100 times by 2 tests: end of block Executed by:- tst_QFile
- tst_QImageReader
| 100 |
414 | return ret;executed 100 times by 2 tests: return ret; Executed by:- tst_QFile
- tst_QImageReader
| 100 |
415 | } | - |
416 | | - |
417 | bool QFSFileEngine::renameOverwrite(const QString &newName) | - |
418 | { | - |
419 | | - |
420 | return rename(newName);executed 573 times by 7 tests: return rename(newName); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
| 573 |
421 | } | - |
422 | | - |
423 | bool QFSFileEngine::rename(const QString &newName) | - |
424 | { | - |
425 | Q_D(QFSFileEngine); | - |
426 | QSystemError error; | - |
427 | bool ret = QFileSystemEngine::renameFile(d->fileEntry, QFileSystemEntry(newName), error); | - |
428 | | - |
429 | if (!ret) {TRUE | evaluated 4 times by 4 testsEvaluated by:- tst_QDir
- tst_QFile
- tst_QSaveFile
- tst_QTemporaryFile
| FALSE | evaluated 820 times by 20 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
|
| 4-820 |
430 | setError(QFile::RenameError, error.toString()); | - |
431 | }executed 4 times by 4 tests: end of block Executed by:- tst_QDir
- tst_QFile
- tst_QSaveFile
- tst_QTemporaryFile
| 4 |
432 | | - |
433 | return ret;executed 824 times by 20 tests: return ret; Executed by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
| 824 |
434 | } | - |
435 | | - |
436 | bool QFSFileEngine::link(const QString &newName) | - |
437 | { | - |
438 | Q_D(QFSFileEngine); | - |
439 | QSystemError error; | - |
440 | bool ret = QFileSystemEngine::createLink(d->fileEntry, QFileSystemEntry(newName), error); | - |
441 | if (!ret) {TRUE | never evaluated | FALSE | evaluated 161 times by 8 testsEvaluated by:- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qstandardpaths
|
| 0-161 |
442 | setError(QFile::RenameError, error.toString()); | - |
443 | } never executed: end of block | 0 |
444 | return ret;executed 161 times by 8 tests: return ret; Executed by:- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qstandardpaths
| 161 |
445 | } | - |
446 | | - |
447 | qint64 QFSFileEnginePrivate::nativeSize() const | - |
448 | { | - |
449 | return sizeFdFh();executed 133807 times by 159 tests: return sizeFdFh(); 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
- ...
| 133807 |
450 | } | - |
451 | | - |
452 | bool QFSFileEngine::mkdir(const QString &name, bool createParentDirectories) const | - |
453 | { | - |
454 | return QFileSystemEngine::createDirectory(QFileSystemEntry(name), createParentDirectories); never executed: return QFileSystemEngine::createDirectory(QFileSystemEntry(name), createParentDirectories); | 0 |
455 | } | - |
456 | | - |
457 | bool QFSFileEngine::rmdir(const QString &name, bool recurseParentDirectories) const | - |
458 | { | - |
459 | return QFileSystemEngine::removeDirectory(QFileSystemEntry(name), recurseParentDirectories); never executed: return QFileSystemEngine::removeDirectory(QFileSystemEntry(name), recurseParentDirectories); | 0 |
460 | } | - |
461 | | - |
462 | bool QFSFileEngine::caseSensitive() const | - |
463 | { | - |
464 | return true; never executed: return true; | 0 |
465 | } | - |
466 | | - |
467 | bool QFSFileEngine::setCurrentPath(const QString &path) | - |
468 | { | - |
469 | return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path)); never executed: return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path)); | 0 |
470 | } | - |
471 | | - |
472 | QString QFSFileEngine::currentPath(const QString &) | - |
473 | { | - |
474 | return QFileSystemEngine::currentPath().filePath(); never executed: return QFileSystemEngine::currentPath().filePath(); | 0 |
475 | } | - |
476 | | - |
477 | QString QFSFileEngine::homePath() | - |
478 | { | - |
479 | return QFileSystemEngine::homePath(); never executed: return QFileSystemEngine::homePath(); | 0 |
480 | } | - |
481 | | - |
482 | QString QFSFileEngine::rootPath() | - |
483 | { | - |
484 | return QFileSystemEngine::rootPath();executed 78 times by 13 tests: return QFileSystemEngine::rootPath(); Executed by:- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
| 78 |
485 | } | - |
486 | | - |
487 | QString QFSFileEngine::tempPath() | - |
488 | { | - |
489 | return QFileSystemEngine::tempPath(); never executed: return QFileSystemEngine::tempPath(); | 0 |
490 | } | - |
491 | | - |
492 | QFileInfoList QFSFileEngine::drives() | - |
493 | { | - |
494 | QFileInfoList ret; | - |
495 | ret.append(QFileInfo(rootPath())); | - |
496 | return ret;executed 78 times by 13 tests: return ret; Executed by:- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
| 78 |
497 | } | - |
498 | | - |
499 | bool QFSFileEnginePrivate::doStat(QFileSystemMetaData::MetaDataFlags flags) const | - |
500 | { | - |
501 | if (!tried_stat || !metaData.hasFlags(flags)) {TRUE | evaluated 162212 times by 171 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 35463 times by 132 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_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- ...
|
TRUE | evaluated 370 times by 37 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- ...
| FALSE | evaluated 35093 times by 129 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_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- ...
|
| 370-162212 |
502 | tried_stat = 1; | - |
503 | | - |
504 | int localFd = fd; | - |
505 | if (fh && fileEntry.isEmpty())TRUE | evaluated 374 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 162208 times by 170 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
- ...
|
TRUE | evaluated 374 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
| 0-162208 |
506 | localFd = QT_FILENO(fh);executed 374 times by 5 tests: localFd = fileno(fh); Executed by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 374 |
507 | if (localFd != -1)TRUE | evaluated 159818 times by 169 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 2764 times by 57 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
| 2764-159818 |
508 | QFileSystemEngine::fillMetaData(localFd, metaData);executed 159818 times by 169 tests: QFileSystemEngine::fillMetaData(localFd, metaData); 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
- ...
| 159818 |
509 | | - |
510 | if (metaData.missingFlags(flags) && !fileEntry.isEmpty())TRUE | evaluated 3131 times by 59 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 1 time by 1 test |
| 1-3131 |
511 | QFileSystemEngine::fillMetaData(fileEntry, metaData, metaData.missingFlags(flags));executed 3131 times by 59 tests: QFileSystemEngine::fillMetaData(fileEntry, metaData, metaData.missingFlags(flags)); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 3131 |
512 | }executed 162582 times by 171 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
- ...
| 162582 |
513 | | - |
514 | return metaData.exists();executed 197675 times by 171 tests: return metaData.exists(); 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
- ...
| 197675 |
515 | } | - |
516 | | - |
517 | bool QFSFileEnginePrivate::isSymlink() const | - |
518 | { | - |
519 | if (!metaData.hasFlags(QFileSystemMetaData::LinkType))TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-2 |
520 | QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType);executed 2 times by 1 test: QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType); | 2 |
521 | | - |
522 | return metaData.isLink();executed 2 times by 1 test: return metaData.isLink(); | 2 |
523 | } | - |
524 | | - |
525 | | - |
526 | | - |
527 | | - |
528 | QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(FileFlags type) const | - |
529 | { | - |
530 | Q_D(const QFSFileEngine); | - |
531 | | - |
532 | if (type & Refresh)TRUE | evaluated 2390 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 165 times by 11 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
| 165-2390 |
533 | d->metaData.clear();executed 2390 times by 56 tests: d->metaData.clear(); Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 2390 |
534 | | - |
535 | QAbstractFileEngine::FileFlags ret = 0; | - |
536 | | - |
537 | if (type & FlagsMask)TRUE | evaluated 2395 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
| 160-2395 |
538 | ret |= LocalDiskFlag;executed 2395 times by 56 tests: ret |= LocalDiskFlag; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 2395 |
539 | | - |
540 | bool exists; | - |
541 | { | - |
542 | QFileSystemMetaData::MetaDataFlags queryFlags = 0; | - |
543 | | - |
544 | queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type)) | - |
545 | & QFileSystemMetaData::Permissions; | - |
546 | | - |
547 | if (type & TypesMask)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 2550 times by 59 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
| 5-2550 |
548 | queryFlags |= QFileSystemMetaData::AliasTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
549 | | QFileSystemMetaData::LinkTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
550 | | QFileSystemMetaData::FileTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
551 | | QFileSystemMetaData::DirectoryTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
552 | | QFileSystemMetaData::BundleType;executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
553 | | - |
554 | if (type & FlagsMask)TRUE | evaluated 2395 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
| 160-2395 |
555 | queryFlags |= QFileSystemMetaData::HiddenAttributeexecuted 2395 times by 56 tests: queryFlags |= QFileSystemMetaData::HiddenAttribute | QFileSystemMetaData::ExistsAttribute; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 2395 |
556 | | QFileSystemMetaData::ExistsAttribute;executed 2395 times by 56 tests: queryFlags |= QFileSystemMetaData::HiddenAttribute | QFileSystemMetaData::ExistsAttribute; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 2395 |
557 | | - |
558 | queryFlags |= QFileSystemMetaData::LinkType; | - |
559 | | - |
560 | exists = d->doStat(queryFlags); | - |
561 | } | - |
562 | | - |
563 | if (!exists && !d->metaData.isLink())TRUE | evaluated 1249 times by 20 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QNetworkReply
- tst_QPainter
- tst_QPixmap
- tst_QProcess
- tst_QSettings
- tst_QStyleSheetStyle
- tst_QTemporaryFile
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_rcc
| FALSE | evaluated 1306 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
TRUE | evaluated 1249 times by 20 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QNetworkReply
- tst_QPainter
- tst_QPixmap
- tst_QProcess
- tst_QSettings
- tst_QStyleSheetStyle
- tst_QTemporaryFile
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_rcc
| FALSE | never evaluated |
| 0-1306 |
564 | return ret;executed 1249 times by 20 tests: return ret; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QNetworkReply
- tst_QPainter
- tst_QPixmap
- tst_QProcess
- tst_QSettings
- tst_QStyleSheetStyle
- tst_QTemporaryFile
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_rcc
| 1249 |
565 | | - |
566 | if (exists && (type & PermsMask))TRUE | evaluated 1306 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | never evaluated |
| 0-1306 |
567 | ret |= FileFlags(uint(d->metaData.permissions()));executed 160 times by 10 tests: ret |= FileFlags(uint(d->metaData.permissions())); Executed by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
| 160 |
568 | | - |
569 | if (type & TypesMask) {TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1303 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
| 3-1303 |
570 | if (d->metaData.isAlias()) {TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
571 | ret |= LinkType; | - |
572 | } else { never executed: end of block | 0 |
573 | if ((type & LinkType) && d->metaData.isLink())TRUE | never evaluated | FALSE | never evaluated |
| 0 |
574 | ret |= LinkType; never executed: ret |= LinkType; | 0 |
575 | if (exists) {TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
| 0-3 |
576 | if (d->metaData.isFile()) {TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
| 0-3 |
577 | ret |= FileType; | - |
578 | } else if (d->metaData.isDirectory()) {executed 3 times by 1 test: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0-3 |
579 | ret |= DirectoryType; | - |
580 | if ((type & BundleType) && d->metaData.isBundle())TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
581 | ret |= BundleType; never executed: ret |= BundleType; | 0 |
582 | } never executed: end of block | 0 |
583 | }executed 3 times by 1 test: end of block | 3 |
584 | }executed 3 times by 1 test: end of block | 3 |
585 | } | - |
586 | | - |
587 | if (type & FlagsMask) {TRUE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
| 160-1146 |
588 | if (exists)TRUE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | never evaluated |
| 0-1146 |
589 | ret |= ExistsFlag;executed 1146 times by 50 tests: ret |= ExistsFlag; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 1146 |
590 | if (d->fileEntry.isRoot())TRUE | never evaluated | FALSE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
| 0-1146 |
591 | ret |= RootFlag; never executed: ret |= RootFlag; | 0 |
592 | else if (d->metaData.isHidden())TRUE | evaluated 12 times by 1 test | FALSE | evaluated 1134 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
| 12-1134 |
593 | ret |= HiddenFlag;executed 12 times by 1 test: ret |= HiddenFlag; | 12 |
594 | }executed 1146 times by 50 tests: end of block Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 1146 |
595 | | - |
596 | return ret;executed 1306 times by 53 tests: return ret; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 1306 |
597 | } | - |
598 | | - |
599 | QString QFSFileEngine::fileName(FileName file) const | - |
600 | { | - |
601 | Q_D(const QFSFileEngine); | - |
602 | if (file == BundleName) {TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 0-7361 |
603 | return QFileSystemEngine::bundleName(d->fileEntry); never executed: return QFileSystemEngine::bundleName(d->fileEntry); | 0 |
604 | } else if (file == BaseName) {TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 0-7361 |
605 | return d->fileEntry.fileName(); never executed: return d->fileEntry.fileName(); | 0 |
606 | } else if (file == PathName) {TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 0-7361 |
607 | return d->fileEntry.path(); never executed: return d->fileEntry.path(); | 0 |
608 | } else if (file == AbsoluteName || file == AbsolutePathName) {TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 0-7361 |
609 | QFileSystemEntry entry(QFileSystemEngine::absoluteName(d->fileEntry)); | - |
610 | if (file == AbsolutePathName) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
611 | return entry.path(); never executed: return entry.path(); | 0 |
612 | } | - |
613 | return entry.filePath(); never executed: return entry.filePath(); | 0 |
614 | } else if (file == CanonicalName || file == CanonicalPathName) {TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 0-7361 |
615 | QFileSystemEntry entry(QFileSystemEngine::canonicalName(d->fileEntry, d->metaData)); | - |
616 | if (file == CanonicalPathName)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
617 | return entry.path(); never executed: return entry.path(); | 0 |
618 | return entry.filePath(); never executed: return entry.filePath(); | 0 |
619 | } else if (file == LinkName) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 7359 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
| 2-7359 |
620 | if (d->isSymlink()) {TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-2 |
621 | QFileSystemEntry entry = QFileSystemEngine::getLinkTarget(d->fileEntry, d->metaData); | - |
622 | return entry.filePath();executed 2 times by 1 test: return entry.filePath(); | 2 |
623 | } | - |
624 | return QString(); never executed: return QString(); | 0 |
625 | } | - |
626 | return d->fileEntry.filePath();executed 7359 times by 67 tests: return d->fileEntry.filePath(); Executed by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
| 7359 |
627 | } | - |
628 | | - |
629 | bool QFSFileEngine::isRelativePath() const | - |
630 | { | - |
631 | Q_D(const QFSFileEngine); | - |
632 | return d->fileEntry.filePath().length() ? d->fileEntry.filePath()[0] != QLatin1Char('/') : true; never executed: return d->fileEntry.filePath().length() ? d->fileEntry.filePath()[0] != QLatin1Char('/') : true; | 0 |
633 | } | - |
634 | | - |
635 | uint QFSFileEngine::ownerId(FileOwner own) const | - |
636 | { | - |
637 | Q_D(const QFSFileEngine); | - |
638 | static const uint nobodyID = (uint) -2; | - |
639 | | - |
640 | if (d->doStat(QFileSystemMetaData::OwnerIds))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
641 | return d->metaData.ownerId(own); never executed: return d->metaData.ownerId(own); | 0 |
642 | | - |
643 | return nobodyID; never executed: return nobodyID; | 0 |
644 | } | - |
645 | | - |
646 | QString QFSFileEngine::owner(FileOwner own) const | - |
647 | { | - |
648 | if (own == OwnerUser)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
649 | return QFileSystemEngine::resolveUserName(ownerId(own)); never executed: return QFileSystemEngine::resolveUserName(ownerId(own)); | 0 |
650 | return QFileSystemEngine::resolveGroupName(ownerId(own)); never executed: return QFileSystemEngine::resolveGroupName(ownerId(own)); | 0 |
651 | } | - |
652 | | - |
653 | bool QFSFileEngine::setPermissions(uint perms) | - |
654 | { | - |
655 | Q_D(QFSFileEngine); | - |
656 | QSystemError error; | - |
657 | if (!QFileSystemEngine::setPermissions(d->fileEntry, QFile::Permissions(perms), error, 0)) {TRUE | evaluated 1 time by 1 test | FALSE | 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
|
| 1-1074 |
658 | setError(QFile::PermissionsError, error.toString()); | - |
659 | return false;executed 1 time by 1 test: return false; | 1 |
660 | } | - |
661 | return 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 |
662 | } | - |
663 | | - |
664 | bool QFSFileEngine::setSize(qint64 size) | - |
665 | { | - |
666 | Q_D(QFSFileEngine); | - |
667 | bool ret = false; | - |
668 | if (d->fd != -1)TRUE | evaluated 281 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
|
| 10-281 |
669 | ret = QT_FTRUNCATE(d->fd, size) == 0;executed 281 times by 7 tests: ret = ::ftruncate64(d->fd, size) == 0; Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| 281 |
670 | else if (d->fh)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
|
| 1-9 |
671 | ret = QT_FTRUNCATE(QT_FILENO(d->fh), size) == 0;executed 1 time by 1 test: ret = ::ftruncate64(fileno(d->fh), size) == 0; | 1 |
672 | else | - |
673 | ret = QT_TRUNCATE(d->fileEntry.nativeFilePath().constData(), size) == 0;executed 9 times by 2 tests: ret = ::truncate64(d->fileEntry.nativeFilePath().constData(), size) == 0; Executed by:- tst_QAbstractFileEngine
- tst_QFile
| 9 |
674 | if (!ret)TRUE | never evaluated | FALSE | evaluated 291 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
|
| 0-291 |
675 | setError(QFile::ResizeError, qt_error_string(errno)); never executed: setError(QFile::ResizeError, qt_error_string((*__errno_location ()))); | 0 |
676 | return ret;executed 291 times by 7 tests: return ret; Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| 291 |
677 | } | - |
678 | | - |
679 | QDateTime QFSFileEngine::fileTime(FileTime time) const | - |
680 | { | - |
681 | Q_D(const QFSFileEngine); | - |
682 | | - |
683 | if (d->doStat(QFileSystemMetaData::Times))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
684 | return d->metaData.fileTime(time); never executed: return d->metaData.fileTime(time); | 0 |
685 | | - |
686 | return QDateTime(); never executed: return QDateTime(); | 0 |
687 | } | - |
688 | | - |
689 | uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags) | - |
690 | { | - |
691 | Q_Q(QFSFileEngine); | - |
692 | Q_UNUSED(flags); | - |
693 | if (openMode == QIODevice::NotOpen) {TRUE | evaluated 8 times by 1 test | FALSE | evaluated 34371 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
- ...
|
| 8-34371 |
694 | q->setError(QFile::PermissionsError, qt_error_string(int(EACCES))); | - |
695 | return 0;executed 8 times by 1 test: return 0; | 8 |
696 | } | - |
697 | | - |
698 | if (offset < 0 || offset != qint64(QT_OFF_T(offset))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34370 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 34370 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
- ...
|
| 0-34370 |
699 | || size < 0 || quint64(size) > quint64(size_t(-1))) {TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34369 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 34369 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
- ...
|
| 0-34369 |
700 | q->setError(QFile::UnspecifiedError, qt_error_string(int(EINVAL))); | - |
701 | return 0;executed 2 times by 1 test: return 0; | 2 |
702 | } | - |
703 | | - |
704 | | - |
705 | | - |
706 | if (doStat(QFileSystemMetaData::SizeAttribute)TRUE | evaluated 34369 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-34369 |
707 | && (QT_OFF_T(size) > metaData.size() - QT_OFF_T(offset)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34368 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
- ...
|
| 1-34368 |
708 | qWarning("QFSFileEngine::map: Mapping a file beyond its size is not portable");executed 1 time by 1 test: QMessageLogger(__FILE__, 708, __PRETTY_FUNCTION__).warning("QFSFileEngine::map: Mapping a file beyond its size is not portable"); | 1 |
709 | | - |
710 | int access = 0; | - |
711 | if (openMode & QIODevice::ReadOnly) access |= PROT_READ;executed 34369 times by 121 tests: access |= 0x1; 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
- ...
TRUE | evaluated 34369 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-34369 |
712 | if (openMode & QIODevice::WriteOnly) access |= PROT_WRITE;executed 37 times by 2 tests: access |= 0x2; Executed by:- tst_QFile
- tst_QTemporaryFile
TRUE | evaluated 37 times by 2 testsEvaluated by:- tst_QFile
- tst_QTemporaryFile
| FALSE | evaluated 34332 times by 120 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
- ...
|
| 37-34332 |
713 | | - |
714 | int sharemode = MAP_SHARED; | - |
715 | if (flags & QFileDevice::MapPrivateOption) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 34367 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
- ...
|
| 2-34367 |
716 | sharemode = MAP_PRIVATE; | - |
717 | access |= PROT_WRITE; | - |
718 | }executed 2 times by 1 test: end of block | 2 |
719 | | - |
720 | #if defined(Q_OS_INTEGRITY) | - |
721 | int pageSize = sysconf(_SC_PAGESIZE); | - |
722 | #else | - |
723 | int pageSize = getpagesize(); | - |
724 | #endif | - |
725 | int extra = offset % pageSize; | - |
726 | | - |
727 | if (quint64(size + extra) > quint64((size_t)-1)) {TRUE | never evaluated | FALSE | evaluated 34369 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
- ...
|
| 0-34369 |
728 | q->setError(QFile::UnspecifiedError, qt_error_string(int(EINVAL))); | - |
729 | return 0; never executed: return 0; | 0 |
730 | } | - |
731 | | - |
732 | size_t realSize = (size_t)size + extra; | - |
733 | QT_OFF_T realOffset = QT_OFF_T(offset); | - |
734 | realOffset &= ~(QT_OFF_T(pageSize - 1)); | - |
735 | | - |
736 | void *mapAddress = QT_MMAP((void*)0, realSize, | - |
737 | access, sharemode, nativeHandle(), realOffset); | - |
738 | if (MAP_FAILED != mapAddress) {TRUE | evaluated 34363 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 | evaluated 6 times by 1 test |
| 6-34363 |
739 | uchar *address = extra + static_cast<uchar*>(mapAddress); | - |
740 | maps[address] = QPair<int,size_t>(extra, realSize); | - |
741 | return address;executed 34363 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
- ...
| 34363 |
742 | } | - |
743 | | - |
744 | switch(errno) { | - |
745 | case EBADF:executed 5 times by 1 test: case 9: | 5 |
746 | q->setError(QFile::PermissionsError, qt_error_string(int(EACCES))); | - |
747 | break;executed 5 times by 1 test: break; | 5 |
748 | case ENFILE: never executed: case 23: | 0 |
749 | case ENOMEM: never executed: case 12: | 0 |
750 | q->setError(QFile::ResourceError, qt_error_string(int(errno))); | - |
751 | break; never executed: break; | 0 |
752 | case EINVAL:executed 1 time by 1 test: case 22: | 1 |
753 | | - |
754 | default: never executed: default: | 0 |
755 | q->setError(QFile::UnspecifiedError, qt_error_string(int(errno))); | - |
756 | break;executed 1 time by 1 test: break; | 1 |
757 | } | - |
758 | return 0;executed 6 times by 1 test: return 0; | 6 |
759 | } | - |
760 | | - |
761 | bool QFSFileEnginePrivate::unmap(uchar *ptr) | - |
762 | { | - |
763 | #if !defined(Q_OS_INTEGRITY) | - |
764 | Q_Q(QFSFileEngine); | - |
765 | if (!maps.contains(ptr)) {TRUE | evaluated 8 times by 1 test | FALSE | evaluated 34363 times by 153 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
| 8-34363 |
766 | q->setError(QFile::PermissionsError, qt_error_string(EACCES)); | - |
767 | return false;executed 8 times by 1 test: return false; | 8 |
768 | } | - |
769 | | - |
770 | uchar *start = ptr - maps[ptr].first; | - |
771 | size_t len = maps[ptr].second; | - |
772 | if (-1 == munmap(start, len)) {TRUE | never evaluated | FALSE | evaluated 34363 times by 153 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
| 0-34363 |
773 | q->setError(QFile::UnspecifiedError, qt_error_string(errno)); | - |
774 | return false; never executed: return false; | 0 |
775 | } | - |
776 | maps.remove(ptr); | - |
777 | return true;executed 34363 times by 153 tests: return true; 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
| 34363 |
778 | #else | - |
779 | return false; | - |
780 | #endif | - |
781 | } | - |
782 | | - |
783 | QT_END_NAMESPACE | - |
784 | | - |
785 | #endif // QT_NO_FSFILEENGINE | - |
| | |