OpenCoverage

qfileinfo.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfileinfo.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QString QFileInfoPrivate::getFileName(QAbstractFileEngine::FileName name) const-
6{-
7 if (cache_enabled
cache_enabledDescription
TRUEevaluated 42573 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
&& !fileNames[(int)name].isNull()
!fileNames[(int)name].isNull()Description
TRUEevaluated 3182 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSslCertificate
  • ...
FALSEevaluated 39391 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
)
1-42573
8 return
executed 3182 times by 32 tests: return fileNames[(int)name];
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSslCertificate
  • ...
fileNames[(int)name];
executed 3182 times by 32 tests: return fileNames[(int)name];
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSslCertificate
  • ...
3182
9-
10 QString ret;-
11 if (fileEngine == 0
fileEngine == 0Description
TRUEevaluated 35988 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 3404 times by 37 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
) {
3404-35988
12 switch (name) {-
13 case
executed 24371 times by 143 tests: case QAbstractFileEngine::CanonicalName:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
QAbstractFileEngine::CanonicalName:
executed 24371 times by 143 tests: case QAbstractFileEngine::CanonicalName:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
24371
14 case
executed 1 time by 1 test: case QAbstractFileEngine::CanonicalPathName:
Executed by:
  • tst_QFileInfo
QAbstractFileEngine::CanonicalPathName:
executed 1 time by 1 test: case QAbstractFileEngine::CanonicalPathName:
Executed by:
  • tst_QFileInfo
{
1
15 QFileSystemEntry entry = QFileSystemEngine::canonicalName(fileEntry, metaData);-
16 if (cache_enabled
cache_enabledDescription
TRUEevaluated 24372 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
FALSEnever evaluated
) {
0-24372
17 fileNames[QAbstractFileEngine::CanonicalName] = entry.filePath();-
18 fileNames[QAbstractFileEngine::CanonicalPathName] = entry.path();-
19 }
executed 24372 times by 143 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
24372
20 if (name == QAbstractFileEngine::CanonicalName
name == QAbstr...:CanonicalNameDescription
TRUEevaluated 24371 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
1-24371
21 ret = entry.filePath();
executed 24371 times by 143 tests: ret = entry.filePath();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
24371
22 else-
23 ret = entry.path();
executed 1 time by 1 test: ret = entry.path();
Executed by:
  • tst_QFileInfo
1
24 break;
executed 24372 times by 143 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
24372
25 }-
26 case
executed 403 times by 10 tests: case QAbstractFileEngine::LinkName:
Executed by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
QAbstractFileEngine::LinkName:
executed 403 times by 10 tests: case QAbstractFileEngine::LinkName:
Executed by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
403
27 ret = QFileSystemEngine::getLinkTarget(fileEntry, metaData).filePath();-
28 break;
executed 403 times by 10 tests: break;
Executed by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
403
29 case
executed 2 times by 1 test: case QAbstractFileEngine::BundleName:
Executed by:
  • tst_QFileInfo
QAbstractFileEngine::BundleName:
executed 2 times by 1 test: case QAbstractFileEngine::BundleName:
Executed by:
  • tst_QFileInfo
2
30 ret = QFileSystemEngine::bundleName(fileEntry);-
31 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFileInfo
2
32 case
executed 9629 times by 54 tests: case QAbstractFileEngine::AbsoluteName:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • ...
QAbstractFileEngine::AbsoluteName:
executed 9629 times by 54 tests: case QAbstractFileEngine::AbsoluteName:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • ...
9629
33 case
executed 1582 times by 31 tests: case QAbstractFileEngine::AbsolutePathName:
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
QAbstractFileEngine::AbsolutePathName:
executed 1582 times by 31 tests: case QAbstractFileEngine::AbsolutePathName:
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
{
1582
34 QFileSystemEntry entry = QFileSystemEngine::absoluteName(fileEntry);-
35 if (cache_enabled
cache_enabledDescription
TRUEevaluated 11210 times by 70 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
1-11210
36 fileNames[QAbstractFileEngine::AbsoluteName] = entry.filePath();-
37 fileNames[QAbstractFileEngine::AbsolutePathName] = entry.path();-
38 }
executed 11210 times by 70 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
11210
39 if (name == QAbstractFileEngine::AbsoluteName
name == QAbstr...::AbsoluteNameDescription
TRUEevaluated 9629 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • ...
FALSEevaluated 1582 times by 31 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
)
1582-9629
40 ret = entry.filePath();
executed 9629 times by 54 tests: ret = entry.filePath();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • ...
9629
41 else-
42 ret = entry.path();
executed 1582 times by 31 tests: ret = entry.path();
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
1582
43 break;
executed 11211 times by 70 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
11211
44 }-
45 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
46 }-
47 } else {-
48 ret = fileEngine->fileName(name);-
49 }
executed 3404 times by 37 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
3404
50 if (ret.isNull()
ret.isNull()Description
TRUEevaluated 647 times by 6 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
FALSEevaluated 38745 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
)
647-38745
51 ret = QLatin1String("");
executed 647 times by 6 tests: ret = QLatin1String("");
Executed by:
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
647
52 if (cache_enabled
cache_enabledDescription
TRUEevaluated 39391 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
1-39391
53 fileNames[(int)name] = ret;
executed 39391 times by 168 tests: fileNames[(int)name] = ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
39391
54 return
executed 39392 times by 168 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
ret;
executed 39392 times by 168 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
39392
55}-
56-
57QString QFileInfoPrivate::getFileOwner(QAbstractFileEngine::FileOwner own) const-
58{-
59 if (cache_enabled
cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
&& !fileOwners[(int)own].isNull()
!fileOwners[(int)own].isNull()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-2
60 return
never executed: return fileOwners[(int)own];
fileOwners[(int)own];
never executed: return fileOwners[(int)own];
0
61 QString ret;-
62 if (fileEngine == 0
fileEngine == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
) {
0-2
63 switch (own) {-
64 case
executed 1 time by 1 test: case QAbstractFileEngine::OwnerUser:
Executed by:
  • tst_QFileInfo
QAbstractFileEngine::OwnerUser:
executed 1 time by 1 test: case QAbstractFileEngine::OwnerUser:
Executed by:
  • tst_QFileInfo
1
65 ret = QFileSystemEngine::resolveUserName(fileEntry, metaData);-
66 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QFileInfo
1
67 case
executed 1 time by 1 test: case QAbstractFileEngine::OwnerGroup:
Executed by:
  • tst_QFileInfo
QAbstractFileEngine::OwnerGroup:
executed 1 time by 1 test: case QAbstractFileEngine::OwnerGroup:
Executed by:
  • tst_QFileInfo
1
68 ret = QFileSystemEngine::resolveGroupName(fileEntry, metaData);-
69 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QFileInfo
1
70 }-
71 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QFileInfo
else {
2
72 ret = fileEngine->owner(own);-
73 }
never executed: end of block
0
74 if (ret.isNull()
ret.isNull()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-2
75 ret = QLatin1String("");
never executed: ret = QLatin1String("");
0
76 if (cache_enabled
cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
)
0-2
77 fileOwners[(int)own] = ret;
executed 2 times by 1 test: fileOwners[(int)own] = ret;
Executed by:
  • tst_QFileInfo
2
78 return
executed 2 times by 1 test: return ret;
Executed by:
  • tst_QFileInfo
ret;
executed 2 times by 1 test: return ret;
Executed by:
  • tst_QFileInfo
2
79}-
80-
81uint QFileInfoPrivate::getFileFlags(QAbstractFileEngine::FileFlags request) const-
82{-
83 ((!(fileEngine)) ? qt_assert("fileEngine",__FILE__,126) : qt_noop());-
84 QAbstractFileEngine::FileFlags req = 0;-
85 uint cachedFlags = 0;-
86-
87 if (request & (QAbstractFileEngine::FlagsMask | QAbstractFileEngine::TypesMask)
request & (QAb...ne::TypesMask)Description
TRUEevaluated 10733 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 222 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
) {
222-10733
88 if (!getCachedFlag(CachedFileFlags)
!getCachedFlag...chedFileFlags)Description
TRUEevaluated 8670 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 2063 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
2063-8670
89 req |= QAbstractFileEngine::FlagsMask;-
90 req |= QAbstractFileEngine::TypesMask;-
91 req &= (~QAbstractFileEngine::LinkType);-
92 req &= (~QAbstractFileEngine::BundleType);-
93-
94 cachedFlags |= CachedFileFlags;-
95 }
executed 8670 times by 79 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
8670
96-
97 if (request & QAbstractFileEngine::LinkType
request & QAbs...gine::LinkTypeDescription
TRUEevaluated 81 times by 3 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
FALSEevaluated 10652 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
81-10652
98 if (!getCachedFlag(CachedLinkTypeFlag)
!getCachedFlag...dLinkTypeFlag)Description
TRUEevaluated 81 times by 3 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
FALSEnever evaluated
) {
0-81
99 req |= QAbstractFileEngine::LinkType;-
100 cachedFlags |= CachedLinkTypeFlag;-
101 }
executed 81 times by 3 tests: end of block
Executed by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
81
102 }
executed 81 times by 3 tests: end of block
Executed by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
81
103-
104 if (request & QAbstractFileEngine::BundleType
request & QAbs...ne::BundleTypeDescription
TRUEnever evaluated
FALSEevaluated 10733 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
0-10733
105 if (!getCachedFlag(CachedBundleTypeFlag)
!getCachedFlag...undleTypeFlag)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
106 req |= QAbstractFileEngine::BundleType;-
107 cachedFlags |= CachedBundleTypeFlag;-
108 }
never executed: end of block
0
109 }
never executed: end of block
0
110 }
executed 10733 times by 79 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
10733
111-
112 if (request & QAbstractFileEngine::PermsMask
request & QAbs...ine::PermsMaskDescription
TRUEevaluated 222 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
FALSEevaluated 10733 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
222-10733
113 if (!getCachedFlag(CachedPerms)
!getCachedFlag(CachedPerms)Description
TRUEevaluated 80 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
FALSEevaluated 142 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
80-142
114 req |= QAbstractFileEngine::PermsMask;-
115 cachedFlags |= CachedPerms;-
116 }
executed 80 times by 4 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
80
117 }
executed 222 times by 4 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
222
118-
119 if (req
reqDescription
TRUEevaluated 8831 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 2124 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
2124-8831
120 if (cache_enabled
cache_enabledDescription
TRUEevaluated 8830 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QResourceEngine
)
1-8830
121 req &= (~QAbstractFileEngine::Refresh);
executed 8830 times by 79 tests: req &= (~QAbstractFileEngine::Refresh);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
8830
122 else-
123 req |= QAbstractFileEngine::Refresh;
executed 1 time by 1 test: req |= QAbstractFileEngine::Refresh;
Executed by:
  • tst_QResourceEngine
1
124-
125 QAbstractFileEngine::FileFlags flags = fileEngine->fileFlags(req);-
126 fileFlags |= uint(flags);-
127 setCachedFlag(cachedFlags);-
128 }
executed 8831 times by 79 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
8831
129-
130 return
executed 10955 times by 79 tests: return fileFlags & request;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
fileFlags & request;
executed 10955 times by 79 tests: return fileFlags & request;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
10955
131}-
132-
133QDateTime &QFileInfoPrivate::getFileTime(QAbstractFileEngine::FileTime request) const-
134{-
135 ((!(fileEngine)) ? qt_assert("fileEngine",__FILE__,187) : qt_noop());-
136 if (fileTimes.size() != 3
fileTimes.size() != 3Description
TRUEevaluated 998 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QIcon
)
1-998
137 fileTimes.resize(3);
executed 998 times by 29 tests: fileTimes.resize(3);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
998
138 if (!cache_enabled
!cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 999 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
)
0-999
139 clearFlags();
never executed: clearFlags();
0
140 uint cf;-
141 if (request == QAbstractFileEngine::CreationTime
request == QAb...::CreationTimeDescription
TRUEnever evaluated
FALSEevaluated 999 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
)
0-999
142 cf = CachedCTime;
never executed: cf = CachedCTime;
0
143 else if (request == QAbstractFileEngine::ModificationTime
request == QAb...dificationTimeDescription
TRUEevaluated 999 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEnever evaluated
)
0-999
144 cf = CachedMTime;
executed 999 times by 29 tests: cf = CachedMTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
999
145 else-
146 cf = CachedATime;
never executed: cf = CachedATime;
0
147 if (!getCachedFlag(cf)
!getCachedFlag(cf)Description
TRUEevaluated 998 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QIcon
) {
1-998
148 fileTimes[request] = fileEngine->fileTime(request);-
149 setCachedFlag(cf);-
150 }
executed 998 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
998
151 return
executed 999 times by 29 tests: return fileTimes[request];
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
fileTimes[request];
executed 999 times by 29 tests: return fileTimes[request];
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
999
152}-
153QFileInfo::QFileInfo(QFileInfoPrivate *p) : d_ptr(p)-
154{-
155}
executed 110212 times by 189 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
110212
156QFileInfo::QFileInfo() : d_ptr(new QFileInfoPrivate())-
157{-
158}
executed 38000 times by 173 tests: end of block
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
38000
159-
160-
161-
162-
163-
164-
165-
166QFileInfo::QFileInfo(const QString &file) : d_ptr(new QFileInfoPrivate(file))-
167{-
168}
executed 96060 times by 290 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
96060
169QFileInfo::QFileInfo(const QFile &file) : d_ptr(new QFileInfoPrivate(file.fileName()))-
170{-
171}
executed 240 times by 29 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QSidebar
  • tst_QStyle
  • ...
240
172QFileInfo::QFileInfo(const QDir &dir, const QString &file)-
173 : d_ptr(new QFileInfoPrivate(dir.filePath(file)))-
174{-
175}
executed 260 times by 7 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
  • tst_rcc
260
176-
177-
178-
179-
180QFileInfo::QFileInfo(const QFileInfo &fileinfo)-
181 : d_ptr(fileinfo.d_ptr)-
182{-
183-
184}
executed 125956 times by 154 tests: end of block
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
125956
185-
186-
187-
188-
189-
190QFileInfo::~QFileInfo()-
191{-
192}-
193bool QFileInfo::operator==(const QFileInfo &fileinfo) const-
194{-
195 const QFileInfoPrivate * const d = d_func();-
196-
197-
198 if (fileinfo.d_ptr == d_ptr
fileinfo.d_ptr == d_ptrDescription
TRUEevaluated 2729 times by 7 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 690 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
)
690-2729
199 return
executed 2729 times by 7 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
true;
executed 2729 times by 7 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
2729
200 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 688 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
|| fileinfo.d_ptr->isDefaultConstructed
fileinfo.d_ptr...ultConstructedDescription
TRUEnever evaluated
FALSEevaluated 688 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
)
0-688
201 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QFileInfo
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QFileInfo
2
202-
203-
204 if (d->fileEntry.filePath() == fileinfo.d_ptr->fileEntry.filePath()
d->fileEntry.f...try.filePath()Description
TRUEevaluated 642 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
)
46-642
205 return
executed 642 times by 9 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
true;
executed 642 times by 9 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
642
206-
207 Qt::CaseSensitivity sensitive;-
208 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
FALSEnever evaluated
|| fileinfo.d_ptr->fileEngine == 0
fileinfo.d_ptr...ileEngine == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-46
209 if (d->fileEngine != fileinfo.d_ptr->fileEngine
d->fileEngine ...tr->fileEngineDescription
TRUEnever evaluated
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
)
0-46
210 return
never executed: return false;
false;
never executed: return false;
0
211-
212 sensitive = QFileSystemEngine::isCaseSensitive()
QFileSystemEng...aseSensitive()Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
FALSEnever evaluated
? Qt::CaseSensitive : Qt::CaseInsensitive;
0-46
213 }
executed 46 times by 5 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
else {
46
214 if (d->fileEngine->caseSensitive() != fileinfo.d_ptr->fileEngine->caseSensitive()
d->fileEngine-...aseSensitive()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
215 return
never executed: return false;
false;
never executed: return false;
0
216 sensitive = d->fileEngine->caseSensitive()
d->fileEngine->caseSensitive()Description
TRUEnever evaluated
FALSEnever evaluated
? Qt::CaseSensitive : Qt::CaseInsensitive;
0
217 }
never executed: end of block
0
218-
219-
220 return
executed 46 times by 5 tests: return canonicalFilePath().compare(fileinfo.canonicalFilePath(), sensitive) == 0;
Executed by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
canonicalFilePath().compare(fileinfo.canonicalFilePath(), sensitive) == 0;
executed 46 times by 5 tests: return canonicalFilePath().compare(fileinfo.canonicalFilePath(), sensitive) == 0;
Executed by:
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_languageChange
46
221}-
222-
223-
224-
225-
226QFileInfo &QFileInfo::operator=(const QFileInfo &fileinfo)-
227{-
228 d_ptr = fileinfo.d_ptr;-
229 return
executed 131904 times by 169 tests: return *this;
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
*this;
executed 131904 times by 169 tests: return *this;
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
131904
230}-
231void QFileInfo::setFile(const QString &file)-
232{-
233 bool caching = d_ptr.constData()->cache_enabled;-
234 *this = QFileInfo(file);-
235 d_ptr->cache_enabled = caching;-
236}
executed 1740 times by 25 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QChar
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QResourceEngine
  • tst_QSaveFile
  • tst_QTranslator
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
1740
237void QFileInfo::setFile(const QFile &file)-
238{-
239 setFile(file.fileName());-
240}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFileInfo
1
241void QFileInfo::setFile(const QDir &dir, const QString &file)-
242{-
243 setFile(dir.filePath(file));-
244}
executed 740 times by 2 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_selftests - unknown status
740
245QString QFileInfo::absoluteFilePath() const-
246{-
247 const QFileInfoPrivate * const d = d_func();-
248 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 16039 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
)
0-16039
249 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
250 return
executed 16039 times by 65 tests: return d->getFileName(QAbstractFileEngine::AbsoluteName);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
d->getFileName(QAbstractFileEngine::AbsoluteName);
executed 16039 times by 65 tests: return d->getFileName(QAbstractFileEngine::AbsoluteName);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • ...
16039
251}-
252QString QFileInfo::canonicalFilePath() const-
253{-
254 const QFileInfoPrivate * const d = d_func();-
255 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 24539 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
)
0-24539
256 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
257 return
executed 24539 times by 143 tests: return d->getFileName(QAbstractFileEngine::CanonicalName);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
d->getFileName(QAbstractFileEngine::CanonicalName);
executed 24539 times by 143 tests: return d->getFileName(QAbstractFileEngine::CanonicalName);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • ...
24539
258}-
259QString QFileInfo::absolutePath() const-
260{-
261 const QFileInfoPrivate * const d = d_func();-
262-
263 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1590 times by 32 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
) {
0-1590
264 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
265 } else if (d->fileEntry.isEmpty()
d->fileEntry.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1590 times by 32 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
) {
0-1590
266 QMessageLogger(__FILE__, 586, __PRETTY_FUNCTION__).warning("QFileInfo::absolutePath: Constructed with empty filename");-
267 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
268 }-
269 return
executed 1590 times by 32 tests: return d->getFileName(QAbstractFileEngine::AbsolutePathName);
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
d->getFileName(QAbstractFileEngine::AbsolutePathName);
executed 1590 times by 32 tests: return d->getFileName(QAbstractFileEngine::AbsolutePathName);
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • ...
1590
270}-
271QString QFileInfo::canonicalPath() const-
272{-
273 const QFileInfoPrivate * const d = d_func();-
274 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
275 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
276 return
executed 1 time by 1 test: return d->getFileName(QAbstractFileEngine::CanonicalPathName);
Executed by:
  • tst_QFileInfo
d->getFileName(QAbstractFileEngine::CanonicalPathName);
executed 1 time by 1 test: return d->getFileName(QAbstractFileEngine::CanonicalPathName);
Executed by:
  • tst_QFileInfo
1
277}-
278QString QFileInfo::path() const-
279{-
280 const QFileInfoPrivate * const d = d_func();-
281 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 2186 times by 40 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • ...
)
0-2186
282 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
283 return
executed 2186 times by 40 tests: return d->fileEntry.path();
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • ...
d->fileEntry.path();
executed 2186 times by 40 tests: return d->fileEntry.path();
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • ...
2186
284}-
285bool QFileInfo::isRelative() const-
286{-
287 const QFileInfoPrivate * const d = d_func();-
288 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 20613 times by 253 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
)
0-20613
289 return
never executed: return true;
true;
never executed: return true;
0
290 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 20600 times by 252 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 13 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QGuiApplication
  • tst_QKeySequence
  • tst_QTextBrowser
  • tst_QTranslator
)
13-20600
291 return
executed 20600 times by 252 tests: return d->fileEntry.isRelative();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
d->fileEntry.isRelative();
executed 20600 times by 252 tests: return d->fileEntry.isRelative();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
20600
292 return
executed 13 times by 5 tests: return d->fileEngine->isRelativePath();
Executed by:
  • tst_QDir
  • tst_QGuiApplication
  • tst_QKeySequence
  • tst_QTextBrowser
  • tst_QTranslator
