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 37017 times by 166 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 762 times by 14 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_qstandardpaths
  • tst_rcc
FALSEevaluated 36255 times by 166 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-37017
8 return
executed 762 times by 14 tests: return fileNames[(int)name];
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_qstandardpaths
  • tst_rcc
fileNames[(int)name];
executed 762 times by 14 tests: return fileNames[(int)name];
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_qstandardpaths
  • tst_rcc
762
9-
10 QString ret;-
11 if (fileEngine == 0
fileEngine == 0Description
TRUEevaluated 35246 times by 166 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 1010 times by 30 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_QMimeDatabase
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
) {
1010-35246
12 switch (name) {-
13 case
executed 23948 times by 141 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 23948 times by 141 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
  • ...
23948
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 23948 times by 141 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-23948
17 fileNames[QAbstractFileEngine::CanonicalName] = entry.filePath();-
18 fileNames[QAbstractFileEngine::CanonicalPathName] = entry.path();-
19 }
executed 23948 times by 141 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
  • ...
23948
20 if (name == QAbstractFileEngine::CanonicalName
name == QAbstr...:CanonicalNameDescription
TRUEevaluated 23947 times by 141 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-23947
21 ret = entry.filePath();
executed 23947 times by 141 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
  • ...
23947
22 else-
23 ret = entry.path();
executed 1 time by 1 test: ret = entry.path();
Executed by:
  • tst_QFileInfo
1
24 break;
executed 23948 times by 141 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
  • ...
23948
25 }-
26 case
executed 397 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 397 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
397
27 ret = QFileSystemEngine::getLinkTarget(fileEntry, metaData).filePath();-
28 break;
executed 397 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
397
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 9431 times by 53 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 9431 times by 53 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
  • ...
9431
33 case
executed 1467 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 1467 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
  • ...
{
1467
34 QFileSystemEntry entry = QFileSystemEngine::absoluteName(fileEntry);-
35 if (cache_enabled
cache_enabledDescription
TRUEevaluated 10897 times by 69 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-10897
36 fileNames[QAbstractFileEngine::AbsoluteName] = entry.filePath();-
37 fileNames[QAbstractFileEngine::AbsolutePathName] = entry.path();-
38 }
executed 10897 times by 69 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
  • ...
10897
39 if (name == QAbstractFileEngine::AbsoluteName
name == QAbstr...::AbsoluteNameDescription
TRUEevaluated 9431 times by 53 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 1467 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
  • ...
)
1467-9431
40 ret = entry.filePath();
executed 9431 times by 53 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
  • ...
9431
41 else-
42 ret = entry.path();
executed 1467 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
  • ...
1467
43 break;
executed 10898 times by 69 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
  • ...
10898
44 }-
45 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
46 }-
47 } else {-
48 ret = fileEngine->fileName(name);-
49 }
executed 1010 times by 30 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_QMimeDatabase
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
1010
50 if (ret.isNull()
ret.isNull()Description
TRUEevaluated 641 times by 6 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
FALSEevaluated 35614 times by 166 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
  • ...
)
641-35614
51 ret = QLatin1String("");
executed 641 times by 6 tests: ret = QLatin1String("");
Executed by:
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
641
52 if (cache_enabled
cache_enabledDescription
TRUEevaluated 36254 times by 166 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-36254
53 fileNames[(int)name] = ret;
executed 36254 times by 166 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
  • ...
36254
54 return
executed 36255 times by 166 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 36255 times by 166 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
  • ...
36255
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__,120) : 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 8498 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
FALSEevaluated 222 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QResourceEngine
  • tst_QTranslator
) {
222-8498
88 if (!getCachedFlag(CachedFileFlags)
!getCachedFlag...chedFileFlags)Description
TRUEevaluated 6435 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
FALSEevaluated 2063 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
2063-6435
89 req |= QAbstractFileEngine::FlagsMask;-
90 req |= QAbstractFileEngine::TypesMask;-
91 req &= (~QAbstractFileEngine::LinkType);-
92 req &= (~QAbstractFileEngine::BundleType);-
93-
94 cachedFlags |= CachedFileFlags;-
95 }
executed 6435 times by 75 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
6435
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 8417 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
) {
81-8417
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 8498 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
) {
0-8498
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 8498 times by 75 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
8498
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 8498 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
) {
222-8498
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 6596 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
FALSEevaluated 2124 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
2124-6596
120 if (cache_enabled
cache_enabledDescription
TRUEevaluated 6595 times by 75 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QResourceEngine
)
1-6595
121 req &= (~QAbstractFileEngine::Refresh);
executed 6595 times by 75 tests: req &= (~QAbstractFileEngine::Refresh);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
6595
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 6596 times by 75 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
6596
129-
130 return
executed 8720 times by 75 tests: return fileFlags & request;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
fileFlags & request;
executed 8720 times by 75 tests: return fileFlags & request;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • 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
  • tst_QFontDialog
  • ...
8720
131}-
132-
133QDateTime &QFileInfoPrivate::getFileTime(QAbstractFileEngine::FileTime request) const-
134{-
135 ((!(fileEngine)) ? qt_assert("fileEngine",__FILE__,181) : qt_noop());-
136 if (fileTimes.size() != 3
fileTimes.size() != 3Description
TRUEevaluated 1007 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-1007
137 fileTimes.resize(3);
executed 1007 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
  • ...
1007
138 if (!cache_enabled
!cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 1007 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-1007
139 clearFlags();
never executed: clearFlags();
0
140 uint cf;-
141 if (request == QAbstractFileEngine::CreationTime
request == QAb...::CreationTimeDescription
TRUEnever evaluated
FALSEevaluated 1007 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-1007
142 cf = CachedCTime;
never executed: cf = CachedCTime;
0
143 else if (request == QAbstractFileEngine::ModificationTime
request == QAb...dificationTimeDescription
TRUEevaluated 1007 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-1007
144 cf = CachedMTime;
executed 1007 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
  • ...
1007
145 else-
146 cf = CachedATime;
never executed: cf = CachedATime;
0
147 if (!getCachedFlag(cf)
!getCachedFlag(cf)Description
TRUEevaluated 1007 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-1007
148 fileTimes[request] = fileEngine->fileTime(request);-
149 setCachedFlag(cf);-
150 }
executed 1007 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
  • ...
1007
151 return
executed 1007 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 1007 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
  • ...
1007
152}-
153QFileInfo::QFileInfo(QFileInfoPrivate *p) : d_ptr(p)-
154{-
155}
executed 110054 times by 187 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
  • ...
110054
156QFileInfo::QFileInfo() : d_ptr(new QFileInfoPrivate())-
157{-
158}
executed 37436 times by 172 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
  • ...
37436
159-
160-
161-
162-
163-
164-
165-
166QFileInfo::QFileInfo(const QString &file) : d_ptr(new QFileInfoPrivate(file))-
167{-
168}
executed 184016 times by 289 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
  • ...
184016
169QFileInfo::QFileInfo(const QFile &file) : d_ptr(new QFileInfoPrivate(file.fileName()))-
170{-
171}
executed 200 times by 8 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QDir
  • tst_QFileInfo
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTemporaryFile
200
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 124683 times by 153 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
  • ...
124683
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 2715 times by 7 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 717 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
)
717-2715
199 return
executed 2715 times by 7 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
true;
executed 2715 times by 7 tests: return true;
Executed by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
2715
200 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 715 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 715 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-715
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 669 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-669
205 return
executed 669 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 669 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
669
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 130829 times by 168 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 130829 times by 168 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
  • ...
130829
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 1592 times by 24 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_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
1592
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 628 times by 2 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_selftests - unknown status
628
245QString QFileInfo::absoluteFilePath() const-
246{-
247 const QFileInfoPrivate * const d = d_func();-
248 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 11018 times by 61 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_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
)
0-11018
249 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
250 return
executed 11018 times by 61 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_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
d->getFileName(QAbstractFileEngine::AbsoluteName);
executed 11018 times by 61 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_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
11018
251}-
252QString QFileInfo::canonicalFilePath() const-
253{-
254 const QFileInfoPrivate * const d = d_func();-
255 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 24125 times by 141 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-24125
256 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
257 return
executed 24125 times by 141 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 24125 times by 141 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
  • ...
24125
258}-
259QString QFileInfo::absolutePath() const-
260{-
261 const QFileInfoPrivate * const d = d_func();-
262-
263 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1475 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-1475
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 1475 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-1475
266 QMessageLogger(__FILE__, 580, __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 1475 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 1475 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
  • ...
1475
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 1815 times by 37 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_QGuiApplication
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_qapplication - unknown status
  • ...
)
0-1815
282 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
283 return
executed 1815 times by 37 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_QGuiApplication
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_qapplication - unknown status
  • ...
d->fileEntry.path();
executed 1815 times by 37 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_QGuiApplication
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSql
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_qapplication - unknown status
  • ...
1815
284}-
285bool QFileInfo::isRelative() const-
286{-
287 const QFileInfoPrivate * const d = d_func();-
288 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 121380 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
  • ...
)
0-121380
289 return
never executed: return true;
true;
never executed: return true;
0
290 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 121367 times by 251 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-121367
291 return
executed 121367 times by 251 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 121367 times by 251 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
  • ...
121367
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 55833 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
  • ...
)
80-55833
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 49538 times by 160 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 6295 times by 63 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
  • ...
) {
6295-49538
316 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 49538 times by 160 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 10080 times by 76 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 39458 times by 137 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-49538
317 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::ExistsAttribute);
executed 10080 times by 76 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
  • ...
