OpenCoverage

qfsfileengine_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfsfileengine_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18static inline QByteArray openModeToFopenMode(QIODevice::OpenMode flags, const QFileSystemEntry &fileEntry,-
19 QFileSystemMetaData &metaData)-
20{-
21 QByteArray mode;-
22 if ((
(flags & QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEnever evaluated
flags & QIODevice::ReadOnly)
(flags & QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEnever evaluated
&& !(flags & QIODevice::Truncate)
!(flags & QIODevice::Truncate)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
23 mode = "rb";-
24 if (flags & QIODevice::WriteOnly
flags & QIODevice::WriteOnlyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
25 metaData.clearFlags(QFileSystemMetaData::FileType);-
26 if (!fileEntry.isEmpty()
!fileEntry.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
27 && QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::FileType)
QFileSystemEng...ata::FileType)Description
TRUEnever evaluated
FALSEnever evaluated
0
28 && metaData.isFile()
metaData.isFile()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
29 mode += '+';-
30 }
never executed: end of block
else {
0
31 mode = "wb+";-
32 }
never executed: end of block
0
33 }-
34 }
never executed: end of block
else if (flags & QIODevice::WriteOnly
flags & QIODevice::WriteOnlyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
35 mode = "wb";-
36 if (flags & QIODevice::ReadOnly
flags & QIODevice::ReadOnlyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
37 mode += '+';
never executed: mode += '+';
0
38 }
never executed: end of block
0
39 if (flags & QIODevice::Append
flags & QIODevice::AppendDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
40 mode = "ab";-
41 if (flags & QIODevice::ReadOnly
flags & QIODevice::ReadOnlyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
42 mode += '+';
never executed: mode += '+';
0
43 }
never executed: end of block
0
44-
45-
46-
47 mode += 'e';-
48-
49-
50 return
never executed: return mode;
mode;
never executed: return mode;
0
51}-
52-
53-
54-
55-
56-
57-
58static inline int openModeToOpenFlags(QIODevice::OpenMode mode)-
59{-
60 int oflags = 00;-
61-
62 oflags |= 0;-
63-
64-
65 if ((
(mode & QFile:...ile::ReadWriteDescription
TRUEevaluated 635 times by 17 tests
Evaluated 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
FALSEevaluated 31782 times by 185 tests
Evaluated 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
  • ...
mode & QFile::ReadWrite) == QFile::ReadWrite
(mode & QFile:...ile::ReadWriteDescription
TRUEevaluated 635 times by 17 tests
Evaluated 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
FALSEevaluated 31782 times by 185 tests
Evaluated 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
66 oflags = 02 | 0100;-
67 }
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
else if (mode & QFile::WriteOnly
mode & QFile::WriteOnlyDescription
TRUEevaluated 1785 times by 38 tests
Evaluated 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
  • ...
FALSEevaluated 29997 times by 181 tests
Evaluated 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
68 oflags = 01 | 0100;-
69 }
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
70-
71 if (mode & QFile::Append
mode & QFile::AppendDescription
TRUEevaluated 257 times by 6 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_qfileopenevent
  • tst_qmakelib
FALSEevaluated 32160 times by 185 tests
Evaluated 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
72 oflags |= 02000;-
73 }
executed 257 times by 6 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_qfileopenevent
  • tst_qmakelib
else if (mode & QFile::WriteOnly
mode & QFile::WriteOnlyDescription
TRUEevaluated 2163 times by 43 tests
Evaluated 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
  • ...
FALSEevaluated 29997 times by 181 tests
Evaluated 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
74 if ((mode & QFile::Truncate) || !(mode & QFile::ReadOnly)
!(mode & QFile::ReadOnly)Description
TRUEnever evaluated
FALSEevaluated 627 times by 17 tests
Evaluated 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
75 oflags |= 01000;
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
76 }
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
77-
78 return
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
  • ...
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
79}-
80-
81-
82-
83-
84-
85-
86-
87static inline bool setCloseOnExec(int fd)-
88{-
89 return
never executed: return fd != -1 && fcntl(fd, 2, 1) != -1;
fd != -1 && fcntl(fd, 2, 1) != -1;
never executed: return fd != -1 && fcntl(fd, 2, 1) != -1;
0
90}-
91-
92static inline QString msgOpenDirectory()-
93{-
94 const char message[] = "file to open is a directory";-
95-
96 return
executed 10 times by 4 tests: return QIODevice::tr(message);
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_qmakelib
QIODevice::tr(message);
executed 10 times by 4 tests: return QIODevice::tr(message);
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_qmakelib
10
97-
98-
99-
100}-
101-
102-
103-
104-
105bool QFSFileEnginePrivate::nativeOpen(QIODevice::OpenMode openMode)-
106{-
107 QFSFileEngine * const q = q_func();-
108-
109 if (openMode & QIODevice::Unbuffered
openMode & QIO...ce::UnbufferedDescription
TRUEevaluated 32417 times by 185 tests
Evaluated 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
  • ...
FALSEnever evaluated
) {
0-32417
110 int flags = openModeToOpenFlags(openMode);-
111-
112-
113 do {-
114 fd = qt_safe_open(fileEntry.nativeFilePath().constData(), flags, 0666);-
115 }
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
  • ...
while (fd == -1
fd == -1Description
TRUEevaluated 3474 times by 50 tests
Evaluated 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
  • ...
FALSEevaluated 28943 times by 169 tests
Evaluated 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
  • ...
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3474 times by 50 tests
Evaluated 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
  • ...
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3474 times by 50 tests
Evaluated 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
116-
117-
118 if (fd == -1
fd == -1Description
TRUEevaluated 3474 times by 50 tests
Evaluated 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
  • ...
FALSEevaluated 28943 times by 169 tests
Evaluated 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
119 q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError,-
120 qt_error_string((*__errno_location ())));-
121 return
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
  • ...
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
122 }-
123-
124 if (!(openMode & QIODevice::WriteOnly)
!(openMode & Q...ce::WriteOnly)Description
TRUEevaluated 26563 times by 165 tests
Evaluated 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
  • ...
FALSEevaluated 2380 times by 43 tests
Evaluated 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
125-
126-
127 if (QFileSystemEngine::fillMetaData(fd, metaData)
QFileSystemEng...(fd, metaData)Description
TRUEevaluated 26563 times by 165 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-26563
128 && metaData.isDirectory()
metaData.isDirectory()Description
TRUEevaluated 10 times by 4 tests
Evaluated by:
  • tst_QFile
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_qmakelib
FALSEevaluated 26553 times by 165 tests
Evaluated 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
129 q->setError(QFile::OpenError, msgOpenDirectory());-
130 qt_safe_close(fd);-
131 return
executed 10 times by 4 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_qmakelib
false;
executed 10 times by 4 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_qmakelib
10
132 }-
133 }
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
134-
135-
136 if (flags & QFile::Append
flags & QFile::AppendDescription
TRUEnever evaluated
FALSEevaluated 28933 times by 169 tests
Evaluated 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
137 int ret;-
138 do {-
139 ret = ::lseek64(fd, 0, 2);-
140 }
never executed: end of block
while (ret == -1
ret == -1Description
TRUEnever evaluated
FALSEnever evaluated
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
);
0
141-
142 if (ret == -1
ret == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
143 q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError,-
144 qt_error_string(int((*__errno_location ()))));-
145 return
never executed: return false;
false;
never executed: return false;
0
146 }-
147 }
never executed: end of block
0
148-
149 fh = 0;-
150 }
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
  • ...
else {
28933
151 QByteArray fopenMode = openModeToFopenMode(openMode, fileEntry, metaData);-
152-
153-
154 do {-
155 fh = ::fopen64(fileEntry.nativeFilePath().constData(), fopenMode.constData());-
156 }
never executed: end of block
while (!fh
!fhDescription
TRUEnever evaluated
FALSEnever evaluated
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
);
0
157-
158-
159 if (!fh
!fhDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
160 q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError,-
161 qt_error_string(int((*__errno_location ()))));-
162 return
never executed: return false;
false;
never executed: return false;
0
163 }-
164-
165 if (!(openMode & QIODevice::WriteOnly)
!(openMode & Q...ce::WriteOnly)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
166-
167-
168 if (QFileSystemEngine::fillMetaData(fileno(fh), metaData)
QFileSystemEng...fh), metaData)Description
TRUEnever evaluated
FALSEnever evaluated
0
169 && metaData.isDirectory()
metaData.isDirectory()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
170 q->setError(QFile::OpenError, msgOpenDirectory());-
171 fclose(fh);-
172 return
never executed: return false;
false;
never executed: return false;
0
173 }-
174 }
never executed: end of block
0
175-
176 setCloseOnExec(fileno(fh));-
177-
178-
179 if (openMode & QIODevice::Append
openMode & QIODevice::AppendDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
180 int ret;-
181 do {-
182 ret = ::fseeko64(fh, 0, 2);-
183 }
never executed: end of block
while (ret == -1
ret == -1Description
TRUEnever evaluated
FALSEnever evaluated
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
);
0
184-
185 if (ret == -1
ret == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
186 q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError,-
187 qt_error_string(int((*__errno_location ()))));-
188 return
never executed: return false;
false;
never executed: return false;
0
189 }-
190 }
never executed: end of block
0
191-
192 fd = -1;-
193 }
never executed: end of block
0
194-
195 closeFileHandle = true;-
196 return
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
  • ...
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
197}-
198-
199-
200-
201-
202bool QFSFileEnginePrivate::nativeClose()-
203{-
204 return
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
  • ...
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
205}-
206-
207-
208-
209-
210-
211bool QFSFileEnginePrivate::nativeFlush()-
212{-
213 return
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
  • ...
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
214}-
215-
216-
217-
218-
219-
220bool QFSFileEnginePrivate::nativeSyncToDisk()-
221{-
222 QFSFileEngine * const q = q_func();-
223-
224 const int ret = fdatasync(nativeHandle());-
225-
226-
227-
228 if (ret != 0
ret != 0Description
TRUEnever evaluated
FALSEevaluated 574 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
)
0-574
229 q->setError(QFile::WriteError, qt_error_string((*__errno_location ())));
never executed: q->setError(QFile::WriteError, qt_error_string((*__errno_location ())));
0
230 return
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
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
231}-
232-
233-
234-
235-
236qint64 QFSFileEnginePrivate::nativeRead(char *data, qint64 len)-
237{-
238 QFSFileEngine * const q = q_func();-
239-
240 if (fh
fhDescription
TRUEevaluated 394 times by 3 tests
Evaluated by:
  • tst_QFile
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 86518 times by 102 tests
Evaluated 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
  • ...
&& nativeIsSequential()
nativeIsSequential()Description
TRUEevaluated 389 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QFile
) {
5-86518
241 size_t readBytes = 0;-
242 int oldFlags = fcntl(fileno(fh), 3);-
243 for (int i = 0; i < 2
i < 2Description
TRUEevaluated 399 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
; ++i) {
0-399
244-
245 if ((
(oldFlags & 04000) == 0Description
TRUEevaluated 399 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
oldFlags & 04000) == 0
(oldFlags & 04000) == 0Description
TRUEevaluated 399 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
)
0-399
246 fcntl(fileno(fh), 4, oldFlags | 04000);
executed 399 times by 2 tests: fcntl(fileno(fh), 4, oldFlags | 04000);
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
399
247-
248-
249 size_t read = 0;-
250 do {-
251 read = fread(data + readBytes, 1, size_t(len - readBytes), fh);-
252 }
executed 399 times by 2 tests: end of block
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
while (read == 0
read == 0Description
TRUEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 262 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
&& !feof(fh)
!feof(fh)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qnetworkreply - unknown status
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qnetworkreply - unknown status
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qnetworkreply - unknown status
);
0-399
253 if (read > 0
read > 0Description
TRUEevaluated 262 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
) {
137-262
254 readBytes += read;-
255 break;
executed 262 times by 2 tests: break;
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
262
256 } else {-
257 if (readBytes
readBytesDescription
TRUEnever evaluated
FALSEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
)
0-137
258 break;
never executed: break;
0
259 readBytes = read;-
260 }
executed 137 times by 2 tests: end of block
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
137
261-
262-
263 if ((
(oldFlags & 04000) == 0Description
TRUEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
oldFlags & 04000) == 0
(oldFlags & 04000) == 0Description
TRUEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
) {
0-137
264 fcntl(fileno(fh), 4, oldFlags);-
265 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 137 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
) {
0-137
266 int readByte = 0;-
267 do {-
268 readByte = fgetc(fh);-
269 }
executed 137 times by 2 tests: end of block
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
while (readByte == -1
readByte == -1Description
TRUEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qnetworkreply - unknown status
&& (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
__errno_location ()) == 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
);
0-137
270 if (readByte != -1
readByte != -1Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qnetworkreply - unknown status
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
) {
10-127
271 *data = uchar(readByte);-
272 readBytes += 1;-
273 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qnetworkreply - unknown status
else {
10
274 break;
executed 127 times by 2 tests: break;
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
127
275 }-
276 }-
277 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qnetworkreply - unknown status
10
278 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qnetworkreply - unknown status
10
279-
280 if ((
(oldFlags & 04000) == 0Description
TRUEevaluated 389 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
oldFlags & 04000) == 0
(oldFlags & 04000) == 0Description
TRUEevaluated 389 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
) {
0-389
281 fcntl(fileno(fh), 4, oldFlags);-
282 }
executed 389 times by 2 tests: end of block
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
389
283 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 262 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
&& !feof(fh)
!feof(fh)Description
TRUEnever evaluated
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
) {
0-262
284-
285 q->setError(QFile::ReadError, qt_error_string(int((*__errno_location ()))));-
286 return
never executed: return -1;
-1;
never executed: return -1;
0
287 }-
288 return
executed 389 times by 2 tests: return readBytes;
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
readBytes;
executed 389 times by 2 tests: return readBytes;
Executed by:
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
389
289 }-
290-
291 return
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
  • ...
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
292}-
293-
294-
295-
296-
297qint64 QFSFileEnginePrivate::nativeReadLine(char *data, qint64 maxlen)-
298{-
299 return
executed 8 times by 1 test: return readLineFdFh(data, maxlen);
Executed by:
  • tst_QFile
readLineFdFh(data, maxlen);
executed 8 times by 1 test: return readLineFdFh(data, maxlen);
Executed by:
  • tst_QFile
8
300}-
301-
302-
303-
304-
305qint64 QFSFileEnginePrivate::nativeWrite(const char *data, qint64 len)-
306{-
307 return
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
  • ...
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
308}-
309-
310-
311-
312-
313qint64 QFSFileEnginePrivate::nativePos() const-
314{-
315 return
executed 282 times by 7 tests: return posFdFh();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTemporaryFile
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
316}-
317-
318-
319-
320-
321bool QFSFileEnginePrivate::nativeSeek(qint64 pos)-
322{-
323 return
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
  • ...
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
324}-
325-
326-
327-
328-
329int QFSFileEnginePrivate::nativeHandle() const-
330{-
331 return
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
  • ...
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
332}-
333-
334-
335-
336-
337bool QFSFileEnginePrivate::nativeIsSequential() const-
338{-
339 return
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
  • ...
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
340}-
341-
342bool QFSFileEngine::remove()-
343{-
344 QFSFileEnginePrivate * const d = d_func();-
345 QSystemError error;-
346 bool ret = QFileSystemEngine::removeFile(d->fileEntry, error);-
347 d->metaData.clear();-
348 if (!ret
!retDescription
TRUEevaluated 596 times by 21 tests
Evaluated 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
FALSEevaluated 12669 times by 76 tests
Evaluated 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
349 setError(QFile::RemoveError, error.toString());-
350 }
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
351 return
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
  • ...
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
352}-
353-
354bool QFSFileEngine::copy(const QString &newName)-
355{-
356 QFSFileEnginePrivate * const d = d_func();-
357 QSystemError error;-
358 bool ret = QFileSystemEngine::copyFile(d->fileEntry, QFileSystemEntry(newName), error);-
359 if (!ret
!retDescription
TRUEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QImageReader
FALSEnever evaluated
) {
0-100
360 setError(QFile::CopyError, error.toString());-
361 }
executed 100 times by 2 tests: end of block
Executed by:
  • tst_QFile
  • tst_QImageReader
100
362 return
executed 100 times by 2 tests: return ret;
Executed by:
  • tst_QFile
  • tst_QImageReader
ret;
executed 100 times by 2 tests: return ret;
Executed by:
  • tst_QFile
  • tst_QImageReader
100
363}-
364-
365bool QFSFileEngine::renameOverwrite(const QString &newName)-
366{-
367-
368 return
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
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
369}-
370-
371bool QFSFileEngine::rename(const QString &newName)-
372{-
373 QFSFileEnginePrivate * const d = d_func();-
374 QSystemError error;-
375 bool ret = QFileSystemEngine::renameFile(d->fileEntry, QFileSystemEntry(newName), error);-
376-
377 if (!ret
!retDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
FALSEevaluated 820 times by 20 tests
Evaluated 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
378 setError(QFile::RenameError, error.toString());-
379 }
executed 4 times by 4 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
4
380-
381 return
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
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
382}-
383-
384bool QFSFileEngine::link(const QString &newName)-
385{-
386 QFSFileEnginePrivate * const d = d_func();-
387 QSystemError error;-
388 bool ret = QFileSystemEngine::createLink(d->fileEntry, QFileSystemEntry(newName), error);-
389 if (!ret
!retDescription
TRUEnever evaluated
FALSEevaluated 161 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qstandardpaths
) {
0-161
390 setError(QFile::RenameError, error.toString());-
391 }
never executed: end of block
0
392 return
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
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
393}-
394-
395qint64 QFSFileEnginePrivate::nativeSize() const-
396{-
397 return
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
  • ...
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
398}-
399-
400bool QFSFileEngine::mkdir(const QString &name, bool createParentDirectories) const-
401{-
402 return
never executed: return QFileSystemEngine::createDirectory(QFileSystemEntry(name), createParentDirectories);
QFileSystemEngine::createDirectory(QFileSystemEntry(name), createParentDirectories);
never executed: return QFileSystemEngine::createDirectory(QFileSystemEntry(name), createParentDirectories);
0
403}-
404-
405bool QFSFileEngine::rmdir(const QString &name, bool recurseParentDirectories) const-
406{-
407 return
never executed: return QFileSystemEngine::removeDirectory(QFileSystemEntry(name), recurseParentDirectories);
QFileSystemEngine::removeDirectory(QFileSystemEntry(name), recurseParentDirectories);
never executed: return QFileSystemEngine::removeDirectory(QFileSystemEntry(name), recurseParentDirectories);
0
408}-
409-
410bool QFSFileEngine::caseSensitive() const-
411{-
412 return
never executed: return true;
true;
never executed: return true;
0
413}-
414-
415bool QFSFileEngine::setCurrentPath(const QString &path)-
416{-
417 return
never executed: return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
never executed: return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
0
418}-
419-
420QString QFSFileEngine::currentPath(const QString &)-
421{-
422 return
never executed: return QFileSystemEngine::currentPath().filePath();
QFileSystemEngine::currentPath().filePath();
never executed: return QFileSystemEngine::currentPath().filePath();
0
423}-
424-
425QString QFSFileEngine::homePath()-
426{-
427 return
never executed: return QFileSystemEngine::homePath();
QFileSystemEngine::homePath();
never executed: return QFileSystemEngine::homePath();
0
428}-
429-
430QString QFSFileEngine::rootPath()-
431{-
432 return
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
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
433}-
434-
435QString QFSFileEngine::tempPath()-
436{-
437 return
never executed: return QFileSystemEngine::tempPath();
QFileSystemEngine::tempPath();
never executed: return QFileSystemEngine::tempPath();
0
438}-
439-
440QFileInfoList QFSFileEngine::drives()-
441{-
442 QFileInfoList ret;-
443 ret.append(QFileInfo(rootPath()));-
444 return
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
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
445}-
446-
447bool QFSFileEnginePrivate::doStat(QFileSystemMetaData::MetaDataFlags flags) const-
448{-
449 if (!tried_stat
!tried_statDescription
TRUEevaluated 162212 times by 171 tests
Evaluated 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
  • ...
FALSEevaluated 35463 times by 132 tests
Evaluated 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
  • ...
|| !metaData.hasFlags(flags)
!metaData.hasFlags(flags)Description
TRUEevaluated 370 times by 37 tests
Evaluated 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
  • ...
FALSEevaluated 35093 times by 129 tests
Evaluated 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
450 tried_stat = 1;-
451-
452 int localFd = fd;-
453 if (fh
fhDescription
TRUEevaluated 374 times by 5 tests
Evaluated by:
  • tst_LargeFile
  • tst_QFile
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEevaluated 162208 times by 170 tests
Evaluated 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
  • ...
&& fileEntry.isEmpty()
fileEntry.isEmpty()Description
TRUEevaluated 374 times by 5 tests
Evaluated by:
  • tst_LargeFile
  • tst_QFile
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
FALSEnever evaluated
)
0-162208
454 localFd = 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
455 if (localFd != -1
localFd != -1Description
TRUEevaluated 159818 times by 169 tests
Evaluated 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
  • ...
FALSEevaluated 2764 times by 57 tests
Evaluated 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
456 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
457-
458 if (metaData.missingFlags(flags) && !fileEntry.isEmpty()
!fileEntry.isEmpty()Description
TRUEevaluated 3131 times by 59 tests
Evaluated 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
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
)
1-3131
459 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
460 }
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
461-
462 return
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
  • ...
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
463}-
464-
465bool QFSFileEnginePrivate::isSymlink() const-
466{-
467 if (!metaData.hasFlags(QFileSystemMetaData::LinkType)
!metaData.hasF...ata::LinkType)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
)
0-2
468 QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType);
executed 2 times by 1 test: QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType);
Executed by:
  • tst_QFile