d->fileEngine->isRelativePath();
executed 13 times by 5 tests: return d->fileEngine->isRelativePath();
Executed by:
  • tst_QDir
  • tst_QGuiApplication
  • tst_QKeySequence
  • tst_QTextBrowser
  • tst_QTranslator
13
293}-
294bool QFileInfo::makeAbsolute()-
295{-
296 if (d_ptr.constData()->isDefaultConstructed
d_ptr.constDat...ultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
0-1
297 || !d_ptr.constData()->fileEntry.isRelative()
!d_ptr.constDa...y.isRelative()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
298 return
never executed: return false;
false;
never executed: return false;
0
299-
300 setFile(absoluteFilePath());-
301 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QFileInfo
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QFileInfo
1
302}-
303-
304-
305-
306-
307-
308-
309-
310bool QFileInfo::exists() const-
311{-
312 const QFileInfoPrivate * const d = d_func();-
313 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 80 times by 2 tests
Evaluated by:
  • tst_QFileInfo
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 56301 times by 167 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
)
80-56301
314 return
executed 80 times by 2 tests: return false;
Executed by:
  • tst_QFileInfo
  • tst_qdbuscpp2xml - unknown status
false;
executed 80 times by 2 tests: return false;
Executed by:
  • tst_QFileInfo
  • tst_qdbuscpp2xml - unknown status
80
315 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 50179 times by 162 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 6122 times by 64 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • ...
) {
6122-50179
316 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 50179 times by 162 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::ExistsAttribute)
!d->metaData.h...istsAttribute)Description
TRUEevaluated 10490 times by 77 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 39689 times by 138 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
)
0-50179
317 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::ExistsAttribute);
executed 10490 times by 77 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::ExistsAttribute);
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
10490
318 return
executed 50179 times by 162 tests: return d->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_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
d->metaData.exists();
executed 50179 times by 162 tests: return d->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_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
50179
319 }-
320 return
executed 6122 times by 64 tests: return d->getFileFlags(QAbstractFileEngine::ExistsFlag);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • ...
d->getFileFlags(QAbstractFileEngine::ExistsFlag);
executed 6122 times by 64 tests: return d->getFileFlags(QAbstractFileEngine::ExistsFlag);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • ...
6122
321}-
322bool QFileInfo::exists(const QString &file)-
323{-
324 QFileSystemEntry entry(file);-
325 QFileSystemMetaData data;-
326 QAbstractFileEngine *engine =-
327 QFileSystemEngine::resolveEntryAndCreateLegacyEngine(entry, data);-
328-
329 if (engine
engineDescription
TRUEevaluated 4525 times by 35 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QResourceEngine
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • ...
FALSEevaluated 12770 times by 221 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
)
4525-12770
330 return
executed 4525 times by 35 tests: return QFileInfo(new QFileInfoPrivate(entry, data, engine)).exists();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QResourceEngine
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • ...
QFileInfo(new QFileInfoPrivate(entry, data, engine)).exists();
executed 4525 times by 35 tests: return QFileInfo(new QFileInfoPrivate(entry, data, engine)).exists();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QGlobal
  • tst_QGlyphRun
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QResourceEngine
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • ...
4525
331-
332 QFileSystemEngine::fillMetaData(entry, data, QFileSystemMetaData::ExistsAttribute);-
333 return
executed 12770 times by 221 tests: return data.exists();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
data.exists();
executed 12770 times by 221 tests: return data.exists();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
12770
334}-
335-
336-
337-
338-
339-
340void QFileInfo::refresh()-
341{-
342 QFileInfoPrivate * const d = d_func();-
343 d->clear();-
344}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_QFileSystemWatcher
8
345-
346-
347-
348-
349-
350-
351-
352QString QFileInfo::filePath() const-
353{-
354 const QFileInfoPrivate * const d = d_func();-
355 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 176 times by 8 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 59686 times by 175 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
)
176-59686
356 return
executed 176 times by 8 tests: return QLatin1String("");
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
QLatin1String("");
executed 176 times by 8 tests: return QLatin1String("");
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
176
357 return
executed 59686 times by 175 tests: return d->fileEntry.filePath();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
d->fileEntry.filePath();
executed 59686 times by 175 tests: return d->fileEntry.filePath();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
59686
358}-
359QString QFileInfo::fileName() const-
360{-
361 const QFileInfoPrivate * const d = d_func();-
362 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 48786 times by 136 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
)
0-48786
363 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
364 return
executed 48786 times by 136 tests: return d->fileEntry.fileName();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
d->fileEntry.fileName();
executed 48786 times by 136 tests: return d->fileEntry.fileName();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
48786
365}-
366QString QFileInfo::bundleName() const-
367{-
368 const QFileInfoPrivate * const d = d_func();-
369 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-2
370 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
371 return
executed 2 times by 1 test: return d->getFileName(QAbstractFileEngine::BundleName);
Executed by:
  • tst_QFileInfo
d->getFileName(QAbstractFileEngine::BundleName);
executed 2 times by 1 test: return d->getFileName(QAbstractFileEngine::BundleName);
Executed by:
  • tst_QFileInfo
2
372}-
373QString QFileInfo::baseName() const-
374{-
375 const QFileInfoPrivate * const d = d_func();-
376 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 11952 times by 82 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • ...
)
0-11952
377 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
378 return
executed 11952 times by 82 tests: return d->fileEntry.baseName();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • ...
d->fileEntry.baseName();
executed 11952 times by 82 tests: return d->fileEntry.baseName();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • ...
11952
379}-
380QString QFileInfo::completeBaseName() const-
381{-
382 const QFileInfoPrivate * const d = d_func();-
383 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-7
384 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
385 return
executed 7 times by 1 test: return d->fileEntry.completeBaseName();
Executed by:
  • tst_QFileInfo
d->fileEntry.completeBaseName();
executed 7 times by 1 test: return d->fileEntry.completeBaseName();
Executed by:
  • tst_QFileInfo
7
386}-
387QString QFileInfo::completeSuffix() const-
388{-
389 const QFileInfoPrivate * const d = d_func();-
390 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1112 times by 35 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QPlugin
  • ...
)
0-1112
391 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
392 return
executed 1112 times by 35 tests: return d->fileEntry.completeSuffix();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QPlugin
  • ...