10080
318 return
executed 49538 times by 160 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 49538 times by 160 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
  • ...
49538
319 }-
320 return
executed 6295 times by 63 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 6295 times by 63 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
  • ...
6295
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 4689 times by 34 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 113524 times by 220 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
  • ...
)
4689-113524
330 return
executed 4689 times by 34 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 4689 times by 34 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
  • ...
4689
331-
332 QFileSystemEngine::fillMetaData(entry, data, QFileSystemMetaData::ExistsAttribute);-
333 return
executed 113524 times by 220 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 113524 times by 220 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
  • ...
113524
334}-
335void QFileInfo::refresh()-
336{-
337 QFileInfoPrivate * const d = d_func();-
338 d->clear();-
339}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QFileInfo
  • tst_QFileSystemWatcher
8
340-
341-
342-
343-
344-
345-
346-
347QString QFileInfo::filePath() const-
348{-
349 const QFileInfoPrivate * const d = d_func();-
350 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 59318 times by 174 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-59318
351 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
352 return
executed 59318 times by 174 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 59318 times by 174 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
  • ...
59318
353}-
354QString QFileInfo::fileName() const-
355{-
356 const QFileInfoPrivate * const d = d_func();-
357 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 45875 times by 135 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-45875
358 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
359 return
executed 45875 times by 135 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 45875 times by 135 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
  • ...
45875
360}-
361QString QFileInfo::bundleName() const-
362{-
363 const QFileInfoPrivate * const d = d_func();-
364 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-2
365 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
366 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
367}-
368QString QFileInfo::baseName() const-
369{-
370 const QFileInfoPrivate * const d = d_func();-
371 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 11928 times by 81 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-11928
372 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
373 return
executed 11928 times by 81 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 11928 times by 81 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
  • ...
11928
374}-
375QString QFileInfo::completeBaseName() const-
376{-
377 const QFileInfoPrivate * const d = d_func();-
378 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-7
379 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
380 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
381}-
382QString QFileInfo::completeSuffix() const-
383{-
384 const QFileInfoPrivate * const d = d_func();-
385 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1131 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-1131
386 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
387 return
executed 1131 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 1131 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
  • ...
1131
388}-
389QString QFileInfo::suffix() const-
390{-
391 const QFileInfoPrivate * const d = d_func();-
392 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 17082 times by 76 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-17082
393 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
394 return
executed 17082 times by 76 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 17082 times by 76 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
  • ...
17082
395}-
396QDir QFileInfo::dir() const-
397{-
398 const QFileInfoPrivate * const d = d_func();-
399-
400 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
401}-
402-
403-
404-
405-
406-
407-
408QDir QFileInfo::absoluteDir() const-
409{-
410 return
executed 40 times by 5 tests: return QDir(absolutePath());
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
QDir(absolutePath());
executed 40 times by 5 tests: return QDir(absolutePath());
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
40
411}-
412bool QFileInfo::isReadable() const-
413{-
414 const QFileInfoPrivate * const d = d_func();-
415 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
416 return
never executed: return false;
false;
never executed: return false;
0
417 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
418 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
419 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
420 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
421 }-
422 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
423}-
424bool QFileInfo::isWritable() const-
425{-
426 const QFileInfoPrivate * const d = d_func();-
427 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 536 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-536
428 return
never executed: return false;
false;
never executed: return false;
0
429 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 465 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-465
430 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 465 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 465 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-465
431 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserWritePermission);
executed 465 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
465
432 return
executed 465 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 465 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
465
433 }-
434 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
435}-
436-
437-
438-
439-
440-
441-
442bool QFileInfo::isExecutable() const-
443{-
444 const QFileInfoPrivate * const d = d_func();-
445 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 88 times by 5 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QThreadStorage
  • tst_qstandardpaths
)
0-88
446 return
never executed: return false;
false;
never executed: return false;
0
447 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
17-71
448 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::UserExecutePermission)
!d->metaData.h...utePermission)Description
TRUEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
FALSEnever evaluated
)
0-17
449 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserExecutePermission);
executed 17 times by 4 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::UserExecutePermission);
Executed by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
17
450 return
executed 17 times by 4 tests: return (d->metaData.permissions() & QFile::ExeUser) != 0;
Executed by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
(d->metaData.permissions() & QFile::ExeUser) != 0;
executed 17 times by 4 tests: return (d->metaData.permissions() & QFile::ExeUser) != 0;
Executed by:
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QThreadStorage
  • tst_qstandardpaths