2
469-
470 return
executed 2 times by 1 test: return metaData.isLink();
Executed by:
  • tst_QFile
metaData.isLink();
executed 2 times by 1 test: return metaData.isLink();
Executed by:
  • tst_QFile
2
471}-
472-
473-
474-
475-
476QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(FileFlags type) const-
477{-
478 const QFSFileEnginePrivate * const d = d_func();-
479-
480 if (type & Refresh
type & RefreshDescription
TRUEevaluated 2390 times by 56 tests
Evaluated 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
  • ...
FALSEevaluated 165 times by 11 tests
Evaluated 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
481 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
482-
483 QAbstractFileEngine::FileFlags ret = 0;-
484-
485 if (type & FlagsMask
type & FlagsMaskDescription
TRUEevaluated 2395 times by 56 tests
Evaluated 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
  • ...
FALSEevaluated 160 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qmakelib
  • tst_qstandardpaths
)
160-2395
486 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
487-
488 bool exists;-
489 {-
490 QFileSystemMetaData::MetaDataFlags queryFlags = 0;-
491-
492 queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type))-
493 & QFileSystemMetaData::Permissions;-
494-
495 if (type & TypesMask
type & TypesMaskDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QAbstractFileEngine
FALSEevaluated 2550 times by 59 tests
Evaluated 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
496 queryFlags |= QFileSystemMetaData::AliasType
executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType;
Executed by:
  • tst_QAbstractFileEngine
5
497 | QFileSystemMetaData::LinkType
executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType;
Executed by:
  • tst_QAbstractFileEngine
5
498 | QFileSystemMetaData::FileType
executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType;
Executed by:
  • tst_QAbstractFileEngine
5
499 | QFileSystemMetaData::DirectoryType
executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType;
Executed by:
  • tst_QAbstractFileEngine
5
500 | QFileSystemMetaData::BundleType;
executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType;
Executed by:
  • tst_QAbstractFileEngine
5
501-
502 if (type & FlagsMask
type & FlagsMaskDescription
TRUEevaluated 2395 times by 56 tests
Evaluated 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
  • ...
FALSEevaluated 160 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qmakelib
  • tst_qstandardpaths
)
160-2395
503 queryFlags |= QFileSystemMetaData::HiddenAttribute
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
504 | 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
505-
506 queryFlags |= QFileSystemMetaData::LinkType;-
507-
508 exists = d->doStat(queryFlags);-
509 }-
510-
511 if (!exists
!existsDescription
TRUEevaluated 1249 times by 20 tests
Evaluated 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
FALSEevaluated 1306 times by 53 tests
Evaluated 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
  • ...
&& !d->metaData.isLink()
!d->metaData.isLink()Description
TRUEevaluated 1249 times by 20 tests
Evaluated 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
FALSEnever evaluated
)
0-1306
512 return
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
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
513-
514 if (exists
existsDescription
TRUEevaluated 1306 times by 53 tests
Evaluated 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
  • ...
FALSEnever evaluated
&& (type & PermsMask))
0-1306
515 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
516-
517 if (type & TypesMask
type & TypesMaskDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractFileEngine
FALSEevaluated 1303 times by 53 tests
Evaluated 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
518 if (d->metaData.isAlias()
d->metaData.isAlias()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractFileEngine
) {
0-3
519 ret |= LinkType;-
520 }
never executed: end of block
else {
0
521 if ((type & LinkType) && d->metaData.isLink()
d->metaData.isLink()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
522 ret |= LinkType;
never executed: ret |= LinkType;
0
523 if (exists
existsDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractFileEngine
FALSEnever evaluated
) {
0-3
524 if (d->metaData.isFile()
d->metaData.isFile()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractFileEngine
FALSEnever evaluated
) {
0-3
525 ret |= FileType;-
526 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QAbstractFileEngine
else if (d->metaData.isDirectory()
d->metaData.isDirectory()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-3
527 ret |= DirectoryType;-
528 if ((
(type & BundleType)Description
TRUEnever evaluated
FALSEnever evaluated
type & BundleType)
(type & BundleType)Description
TRUEnever evaluated
FALSEnever evaluated
&& d->metaData.isBundle()
d->metaData.isBundle()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
529 ret |= BundleType;
never executed: ret |= BundleType;
0
530 }
never executed: end of block
0
531 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QAbstractFileEngine
3
532 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QAbstractFileEngine
3
533 }-
534-
535 if (type & FlagsMask
type & FlagsMaskDescription
TRUEevaluated 1146 times by 50 tests
Evaluated 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
  • ...
FALSEevaluated 160 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qmakelib
  • tst_qstandardpaths
) {
160-1146
536 if (exists
existsDescription
TRUEevaluated 1146 times by 50 tests
Evaluated 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
  • ...
FALSEnever evaluated
)
0-1146
537 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
538 if (d->fileEntry.isRoot()
d->fileEntry.isRoot()Description
TRUEnever evaluated
FALSEevaluated 1146 times by 50 tests
Evaluated 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
539 ret |= RootFlag;
never executed: ret |= RootFlag;
0
540 else if (d->metaData.isHidden()
d->metaData.isHidden()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTemporaryFile
FALSEevaluated 1134 times by 50 tests
Evaluated 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
541 ret |= HiddenFlag;
executed 12 times by 1 test: ret |= HiddenFlag;
Executed by:
  • tst_QTemporaryFile
12
542 }
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
543-
544 return
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
  • ...
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
545}-
546-
547QString QFSFileEngine::fileName(FileName file) const-
548{-
549 const QFSFileEnginePrivate * const d = d_func();-
550 if (file == BundleName
file == BundleNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
551 return
never executed: return QFileSystemEngine::bundleName(d->fileEntry);
QFileSystemEngine::bundleName(d->fileEntry);
never executed: return QFileSystemEngine::bundleName(d->fileEntry);
0
552 } else if (file == BaseName
file == BaseNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
553 return
never executed: return d->fileEntry.fileName();
d->fileEntry.fileName();
never executed: return d->fileEntry.fileName();
0
554 } else if (file == PathName
file == PathNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
555 return
never executed: return d->fileEntry.path();
d->fileEntry.path();
never executed: return d->fileEntry.path();
0
556 } else if (file == AbsoluteName
file == AbsoluteNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
  • ...
|| file == AbsolutePathName
file == AbsolutePathNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
557 QFileSystemEntry entry(QFileSystemEngine::absoluteName(d->fileEntry));-
558 if (file == AbsolutePathName
file == AbsolutePathNameDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
559 return
never executed: return entry.path();
entry.path();
never executed: return entry.path();
0
560 }-
561 return
never executed: return entry.filePath();
entry.filePath();
never executed: return entry.filePath();
0
562 } else if (file == CanonicalName
file == CanonicalNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
  • ...
|| file == CanonicalPathName
file == CanonicalPathNameDescription
TRUEnever evaluated
FALSEevaluated 7361 times by 67 tests
Evaluated 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
563 QFileSystemEntry entry(QFileSystemEngine::canonicalName(d->fileEntry, d->metaData));-
564 if (file == CanonicalPathName
file == CanonicalPathNameDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
565 return
never executed: return entry.path();
entry.path();
never executed: return entry.path();
0
566 return
never executed: return entry.filePath();
entry.filePath();
never executed: return entry.filePath();
0
567 } else if (file == LinkName
file == LinkNameDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 7359 times by 67 tests
Evaluated 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
568 if (d->isSymlink()
d->isSymlink()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
) {
0-2
569 QFileSystemEntry entry = QFileSystemEngine::getLinkTarget(d->fileEntry, d->metaData);-
570 return
executed 2 times by 1 test: return entry.filePath();
Executed by:
  • tst_QFile
entry.filePath();
executed 2 times by 1 test: return entry.filePath();
Executed by:
  • tst_QFile
2
571 }-
572 return
never executed: return QString();
QString();
never executed: return QString();
0
573 }-
574 return
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
  • ...
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
575}-
576-
577bool QFSFileEngine::isRelativePath() const-
578{-
579 const QFSFileEnginePrivate * const d = d_func();-
580 return
never executed: return d->fileEntry.filePath().length() ? d->fileEntry.filePath()[0] != QLatin1Char('/') : true;
d->fileEntry.filePath().length() ? d->fileEntry.filePath()[0] != QLatin1Char('/') : true;
never executed: return d->fileEntry.filePath().length() ? d->fileEntry.filePath()[0] != QLatin1Char('/') : true;
0
581}-
582-
583uint QFSFileEngine::ownerId(FileOwner own) const-
584{-
585 const QFSFileEnginePrivate * const d = d_func();-
586 static const uint nobodyID = (uint) -2;-
587-
588 if (d->doStat(QFileSystemMetaData::OwnerIds)
d->doStat(QFil...ata::OwnerIds)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
589 return
never executed: return d->metaData.ownerId(own);
d->metaData.ownerId(own);
never executed: return d->metaData.ownerId(own);
0
590-
591 return
never executed: return nobodyID;
nobodyID;
never executed: return nobodyID;
0
592}-
593-
594QString QFSFileEngine::owner(FileOwner own) const-
595{-
596 if (own == OwnerUser
own == OwnerUserDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
597 return
never executed: return QFileSystemEngine::resolveUserName(ownerId(own));
QFileSystemEngine::resolveUserName(ownerId(own));
never executed: return QFileSystemEngine::resolveUserName(ownerId(own));
0
598 return
never executed: return QFileSystemEngine::resolveGroupName(ownerId(own));
QFileSystemEngine::resolveGroupName(ownerId(own));
never executed: return QFileSystemEngine::resolveGroupName(ownerId(own));
0
599}-
600-
601bool QFSFileEngine::setPermissions(uint perms)-
602{-
603 QFSFileEnginePrivate * const d = d_func();-
604 QSystemError error;-
605 if (!QFileSystemEngine::setPermissions(d->fileEntry, QFile::Permissions(perms), error, 0)
!QFileSystemEn...ms), error, 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 1074 times by 22 tests
Evaluated 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
606 setError(QFile::PermissionsError, error.toString());-
607 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
1
608 }-
609 return
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
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
610}-
611-
612bool QFSFileEngine::setSize(qint64 size)-
613{-
614 QFSFileEnginePrivate * const d = d_func();-
615 bool ret = false;-
616 if (d->fd != -1
d->fd != -1Description
TRUEevaluated 281 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTemporaryFile
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QFile
)
10-281
617 ret = ::ftruncate64(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
618 else if (d->fh
d->fhDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QFile
)
1-9
619 ret = ::ftruncate64(fileno(d->fh), size) == 0;
executed 1 time by 1 test: ret = ::ftruncate64(fileno(d->fh), size) == 0;
Executed by:
  • tst_QFile
1
620 else-
621 ret = ::truncate64(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
622 if (!ret
!retDescription
TRUEnever evaluated
FALSEevaluated 291 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTemporaryFile
)
0-291
623 setError(QFile::ResizeError, qt_error_string((*__errno_location ())));
never executed: setError(QFile::ResizeError, qt_error_string((*__errno_location ())));
0
624 return
executed 291 times by 7 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTemporaryFile
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
625}-
626-
627QDateTime QFSFileEngine::fileTime(FileTime time) const-
628{-
629 const QFSFileEnginePrivate * const d = d_func();-
630-
631 if (d->doStat(QFileSystemMetaData::Times)
d->doStat(QFil...taData::Times)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
632 return
never executed: return d->metaData.fileTime(time);
d->metaData.fileTime(time);
never executed: return d->metaData.fileTime(time);
0
633-
634 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
635}-
636-
637uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags)-
638{-
639 QFSFileEngine * const q = q_func();-
640 (void)flags;;-
641 if (openMode == QIODevice::NotOpen
openMode == QIODevice::NotOpenDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 34371 times by 121 tests
Evaluated 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
642 q->setError(QFile::PermissionsError, qt_error_string(int(13)));-
643 return
executed 8 times by 1 test: return 0;
Executed by:
  • tst_QFile
0;
executed 8 times by 1 test: return 0;
Executed by:
  • tst_QFile
8
644 }-
645-
646 if (offset < 0
offset < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 34370 times by 121 tests
Evaluated 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
  • ...
|| offset != qint64(off64_t(offset))
offset != qint...f64_t(offset))Description
TRUEnever evaluated
FALSEevaluated 34370 times by 121 tests
Evaluated 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
647 || size < 0
size < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 34369 times by 121 tests
Evaluated 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
  • ...
|| quint64(size) > quint64(size_t(-1))
quint64(size) ...64(size_t(-1))Description
TRUEnever evaluated
FALSEevaluated 34369 times by 121 tests
Evaluated 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
648 q->setError(QFile::UnspecifiedError, qt_error_string(int(22)));-
649 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QFile
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QFile
2
650 }-
651-
652-
653-
654 if (doStat(QFileSystemMetaData::SizeAttribute)
doStat(QFileSy...SizeAttribute)Description
TRUEevaluated 34369 times by 121 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-34369
655 && (
(off64_t(size)...f64_t(offset))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_LargeFile
FALSEevaluated 34368 times by 121 tests
Evaluated 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
  • ...
off64_t(size) > metaData.size() - off64_t(offset))
(off64_t(size)...f64_t(offset))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_LargeFile
FALSEevaluated 34368 times by 121 tests
Evaluated 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
656 QMessageLogger(__FILE__, 708, __PRETTY_FUNCTION__).warning("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");
Executed by:
  • tst_LargeFile
1
657-
658 int access = 0;-
659 if (openMode & QIODevice::ReadOnly
openMode & QIODevice::ReadOnlyDescription
TRUEevaluated 34369 times by 121 tests
Evaluated 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
  • ...
FALSEnever evaluated
) access |= 0x1;
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
  • ...
0-34369
660 if (openMode & QIODevice::WriteOnly
openMode & QIO...ice::WriteOnlyDescription
TRUEevaluated 37 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QTemporaryFile
FALSEevaluated 34332 times by 120 tests
Evaluated 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
  • ...
) access |= 0x2;
executed 37 times by 2 tests: access |= 0x2;
Executed by:
  • tst_QFile
  • tst_QTemporaryFile
37-34332
661-
662 int sharemode = 0x01;-
663 if (flags & QFileDevice::MapPrivateOption
flags & QFileD...pPrivateOptionDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 34367 times by 121 tests
Evaluated 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
664 sharemode = 0x02;-
665 access |= 0x2;-
666 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QFile
2
667-
668-
669-
670-
671 int pageSize = getpagesize();-
672-
673 int extra = offset % pageSize;-
674-
675 if (quint64(size + extra) > quint64((size_t)-1)
quint64(size +...64((size_t)-1)Description
TRUEnever evaluated
FALSEevaluated 34369 times by 121 tests
Evaluated 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
676 q->setError(QFile::UnspecifiedError, qt_error_string(int(22)));-
677 return
never executed: return 0;
0;
never executed: return 0;
0
678 }-
679-
680 size_t realSize = (size_t)size + extra;-
681 off64_t realOffset = off64_t(offset);-
682 realOffset &= ~(off64_t(pageSize - 1));-
683-
684 void *mapAddress = ::mmap64((void*)0, realSize,-
685 access, sharemode, nativeHandle(), realOffset);-
686 if (((
((void *) -1) != mapAddressDescription
TRUEevaluated 34363 times by 121 tests
Evaluated 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
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFile
void *) -1) != mapAddress
((void *) -1) != mapAddressDescription
TRUEevaluated 34363 times by 121 tests
Evaluated 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
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFile
) {
6-34363
687 uchar *address = extra + static_cast<uchar*>(mapAddress);-
688 maps[address] = QPair<int,size_t>(extra, realSize);-
689 return
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
  • ...
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
690 }-
691-
692 switch((*__errno_location ())) {-
693 case
executed 5 times by 1 test: case 9:
Executed by:
  • tst_QFile
9:
executed 5 times by 1 test: case 9:
Executed by:
  • tst_QFile
5
694 q->setError(QFile::PermissionsError, qt_error_string(int(13)));-
695 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_QFile
5
696 case
never executed: case 23:
23:
never executed: case 23:
0
697 case
never executed: case 12:
12:
never executed: case 12:
0
698 q->setError(QFile::ResourceError, qt_error_string(int((*__errno_location ()))));-
699 break;
never executed: break;
0
700 case
executed 1 time by 1 test: case 22:
Executed by:
  • tst_QFile
22:
executed 1 time by 1 test: case 22:
Executed by:
  • tst_QFile
1
701-
702 default
never executed: default:
:
never executed: default:
0
703 q->setError(QFile::UnspecifiedError, qt_error_string(int((*__errno_location ()))));-
704 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QFile
1
705 }-
706 return
executed 6 times by 1 test: return 0;
Executed by:
  • tst_QFile
0;
executed 6 times by 1 test: return 0;
Executed by:
  • tst_QFile
6
707}-
708-
709bool QFSFileEnginePrivate::unmap(uchar *ptr)-
710{-
711-
712 QFSFileEngine * const q = q_func();-
713 if (!maps.contains(ptr)
!maps.contains(ptr)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 34363 times by 153 tests
Evaluated 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
714 q->setError(QFile::PermissionsError, qt_error_string(13));-
715 return
executed 8 times by 1 test: return false;
Executed by:
  • tst_QFile
false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_QFile
8
716 }-
717-
718 uchar *start = ptr - maps[ptr].first;-
719 size_t len = maps[ptr].second;-
720 if (-
-1 == munmap(start, len)Description
TRUEnever evaluated
FALSEevaluated 34363 times by 153 tests
Evaluated 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
  • ...
1 == munmap(start, len)
-1 == munmap(start, len)Description
TRUEnever evaluated
FALSEevaluated 34363 times by 153 tests
Evaluated 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
721 q->setError(QFile::UnspecifiedError, qt_error_string((*__errno_location ())));-
722 return
never executed: return false;
false;
never executed: return false;
0
723 }-
724 maps.remove(ptr);-
725 return
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
  • ...
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
726-
727-
728-
729}-
730-
731-
Switch to Source codePreprocessed file

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