d->fileEntry.completeSuffix();
executed 1112 times by 35 tests: return d->fileEntry.completeSuffix();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QPlugin
  • ...
1112
393}-
394QString QFileInfo::suffix() const-
395{-
396 const QFileInfoPrivate * const d = d_func();-
397 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 17087 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
)
0-17087
398 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
399 return
executed 17087 times by 77 tests: return d->fileEntry.suffix();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
d->fileEntry.suffix();
executed 17087 times by 77 tests: return d->fileEntry.suffix();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsEffect
  • ...
17087
400}-
401QDir QFileInfo::dir() const-
402{-
403 const QFileInfoPrivate * const d = d_func();-
404-
405 return
executed 15 times by 3 tests: return QDir(d->fileEntry.path());
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QSettings
QDir(d->fileEntry.path());
executed 15 times by 3 tests: return QDir(d->fileEntry.path());
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QSettings
15
406}-
407-
408-
409-
410-
411-
412-
413QDir QFileInfo::absoluteDir() const-
414{-
415 return
executed 41 times by 5 tests: return QDir(absolutePath());
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
QDir(absolutePath());
executed 41 times by 5 tests: return QDir(absolutePath());
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
41
416}-
417bool QFileInfo::isReadable() const-
418{-
419 const QFileInfoPrivate * const d = d_func();-
420 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 200 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
)
0-200
421 return
never executed: return false;
false;
never executed: return false;
0
422 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 125 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
FALSEevaluated 75 times by 3 tests
Evaluated by:
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
) {
75-125
423 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 125 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
|| !d->metaData.hasFlags(QFileSystemMetaData::UserReadPermission)
!d->metaData.h...eadPermission)Description
TRUEevaluated 125 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
FALSEnever evaluated
)
0-125
424 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserReadPermission);
executed 125 times by 4 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserReadPermission);
Executed by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
125
425 return
executed 125 times by 4 tests: return (d->metaData.permissions() & QFile::ReadUser) != 0;
Executed by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
(d->metaData.permissions() & QFile::ReadUser) != 0;
executed 125 times by 4 tests: return (d->metaData.permissions() & QFile::ReadUser) != 0;
Executed by:
  • tst_QDir
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
125
426 }-
427 return
executed 75 times by 3 tests: return d->getFileFlags(QAbstractFileEngine::ReadUserPerm);
Executed by:
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
d->getFileFlags(QAbstractFileEngine::ReadUserPerm);
executed 75 times by 3 tests: return d->getFileFlags(QAbstractFileEngine::ReadUserPerm);
Executed by:
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
75
428}-
429bool QFileInfo::isWritable() const-
430{-
431 const QFileInfoPrivate * const d = d_func();-
432 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 538 times by 11 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QResourceEngine
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
)
0-538
433 return
never executed: return false;
false;
never executed: return false;
0
434 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 467 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
71-467
435 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 467 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
|| !d->metaData.hasFlags(QFileSystemMetaData::UserWritePermission)
!d->metaData.h...itePermission)Description
TRUEevaluated 467 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
FALSEnever evaluated
)
0-467
436 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserWritePermission);
executed 467 times by 10 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserWritePermission);
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
467
437 return
executed 467 times by 10 tests: return (d->metaData.permissions() & QFile::WriteUser) != 0;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
(d->metaData.permissions() & QFile::WriteUser) != 0;
executed 467 times by 10 tests: return (d->metaData.permissions() & QFile::WriteUser) != 0;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
467
438 }-
439 return
executed 71 times by 1 test: return d->getFileFlags(QAbstractFileEngine::WriteUserPerm);
Executed by:
  • tst_QResourceEngine