17
451 }-
452 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
453}-
454-
455-
456-
457-
458-
459-
460-
461bool QFileInfo::isHidden() const-
462{-
463 const QFileInfoPrivate * const d = d_func();-
464 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 41530 times by 137 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-41530
465 return
never executed: return false;
false;
never executed: return false;
0
466 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 40943 times by 134 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-40943
467 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 40943 times by 134 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 38544 times by 134 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 2399 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-40943
468 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::HiddenAttribute);
executed 38544 times by 134 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
  • ...
38544
469 return
executed 40943 times by 134 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 40943 times by 134 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
  • ...
40943
470 }-
471 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
472}-
473bool QFileInfo::isNativePath() const-
474{-
475 const QFileInfoPrivate * const d = d_func();-
476 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 439 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-439
477 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
478 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 396 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-396
479 return
executed 396 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 396 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
  • ...
396
480 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
481}-
482bool QFileInfo::isFile() const-
483{-
484 const QFileInfoPrivate * const d = d_func();-
485 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 85084 times by 163 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-85084
486 return
never executed: return false;
false;
never executed: return false;
0
487 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 84508 times by 160 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-84508
488 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 84508 times by 160 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 32078 times by 60 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLoggingRegistry
  • ...
FALSEevaluated 52430 times by 131 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-84508
489 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::FileType);
executed 32078 times by 60 tests: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::FileType);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLoggingRegistry
  • ...
