| 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::WriteOnly| TRUE | 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::WriteOnly| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 35 | mode = "wb"; | - |
| 36 | if (flags & QIODevice::ReadOnly| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 37 | mode += '+'; never executed: mode += '+'; | 0 |
| 38 | } never executed: end of block | 0 |
| 39 | if (flags & QIODevice::Append| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 40 | mode = "ab"; | - |
| 41 | if (flags & QIODevice::ReadOnly| TRUE | 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 633 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 28794 times by 183 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::ReadWrite| TRUE | evaluated 633 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 28794 times by 183 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
- ...
|
) { | 633-28794 |
| 66 | oflags = 02 | 0100; | - |
| 67 | }executed 633 times by 17 tests: end of blockExecuted by:- tst_QAbstractFileEngine
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextStream
- tst_languageChange
else if (mode & QFile::WriteOnly| TRUE | evaluated 1770 times by 37 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- tst_QSharedPointer
- ...
| | FALSE | evaluated 27024 times by 179 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
- ...
|
) { | 633-27024 |
| 68 | oflags = 01 | 0100; | - |
| 69 | }executed 1770 times by 37 tests: end of blockExecuted 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- tst_QSharedPointer
- ...
| 1770 |
| 70 | | - |
| 71 | if (mode & QFile::Append| TRUE | evaluated 257 times by 6 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_qfileopenevent
- tst_qmakelib
| | FALSE | evaluated 29170 times by 183 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-29170 |
| 72 | oflags |= 02000; | - |
| 73 | }executed 257 times by 6 tests: end of blockExecuted by:- tst_QAbstractFileEngine
- tst_QFile
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_qfileopenevent
- tst_qmakelib
else if (mode & QFile::WriteOnly| TRUE | evaluated 2146 times by 42 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- ...
| | FALSE | evaluated 27024 times by 179 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-27024 |
| 74 | if ((mode & QFile::Truncate) || !(mode & QFile::ReadOnly)| TRUE | never evaluated | | FALSE | evaluated 625 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-625 |
| 75 | oflags |= 01000;executed 1521 times by 38 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- tst_QPrinter
- tst_QProcess
- tst_QSaveFile
- tst_QSettings
- ...
| 1521 |
| 76 | }executed 2146 times by 42 tests: end of blockExecuted 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- ...
| 2146 |
| 77 | | - |
| 78 | returnexecuted 29427 times by 183 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 29427 times by 183 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
- ...
| 29427 |
| 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| TRUE | never evaluated | | FALSE | never evaluated |
&& fcntl(fd, 2, 1) != -1| TRUE | never evaluated | | FALSE | never evaluated |
;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::Unbuffered| TRUE | evaluated 29427 times by 183 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-29427 |
| 110 | int flags = openModeToOpenFlags(openMode); | - |
| 111 | | - |
| 112 | | - |
| 113 | do { | - |
| 114 | fd = qt_safe_open(fileEntry.nativeFilePath().constData(), flags, 0666); | - |
| 115 | }executed 29427 times by 183 tests: end of blockExecuted by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
while (fd == -1| TRUE | evaluated 3259 times by 49 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 26168 times by 167 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 3259 times by 49 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 ()) == 4| TRUE | never evaluated | | FALSE | evaluated 3259 times by 49 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-29427 |
| 116 | | - |
| 117 | | - |
| 118 | if (fd == -1| TRUE | evaluated 3259 times by 49 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 26168 times by 167 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
- ...
|
) { | 3259-26168 |
| 119 | q->setError((*__errno_location ()) == 24 ? QFile::ResourceError : QFile::OpenError, | - |
| 120 | qt_error_string((*__errno_location ()))); | - |
| 121 | returnexecuted 3259 times by 49 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 3259 times by 49 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
- ...
| 3259 |
| 122 | } | - |
| 123 | | - |
| 124 | if (!(openMode & QIODevice::WriteOnly)| TRUE | evaluated 23805 times by 163 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 2363 times by 42 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_QImage
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- ...
|
) { | 2363-23805 |
| 125 | | - |
| 126 | | - |
| 127 | if (QFileSystemEngine::fillMetaData(fd, metaData)| TRUE | evaluated 23805 times by 163 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-23805 |
| 128 | && metaData.isDirectory()| TRUE | evaluated 10 times by 4 testsEvaluated by:- tst_QFile
- tst_QImageReader
- tst_QMimeDatabase
- tst_qmakelib
| | FALSE | evaluated 23795 times by 163 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-23795 |
| 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 23795 times by 163 tests: end of blockExecuted 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
- ...
| 23795 |
| 134 | | - |
| 135 | | - |
| 136 | if (flags & QFile::Append| TRUE | never evaluated | | FALSE | evaluated 26158 times by 167 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-26158 |
| 137 | int ret; | - |
| 138 | do { | - |
| 139 | ret = ::lseek64(fd, 0, 2); | - |
| 140 | } never executed: end of block while (ret == -1| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 141 | | - |
| 142 | if (ret == -1| TRUE | 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 26158 times by 167 tests: end of blockExecuted 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 { | 26158 |
| 151 | QByteArray fopenMode = openModeToFopenMode(openMode, fileEntry, metaData); | - |
| 152 | | - |
| 153 | | - |
| 154 | do { | - |
| 155 | fh = ::fopen64(fileEntry.nativeFilePath().constData(), fopenMode.constData()); | - |
| 156 | } never executed: end of block while (!fh| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 157 | | - |
| 158 | | - |
| 159 | if (!fh| TRUE | 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::Append| TRUE | 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 == -1| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 184 | | - |
| 185 | if (ret == -1| TRUE | 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 26158 times by 167 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 26158 times by 167 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
- ...
| 26158 |
| 197 | } | - |
| 198 | | - |
| 199 | | - |
| 200 | | - |
| 201 | | - |
| 202 | bool QFSFileEnginePrivate::nativeClose() | - |
| 203 | { | - |
| 204 | returnexecuted 30628 times by 176 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 30628 times by 176 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
- ...
| 30628 |
| 205 | } | - |
| 206 | | - |
| 207 | | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | bool QFSFileEnginePrivate::nativeFlush() | - |
| 212 | { | - |
| 213 | returnexecuted 27602 times by 52 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- ...
fh| TRUE | evaluated 459 times by 4 testsEvaluated by:- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 27143 times by 49 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- ...
|
? flushFh() : fd != -1;executed 27602 times by 52 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- ...
| 459-27602 |
| 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 != 0| TRUE | never evaluated | | FALSE | evaluated 572 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
|
) | 0-572 |
| 229 | q->setError(QFile::WriteError, qt_error_string((*__errno_location ()))); never executed: q->setError(QFile::WriteError, qt_error_string((*__errno_location ()))); | 0 |
| 230 | returnexecuted 572 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 572 times by 7 tests: return ret == 0;Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
| 572 |
| 231 | } | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | qint64 QFSFileEnginePrivate::nativeRead(char *data, qint64 len) | - |
| 237 | { | - |
| 238 | QFSFileEngine * const q = q_func(); | - |
| 239 | | - |
| 240 | if (fh| TRUE | evaluated 394 times by 3 testsEvaluated by:- tst_QFile
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 80047 times by 97 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-80047 |
| 241 | size_t readBytes = 0; | - |
| 242 | int oldFlags = fcntl(fileno(fh), 3); | - |
| 243 | for (int i = 0; i < 2| TRUE | evaluated 396 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
; ++i) { | 0-396 |
| 244 | | - |
| 245 | if ((| TRUE | evaluated 396 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
oldFlags & 04000) == 0| TRUE | evaluated 396 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
) | 0-396 |
| 246 | fcntl(fileno(fh), 4, oldFlags | 04000);executed 396 times by 2 tests: fcntl(fileno(fh), 4, oldFlags | 04000);Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 396 |
| 247 | | - |
| 248 | | - |
| 249 | size_t read = 0; | - |
| 250 | do { | - |
| 251 | read = fread(data + readBytes, 1, size_t(len - readBytes), fh); | - |
| 252 | }executed 396 times by 2 tests: end of blockExecuted by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
while (read == 0| TRUE | evaluated 135 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 261 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& !feof(fh)| TRUE | evaluated 7 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| | FALSE | evaluated 128 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& (*| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
__errno_location ()) == 4| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 testEvaluated by:- tst_qnetworkreply - unknown status
|
); | 0-396 |
| 253 | if (read > 0| TRUE | evaluated 261 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 135 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
) { | 135-261 |
| 254 | readBytes += read; | - |
| 255 | break;executed 261 times by 2 tests: break;Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 261 |
| 256 | } else { | - |
| 257 | if (readBytes| TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkreply - unknown status
| | FALSE | evaluated 134 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
) | 1-134 |
| 258 | break;executed 1 time by 1 test: break;Executed by:- tst_qnetworkreply - unknown status
| 1 |
| 259 | readBytes = read; | - |
| 260 | }executed 134 times by 2 tests: end of blockExecuted by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 134 |
| 261 | | - |
| 262 | | - |
| 263 | if ((| TRUE | evaluated 134 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
oldFlags & 04000) == 0| TRUE | evaluated 134 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
) { | 0-134 |
| 264 | fcntl(fileno(fh), 4, oldFlags); | - |
| 265 | if (readBytes == 0| TRUE | evaluated 134 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
) { | 0-134 |
| 266 | int readByte = 0; | - |
| 267 | do { | - |
| 268 | readByte = fgetc(fh); | - |
| 269 | }executed 134 times by 2 tests: end of blockExecuted by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
while (readByte == -1| TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 7 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 ()) == 4| TRUE | never evaluated | | FALSE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
); | 0-134 |
| 270 | if (readByte != -1| TRUE | evaluated 7 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
|
) { | 7-127 |
| 271 | *data = uchar(readByte); | - |
| 272 | readBytes += 1; | - |
| 273 | }executed 7 times by 1 test: end of blockExecuted by:- tst_qnetworkreply - unknown status
else { | 7 |
| 274 | break;executed 127 times by 2 tests: break;Executed by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 127 |
| 275 | } | - |
| 276 | } | - |
| 277 | }executed 7 times by 1 test: end of blockExecuted by:- tst_qnetworkreply - unknown status
| 7 |
| 278 | }executed 7 times by 1 test: end of blockExecuted by:- tst_qnetworkreply - unknown status
| 7 |
| 279 | | - |
| 280 | if ((| TRUE | evaluated 389 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | never evaluated |
oldFlags & 04000) == 0| TRUE | 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 blockExecuted by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 389 |
| 283 | if (readBytes == 0| TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 262 times by 2 testsEvaluated by:- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
|
&& !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 80052 times by 97 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 80052 times by 97 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
- ...
| 80052 |
| 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 19133 times by 45 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- ...
writeFdFh(data, len);executed 19133 times by 45 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPainter
- tst_QPainterPath
- tst_QPixmap
- ...
| 19133 |
| 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 222097 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 222097 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
- ...
| 222097 |
| 324 | } | - |
| 325 | | - |
| 326 | | - |
| 327 | | - |
| 328 | | - |
| 329 | int QFSFileEnginePrivate::nativeHandle() const | - |
| 330 | { | - |
| 331 | returnexecuted 34898 times by 125 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
fh| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 34894 times by 125 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_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
|
? fileno(fh) : fd;executed 34898 times by 125 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- ...
| 4-34898 |
| 332 | } | - |
| 333 | | - |
| 334 | | - |
| 335 | | - |
| 336 | | - |
| 337 | bool QFSFileEnginePrivate::nativeIsSequential() const | - |
| 338 | { | - |
| 339 | returnexecuted 24301 times by 105 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 24301 times by 105 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
- ...
| 24301 |
| 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 (!ret| TRUE | evaluated 584 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 12129 times by 75 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- ...
|
) { | 584-12129 |
| 349 | setError(QFile::RemoveError, error.toString()); | - |
| 350 | }executed 584 times by 21 tests: end of blockExecuted 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
| 584 |
| 351 | returnexecuted 12713 times by 75 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- ...
ret;executed 12713 times by 75 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- ...
| 12713 |
| 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 (!ret| TRUE | 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 blockExecuted 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 571 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 571 times by 7 tests: return rename(newName);Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSaveFile
- tst_QSettings
- tst_languageChange
| 571 |
| 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 (!ret| TRUE | evaluated 4 times by 4 testsEvaluated by:- tst_QDir
- tst_QFile
- tst_QSaveFile
- tst_QTemporaryFile
| | FALSE | evaluated 816 times by 19 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
|
) { | 4-816 |
| 378 | setError(QFile::RenameError, error.toString()); | - |
| 379 | }executed 4 times by 4 tests: end of blockExecuted by:- tst_QDir
- tst_QFile
- tst_QSaveFile
- tst_QTemporaryFile
| 4 |
| 380 | | - |
| 381 | returnexecuted 820 times by 19 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_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
ret;executed 820 times by 19 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_QImageReader
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_languageChange
| 820 |
| 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 (!ret| TRUE | never evaluated | | FALSE | evaluated 161 times by 8 testsEvaluated by:- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileInfo
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qstandardpaths
|
) { | 0-161 |
| 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 133007 times by 157 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 133007 times by 157 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
- ...
| 133007 |
| 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_stat| TRUE | evaluated 158701 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
- ...
| | FALSE | evaluated 35352 times by 131 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 359 times by 36 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_QImageReader
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPlainTextEdit
- ...
| | FALSE | evaluated 34993 times by 127 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_QFactoryLoader
- tst_QFile
- ...
|
) { | 359-158701 |
| 450 | tried_stat = 1; | - |
| 451 | | - |
| 452 | int localFd = fd; | - |
| 453 | if (fh| TRUE | evaluated 374 times by 5 testsEvaluated by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 158686 times by 168 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-158686 |
| 454 | localFd = fileno(fh);executed 374 times by 5 tests: localFd = fileno(fh);Executed by:- tst_LargeFile
- tst_QFile
- tst_qdbuscpp2xml - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qnetworkreply - unknown status
| 374 |
| 455 | if (localFd != -1| TRUE | evaluated 156803 times by 168 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 2257 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_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QImage
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- tst_QLocalSocket
- ...
|
) | 2257-156803 |
| 456 | QFileSystemEngine::fillMetaData(localFd, metaData);executed 156803 times by 168 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
- ...
| 156803 |
| 457 | | - |
| 458 | if (metaData.missingFlags(flags) && !fileEntry.isEmpty()| TRUE | evaluated 2622 times by 58 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| | FALSE | evaluated 1 time by 1 test |
) | 1-2622 |
| 459 | QFileSystemEngine::fillMetaData(fileEntry, metaData, metaData.missingFlags(flags));executed 2622 times by 58 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 2622 |
| 460 | }executed 159060 times by 170 tests: end of blockExecuted 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
- ...
| 159060 |
| 461 | | - |
| 462 | returnexecuted 194053 times by 170 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 194053 times by 170 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
- ...
| 194053 |
| 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 & Refresh| TRUE | evaluated 2311 times by 55 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| | 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-2311 |
| 481 | d->metaData.clear();executed 2311 times by 55 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 2311 |
| 482 | | - |
| 483 | QAbstractFileEngine::FileFlags ret = 0; | - |
| 484 | | - |
| 485 | if (type & FlagsMask| TRUE | evaluated 2316 times by 55 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_QImage
- 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-2316 |
| 486 | ret |= LocalDiskFlag;executed 2316 times by 55 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 2316 |
| 487 | | - |
| 488 | bool exists; | - |
| 489 | { | - |
| 490 | QFileSystemMetaData::MetaDataFlags queryFlags = 0; | - |
| 491 | | - |
| 492 | queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type)) | - |
| 493 | & QFileSystemMetaData::Permissions; | - |
| 494 | | - |
| 495 | if (type & TypesMask| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 2471 times by 58 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
|
) | 5-2471 |
| 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 & FlagsMask| TRUE | evaluated 2316 times by 55 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_QImage
- 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-2316 |
| 503 | queryFlags |= QFileSystemMetaData::HiddenAttributeexecuted 2316 times by 55 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 2316 |
| 504 | | QFileSystemMetaData::ExistsAttribute;executed 2316 times by 55 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_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 2316 |
| 505 | | - |
| 506 | queryFlags |= QFileSystemMetaData::LinkType; | - |
| 507 | | - |
| 508 | exists = d->doStat(queryFlags); | - |
| 509 | } | - |
| 510 | | - |
| 511 | if (!exists| TRUE | evaluated 1240 times by 19 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- 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 1236 times by 52 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
&& !d->metaData.isLink()| TRUE | evaluated 1240 times by 19 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- 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-1240 |
| 512 | returnexecuted 1240 times by 19 tests: return ret;Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- 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 1240 times by 19 tests: return ret;Executed by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- 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
| 1240 |
| 513 | | - |
| 514 | if (exists| TRUE | evaluated 1236 times by 52 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| | FALSE | never evaluated |
&& (type & PermsMask)) | 0-1236 |
| 515 | ret |= FileFlags(uint(d->metaData.permissions()));executed 160 times by 10 tests: ret |= FileFlags(uint(d->metaData.permissions()));Executed by:- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QSaveFile
- tst_qmakelib
- tst_qstandardpaths
| 160 |
| 516 | | - |
| 517 | if (type & TypesMask| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1233 times by 52 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
) { | 3-1233 |
| 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 (exists| TRUE | 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 & FlagsMask| TRUE | evaluated 1076 times by 49 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| | 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-1076 |
| 536 | if (exists| TRUE | evaluated 1076 times by 49 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| | FALSE | never evaluated |
) | 0-1076 |
| 537 | ret |= ExistsFlag;executed 1076 times by 49 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| 1076 |
| 538 | if (d->fileEntry.isRoot()| TRUE | never evaluated | | FALSE | evaluated 1076 times by 49 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
) | 0-1076 |
| 539 | ret |= RootFlag; never executed: ret |= RootFlag; | 0 |
| 540 | else if (d->metaData.isHidden()| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 1064 times by 49 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
|
) | 12-1064 |
| 541 | ret |= HiddenFlag;executed 12 times by 1 test: ret |= HiddenFlag; | 12 |
| 542 | }executed 1076 times by 49 tests: end of blockExecuted 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| 1076 |
| 543 | | - |
| 544 | returnexecuted 1236 times by 52 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
ret;executed 1236 times by 52 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_QImageReader
- tst_QImageWriter
- tst_QLabel
- tst_QLineEdit
- ...
| 1236 |
| 545 | } | - |
| 546 | | - |
| 547 | QString QFSFileEngine::fileName(FileName file) const | - |
| 548 | { | - |
| 549 | const QFSFileEnginePrivate * const d = d_func(); | - |
| 550 | if (file == BundleName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 0-7268 |
| 551 | return never executed: return QFileSystemEngine::bundleName(d->fileEntry); QFileSystemEngine::bundleName(d->fileEntry);never executed: return QFileSystemEngine::bundleName(d->fileEntry); | 0 |
| 552 | } else if (file == BaseName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 0-7268 |
| 553 | return never executed: return d->fileEntry.fileName(); d->fileEntry.fileName();never executed: return d->fileEntry.fileName(); | 0 |
| 554 | } else if (file == PathName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 0-7268 |
| 555 | return never executed: return d->fileEntry.path(); d->fileEntry.path();never executed: return d->fileEntry.path(); | 0 |
| 556 | } else if (file == AbsoluteName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
|| file == AbsolutePathName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 0-7268 |
| 557 | QFileSystemEntry entry(QFileSystemEngine::absoluteName(d->fileEntry)); | - |
| 558 | if (file == AbsolutePathName| TRUE | 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 == CanonicalName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
|| file == CanonicalPathName| TRUE | never evaluated | | FALSE | evaluated 7268 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 0-7268 |
| 563 | QFileSystemEntry entry(QFileSystemEngine::canonicalName(d->fileEntry, d->metaData)); | - |
| 564 | if (file == CanonicalPathName| TRUE | 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 == LinkName| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 7266 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
) { | 2-7266 |
| 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 7266 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
d->fileEntry.filePath();executed 7266 times by 64 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_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
| 7266 |
| 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()| TRUE | never evaluated | | FALSE | never evaluated |
? 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 == OwnerUser| TRUE | 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 1070 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QDir
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
|
) { | 1-1070 |
| 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 1070 times by 21 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_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
true;executed 1070 times by 21 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_QImageReader
- tst_QImageWriter
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QSaveFile
- tst_QSettings
- tst_QTemporaryDir
- tst_languageChange
- tst_qmakelib
- tst_qstandardpaths
| 1070 |
| 610 | } | - |
| 611 | | - |
| 612 | bool QFSFileEngine::setSize(qint64 size) | - |
| 613 | { | - |
| 614 | QFSFileEnginePrivate * const d = d_func(); | - |
| 615 | bool ret = false; | - |
| 616 | if (d->fd != -1| TRUE | evaluated 281 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QFile
|
) | 10-281 |
| 617 | ret = ::ftruncate64(d->fd, size) == 0;executed 281 times by 7 tests: ret = ::ftruncate64(d->fd, size) == 0;Executed by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
| 281 |
| 618 | else if (d->fh| TRUE | 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 (!ret| TRUE | never evaluated | | FALSE | evaluated 291 times by 7 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QDirModel
- tst_QFile
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTemporaryFile
|
) | 0-291 |
| 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::NotOpen| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 34271 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) { | 8-34271 |
| 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 < 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 34270 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
|| offset != qint64(off64_t(offset))| TRUE | never evaluated | | FALSE | evaluated 34270 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
| 0-34270 |
| 647 | || size < 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
|| quint64(size) > quint64(size_t(-1))| TRUE | never evaluated | | FALSE | evaluated 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) { | 0-34269 |
| 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 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| | FALSE | never evaluated |
| 0-34269 |
| 655 | && (| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 34268 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
off64_t(size) > metaData.size() - off64_t(offset))| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 34268 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) | 1-34268 |
| 656 | QMessageLogger(__FILE__, 702, __PRETTY_FUNCTION__).warning("QFSFileEngine::map: Mapping a file beyond its size is not portable");executed 1 time by 1 test: QMessageLogger(__FILE__, 702, __PRETTY_FUNCTION__).warning("QFSFileEngine::map: Mapping a file beyond its size is not portable"); | 1 |
| 657 | | - |
| 658 | int access = 0; | - |
| 659 | if (openMode & QIODevice::ReadOnly| TRUE | evaluated 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| | FALSE | never evaluated |
) access |= 0x1;executed 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| 0-34269 |
| 660 | if (openMode & QIODevice::WriteOnly| TRUE | evaluated 37 times by 2 testsEvaluated by:- tst_QFile
- tst_QTemporaryFile
| | FALSE | evaluated 34232 times by 118 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) access |= 0x2;executed 37 times by 2 tests: access |= 0x2;Executed by:- tst_QFile
- tst_QTemporaryFile
| 37-34232 |
| 661 | | - |
| 662 | int sharemode = 0x01; | - |
| 663 | if (flags & QFileDevice::MapPrivateOption| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 34267 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) { | 2-34267 |
| 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 34269 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
) { | 0-34269 |
| 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 34263 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| | FALSE | evaluated 6 times by 1 test |
void *) -1) != mapAddress| TRUE | evaluated 34263 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| | FALSE | evaluated 6 times by 1 test |
) { | 6-34263 |
| 687 | uchar *address = extra + static_cast<uchar*>(mapAddress); | - |
| 688 | maps[address] = QPair<int,size_t>(extra, realSize); | - |
| 689 | returnexecuted 34263 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
address;executed 34263 times by 119 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_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| 34263 |
| 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 34263 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
) { | 8-34263 |
| 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 34263 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
1 == munmap(start, len)| TRUE | never evaluated | | FALSE | evaluated 34263 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_QDialog
- tst_QDoubleSpinBox
- tst_QFactoryLoader
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- ...
|
) { | 0-34263 |
| 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 34263 times by 121 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 34263 times by 121 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
- ...
| 34263 |
| 726 | | - |
| 727 | | - |
| 728 | | - |
| 729 | } | - |
| 730 | | - |
| 731 | | - |
| | |