d->getFileFlags(QAbstractFileEngine::WriteUserPerm);
executed 71 times by 1 test: return d->getFileFlags(QAbstractFileEngine::WriteUserPerm);
Executed by:
  • tst_QResourceEngine
71
440}-
441-
442-
443-
444-
445-
446-
447bool QFileInfo::isExecutable() const-
448{-
449 const QFileInfoPrivate * const d = d_func();-
450 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 89 times by 6 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QThreadStorage
  • tst_qstandardpaths
)
0-89
451 return
never executed: return false;
false;
never executed: return false;
0
452 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 18 times by 5 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
18-71
453 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 18 times by 5 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::UserExecutePermission)
!d->metaData.h...utePermission)Description
TRUEevaluated 18 times by 5 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
FALSEnever evaluated
)
0-18
454 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserExecutePermission);
executed 18 times by 5 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserExecutePermission);
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
18
455 return
executed 18 times by 5 tests: return (d->metaData.permissions() & QFile::ExeUser) != 0;
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
(d->metaData.permissions() & QFile::ExeUser) != 0;
executed 18 times by 5 tests: return (d->metaData.permissions() & QFile::ExeUser) != 0;
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
18
456 }-
457 return
executed 71 times by 1 test: return d->getFileFlags(QAbstractFileEngine::ExeUserPerm);
Executed by:
  • tst_QResourceEngine