32078
490 return
executed 84508 times by 160 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 84508 times by 160 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
  • ...
84508
491 }-
492 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
493}-
494-
495-
496-
497-
498-
499-
500-
501bool QFileInfo::isDir() const-
502{-
503 const QFileInfoPrivate * const d = d_func();-
504 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 117476 times by 161 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-117476
505 return
never executed: return false;
false;
never executed: return false;
0
506 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 116562 times by 159 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 914 times by 34 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QResourceEngine
  • ...
) {
914-116562
507 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 116562 times by 159 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 2024 times by 42 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_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 114538 times by 155 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-116562
508 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::DirectoryType);
executed 2024 times by 42 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_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
2024
509 return
executed 116562 times by 159 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 116562 times by 159 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
  • ...
116562
510 }-
511 return
executed 914 times by 34 tests: return d->getFileFlags(QAbstractFileEngine::DirectoryType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QResourceEngine
  • ...
d->getFileFlags(QAbstractFileEngine::DirectoryType);
executed 914 times by 34 tests: return d->getFileFlags(QAbstractFileEngine::DirectoryType);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QResourceEngine
  • ...
914
512}-
513bool QFileInfo::isBundle() const-
514{-
515 const QFileInfoPrivate * const d = d_func();-
516 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 169 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
)
0-169
517 return
never executed: return false;
false;
never executed: return false;
0
518 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 169 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
FALSEnever evaluated
) {
0-169
519 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 169 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
|| !d->metaData.hasFlags(QFileSystemMetaData::BundleType)
!d->metaData.h...a::BundleType)Description
TRUEnever evaluated
FALSEevaluated 169 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
)
0-169
520 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::BundleType);
never executed: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::BundleType);
0
521 return
executed 169 times by 4 tests: return d->metaData.isBundle();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
d->metaData.isBundle();
executed 169 times by 4 tests: return d->metaData.isBundle();
Executed by:
  • tst_NetworkSelfTest
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_qstandardpaths
169
522 }-
523 return
never executed: return d->getFileFlags(QAbstractFileEngine::BundleType);
d->getFileFlags(QAbstractFileEngine::BundleType);
never executed: return d->getFileFlags(QAbstractFileEngine::BundleType);
0
524}-
525bool QFileInfo::isSymLink() const-
526{-
527 const QFileInfoPrivate * const d = d_func();-
528 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 25675 times by 56 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_QItemModel
  • tst_QLockFile
  • ...
)
0-25675
529 return
never executed: return false;
false;
never executed: return false;
0
530 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 25594 times by 55 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_QItemModel
  • tst_QLockFile
  • ...
