qfilesystemengine_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfilesystemengine_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10QFileSystemEntry QFileSystemEngine::getLinkTarget(const QFileSystemEntry &link, QFileSystemMetaData &data)-
11{-
12 char s[4096 +1];-
13 int len = readlink(link.nativeFilePath().constData(), s, 4096);-
14-
15 if (len > 0
len > 0Description
TRUEevaluated 398 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
1-398
16 QString ret;-
17 if (!data.hasFlags(QFileSystemMetaData::DirectoryType)
!data.hasFlags...DirectoryType)Description
TRUEevaluated 393 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 5 times by 4 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFile
  • tst_QItemModel
  • tst_QSaveFile
)
5-393
18 fillMetaData(link, data, QFileSystemMetaData::DirectoryType);
executed 393 times by 8 tests: fillMetaData(link, data, QFileSystemMetaData::DirectoryType);
Executed by:
  • tst_QApplication
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
393
19 if (data.isDirectory()
data.isDirectory()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QItemModel
FALSEevaluated 396 times by 9 tests
Evaluated by:
  • tst_QApplication
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiApplication
  • tst_QSaveFile
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& s[0] != '/'
s[0] != '/'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemModel
) {
1-396
20 QDir parent(link.filePath());-
21 parent.cdUp();-
22 ret = parent.path();-
23 if (!ret.isEmpty()
!ret.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
&& !ret.endsWith(QLatin1Char('/'))
!ret.endsWith(...tin1Char('/'))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
)
0-1
24 ret += QLatin1Char('/');
executed 1 time by 1 test: ret += QLatin1Char('/');
Executed by:
  • tst_QFile
1
25 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFile
1
26 s[len] = '\0';-
27 ret += QFile::decodeName(QByteArray(s));-
28-
29-
30-
31-
32 if (!ret.startsWith(QLatin1Char('/'))
!ret.startsWit...tin1Char('/'))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
FALSEevaluated 393 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
) {
5-393
33 if (link.filePath().startsWith(QLatin1Char('/'))
link.filePath(...tin1Char('/'))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
) {
1-4
34 ret.prepend(link.filePath().left(link.filePath().lastIndexOf(QLatin1Char('/')))-
35 + QLatin1Char('/'));-
36 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFile
else {
1
37 ret.prepend(QDir::currentPath() + QLatin1Char('/'));-
38 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
4
39 }-
40 ret = QDir::cleanPath(ret);-
41 if (ret.size() > 1
ret.size() > 1Description
TRUEevaluated 398 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
FALSEnever evaluated
&& ret.endsWith(QLatin1Char('/'))
ret.endsWith(QLatin1Char('/'))Description
TRUEnever evaluated
FALSEevaluated 398 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-398
42 ret.chop(1);
never executed: ret.chop(1);
0
43 return
executed 398 times by 10 tests: return QFileSystemEntry(ret);
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
QFileSystemEntry(ret);
executed 398 times by 10 tests: return QFileSystemEntry(ret);
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
398
44 }-
45 return
executed 1 time by 1 test: return QFileSystemEntry();
Executed by:
  • tst_QFileInfo
QFileSystemEntry();
executed 1 time by 1 test: return QFileSystemEntry();
Executed by:
  • tst_QFileInfo
1
46}-
47-
48-
49QFileSystemEntry QFileSystemEngine::canonicalName(const QFileSystemEntry &entry, QFileSystemMetaData &data)-
50{-
51 if (entry.isEmpty()
entry.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 25130 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
|| entry.isRoot()
entry.isRoot()Description
TRUEevaluated 34 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QStorageInfo
FALSEevaluated 25096 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
)
0-25130
52 return
executed 34 times by 5 tests: return entry;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QStorageInfo
entry;
executed 34 times by 5 tests: return entry;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QStorageInfo
34
53-
54-
55-
56-
57-
58-
59 char *ret = 0;-
60 ret = realpath(entry.nativeFilePath().constData(), (char*)0);-
61 if (ret
retDescription
TRUEevaluated 24454 times by 143 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
FALSEevaluated 641 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QDir
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
) {
641-24454
62 data.knownFlagsMask |= QFileSystemMetaData::ExistsAttribute;-
63 data.entryFlags |= QFileSystemMetaData::ExistsAttribute;-
64 QString canonicalPath = QDir::cleanPath(QFile::decodeName(ret));-
65 free(ret);-
66 return
executed 24454 times by 143 tests: return QFileSystemEntry(canonicalPath);
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_QDir
  • ...
QFileSystemEntry(canonicalPath);
executed 24454 times by 143 tests: return QFileSystemEntry(canonicalPath);
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_QDir
  • ...
24454
67 } else if ((*
(*__errno_location ()) == 2Description
TRUEevaluated 641 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QDir
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
FALSEnever evaluated
__errno_location ()) == 2
(*__errno_location ()) == 2Description
TRUEevaluated 641 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QDir
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
FALSEnever evaluated
) {
0-641
68 data.knownFlagsMask |= QFileSystemMetaData::ExistsAttribute;-
69 data.entryFlags &= ~(QFileSystemMetaData::ExistsAttribute);-
70 return
executed 641 times by 8 tests: return QFileSystemEntry();
Executed by:
  • tst_QApplication
  • tst_QDir
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
QFileSystemEntry();
executed 641 times by 8 tests: return QFileSystemEntry();
Executed by:
  • tst_QApplication
  • tst_QDir
  • tst_QFileInfo
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStorageInfo
  • tst_qmakelib
641
71 }-
72 return
never executed: return entry;
entry;
never executed: return entry;
0
73-
74}-
75-
76-
77QFileSystemEntry QFileSystemEngine::absoluteName(const QFileSystemEntry &entry)-
78{-
79 if (entry.isAbsolute()
entry.isAbsolute()Description
TRUEevaluated 12847 times by 73 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • 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
  • ...
FALSEevaluated 678 times by 27 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • ...
&& entry.isClean()
entry.isClean()Description
TRUEevaluated 9657 times by 73 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • 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
  • ...
FALSEevaluated 3190 times by 32 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkDiskCache
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
)
678-12847
80 return
executed 9657 times by 73 tests: return entry;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • 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
  • ...
entry;
executed 9657 times by 73 tests: return entry;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • 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
  • ...
9657
81-
82 QByteArray orig = entry.nativeFilePath();-
83 QByteArray result;-
84 if (orig.isEmpty()
orig.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 3868 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
|| !orig.startsWith('/')
!orig.startsWith('/')Description
TRUEevaluated 678 times by 27 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • ...
FALSEevaluated 3190 times by 32 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkDiskCache
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
) {
0-3868
85 QFileSystemEntry cur(currentPath());-
86 result = cur.nativeFilePath();-
87 }
executed 678 times by 27 tests: end of block
Executed by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • ...
678
88 if (!orig.isEmpty()
!orig.isEmpty()Description
TRUEevaluated 3868 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
FALSEnever evaluated
&& !(orig.length() == 1
orig.length() == 1Description
TRUEevaluated 258 times by 10 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
FALSEevaluated 3610 times by 47 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_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
&& orig[0] == '.'
orig[0] == '.'Description
TRUEevaluated 257 times by 10 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileDialog2
)) {
0-3868
89 if (!result.isEmpty()
!result.isEmpty()Description
TRUEevaluated 421 times by 23 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_qimagereader - unknown status
FALSEevaluated 3190 times by 32 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkDiskCache
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
&& !result.endsWith('/')
!result.endsWith('/')Description
TRUEevaluated 421 times by 23 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_qimagereader - unknown status
FALSEnever evaluated
)
0-3190
90 result.append('/');
executed 421 times by 23 tests: result.append('/');
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QProcess
  • tst_QSettings
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_qimagereader - unknown status
421
91 result.append(orig);-
92 }
executed 3611 times by 47 tests: end of block
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_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
3611
93-
94 if (result.length() == 1
result.length() == 1Description
TRUEnever evaluated
FALSEevaluated 3868 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
&& result[0] == '/'
result[0] == '/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-3868
95 return
never executed: return QFileSystemEntry(result, QFileSystemEntry::FromNativePath());
QFileSystemEntry(result, QFileSystemEntry::FromNativePath());
never executed: return QFileSystemEntry(result, QFileSystemEntry::FromNativePath());
0
96 const bool isDir = result.endsWith('/');-
97-
98-
99-
100-
101-
102 QFileSystemEntry resultingEntry(result, QFileSystemEntry::FromNativePath());-
103 QString stringVersion = QDir::cleanPath(resultingEntry.filePath());-
104 if (isDir
isDirDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QFiledialog
FALSEevaluated 3865 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
)
3-3865
105 stringVersion.append(QLatin1Char('/'));
executed 3 times by 2 tests: stringVersion.append(QLatin1Char('/'));
Executed by:
  • tst_QFileInfo
  • tst_QFiledialog
3
106 return
executed 3868 times by 49 tests: return QFileSystemEntry(stringVersion);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
QFileSystemEntry(stringVersion);
executed 3868 times by 49 tests: return QFileSystemEntry(stringVersion);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLineEdit
  • ...
3868
107}-
108-
109-
110QByteArray QFileSystemEngine::id(const QFileSystemEntry &entry)-
111{-
112 struct stat statResult;-
113 if (stat(entry.nativeFilePath().constData(), &statResult)
stat(entry.nat..., &statResult)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
114 qErrnoWarning("stat() failed for '%s'", entry.nativeFilePath().constData());-
115 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
116 }-
117 QByteArray result = QByteArray::number(quint64(statResult.st_dev), 16);-
118 result += ':';-
119 result += QByteArray::number(quint64(statResult.st_ino));-
120 return
never executed: return result;
result;
never executed: return result;
0
121}-
122-
123-
124QString QFileSystemEngine::resolveUserName(uint userId)-
125{-
126-
127 int size_max = sysconf(_SC_GETPW_R_SIZE_MAX);-
128 if (size_max == -1
size_max == -1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
129 size_max = 1024;
never executed: size_max = 1024;
0
130 QVarLengthArray<char, 1024> buf(size_max);-
131-
132-
133 struct passwd *pw = 0;-
134-
135-
136 struct passwd entry;-
137 getpwuid_r(userId, &entry, buf.data(), buf.size(), &pw);-
138-
139-
140-
141-
142 if (pw
pwDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
)
0-1
143 return
executed 1 time by 1 test: return QFile::decodeName(QByteArray(pw->pw_name));
Executed by:
  • tst_QFileInfo
QFile::decodeName(QByteArray(pw->pw_name));
executed 1 time by 1 test: return QFile::decodeName(QByteArray(pw->pw_name));
Executed by:
  • tst_QFileInfo
1
144 return
never executed: return QString();
QString();
never executed: return QString();
0
145}-
146-
147-
148QString QFileSystemEngine::resolveGroupName(uint groupId)-
149{-
150-
151 int size_max = sysconf(_SC_GETPW_R_SIZE_MAX);-
152 if (size_max == -1
size_max == -1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
153 size_max = 1024;
never executed: size_max = 1024;
0
154 QVarLengthArray<char, 1024> buf(size_max);-
155-
156-
157 struct group *gr = 0;-
158-
159-
160 size_max = sysconf(_SC_GETGR_R_SIZE_MAX);-
161 if (size_max == -1
size_max == -1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
162 size_max = 1024;
never executed: size_max = 1024;
0
163 buf.resize(size_max);-
164 struct group entry;-
165-
166-
167 for (unsigned size = size_max; size < 256000
size < 256000Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
; size += size)
0-1
168 {-
169 buf.resize(size);-
170-
171 if (!getgrgid_r(groupId, &entry, buf.data(), buf.size(), &gr)
!getgrgid_r(gr...f.size(), &gr)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
0-1
172 || (*
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) != 34
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEnever evaluated
)
0
173 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QFileInfo
1
174 }
never executed: end of block
0
175-
176-
177-
178-
179 if (gr
grDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
)
0-1
180 return
executed 1 time by 1 test: return QFile::decodeName(QByteArray(gr->gr_name));
Executed by:
  • tst_QFileInfo
QFile::decodeName(QByteArray(gr->gr_name));
executed 1 time by 1 test: return QFile::decodeName(QByteArray(gr->gr_name));
Executed by:
  • tst_QFileInfo
1
181 return
never executed: return QString();
QString();
never executed: return QString();
0
182}-
183bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemMetaData &data,-
184 QFileSystemMetaData::MetaDataFlags what)-
185{-
186 if (what & QFileSystemMetaData::PosixStatFlags
what & QFileSy...PosixStatFlagsDescription
TRUEevaluated 51918 times by 123 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 169910 times by 230 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
)
51918-169910
187 what |= QFileSystemMetaData::PosixStatFlags;
executed 51918 times by 123 tests: what |= QFileSystemMetaData::PosixStatFlags;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
51918
188-
189 if (what & QFileSystemMetaData::ExistsAttribute
what & QFileSy...xistsAttributeDescription
TRUEevaluated 129864 times by 251 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
FALSEevaluated 91964 times by 168 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
) {
91964-129864
190-
191 what |= QFileSystemMetaData::PosixStatFlags;-
192 }
executed 129864 times by 251 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
129864
193-
194 data.entryFlags &= ~what;-
195-
196 const char * nativeFilePath;-
197 int nativeFilePathLength;-
198 {-
199 const QByteArray &path = entry.nativeFilePath();-
200 nativeFilePath = path.constData();-
201 nativeFilePathLength = path.size();-
202 (void)nativeFilePathLength;;-
203 }-
204-
205 bool entryExists = true;-
206-
207 struct stat64 statBuffer;-
208 bool statBufferValid = false;-
209 if (what & QFileSystemMetaData::LinkType
what & QFileSy...Data::LinkTypeDescription
TRUEevaluated 7162 times by 82 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 214666 times by 258 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
) {
7162-214666
210 if (::
::lstat64(nati...atBuffer) == 0Description
TRUEevaluated 5799 times by 77 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 1363 times by 20 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSaveFile
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTemporaryFile
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_rcc
lstat64(nativeFilePath, &statBuffer) == 0
::lstat64(nati...atBuffer) == 0Description
TRUEevaluated 5799 times by 77 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
FALSEevaluated 1363 times by 20 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSaveFile
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTemporaryFile
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_rcc
) {
1363-5799
211 if (((((
((((statBuffer... == (0120000))Description
TRUEevaluated 1143 times by 25 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSaveFile
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEevaluated 4656 times by 55 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
statBuffer.st_mode)) & 0170000) == (0120000))
((((statBuffer... == (0120000))Description
TRUEevaluated 1143 times by 25 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSaveFile
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEevaluated 4656 times by 55 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
) {
1143-4656
212 data.entryFlags |= QFileSystemMetaData::LinkType;-
213 }
executed 1143 times by 25 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSaveFile
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
else {
1143
214 statBufferValid = true;-
215 data.entryFlags &= ~QFileSystemMetaData::PosixStatFlags;-
216 }
executed 4656 times by 55 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
4656
217 } else {-
218 entryExists = false;-
219 }
executed 1363 times by 20 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSaveFile
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTemporaryFile
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_rcc
1363
220-
221 data.knownFlagsMask |= QFileSystemMetaData::LinkType;-
222 }
executed 7162 times by 82 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • ...
7162
223-
224 if (statBufferValid
statBufferValidDescription
TRUEevaluated 4656 times by 55 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
FALSEevaluated 217172 times by 258 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
|| (what & QFileSystemMetaData::PosixStatFlags)) {
4656-217172
225 if (entryExists
entryExistsDescription
TRUEevaluated 180166 times by 258 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
FALSEevaluated 1239 times by 19 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTemporaryFile
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_rcc
&& !statBufferValid
!statBufferValidDescription
TRUEevaluated 175510 times by 258 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
FALSEevaluated 4656 times by 55 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
)
1239-180166
226 statBufferValid = (::stat64(nativeFilePath, &statBuffer) == 0);
executed 175510 times by 258 tests: statBufferValid = (::stat64(nativeFilePath, &statBuffer) == 0);
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
175510
227-
228 if (statBufferValid
statBufferValidDescription
TRUEevaluated 58676 times by 223 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 122729 times by 200 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • ...
)
58676-122729
229 data.fillFromStatBuf(statBuffer);
executed 58676 times by 223 tests: data.fillFromStatBuf(statBuffer);
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
58676
230 else {-
231 entryExists = false;-
232 data.creationTime_ = 0;-
233 data.modificationTime_ = 0;-
234 data.accessTime_ = 0;-
235 data.size_ = 0;-
236 data.userId_ = (uint) -2;-
237 data.groupId_ = (uint) -2;-
238 }
executed 122729 times by 200 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • ...
122729
239-
240-
241 data.knownFlagsMask |= QFileSystemMetaData::PosixStatFlags-
242 | QFileSystemMetaData::ExistsAttribute;-
243 }
executed 181405 times by 258 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
181405
244 if (what & QFileSystemMetaData::UserPermissions
what & QFileSy...serPermissionsDescription
TRUEevaluated 5852 times by 25 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QThreadStorage
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 215976 times by 258 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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
  • ...
) {
5852-215976
245-
246-
247 if (entryExists
entryExistsDescription
TRUEevaluated 5852 times by 25 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QThreadStorage
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEnever evaluated
) {
0-5852
248 if (what & QFileSystemMetaData::UserReadPermission
what & QFileSy...ReadPermissionDescription
TRUEevaluated 5369 times by 23 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 483 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QThreadStorage
  • tst_languageChange
  • tst_qstandardpaths
) {
483-5369
249 if (::
::access(nativ...ePath, 4) == 0Description
TRUEevaluated 5305 times by 23 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 64 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QTranslator
  • tst_languageChange
access(nativeFilePath, 4) == 0
::access(nativ...ePath, 4) == 0Description
TRUEevaluated 5305 times by 23 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 64 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QTranslator
  • tst_languageChange
)
64-5305
250 data.entryFlags |= QFileSystemMetaData::UserReadPermission;
executed 5305 times by 23 tests: data.entryFlags |= QFileSystemMetaData::UserReadPermission;
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5305
251 }
executed 5369 times by 23 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5369
252 if (what & QFileSystemMetaData::UserWritePermission
what & QFileSy...ritePermissionDescription
TRUEevaluated 5705 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 147 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QThreadStorage
  • tst_QTranslator
  • tst_qstandardpaths
) {
147-5705
253 if (::
::access(nativ...ePath, 2) == 0Description
TRUEevaluated 4746 times by 18 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 959 times by 15 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_languageChange
access(nativeFilePath, 2) == 0
::access(nativ...ePath, 2) == 0Description
TRUEevaluated 4746 times by 18 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 959 times by 15 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_languageChange
)
959-4746
254 data.entryFlags |= QFileSystemMetaData::UserWritePermission;
executed 4746 times by 18 tests: data.entryFlags |= QFileSystemMetaData::UserWritePermission;
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
4746
255 }
executed 5705 times by 21 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5705
256 if (what & QFileSystemMetaData::UserExecutePermission
what & QFileSy...cutePermissionDescription
TRUEevaluated 5258 times by 20 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QThreadStorage
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 594 times by 13 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QTranslator
  • tst_languageChange
) {
594-5258
257 if (::
::access(nativ...ePath, 1) == 0Description
TRUEevaluated 3750 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_languageChange
  • tst_qstandardpaths
FALSEevaluated 1508 times by 17 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_QThreadStorage
  • tst_languageChange
  • tst_qmakelib
access(nativeFilePath, 1) == 0
::access(nativ...ePath, 1) == 0Description
TRUEevaluated 3750 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_languageChange
  • tst_qstandardpaths
FALSEevaluated 1508 times by 17 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_QThreadStorage
  • tst_languageChange
  • tst_qmakelib
)
1508-3750
258 data.entryFlags |= QFileSystemMetaData::UserExecutePermission;
executed 3750 times by 13 tests: data.entryFlags |= QFileSystemMetaData::UserExecutePermission;
Executed by:
  • tst_QCompleter
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_languageChange
  • tst_qstandardpaths
3750
259 }
executed 5258 times by 20 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QThreadStorage
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5258
260 }
executed 5852 times by 25 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QThreadStorage
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5852
261 data.knownFlagsMask |= (what & QFileSystemMetaData::UserPermissions);-
262 }
executed 5852 times by 25 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QThreadStorage
  • tst_QTranslator
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
5852
263-
264 if (what & QFileSystemMetaData::HiddenAttribute-
265 && !data.isHidden()
!data.isHidden()Description
TRUEevaluated 40859 times by 146 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_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
  • ...
FALSEnever evaluated
) {
0-40859
266 QString fileName = entry.fileName();-
267 if ((fileName.size() > 0
fileName.size() > 0Description
TRUEevaluated 40857 times by 146 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_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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
&& fileName.at(0) == QLatin1Char('.')
fileName.at(0)...atin1Char('.')Description
TRUEevaluated 1201 times by 15 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_languageChange
FALSEevaluated 39656 times by 146 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_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
  • ...
)
2-40857
268-
269-
270-
271 )-
272 data.entryFlags |= QFileSystemMetaData::HiddenAttribute;
executed 1201 times by 15 tests: data.entryFlags |= QFileSystemMetaData::HiddenAttribute;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_languageChange
1201
273 data.knownFlagsMask |= QFileSystemMetaData::HiddenAttribute;-
274 }
executed 40859 times by 146 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_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
  • ...
40859
275 if (!entryExists
!entryExistsDescription
TRUEevaluated 122853 times by 200 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • 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_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • ...
FALSEevaluated 98975 times by 223 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
) {
98975-122853
276 data.clearFlags(what);-
277 return
executed 122853 times by 200 tests: return false;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • ...
false;
executed 122853 times by 200 tests: return false;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • 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_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • ...
122853
278 }-
279 return
executed 98975 times by 223 tests: return data.hasFlags(what);
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
data.hasFlags(what);
executed 98975 times by 223 tests: return data.hasFlags(what);
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
98975
280}-
281-
282static bool pathIsDir(const QByteArray &nativeName)-
283{-
284-
285-
286-
287 struct stat64 st;-
288 return
executed 48 times by 5 tests: return ::stat64(nativeName.constData(), &st) == 0 && (st.st_mode & 0170000) == 0040000;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
::
::stat64(nativ...a(), &st) == 0Description
TRUEevaluated 48 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEnever evaluated
stat64(nativeName.constData(), &st) == 0
::stat64(nativ...a(), &st) == 0Description
TRUEevaluated 48 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEnever evaluated
&& (
(st.st_mode & ...00) == 0040000Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_qmakelib
st.st_mode & 0170000) == 0040000
(st.st_mode & ...00) == 0040000Description
TRUEevaluated 46 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_qmakelib
;
executed 48 times by 5 tests: return ::stat64(nativeName.constData(), &st) == 0 && (st.st_mode & 0170000) == 0040000;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
0-48
289};-
290-
291-
292-
293static bool createDirectoryWithParents(const QByteArray &nativeName, bool shouldMkdirFirst = true)-
294{-
295 if (shouldMkdirFirst
shouldMkdirFirstDescription
TRUEevaluated 147 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
FALSEevaluated 153 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
&& ::
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 107 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
FALSEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSettings
mkdir(nativeName, 0777) == 0
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 107 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
FALSEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSettings
)
40-153
296 return
executed 107 times by 6 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
true;
executed 107 times by 6 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
107
297 if ((*
(*__errno_location ()) == 17Description
TRUEevaluated 48 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
__errno_location ()) == 17
(*__errno_location ()) == 17Description
TRUEevaluated 48 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
48-145
298 return
executed 48 times by 5 tests: return pathIsDir(nativeName);
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
pathIsDir(nativeName);
executed 48 times by 5 tests: return pathIsDir(nativeName);
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QNetworkDiskCache
  • tst_qmakelib
48
299 if ((*
(*__errno_location ()) != 2Description
TRUEnever evaluated
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
__errno_location ()) != 2
(*__errno_location ()) != 2Description
TRUEnever evaluated
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
0-145
300 return
never executed: return false;
false;
never executed: return false;
0
301-
302-
303 int slash = nativeName.lastIndexOf('/');-
304 if (slash < 1
slash < 1Description
TRUEnever evaluated
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
0-145
305 return
never executed: return false;
false;
never executed: return false;
0
306-
307 QByteArray parentNativeName = nativeName.left(slash);-
308 if (!createDirectoryWithParents(parentNativeName)
!createDirecto...entNativeName)Description
TRUEnever evaluated
FALSEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
0-145
309 return
never executed: return false;
false;
never executed: return false;
0
310-
311-
312 if (::
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
FALSEnever evaluated
mkdir(nativeName, 0777) == 0
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 145 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
FALSEnever evaluated
)
0-145
313 return
executed 145 times by 6 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
true;
executed 145 times by 6 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
145
314 return
never executed: return (*__errno_location ()) == 17 && pathIsDir(nativeName);
(*
(*__errno_location ()) == 17Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 17
(*__errno_location ()) == 17Description
TRUEnever evaluated
FALSEnever evaluated
&& pathIsDir(nativeName)
pathIsDir(nativeName)Description
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return (*__errno_location ()) == 17 && pathIsDir(nativeName);
0
315}-
316-
317-
318bool QFileSystemEngine::createDirectory(const QFileSystemEntry &entry, bool createParents)-
319{-
320 QString dirName = entry.filePath();-
321-
322-
323 while (dirName.size() > 1
dirName.size() > 1Description
TRUEevaluated 1940 times by 24 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
FALSEnever evaluated
&& dirName.endsWith(QLatin1Char('/'))
dirName.endsWi...tin1Char('/'))Description
TRUEevaluated 134 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
FALSEevaluated 1806 times by 24 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
)
0-1940
324 dirName.chop(1);
executed 134 times by 6 tests: dirName.chop(1);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
134
325-
326-
327 QByteArray nativeName = QFile::encodeName(dirName);-
328 if (::
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 1357 times by 23 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 449 times by 9 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
mkdir(nativeName, 0777) == 0
::mkdir(nativeName, 0777) == 0Description
TRUEevaluated 1357 times by 23 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 449 times by 9 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
449-1357
329 return
executed 1357 times by 23 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
true;
executed 1357 times by 23 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
  • tst_uic
1357
330 if (!createParents
!createParentsDescription
TRUEevaluated 294 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QNetworkDiskCache
FALSEevaluated 155 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
155-294
331 return
executed 294 times by 4 tests: return false;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QNetworkDiskCache
false;
executed 294 times by 4 tests: return false;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QNetworkDiskCache
294
332-
333-
334-
335 int savedErrno = (*__errno_location ());-
336 bool pathChanged;-
337 {-
338 QString cleanName = QDir::cleanPath(dirName);-
339-
340-
341-
342-
343-
344-
345 pathChanged = !dirName.isSharedWith(cleanName);-
346 if (pathChanged
pathChangedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 153 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
)
2-153
347 nativeName = QFile::encodeName(cleanName);
executed 2 times by 1 test: nativeName = QFile::encodeName(cleanName);
Executed by:
  • tst_QFileInfo
2
348 }-
349-
350 (*__errno_location ()) = savedErrno;-
351 return
executed 155 times by 7 tests: return createDirectoryWithParents(nativeName, pathChanged);
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
createDirectoryWithParents(nativeName, pathChanged);
executed 155 times by 7 tests: return createDirectoryWithParents(nativeName, pathChanged);
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_qmakelib
155
352}-
353-
354-
355bool QFileSystemEngine::removeDirectory(const QFileSystemEntry &entry, bool removeEmptyParents)-
356{-
357 if (removeEmptyParents
removeEmptyParentsDescription
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEevaluated 2730 times by 54 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_languageChange
  • ...
) {
67-2730
358 QString dirName = QDir::cleanPath(entry.filePath());-
359 for (int oldslash = 0, slash=dirName.length(); slash > 0
slash > 0Description
TRUEevaluated 154 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEnever evaluated
; oldslash = slash) {
0-154
360 const QByteArray chunk = QFile::encodeName(dirName.left(slash));-
361 struct stat64 st;-
362 if (::
::stat64(chunk...(), &st) != -1Description
TRUEevaluated 151 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
stat64(chunk.constData(), &st) != -1
::stat64(chunk...(), &st) != -1Description
TRUEevaluated 151 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
) {
3-151
363 if ((
(st.st_mode & ...00) != 0040000Description
TRUEnever evaluated
FALSEevaluated 151 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
st.st_mode & 0170000) != 0040000
(st.st_mode & ...00) != 0040000Description
TRUEnever evaluated
FALSEevaluated 151 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
)
0-151
364 return
never executed: return false;
false;
never executed: return false;
0
365 if (::
::rmdir(chunk....stData()) != 0Description
TRUEevaluated 64 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEevaluated 87 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
rmdir(chunk.constData()) != 0
::rmdir(chunk....stData()) != 0Description
TRUEevaluated 64 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEevaluated 87 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
)
64-87
366 return
executed 64 times by 2 tests: return oldslash != 0;
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
oldslash != 0;
executed 64 times by 2 tests: return oldslash != 0;
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
64
367 }
executed 87 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
else {
87
368 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QDir
3
369 }-
370 slash = dirName.lastIndexOf(QDir::separator(), oldslash-1);-
371 }
executed 87 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
87
372 return
never executed: return true;
true;
never executed: return true;
0
373 }-
374 return
executed 2730 times by 54 tests: return rmdir(QFile::encodeName(entry.filePath()).constData()) == 0;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_languageChange
  • ...
rmdir(QFile::encodeName(entry.filePath()).constData()) == 0;
executed 2730 times by 54 tests: return rmdir(QFile::encodeName(entry.filePath()).constData()) == 0;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_languageChange
  • ...
2730
375}-
376-
377-
378bool QFileSystemEngine::createLink(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error)-
379{-
380 if (::
::symlink(sour...stData()) == 0Description
TRUEevaluated 161 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qstandardpaths
FALSEnever evaluated
symlink(source.nativeFilePath().constData(), target.nativeFilePath().constData()) == 0
::symlink(sour...stData()) == 0Description
TRUEevaluated 161 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qstandardpaths
FALSEnever evaluated
)
0-161
381 return
executed 161 times by 8 tests: return true;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qstandardpaths
true;
executed 161 times by 8 tests: return true;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_qstandardpaths
161
382 error = QSystemError((*__errno_location ()), QSystemError::StandardLibraryError);-
383 return
never executed: return false;
false;
never executed: return false;
0
384}-
385-
386-
387bool QFileSystemEngine::copyFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error)-
388{-
389 (void)source;;-
390 (void)target;;-
391 error = QSystemError(38, QSystemError::StandardLibraryError);-
392 return
executed 100 times by 2 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
false;
executed 100 times by 2 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
100
393}-
394-
395-
396bool QFileSystemEngine::renameFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error)-
397{-
398 if (::
::rename(sourc...stData()) == 0Description
TRUEevaluated 816 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
FALSEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
rename(source.nativeFilePath().constData(), target.nativeFilePath().constData()) == 0
::rename(sourc...stData()) == 0Description
TRUEevaluated 816 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
FALSEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
)
4-816
399 return
executed 816 times by 19 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
true;
executed 816 times by 19 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
816
400 error = QSystemError((*__errno_location ()), QSystemError::StandardLibraryError);-
401 return
executed 4 times by 4 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
false;
executed 4 times by 4 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_QTemporaryFile
4
402}-
403-
404-
405bool QFileSystemEngine::removeFile(const QFileSystemEntry &entry, QSystemError &error)-
406{-
407 if (unlink(entry.nativeFilePath().constData()) == 0
unlink(entry.n...stData()) == 0Description
TRUEevaluated 12129 times by 75 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • ...
FALSEevaluated 584 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedMemory
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qmake
  • tst_qstandardpaths
  • tst_selftests - unknown status
)
584-12129
408 return
executed 12129 times by 75 tests: return true;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • ...
true;
executed 12129 times by 75 tests: return true;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • ...
12129
409 error = QSystemError((*__errno_location ()), QSystemError::StandardLibraryError);-
410 return
executed 584 times by 21 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedMemory
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qmake
  • tst_qstandardpaths
  • tst_selftests - unknown status
false;
executed 584 times by 21 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedMemory
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qmake
  • tst_qstandardpaths
  • tst_selftests - unknown status
584
411-
412}-
413-
414-
415bool QFileSystemEngine::setPermissions(const QFileSystemEntry &entry, QFile::Permissions permissions, QSystemError &error, QFileSystemMetaData *data)-
416{-
417 mode_t mode = 0;-
418 if (permissions & (QFile::ReadOwner | QFile::ReadUser)
permissions & ...ile::ReadUser)Description
TRUEevaluated 1052 times by 19 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 19 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QSaveFile
)
19-1052
419 mode |= 0400;
executed 1052 times by 19 tests: mode |= 0400;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1052
420 if (permissions & (QFile::WriteOwner | QFile::WriteUser)
permissions & ...le::WriteUser)Description
TRUEevaluated 963 times by 20 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 108 times by 10 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QTemporaryDir
)
108-963
421 mode |= 0200;
executed 963 times by 20 tests: mode |= 0200;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
963
422 if (permissions & (QFile::ExeOwner | QFile::ExeUser)
permissions & ...File::ExeUser)Description
TRUEevaluated 234 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QLockFile
  • tst_QSaveFile
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 837 times by 19 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
)
234-837
423 mode |= 0100;
executed 234 times by 6 tests: mode |= 0100;
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QLockFile
  • tst_QSaveFile
  • tst_qmakelib
  • tst_qstandardpaths
234
424 if (permissions & QFile::ReadGroup
permissions & QFile::ReadGroupDescription
TRUEevaluated 757 times by 14 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 314 times by 10 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_qstandardpaths
)
314-757
425 mode |= (0400 >> 3);
executed 757 times by 14 tests: mode |= (0400 >> 3);
Executed by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
757
426 if (permissions & QFile::WriteGroup
permissions & ...le::WriteGroupDescription
TRUEnever evaluated
FALSEevaluated 1071 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
)
0-1071
427 mode |= (0200 >> 3);
never executed: mode |= (0200 >> 3);
0
428 if (permissions & QFile::ExeGroup
permissions & QFile::ExeGroupDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1069 times by 20 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qstandardpaths
)
2-1069
429 mode |= (0100 >> 3);
executed 2 times by 2 tests: mode |= (0100 >> 3);
Executed by:
  • tst_qmakelib
  • tst_qstandardpaths
2
430 if (permissions & QFile::ReadOther
permissions & QFile::ReadOtherDescription
TRUEevaluated 758 times by 14 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 313 times by 11 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_qstandardpaths
)
313-758
431 mode |= ((0400 >> 3) >> 3);
executed 758 times by 14 tests: mode |= ((0400 >> 3) >> 3);
Executed by:
  • tst_QColorDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
758
432 if (permissions & QFile::WriteOther
permissions & ...le::WriteOtherDescription
TRUEevaluated 218 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemModel
FALSEevaluated 853 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
)
218-853
433 mode |= ((0200 >> 3) >> 3);
executed 218 times by 2 tests: mode |= ((0200 >> 3) >> 3);
Executed by:
  • tst_QFile
  • tst_QFileSystemModel
218
434 if (permissions & QFile::ExeOther
permissions & QFile::ExeOtherDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QFileSystemWatcher
  • tst_qmakelib
FALSEevaluated 1067 times by 20 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qstandardpaths
)
4-1067
435 mode |= ((0100 >> 3) >> 3);
executed 4 times by 2 tests: mode |= ((0100 >> 3) >> 3);
Executed by:
  • tst_QFileSystemWatcher
  • tst_qmakelib
4
436-
437 bool success = ::chmod(entry.nativeFilePath().constData(), mode) == 0;-
438 if (success
successDescription
TRUEevaluated 1070 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
&& data
dataDescription
TRUEnever evaluated
FALSEevaluated 1070 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
) {
0-1070
439 data->entryFlags &= ~QFileSystemMetaData::Permissions;-
440 data->entryFlags |= QFileSystemMetaData::MetaDataFlag(uint(permissions));-
441 data->knownFlagsMask |= QFileSystemMetaData::Permissions;-
442 }
never executed: end of block
0
443 if (!success
!successDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 1070 times by 21 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
)
1-1070
444 error = QSystemError((*__errno_location ()), QSystemError::StandardLibraryError);
executed 1 time by 1 test: error = QSystemError((*__errno_location ()), QSystemError::StandardLibraryError);
Executed by:
  • tst_QFile
1
445 return
executed 1071 times by 21 tests: return success;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
success;
executed 1071 times by 21 tests: return success;
Executed by:
  • tst_QColorDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1071
446}-
447-
448QString QFileSystemEngine::homePath()-
449{-
450 QString home = QFile::decodeName(qgetenv("HOME"));-
451 if (home.isEmpty()
home.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 1926 times by 62 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • ...
)
1-1926
452 home = rootPath();
executed 1 time by 1 test: home = rootPath();
Executed by:
  • tst_QDir
1
453 return
executed 1927 times by 62 tests: return QDir::cleanPath(home);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • ...
QDir::cleanPath(home);
executed 1927 times by 62 tests: return QDir::cleanPath(home);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • ...
1927
454}-
455-
456QString QFileSystemEngine::rootPath()-
457{-
458 return
executed 122 times by 16 tests: return QLatin1String("/");
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStorageInfo
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
QLatin1String("/");
executed 122 times by 16 tests: return QLatin1String("/");
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStorageInfo
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
122
459}-
460-
461QString QFileSystemEngine::tempPath()-
462{-
463 QString temp = QFile::decodeName(qgetenv("TMPDIR"));-
464 if (temp.isEmpty()
temp.isEmpty()Description
TRUEevaluated 8777 times by 48 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • tst_QSaveFile
  • ...
FALSEnever evaluated
) {
0-8777
465-
466-
467-
468-
469-
470 {-
471-
472 temp = QLatin1String("/tmp");-
473 }-
474 }
executed 8777 times by 48 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • tst_QSaveFile
  • ...
8777
475 return
executed 8777 times by 48 tests: return QDir::cleanPath(temp);
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • tst_QSaveFile
  • ...
QDir::cleanPath(temp);
executed 8777 times by 48 tests: return QDir::cleanPath(temp);
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • tst_QSaveFile
  • ...
8777
476-
477}-
478-
479bool QFileSystemEngine::setCurrentPath(const QFileSystemEntry &path)-
480{-
481 int r;-
482 r = ::chdir(path.nativeFilePath().constData());-
483 return
executed 494 times by 25 tests: return r >= 0;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QClipboard
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileInfo
  • tst_QIODevice
  • tst_QLockFile
  • tst_QObject
  • tst_QProcess
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qlibrary - unknown status
  • tst_qmake
  • tst_qstandardpaths
  • tst_rcc
r >= 0;
executed 494 times by 25 tests: return r >= 0;
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QClipboard
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileInfo
  • tst_QIODevice
  • tst_QLockFile
  • tst_QObject
  • tst_QProcess
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_QTextBrowser
  • tst_QTextStream
  • tst_QTranslator
  • tst_QUuid
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qlibrary - unknown status
  • tst_qmake
  • tst_qstandardpaths
  • tst_rcc
494
484}-
485-
486QFileSystemEntry QFileSystemEngine::currentPath()-
487{-
488 QFileSystemEntry result;-
489-
490-
491-
492-
493-
494-
495-
496 char currentName[4096 +1];-
497 if (::
::getcwd(currentName, 4096)Description
TRUEevaluated 2175 times by 56 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
FALSEnever evaluated
getcwd(currentName, 4096)
::getcwd(currentName, 4096)Description
TRUEevaluated 2175 times by 56 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
FALSEnever evaluated
) {
0-2175
498-
499-
500-
501-
502-
503-
504-
505 result = QFileSystemEntry(QByteArray(currentName), QFileSystemEntry::FromNativePath());-
506 }
executed 2175 times by 56 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
2175
507-
508 if (result.isEmpty()
result.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2175 times by 56 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
)
0-2175
509 QMessageLogger(__FILE__, 793, __PRETTY_FUNCTION__).warning("QFileSystemEngine::currentPath: getcwd() failed");
never executed: QMessageLogger(__FILE__, 793, __PRETTY_FUNCTION__).warning("QFileSystemEngine::currentPath: getcwd() failed");
0
510-
511-
512 return
executed 2175 times by 56 tests: return result;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
result;
executed 2175 times by 56 tests: return result;
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QCoreApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • ...
2175
513}-
514-
Switch to Source codePreprocessed file

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