d->getFileFlags(QAbstractFileEngine::ExeUserPerm);
executed 71 times by 1 test: return d->getFileFlags(QAbstractFileEngine::ExeUserPerm);
Executed by:
  • tst_QResourceEngine
71
458}-
459-
460-
461-
462-
463-
464-
465-
466bool QFileInfo::isHidden() const-
467{-
468 const QFileInfoPrivate * const d = d_func();-
469 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 41811 times by 138 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
)
0-41811
470 return
never executed: return false;
false;
never executed: return false;
0
471 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 41224 times by 135 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 587 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
587-41224
472 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 41224 times by 135 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::HiddenAttribute)
!d->metaData.h...ddenAttribute)Description
TRUEevaluated 38803 times by 135 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 2421 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_languageChange
)
0-41224
473 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::HiddenAttribute);
executed 38803 times by 135 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::HiddenAttribute);
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
38803
474 return
executed 41224 times by 135 tests: return d->metaData.isHidden();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
d->metaData.isHidden();
executed 41224 times by 135 tests: return d->metaData.isHidden();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
41224
475 }-
476 return
executed 587 times by 7 tests: return d->getFileFlags(QAbstractFileEngine::HiddenFlag);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
d->getFileFlags(QAbstractFileEngine::HiddenFlag);
executed 587 times by 7 tests: return d->getFileFlags(QAbstractFileEngine::HiddenFlag);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
587
477}-
478bool QFileInfo::isNativePath() const-
479{-
480 const QFileInfoPrivate * const d = d_func();-
481 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 444 times by 124 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
1-444
482 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFileInfo
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFileInfo
1
483 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 401 times by 124 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 43 times by 5 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
)
43-401
484 return
executed 401 times by 124 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
true;
executed 401 times by 124 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
401
485 return
executed 43 times by 5 tests: return d->getFileFlags(QAbstractFileEngine::LocalDiskFlag);
Executed by:
  • tst_QFileInfo
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
d->getFileFlags(QAbstractFileEngine::LocalDiskFlag);
executed 43 times by 5 tests: return d->getFileFlags(QAbstractFileEngine::LocalDiskFlag);
Executed by:
  • tst_QFileInfo
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
43
486}-
487bool QFileInfo::isFile() const-
488{-
489 const QFileInfoPrivate * const d = d_func();-
490 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 93735 times by 165 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
)
0-93735
491 return
never executed: return false;
false;
never executed: return false;
0
492 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 93159 times by 162 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 576 times by 9 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
  • tst_QVariant
  • tst_rcc
) {
576-93159
493 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 93159 times by 162 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::FileType)
!d->metaData.h...ata::FileType)Description
TRUEevaluated 40041 times by 75 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
FALSEevaluated 53118 times by 132 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
)
0-93159
494 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::FileType);
executed 40041 times by 75 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::FileType);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
40041
495 return
executed 93159 times by 162 tests: return d->metaData.isFile();
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
d->metaData.isFile();
executed 93159 times by 162 tests: return d->metaData.isFile();
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • ...
93159
496 }-
497 return
executed 576 times by 9 tests: return d->getFileFlags(QAbstractFileEngine::FileType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
  • tst_QVariant
  • tst_rcc
d->getFileFlags(QAbstractFileEngine::FileType);
executed 576 times by 9 tests: return d->getFileFlags(QAbstractFileEngine::FileType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
  • tst_QVariant
  • tst_rcc
576
498}-
499-
500-
501-
502-
503-
504-
505-
506bool QFileInfo::isDir() const-
507{-
508 const QFileInfoPrivate * const d = d_func();-
509 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 122940 times by 162 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
)
0-122940
510 return
never executed: return false;
false;
never executed: return false;
0
511 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 119618 times by 160 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
FALSEevaluated 3322 times by 38 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
) {
3322-119618
512 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 119618 times by 160 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::DirectoryType)
!d->metaData.h...DirectoryType)Description
TRUEevaluated 2049 times by 44 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
FALSEevaluated 117569 times by 156 tests
Evaluated by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
)
0-119618
513 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::DirectoryType);
executed 2049 times by 44 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::DirectoryType);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
2049
514 return
executed 119618 times by 160 tests: return d->metaData.isDirectory();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
d->metaData.isDirectory();
executed 119618 times by 160 tests: return d->metaData.isDirectory();
Executed by:
  • 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_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