FALSEevaluated 81 times by 3 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_rcc
) {
81-25594
531 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 25594 times by 55 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_QItemModel
  • tst_QLockFile
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::LegacyLinkType)
!d->metaData.h...egacyLinkType)Description
TRUEevaluated 4686 times by 39 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 20908 times by 29 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_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
  • tst_qmimedatabase-xml - unknown status
  • ...
)
0-25594
532 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::LegacyLinkType);
executed 4686 times by 39 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
  • ...
4686
533 return
executed 25594 times by 55 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_QItemModel
  • tst_QLockFile
  • ...
d->metaData.isLegacyLink();
executed 25594 times by 55 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_QItemModel
  • tst_QLockFile
  • ...
25594
534 }-
535 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
536}-
537-
538-
539-
540-
541-
542-
543bool QFileInfo::isRoot() const-
544{-
545 const QFileInfoPrivate * const d = d_func();-
546 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileIconProvider
FALSEevaluated 13786 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-13786
547 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
548 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 13784 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-13784
549 if (d->fileEntry.isRoot()
d->fileEntry.isRoot()Description
TRUEevaluated 652 times by 12 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
  • tst_qmakelib
FALSEevaluated 13132 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
) {
652-13132
550-
551-
552-
553-
554-
555-
556-
557 return
executed 652 times by 12 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
  • tst_qmakelib
true;
executed 652 times by 12 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
  • tst_qmakelib
652
558-
559 }-
560 return
executed 13132 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 13132 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
13132
561 }-
562 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
563}-
564QString QFileInfo::readLink() const-
565{-
566 const QFileInfoPrivate * const d = d_func();-
567 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 397 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-397
568 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
569 return
executed 397 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 397 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
397
570}-
571QString QFileInfo::owner() const-
572{-
573 const QFileInfoPrivate * const d = d_func();-
574 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
575 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
576 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
577}-
578uint QFileInfo::ownerId() const-
579{-
580 const QFileInfoPrivate * const d = d_func();-
581 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
)
0-45
582 return
never executed: return 0;
0;
never executed: return 0;
0
583 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qstandardpaths
FALSEnever evaluated
) {
0-45
584 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
585 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
586 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
587 }-
588 return
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerUser);
0
589}-
590QString QFileInfo::group() const-
591{-
592 const QFileInfoPrivate * const d = d_func();-
593 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
594 return
never executed: return QLatin1String("");
QLatin1String("");
never executed: return QLatin1String("");
0
595 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
596}-
597uint QFileInfo::groupId() const-
598{-
599 const QFileInfoPrivate * const d = d_func();-
600 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
)
0-38
601 return
never executed: return 0;
0;
never executed: return 0;
0
602 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_QFileSystemWatcher
FALSEnever evaluated
) {
0-38
603 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
604 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::GroupId);
never executed: QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::GroupId);
0
605 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
606 }-
607 return
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
never executed: return d->fileEngine->ownerId(QAbstractFileEngine::OwnerGroup);
0
608}-
609bool QFileInfo::permission(QFile::Permissions permissions) const-
610{-
611 const QFileInfoPrivate * const d = d_func();-
612 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-5
613 return
never executed: return false;
false;
never executed: return false;
0
614 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
615-
616 QFileSystemMetaData::MetaDataFlag permissionFlags = static_cast<QFileSystemMetaData::MetaDataFlag>((int)permissions);-
617 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
618 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
619 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
620 }-
621 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
622}-
623QFile::Permissions QFileInfo::permissions() const-
624{-
625 const QFileInfoPrivate * const d = d_func();-
626 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEnever evaluated
FALSEevaluated 14532 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-14532
627 return
never executed: return 0;
0;
never executed: return 0;
0
628 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 14530 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-14530
629 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEnever evaluated
FALSEevaluated 14530 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 5081 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 9449 times by 7 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
)
0-14530
630 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::Permissions);
executed 5081 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
5081
631 return
executed 14530 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 14530 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
14530
632 }-
633 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
634}-
635qint64 QFileInfo::size() const-
636{-
637 const QFileInfoPrivate * const d = d_func();-
638 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 10200 times by 53 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-10200
639 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
640 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 9094 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
  • ...
FALSEevaluated 1106 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
  • ...
) {
1106-9094
641 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 9092 times by 44 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 4859 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QTemporaryFile
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 4233 times by 40 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-9092
642 QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::SizeAttribute);
executed 4861 times by 20 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_QItemModel
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QTemporaryFile
  • tst_QTextFormat
  • tst_languageChange
