Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | static inline QByteArray openModeToFopenMode(QIODevice::OpenMode flags, const QFileSystemEntry &fileEntry, | - |
19 | QFileSystemMetaData &metaData) | - |
20 | { | - |
21 | QByteArray mode; | - |
22 | if ((TRUE | never evaluated | FALSE | never evaluated |
flags & QIODevice::ReadOnly)TRUE | never evaluated | FALSE | never evaluated |
&& !(flags & QIODevice::Truncate)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
23 | mode = "rb"; | - |
24 | if (flags & QIODevice::WriteOnlyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
25 | metaData.clearFlags(QFileSystemMetaData::FileType); | - |
26 | if (!fileEntry.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
| 0 |
27 | && QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::FileType)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
28 | && metaData.isFile()TRUE | never evaluated | FALSE | never 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::WriteOnlyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
35 | mode = "wb"; | - |
36 | if (flags & QIODevice::ReadOnlyTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
37 | mode += '+'; never executed: mode += '+'; | 0 |
38 | } never executed: end of block | 0 |
39 | if (flags & QIODevice::AppendTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
40 | mode = "ab"; | - |
41 | if (flags & QIODevice::ReadOnlyTRUE | never evaluated | FALSE | never 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 | | - |
58 | static inline int openModeToOpenFlags(QIODevice::OpenMode mode) | - |
59 | { | - |
60 | int oflags = 00; | - |
61 | | - |
62 | oflags |= 0; | - |
63 | | - |
64 | | - |
65 | if ((TRUE | evaluated 635 times by 17 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
| FALSE | evaluated 31782 times by 185 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
mode & QFile::ReadWrite) == QFile::ReadWriteTRUE | evaluated 635 times by 17 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
| FALSE | evaluated 31782 times by 185 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
) { | 635-31782 |
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::WriteOnlyTRUE | evaluated 1785 times by 38 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- ...
| FALSE | evaluated 29997 times by 181 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
) { | 635-29997 |
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::AppendTRUE | evaluated 257 times by 6 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_qfileopenevent
- tst_qmakelib
| FALSE | evaluated 32160 times by 185 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
) { | 257-32160 |
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::WriteOnlyTRUE | evaluated 2163 times by 43 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- ...
| FALSE | evaluated 29997 times by 181 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
|
) { | 257-29997 |
74 | if ((mode & QFile::Truncate) || !(mode & QFile::ReadOnly)TRUE | never evaluated | FALSE | evaluated 627 times by 17 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
|
) | 0-627 |
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 | returnexecuted 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 | | - |
87 | static 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 | | - |
92 | static inline QString msgOpenDirectory() | - |
93 | { | - |
94 | const char message[] = "file to open is a directory"; | - |
95 | | - |
96 | returnexecuted 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 | | - |
105 | bool QFSFileEnginePrivate::nativeOpen(QIODevice::OpenMode openMode) | - |
106 | { | - |
107 | QFSFileEngine * const q = q_func(); | - |
108 | | - |
109 | if (openMode & QIODevice::UnbufferedTRUE | evaluated 32417 times by 185 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| FALSE | never evaluated |
) { | 0-32417 |
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 == -1TRUE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
| FALSE | evaluated 28943 times by 169 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
&& (*TRUE | never evaluated | FALSE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
|
__errno_location ()) == 4TRUE | never evaluated | FALSE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
|
); | 0-32417 |
116 | | - |
117 | | - |
118 | if (fd == -1TRUE | evaluated 3474 times by 50 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDateTime
- tst_QDir
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QGlobal
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- ...
| FALSE | evaluated 28943 times by 169 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 3474-28943 |
119 | q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError, | - |
120 | qt_error_string((*__errno_location ()))); | - |
121 | returnexecuted 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)TRUE | evaluated 26563 times by 165 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | evaluated 2380 times by 43 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- ...
|
) { | 2380-26563 |
125 | | - |
126 | | - |
127 | if (QFileSystemEngine::fillMetaData(fd, metaData)TRUE | evaluated 26563 times by 165 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | never evaluated |
| 0-26563 |
128 | && metaData.isDirectory()TRUE | evaluated 10 times by 4 testsEvaluated by:- tst_QFile
- tst_QImageReader
- tst_QMimeDatabase
- tst_qmakelib
| FALSE | evaluated 26553 times by 165 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 10-26553 |
129 | q->setError(QFile::OpenError, msgOpenDirectory()); | - |
130 | qt_safe_close(fd); | - |
131 | returnexecuted 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::AppendTRUE | never evaluated | FALSE | evaluated 28933 times by 169 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
) { | 0-28933 |
137 | int ret; | - |
138 | do { | - |
139 | ret = ::lseek64(fd, 0, 2); | - |
140 | } never executed: end of block while (ret == -1TRUE | never evaluated | FALSE | never evaluated |
&& (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) == 4TRUE | never evaluated | FALSE | never evaluated |
); | 0 |
141 | | - |
142 | if (ret == -1TRUE | never evaluated | FALSE | never 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 (!fhTRUE | never evaluated | FALSE | never evaluated |
&& (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) == 4TRUE | never evaluated | FALSE | never evaluated |
); | 0 |
157 | | - |
158 | | - |
159 | if (!fhTRUE | never evaluated | FALSE | never 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)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
166 | | - |
167 | | - |
168 | if (QFileSystemEngine::fillMetaData(fileno(fh), metaData)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | && metaData.isDirectory()TRUE | never evaluated | FALSE | never 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::AppendTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
180 | int ret; | - |
181 | do { | - |
182 | ret = ::fseeko64(fh, 0, 2); | - |
183 | } never executed: end of block while (ret == -1TRUE | never evaluated | FALSE | never evaluated |
&& (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) == 4TRUE | never evaluated | FALSE | never evaluated |
); | 0 |
184 | | - |
185 | if (ret == -1TRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | | - |
202 | bool QFSFileEnginePrivate::nativeClose() | - |
203 | { | - |
204 | returnexecuted 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 | | - |
211 | bool QFSFileEnginePrivate::nativeFlush() | - |
212 | { | - |
213 | returnexecuted 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 | | - |
220 | bool QFSFileEnginePrivate::nativeSyncToDisk() | - |
221 | { | - |
222 | QFSFileEngine * const q = q_func(); | - |
223 | | - |
224 | const int ret = fdatasync(nativeHandle()); | - |
225 | | - |
226 | | - |
227 | | - |
228 | if (ret != 0TRUE | never evaluated | FALSE | evaluated 574 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
|
) | 0-574 |
229 | q->setError(QFile::WriteError, qt_error_string((*__errno_location ()))); never executed: q->setError(QFile::WriteError, qt_error_string((*__errno_location ()))); | 0 |
230 | returnexecuted 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 | | - |
236 | qint64 QFSFileEnginePrivate::nativeRead(char *data, qint64 len) | - |
237 | { | - |
238 | QFSFileEngine * const q = q_func(); | - |
239 | | - |
240 | if (fhTRUE | evaluated 394 times by 3 testsEvaluated by:- tst_QFile
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 86518 times by 102 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
&& nativeIsSequential()TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 5 times by 1 test |
) { | 5-86518 |
241 | size_t readBytes = 0; | - |
242 | int oldFlags = fcntl(fileno(fh), 3); | - |
243 | for (int i = 0; i < 2TRUE | evaluated 399 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
; ++i) { | 0-399 |
244 | | - |
245 | if ((TRUE | evaluated 399 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
oldFlags & 04000) == 0TRUE | evaluated 399 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never 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 == 0TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& !feof(fh)TRUE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& (*TRUE | never evaluated | FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
__errno_location ()) == 4TRUE | never evaluated | FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
); | 0-399 |
253 | if (read > 0TRUE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
) { | 137-262 |
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 (readBytesTRUE | never evaluated | FALSE | evaluated 137 times by 2 testsEvaluated 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 ((TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
oldFlags & 04000) == 0TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
) { | 0-137 |
264 | fcntl(fileno(fh), 4, oldFlags); | - |
265 | if (readBytes == 0TRUE | evaluated 137 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never 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 == -1TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
&& (*TRUE | never evaluated | FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
__errno_location ()) == 4TRUE | never evaluated | FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
); | 0-137 |
270 | if (readByte != -1TRUE | evaluated 10 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
) { | 10-127 |
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 ((TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never evaluated |
oldFlags & 04000) == 0TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never 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 == 0TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& !feof(fh)TRUE | never evaluated | FALSE | evaluated 127 times by 2 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
297 | qint64 QFSFileEnginePrivate::nativeReadLine(char *data, qint64 maxlen) | - |
298 | { | - |
299 | returnexecuted 8 times by 1 test: return readLineFdFh(data, maxlen); readLineFdFh(data, maxlen);executed 8 times by 1 test: return readLineFdFh(data, maxlen); | 8 |
300 | } | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | qint64 QFSFileEnginePrivate::nativeWrite(const char *data, qint64 len) | - |
306 | { | - |
307 | returnexecuted 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 | | - |
313 | qint64 QFSFileEnginePrivate::nativePos() const | - |
314 | { | - |
315 | returnexecuted 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 | | - |
321 | bool QFSFileEnginePrivate::nativeSeek(qint64 pos) | - |
322 | { | - |
323 | returnexecuted 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 | | - |
329 | int QFSFileEnginePrivate::nativeHandle() const | - |
330 | { | - |
331 | returnexecuted 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 | | - |
337 | bool QFSFileEnginePrivate::nativeIsSequential() const | - |
338 | { | - |
339 | returnexecuted 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 | | - |
342 | bool 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 (!retTRUE | evaluated 596 times by 21 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QIODevice
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QPrinter
- tst_QSaveFile
- tst_QSettings
- tst_QSharedMemory
- tst_QTextStream
- tst_QXmlStream
- tst_qmake
- tst_qstandardpaths
- tst_selftests - unknown status
| FALSE | evaluated 12669 times by 76 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
|
) { | 596-12669 |
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 | returnexecuted 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 | | - |
354 | bool 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 (!retTRUE | evaluated 100 times by 2 testsEvaluated by:- tst_QFile
- tst_QImageReader
| FALSE | never 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 | returnexecuted 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 | | - |
365 | bool QFSFileEngine::renameOverwrite(const QString &newName) | - |
366 | { | - |
367 | | - |
368 | returnexecuted 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 | | - |
371 | bool 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 (!retTRUE | evaluated 4 times by 4 testsEvaluated by:- tst_QDir
- tst_QFile
- tst_QSaveFile
- tst_QTemporaryFile
| FALSE | evaluated 820 times by 20 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
|
) { | 4-820 |
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 | returnexecuted 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 | | - |
384 | bool 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 (!retTRUE | never evaluated | FALSE | evaluated 161 times by 8 testsEvaluated by:- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qstandardpaths
|
) { | 0-161 |
390 | setError(QFile::RenameError, error.toString()); | - |
391 | } never executed: end of block | 0 |
392 | returnexecuted 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 | | - |
395 | qint64 QFSFileEnginePrivate::nativeSize() const | - |
396 | { | - |
397 | returnexecuted 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 | | - |
400 | bool 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 | | - |
405 | bool 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 | | - |
410 | bool QFSFileEngine::caseSensitive() const | - |
411 | { | - |
412 | return never executed: return true; true;never executed: return true; | 0 |
413 | } | - |
414 | | - |
415 | bool 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 | | - |
420 | QString 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 | | - |
425 | QString QFSFileEngine::homePath() | - |
426 | { | - |
427 | return never executed: return QFileSystemEngine::homePath(); QFileSystemEngine::homePath();never executed: return QFileSystemEngine::homePath(); | 0 |
428 | } | - |
429 | | - |
430 | QString QFSFileEngine::rootPath() | - |
431 | { | - |
432 | returnexecuted 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 | | - |
435 | QString QFSFileEngine::tempPath() | - |
436 | { | - |
437 | return never executed: return QFileSystemEngine::tempPath(); QFileSystemEngine::tempPath();never executed: return QFileSystemEngine::tempPath(); | 0 |
438 | } | - |
439 | | - |
440 | QFileInfoList QFSFileEngine::drives() | - |
441 | { | - |
442 | QFileInfoList ret; | - |
443 | ret.append(QFileInfo(rootPath())); | - |
444 | returnexecuted 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 | | - |
447 | bool QFSFileEnginePrivate::doStat(QFileSystemMetaData::MetaDataFlags flags) const | - |
448 | { | - |
449 | if (!tried_statTRUE | evaluated 162212 times by 171 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | evaluated 35463 times by 132 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- ...
|
|| !metaData.hasFlags(flags)TRUE | evaluated 370 times by 37 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- ...
| FALSE | evaluated 35093 times by 129 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- ...
|
) { | 370-162212 |
450 | tried_stat = 1; | - |
451 | | - |
452 | int localFd = fd; | - |
453 | if (fhTRUE | evaluated 374 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | evaluated 162208 times by 170 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
&& fileEntry.isEmpty()TRUE | evaluated 374 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| FALSE | never 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 != -1TRUE | evaluated 159818 times by 169 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| FALSE | evaluated 2764 times by 57 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
) | 2764-159818 |
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()TRUE | evaluated 3131 times by 59 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 1 time by 1 test |
) | 1-3131 |
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 | returnexecuted 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 | | - |
465 | bool QFSFileEnginePrivate::isSymlink() const | - |
466 | { | - |
467 | if (!metaData.hasFlags(QFileSystemMetaData::LinkType)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
468 | QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType);executed 2 times by 1 test: QFileSystemEngine::fillMetaData(fileEntry, metaData, QFileSystemMetaData::LinkType); | 2 |
469 | | - |
470 | returnexecuted 2 times by 1 test: return metaData.isLink(); metaData.isLink();executed 2 times by 1 test: return metaData.isLink(); | 2 |
471 | } | - |
472 | | - |
473 | | - |
474 | | - |
475 | | - |
476 | QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(FileFlags type) const | - |
477 | { | - |
478 | const QFSFileEnginePrivate * const d = d_func(); | - |
479 | | - |
480 | if (type & RefreshTRUE | evaluated 2390 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 165 times by 11 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
) | 165-2390 |
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 & FlagsMaskTRUE | evaluated 2395 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
) | 160-2395 |
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 & TypesMaskTRUE | evaluated 5 times by 1 test | FALSE | evaluated 2550 times by 59 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
) | 5-2550 |
496 | queryFlags |= QFileSystemMetaData::AliasTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
497 | | QFileSystemMetaData::LinkTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
498 | | QFileSystemMetaData::FileTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
499 | | QFileSystemMetaData::DirectoryTypeexecuted 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
500 | | QFileSystemMetaData::BundleType;executed 5 times by 1 test: queryFlags |= QFileSystemMetaData::AliasType | QFileSystemMetaData::LinkType | QFileSystemMetaData::FileType | QFileSystemMetaData::DirectoryType | QFileSystemMetaData::BundleType; | 5 |
501 | | - |
502 | if (type & FlagsMaskTRUE | evaluated 2395 times by 56 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
) | 160-2395 |
503 | queryFlags |= QFileSystemMetaData::HiddenAttributeexecuted 2395 times by 56 tests: queryFlags |= QFileSystemMetaData::HiddenAttribute | QFileSystemMetaData::ExistsAttribute; Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 2395 |
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 (!existsTRUE | evaluated 1249 times by 20 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QNetworkReply
- tst_QPainter
- tst_QPixmap
- tst_QProcess
- tst_QSettings
- tst_QStyleSheetStyle
- tst_QTemporaryFile
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_rcc
| FALSE | evaluated 1306 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
&& !d->metaData.isLink()TRUE | evaluated 1249 times by 20 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QIcon
- tst_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QNetworkReply
- tst_QPainter
- tst_QPixmap
- tst_QProcess
- tst_QSettings
- tst_QStyleSheetStyle
- tst_QTemporaryFile
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_rcc
| FALSE | never evaluated |
) | 0-1306 |
512 | returnexecuted 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 (existsTRUE | evaluated 1306 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | never evaluated |
&& (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 & TypesMaskTRUE | evaluated 3 times by 1 test | FALSE | evaluated 1303 times by 53 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
) { | 3-1303 |
518 | if (d->metaData.isAlias()TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) { | 0-3 |
519 | ret |= LinkType; | - |
520 | } never executed: end of block else { | 0 |
521 | if ((type & LinkType) && d->metaData.isLink()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
522 | ret |= LinkType; never executed: ret |= LinkType; | 0 |
523 | if (existsTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) { | 0-3 |
524 | if (d->metaData.isFile()TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) { | 0-3 |
525 | ret |= FileType; | - |
526 | }executed 3 times by 1 test: end of block else if (d->metaData.isDirectory()TRUE | never evaluated | FALSE | never evaluated |
) { | 0-3 |
527 | ret |= DirectoryType; | - |
528 | if ((TRUE | never evaluated | FALSE | never evaluated |
type & BundleType)TRUE | never evaluated | FALSE | never evaluated |
&& d->metaData.isBundle()TRUE | never evaluated | FALSE | never 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 | 3 |
532 | }executed 3 times by 1 test: end of block | 3 |
533 | } | - |
534 | | - |
535 | if (type & FlagsMaskTRUE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | evaluated 160 times by 10 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
|
) { | 160-1146 |
536 | if (existsTRUE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| FALSE | never evaluated |
) | 0-1146 |
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()TRUE | never evaluated | FALSE | evaluated 1146 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
) | 0-1146 |
539 | ret |= RootFlag; never executed: ret |= RootFlag; | 0 |
540 | else if (d->metaData.isHidden()TRUE | evaluated 12 times by 1 test | FALSE | evaluated 1134 times by 50 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
) | 12-1134 |
541 | ret |= HiddenFlag;executed 12 times by 1 test: ret |= HiddenFlag; | 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 | returnexecuted 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 | | - |
547 | QString QFSFileEngine::fileName(FileName file) const | - |
548 | { | - |
549 | const QFSFileEnginePrivate * const d = d_func(); | - |
550 | if (file == BundleNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 0-7361 |
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 == BaseNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 0-7361 |
553 | return never executed: return d->fileEntry.fileName(); d->fileEntry.fileName();never executed: return d->fileEntry.fileName(); | 0 |
554 | } else if (file == PathNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 0-7361 |
555 | return never executed: return d->fileEntry.path(); d->fileEntry.path();never executed: return d->fileEntry.path(); | 0 |
556 | } else if (file == AbsoluteNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
|| file == AbsolutePathNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 0-7361 |
557 | QFileSystemEntry entry(QFileSystemEngine::absoluteName(d->fileEntry)); | - |
558 | if (file == AbsolutePathNameTRUE | never evaluated | FALSE | never 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 == CanonicalNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
|| file == CanonicalPathNameTRUE | never evaluated | FALSE | evaluated 7361 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 0-7361 |
563 | QFileSystemEntry entry(QFileSystemEngine::canonicalName(d->fileEntry, d->metaData)); | - |
564 | if (file == CanonicalPathNameTRUE | never evaluated | FALSE | never 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 == LinkNameTRUE | evaluated 2 times by 1 test | FALSE | evaluated 7359 times by 67 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDir
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFrame
- tst_QGraphicsProxyWidget
- ...
|
) { | 2-7359 |
568 | if (d->isSymlink()TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
569 | QFileSystemEntry entry = QFileSystemEngine::getLinkTarget(d->fileEntry, d->metaData); | - |
570 | returnexecuted 2 times by 1 test: return entry.filePath(); entry.filePath();executed 2 times by 1 test: return entry.filePath(); | 2 |
571 | } | - |
572 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
573 | } | - |
574 | returnexecuted 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 | | - |
577 | bool 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 | | - |
583 | uint 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)TRUE | never evaluated | FALSE | never 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 | | - |
594 | QString QFSFileEngine::owner(FileOwner own) const | - |
595 | { | - |
596 | if (own == OwnerUserTRUE | never evaluated | FALSE | never 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 | | - |
601 | bool 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)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1074 times by 22 testsEvaluated by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
|
) { | 1-1074 |
606 | setError(QFile::PermissionsError, error.toString()); | - |
607 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
608 | } | - |
609 | returnexecuted 1074 times by 22 tests: return true; Executed by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
true;executed 1074 times by 22 tests: return true; Executed by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
| 1074 |
610 | } | - |
611 | | - |
612 | bool QFSFileEngine::setSize(qint64 size) | - |
613 | { | - |
614 | QFSFileEnginePrivate * const d = d_func(); | - |
615 | bool ret = false; | - |
616 | if (d->fd != -1TRUE | evaluated 281 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
|
) | 10-281 |
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->fhTRUE | evaluated 1 time by 1 test | FALSE | evaluated 9 times by 2 testsEvaluated 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; | 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 (!retTRUE | never evaluated | FALSE | evaluated 291 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
|
) | 0-291 |
623 | setError(QFile::ResizeError, qt_error_string((*__errno_location ()))); never executed: setError(QFile::ResizeError, qt_error_string((*__errno_location ()))); | 0 |
624 | returnexecuted 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 | | - |
627 | QDateTime QFSFileEngine::fileTime(FileTime time) const | - |
628 | { | - |
629 | const QFSFileEnginePrivate * const d = d_func(); | - |
630 | | - |
631 | if (d->doStat(QFileSystemMetaData::Times)TRUE | never evaluated | FALSE | never 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 | | - |
637 | uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags) | - |
638 | { | - |
639 | QFSFileEngine * const q = q_func(); | - |
640 | (void)flags;; | - |
641 | if (openMode == QIODevice::NotOpenTRUE | evaluated 8 times by 1 test | FALSE | evaluated 34371 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) { | 8-34371 |
642 | q->setError(QFile::PermissionsError, qt_error_string(int(13))); | - |
643 | returnexecuted 8 times by 1 test: return 0; 0;executed 8 times by 1 test: return 0; | 8 |
644 | } | - |
645 | | - |
646 | if (offset < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34370 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
|| offset != qint64(off64_t(offset))TRUE | never evaluated | FALSE | evaluated 34370 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
| 0-34370 |
647 | || size < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34369 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
|| quint64(size) > quint64(size_t(-1))TRUE | never evaluated | FALSE | evaluated 34369 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) { | 0-34369 |
648 | q->setError(QFile::UnspecifiedError, qt_error_string(int(22))); | - |
649 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
650 | } | - |
651 | | - |
652 | | - |
653 | | - |
654 | if (doStat(QFileSystemMetaData::SizeAttribute)TRUE | evaluated 34369 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | never evaluated |
| 0-34369 |
655 | && (TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34368 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
off64_t(size) > metaData.size() - off64_t(offset))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 34368 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) | 1-34368 |
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"); | 1 |
657 | | - |
658 | int access = 0; | - |
659 | if (openMode & QIODevice::ReadOnlyTRUE | evaluated 34369 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | never evaluated |
) 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::WriteOnlyTRUE | evaluated 37 times by 2 testsEvaluated by:- tst_QFile
- tst_QTemporaryFile
| FALSE | evaluated 34332 times by 120 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) 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::MapPrivateOptionTRUE | evaluated 2 times by 1 test | FALSE | evaluated 34367 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) { | 2-34367 |
664 | sharemode = 0x02; | - |
665 | access |= 0x2; | - |
666 | }executed 2 times by 1 test: end of block | 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)TRUE | never evaluated | FALSE | evaluated 34369 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
) { | 0-34369 |
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 (((TRUE | evaluated 34363 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | evaluated 6 times by 1 test |
void *) -1) != mapAddressTRUE | evaluated 34363 times by 121 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| FALSE | evaluated 6 times by 1 test |
) { | 6-34363 |
687 | uchar *address = extra + static_cast<uchar*>(mapAddress); | - |
688 | maps[address] = QPair<int,size_t>(extra, realSize); | - |
689 | returnexecuted 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 | caseexecuted 5 times by 1 test: case 9: 9:executed 5 times by 1 test: case 9: | 5 |
694 | q->setError(QFile::PermissionsError, qt_error_string(int(13))); | - |
695 | break;executed 5 times by 1 test: break; | 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 | caseexecuted 1 time by 1 test: case 22: 22:executed 1 time by 1 test: case 22: | 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; | 1 |
705 | } | - |
706 | returnexecuted 6 times by 1 test: return 0; 0;executed 6 times by 1 test: return 0; | 6 |
707 | } | - |
708 | | - |
709 | bool QFSFileEnginePrivate::unmap(uchar *ptr) | - |
710 | { | - |
711 | | - |
712 | QFSFileEngine * const q = q_func(); | - |
713 | if (!maps.contains(ptr)TRUE | evaluated 8 times by 1 test | FALSE | evaluated 34363 times by 153 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
) { | 8-34363 |
714 | q->setError(QFile::PermissionsError, qt_error_string(13)); | - |
715 | returnexecuted 8 times by 1 test: return false; false;executed 8 times by 1 test: return false; | 8 |
716 | } | - |
717 | | - |
718 | uchar *start = ptr - maps[ptr].first; | - |
719 | size_t len = maps[ptr].second; | - |
720 | if (-TRUE | never evaluated | FALSE | evaluated 34363 times by 153 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
1 == munmap(start, len)TRUE | never evaluated | FALSE | evaluated 34363 times by 153 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
) { | 0-34363 |
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 | returnexecuted 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 | | - |
| | |