119618
515 }-
516 return
executed 3322 times by 38 tests: return d->getFileFlags(QAbstractFileEngine::DirectoryType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
d->getFileFlags(QAbstractFileEngine::DirectoryType);
executed 3322 times by 38 tests: return d->getFileFlags(QAbstractFileEngine::DirectoryType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
3322
517}-
518bool QFileInfo::isBundle() const-
519{-
520 const QFileInfoPrivate * const d = d_func();-
521 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 240 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
)
0-240
522 return
never executed: return false;
false;
never executed: return false;
0
523 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 240 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
FALSEnever evaluated
) {
0-240
524 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 240 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::BundleType)
!d->metaData.h...a::BundleType)Description
TRUEnever evaluated
FALSEevaluated 240 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
)
0-240
525 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::BundleType);
never executed: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::BundleType);
0
526 return
executed 240 times by 5 tests: return d->metaData.isBundle();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
d->metaData.isBundle();
executed 240 times by 5 tests: return d->metaData.isBundle();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qstandardpaths
240
527 }-
528 return
never executed: return d->getFileFlags(QAbstractFileEngine::BundleType);
d->getFileFlags(QAbstractFileEngine::BundleType);
never executed: return d->getFileFlags(QAbstractFileEngine::BundleType);
0
529}-
530bool QFileInfo::isSymLink() const-
531{-
532 const QFileInfoPrivate * const d = d_func();-
533 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 26121 times by 58 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QItemModel
  • ...
)
0-26121
534 return
never executed: return false;
false;
never executed: return false;
0
535 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 26040 times by 57 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QItemModel
  • ...
FALSEevaluated 81 times by 3 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
) {
81-26040
536 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 26040 times by 57 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QItemModel
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::LegacyLinkType)
!d->metaData.h...egacyLinkType)Description
TRUEevaluated 4914 times by 40 tests
Evaluated by:
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QLockFile
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • ...
FALSEevaluated 21126 times by 30 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSidebar
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qfileinfo - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • ...
)
0-26040
537 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::LegacyLinkType);
executed 4914 times by 40 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::LegacyLinkType);
Executed by:
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QLockFile
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • ...
4914
538 return
executed 26040 times by 57 tests: return d->metaData.isLegacyLink();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QItemModel
  • ...
d->metaData.isLegacyLink();
executed 26040 times by 57 tests: return d->metaData.isLegacyLink();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QItemModel
  • ...