4861
643 return
executed 9094 times by 45 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 9094 times by 45 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
  • ...
9094
644 }-
645 if (!d->getCachedFlag(QFileInfoPrivate::CachedSize)
!d->getCachedF...e::CachedSize)Description
TRUEevaluated 1081 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 25 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
) {
25-1081
646 d->setCachedFlag(QFileInfoPrivate::CachedSize);-
647 d->fileSize = d->fileEngine->size();-
648 }
executed 1081 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
  • ...
1081
649 return
executed 1106 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 1106 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
  • ...
1106
650}-
651QDateTime QFileInfo::created() const-
652{-
653 const QFileInfoPrivate * const d = d_func();-
654 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
655 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
656 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
657 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
658 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
659 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
660 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
661 }-
662 return
never executed: return d->getFileTime(QAbstractFileEngine::CreationTime);
d->getFileTime(QAbstractFileEngine::CreationTime);
never executed: return d->getFileTime(QAbstractFileEngine::CreationTime);
0
663}-
664-
665-
666-
667-
668-
669-
670QDateTime QFileInfo::lastModified() const-
671{-
672 const QFileInfoPrivate * const d = d_func();-
673 if (d->isDefaultConstructed
d->isDefaultConstructedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 10204 times by 50 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_QFontDialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QItemModel
  • ...
)
1-10204
674 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
675 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 9197 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_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMessageBox
  • ...
FALSEevaluated 1007 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
  • ...
) {
1007-9197
676 if (!d->cache_enabled
!d->cache_enabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 9195 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_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMessageBox
  • ...
|| !d->metaData.hasFlags(QFileSystemMetaData::ModificationTime)
!d->metaData.h...ificationTime)Description
TRUEevaluated 3260 times by 18 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDebug
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 5935 times by 38 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-9195
677 if (!QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::ModificationTime)
!QFileSystemEn...ificationTime)Description
TRUEevaluated 2903 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 359 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDebug
  • tst_QDir
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
)
359-2903
678 return
executed 2903 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 2903 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
2903
679 return
executed 6294 times by 41 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_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMessageBox
  • ...
d->metaData.modificationTime();
executed 6294 times by 41 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_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QMessageBox
  • ...
6294
680 }-
681 return
executed 1007 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 1007 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
  • ...
1007
682}-
683QDateTime QFileInfo::lastRead() const-
684{-
685 const QFileInfoPrivate * const d = d_func();-
686 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
687 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
688 if (d->fileEngine == 0
d->fileEngine == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
) {
0-6
689 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
690 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
691 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
692 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
693 }-
694 return
never executed: return d->getFileTime(QAbstractFileEngine::AccessTime);
d->getFileTime(QAbstractFileEngine::AccessTime);
never executed: return d->getFileTime(QAbstractFileEngine::AccessTime);
0
695}-
696-
697-
698-
699-
700QFileInfoPrivate* QFileInfo::d_func()-
701{-
702 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
703}-
704-
705-
706-
707-
708-
709-
710bool QFileInfo::caching() const-
711{-
712 const QFileInfoPrivate * const d = d_func();-
713 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
714}-
715void QFileInfo::setCaching(bool enable)-
716{-
717 QFileInfoPrivate * const d = d_func();-
718 d->cache_enabled = enable;-
719}
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QDirModel
  • tst_QFileInfo
  • tst_QProcess
  • tst_QResourceEngine
21
720-
Switch to Source codePreprocessed file

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