26040
539 }-
540 return
executed 81 times by 3 tests: return d->getFileFlags(QAbstractFileEngine::LinkType);
Executed by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
d->getFileFlags(QAbstractFileEngine::LinkType);
executed 81 times by 3 tests: return d->getFileFlags(QAbstractFileEngine::LinkType);
Executed by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
81
541}-
542-
543-
544-
545-
546-
547-
548bool QFileInfo::isRoot() const-
549{-
550 const QFileInfoPrivate * const d = d_func();-
551 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileIconProvider
FALSEevaluated 13776 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
  • tst_qmakelib
)
2-13776
552 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QFileIconProvider
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QFileIconProvider
2
553 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 13774 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
) {
2-13774
554 if (d->fileEntry.isRoot()
d->fileEntry.isRoot()Description
TRUEevaluated 653 times by 11 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
FALSEevaluated 13121 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
  • tst_qmakelib
) {
653-13121
555-
556-
557-
558-
559-
560-
561-
562 return
executed 653 times by 11 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
true;
executed 653 times by 11 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
653
563-
564 }-
565 return
executed 13121 times by 13 tests: return false;
Executed by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
  • tst_qmakelib
false;
executed 13121 times by 13 tests: return false;
Executed by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_languageChange
  • tst_qmakelib
13121
566 }-
567 return
executed 2 times by 1 test: return d->getFileFlags(QAbstractFileEngine::RootFlag);
Executed by:
  • tst_QFileInfo
d->getFileFlags(QAbstractFileEngine::RootFlag);
executed 2 times by 1 test: return d->getFileFlags(QAbstractFileEngine::RootFlag);
Executed by:
  • tst_QFileInfo
2
568}-
569QString QFileInfo::readLink() const-
570{-
571 const QFileInfoPrivate * const d = d_func();-
572 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 403 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-403
573 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
574 return
executed 403 times by 10 tests: return d->getFileName(QAbstractFileEngine::LinkName);
Executed by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
d->getFileName(QAbstractFileEngine::LinkName);
executed 403 times by 10 tests: return d->getFileName(QAbstractFileEngine::LinkName);
Executed by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QItemModel
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
403
575}-
576QString QFileInfo::owner() const-
577{-
578 const QFileInfoPrivate * const d = d_func();-
579 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
580 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
581 return
executed 1 time by 1 test: return d->getFileOwner(QAbstractFileEngine::OwnerUser);
Executed by:
  • tst_QFileInfo
d->getFileOwner(QAbstractFileEngine::OwnerUser);
executed 1 time by 1 test: return d->getFileOwner(QAbstractFileEngine::OwnerUser);
Executed by:
  • tst_QFileInfo
1
582}-
583uint QFileInfo::ownerId() const-
584{-
585 const QFileInfoPrivate * const d = d_func();-
586 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
)
0-45
587 return
never executed: return 0;
0;
never executed: return 0;
0
588 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
FALSEnever evaluated
) {
0-45
589 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::UserId)
!d->metaData.h...aData::UserId)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
)
0-45
590 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserId);
executed 4 times by 1 test: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserId);
Executed by:
  • tst_QFileSystemWatcher
4
591 return
executed 45 times by 2 tests: return d->metaData.userId();
Executed by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
d->metaData.userId();
executed 45 times by 2 tests: return d->metaData.userId();
Executed by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
45
592 }-
593 return
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
0
594}-
595QString QFileInfo::group() const-
596{-
597 const QFileInfoPrivate * const d = d_func();-
598 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
599 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
600 return
executed 1 time by 1 test: return d->getFileOwner(QAbstractFileEngine::OwnerGroup);
Executed by:
  • tst_QFileInfo
d->getFileOwner(QAbstractFileEngine::OwnerGroup);
executed 1 time by 1 test: return d->getFileOwner(QAbstractFileEngine::OwnerGroup);
Executed by:
  • tst_QFileInfo
1
601}-
602uint QFileInfo::groupId() const-
603{-
604 const QFileInfoPrivate * const d = d_func();-
605 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
)
0-38
606 return
never executed: return 0;
0;
never executed: return 0;
0
607 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
FALSEnever evaluated
) {
0-38
608 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
|| !d->metaData.hasFlags(QFileSystemMetaData::GroupId)
!d->metaData.h...Data::GroupId)Description
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
)
0-38
609 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::GroupId);
never executed: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::GroupId);
0
610 return
executed 38 times by 1 test: return d->metaData.groupId();
Executed by:
  • tst_QFileSystemWatcher
d->metaData.groupId();
executed 38 times by 1 test: return d->metaData.groupId();
Executed by:
  • tst_QFileSystemWatcher
38
611 }-
612 return
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
0
613}-
614bool QFileInfo::permission(QFile::Permissions permissions) const-
615{-
616 const QFileInfoPrivate * const d = d_func();-
617 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-5
618 return
never executed: return false;
false;
never executed: return false;
0
619 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFileInfo
) {
2-3
620-
621 QFileSystemMetaData::MetaDataFlag permissionFlags = static_cast<QFileSystemMetaData::MetaDataFlag>((int)permissions);-
622 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
|| !d->metaData.hasFlags(permissionFlags)
!d->metaData.h...rmissionFlags)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
)
0-2
623 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, permissionFlags);
executed 2 times by 1 test: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, permissionFlags);
Executed by:
  • tst_QFileInfo
2
624 return
executed 2 times by 1 test: return (d->metaData.permissions() & permissions) == permissions;
Executed by:
  • tst_QFileInfo
(d->metaData.permissions() & permissions) == permissions;
executed 2 times by 1 test: return (d->metaData.permissions() & permissions) == permissions;
Executed by:
  • tst_QFileInfo
2
625 }-
626 return
executed 3 times by 1 test: return d->getFileFlags(QAbstractFileEngine::FileFlags((int)permissions)) == (uint)permissions;
Executed by:
  • tst_QFileInfo
d->getFileFlags(QAbstractFileEngine::FileFlags((int)permissions)) == (uint)permissions;
executed 3 times by 1 test: return d->getFileFlags(QAbstractFileEngine::FileFlags((int)permissions)) == (uint)permissions;
Executed by:
  • tst_QFileInfo
3
627}-
628QFile::Permissions QFileInfo::permissions() const-
629{-
630 const QFileInfoPrivate * const d = d_func();-
631 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 14912 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
)
0-14912
632 return
never executed: return 0;
0;
never executed: return 0;
0
633 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 14910 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
) {
2-14910
634 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 14910 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::Permissions)
!d->metaData.h...::Permissions)Description
TRUEevaluated 5045 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
FALSEevaluated 9865 times by 7 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
)
0-14910
635 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::Permissions);
executed 5045 times by 13 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::Permissions);
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
5045
636 return
executed 14910 times by 13 tests: return d->metaData.permissions();
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
d->metaData.permissions();
executed 14910 times by 13 tests: return d->metaData.permissions();
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qstandardpaths
14910
637 }-
638 return
executed 2 times by 1 test: return QFile::Permissions(d->getFileFlags(QAbstractFileEngine::PermsMask) & QAbstractFileEngine::PermsMask);
Executed by:
  • tst_QFileInfo
QFile::Permissions(d->getFileFlags(QAbstractFileEngine::PermsMask) & QAbstractFileEngine::PermsMask);
executed 2 times by 1 test: return QFile::Permissions(d->getFileFlags(QAbstractFileEngine::PermsMask) & QAbstractFileEngine::PermsMask);
Executed by:
  • tst_QFileInfo
2
639}-
640qint64 QFileInfo::size() const-
641{-
642 const QFileInfoPrivate * const d = d_func();-
643 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 10450 times by 54 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • ...
)
1-10450
644 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QFileInfo
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QFileInfo
1
645 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 9355 times by 46 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • ...
FALSEevaluated 1095 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • ...
) {
1095-9355
646 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 9353 times by 45 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::SizeAttribute)
!d->metaData.h...SizeAttribute)Description
TRUEevaluated 4874 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QTemporaryFile
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 4479 times by 41 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkDiskCache
  • ...
)
2-9353
647 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::SizeAttribute);
executed 4876 times by 21 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::SizeAttribute);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QTemporaryFile
  • tst_QTextFormat
  • tst_languageChange
4876
648 return
executed 9355 times by 46 tests: return d->metaData.size();
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • ...
d->metaData.size();
executed 9355 times by 46 tests: return d->metaData.size();
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • ...
9355
649 }-
650 if (!d->getCachedFlag(QFileInfoPrivate::CachedSize)
!d->getCachedF...e::CachedSize)Description
TRUEevaluated 1066 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • ...
FALSEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
) {
29-1066
651 d->setCachedFlag(QFileInfoPrivate::CachedSize);-
652 d->fileSize = d->fileEngine->size();-
653 }
executed 1066 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • ...
1066
654 return
executed 1095 times by 31 tests: return d->fileSize;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • ...
d->fileSize;
executed 1095 times by 31 tests: return d->fileSize;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • ...
1095
655}-
656QDateTime QFileInfo::created() const-
657{-
658 const QFileInfoPrivate * const d = d_func();-
659 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 104 times by 3 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
)
1-104
660 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
1
661 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 104 times by 3 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
FALSEnever evaluated
) {
0-104
662 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 102 times by 3 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
|| !d->metaData.hasFlags(QFileSystemMetaData::CreationTime)
!d->metaData.h...:CreationTime)Description
TRUEevaluated 102 times by 3 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
FALSEnever evaluated
)
0-102
663 if (!QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::CreationTime)
!QFileSystemEn...:CreationTime)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 101 times by 3 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
)
3-101
664 return
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
QDateTime();
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
3
665 return
executed 101 times by 3 tests: return d->metaData.creationTime();
Executed by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
d->metaData.creationTime();
executed 101 times by 3 tests: return d->metaData.creationTime();
Executed by:
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
101
666 }-
667 return
never executed: return d->getFileTime(QAbstractFileEngine::CreationTime);
d->getFileTime(QAbstractFileEngine::CreationTime);
never executed: return d->getFileTime(QAbstractFileEngine::CreationTime);
0
668}-
669-
670-
671-
672-
673-
674-
675QDateTime QFileInfo::lastModified() const-
676{-
677 const QFileInfoPrivate * const d = d_func();-
678 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 11574 times by 55 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • ...
)
1-11574
679 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
1
680 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 10575 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • ...
FALSEevaluated 999 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
) {
999-10575
681 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 10573 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::ModificationTime)
!d->metaData.h...ificationTime)Description
TRUEevaluated 4525 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • ...
FALSEevaluated 6048 times by 39 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
)
2-10573
682 if (!QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::ModificationTime)
!QFileSystemEn...ificationTime)Description
TRUEevaluated 2911 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QPixmap
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 1616 times by 38 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • ...
)
1616-2911
683 return
executed 2911 times by 10 tests: return QDateTime();
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QPixmap
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
QDateTime();
executed 2911 times by 10 tests: return QDateTime();
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QPixmap
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
2911
684 return
executed 7664 times by 46 tests: return d->metaData.modificationTime();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • ...
d->metaData.modificationTime();
executed 7664 times by 46 tests: return d->metaData.modificationTime();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemModel
  • ...
7664
685 }-
686 return
executed 999 times by 29 tests: return d->getFileTime(QAbstractFileEngine::ModificationTime);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
d->getFileTime(QAbstractFileEngine::ModificationTime);
executed 999 times by 29 tests: return d->getFileTime(QAbstractFileEngine::ModificationTime);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
999
687}-
688QDateTime QFileInfo::lastRead() const-
689{-
690 const QFileInfoPrivate * const d = d_func();-
691 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
1-6
692 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
1
693 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
) {
0-6
694 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileInfo
|| !d->metaData.hasFlags(QFileSystemMetaData::AccessTime)
!d->metaData.h...a::AccessTime)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
)
0-4
695 if (!QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::AccessTime)
!QFileSystemEn...a::AccessTime)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
3
696 return
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
QDateTime();
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QFileInfo
3
697 return
executed 3 times by 1 test: return d->metaData.accessTime();
Executed by:
  • tst_QFileInfo
d->metaData.accessTime();
executed 3 times by 1 test: return d->metaData.accessTime();
Executed by:
  • tst_QFileInfo
3
698 }-
699 return
never executed: return d->getFileTime(QAbstractFileEngine::AccessTime);
d->getFileTime(QAbstractFileEngine::AccessTime);
never executed: return d->getFileTime(QAbstractFileEngine::AccessTime);
0
700}-
701-
702-
703-
704-
705QFileInfoPrivate* QFileInfo::d_func()-
706{-
707 return
executed 29 times by 5 tests: return d_ptr.data();
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QProcess
  • tst_QResourceEngine
d_ptr.data();
executed 29 times by 5 tests: return d_ptr.data();
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QProcess
  • tst_QResourceEngine
29
708}-
709-
710-
711-
712-
713-
714-
715bool QFileInfo::caching() const-
716{-
717 const QFileInfoPrivate * const d = d_func();-
718 return
executed 13 times by 1 test: return d->cache_enabled;
Executed by:
  • tst_QFileInfo
d->cache_enabled;
executed 13 times by 1 test: return d->cache_enabled;
Executed by:
  • tst_QFileInfo
13
719}-
720void QFileInfo::setCaching(bool enable)-
721{-
722 QFileInfoPrivate * const d = d_func();-
723 d->cache_enabled = enable;-
724}
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QProcess
  • tst_QResourceEngine
21
725-
Switch to Source codePreprocessed file

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