OpenCoverage

qdir.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qdir.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13QDirPrivate::QDirPrivate(const QString &path, const QStringList &nameFilters_, QDir::SortFlags sort_, QDir::Filters filters_)-
14 : QSharedData()-
15 , fileListsInitialized(false)-
16 , nameFilters(nameFilters_)-
17 , sort(sort_)-
18 , filters(filters_)-
19{-
20 setPath(path.isEmpty() ? QString::fromLatin1(".") : path);-
21-
22 bool empty = nameFilters.isEmpty();-
23 if (!empty
!emptyDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEevaluated 18066 times by 248 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
) {
27-18066
24 empty = true;-
25 for (int i = 0; i < nameFilters.size()
i < nameFilters.size()Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEnever evaluated
; ++i) {
0-27
26 if (!nameFilters.at(i).isEmpty()
!nameFilters.at(i).isEmpty()Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEnever evaluated
) {
0-27
27 empty = false;-
28 break;
executed 27 times by 2 tests: break;
Executed by:
  • tst_QDir
  • tst_QDirModel
27
29 }-
30 }
never executed: end of block
0
31 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirModel
27
32 if (empty
emptyDescription
TRUEevaluated 18066 times by 248 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
)
27-18066
33 nameFilters = QStringList(QString::fromLatin1("*"));
executed 18066 times by 248 tests: nameFilters = QStringList(QString::fromLatin1("*"));
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
18066
34}
executed 18093 times by 248 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
18093
35-
36QDirPrivate::QDirPrivate(const QDirPrivate &copy)-
37 : QSharedData(copy)-
38 , fileListsInitialized(false)-
39 , nameFilters(copy.nameFilters)-
40 , sort(copy.sort)-
41 , filters(copy.filters)-
42 , dirEntry(copy.dirEntry)-
43 , metaData(copy.metaData)-
44{-
45}
executed 375 times by 14 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
375
46-
47bool QDirPrivate::exists() const-
48{-
49 if (fileEngine.isNull()
fileEngine.isNull()Description
TRUEevaluated 3906 times by 64 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPlugin
  • tst_QPrinter
  • ...
FALSEevaluated 111 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSelector
) {
111-3906
50 QFileSystemEngine::fillMetaData(dirEntry, metaData,-
51 QFileSystemMetaData::ExistsAttribute | QFileSystemMetaData::DirectoryType);-
52 return
executed 3906 times by 64 tests: return metaData.exists() && metaData.isDirectory();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPlugin
  • tst_QPrinter
  • ...
metaData.exists() && metaData.isDirectory();
executed 3906 times by 64 tests: return metaData.exists() && metaData.isDirectory();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPlugin
  • tst_QPrinter
  • ...
3906
53 }-
54 const QAbstractFileEngine::FileFlags info =-
55 fileEngine->fileFlags(QAbstractFileEngine::DirectoryType-
56 | QAbstractFileEngine::ExistsFlag-
57 | QAbstractFileEngine::Refresh);-
58 if (!(info & QAbstractFileEngine::DirectoryType)
!(info & QAbst...DirectoryType)Description
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSelector
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSelector
)
27-84
59 return
executed 84 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileSelector
false;
executed 84 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileSelector
84
60 return
executed 27 times by 2 tests: return info & QAbstractFileEngine::ExistsFlag;
Executed by:
  • tst_QDir
  • tst_QFileSelector
info & QAbstractFileEngine::ExistsFlag;
executed 27 times by 2 tests: return info & QAbstractFileEngine::ExistsFlag;
Executed by:
  • tst_QDir
  • tst_QFileSelector
27
61}-
62-
63-
64inline QChar QDirPrivate::getFilterSepChar(const QString &nameFilter)-
65{-
66 QChar sep(QLatin1Char(';'));-
67 int i = nameFilter.indexOf(sep, 0);-
68 if (i == -1
i == -1Description
TRUEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
&& nameFilter.indexOf(QLatin1Char(' '), 0) != -1
nameFilter.ind...' '), 0) != -1Description
TRUEnever evaluated
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
)
0-29
69 sep = QChar(QLatin1Char(' '));
never executed: sep = QChar(QLatin1Char(' '));
0
70 return
executed 32 times by 2 tests: return sep;
Executed by:
  • tst_QDir
  • tst_QDirModel
sep;
executed 32 times by 2 tests: return sep;
Executed by:
  • tst_QDir
  • tst_QDirModel
32
71}-
72-
73-
74inline QStringList QDirPrivate::splitFilters(const QString &nameFilter, QChar sep)-
75{-
76 if (sep.isNull()
sep.isNull()Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEnever evaluated
)
0-32
77 sep = getFilterSepChar(nameFilter);
executed 32 times by 2 tests: sep = getFilterSepChar(nameFilter);
Executed by:
  • tst_QDir
  • tst_QDirModel
32
78 QStringList ret = nameFilter.split(sep);-
79 for (int i = 0; i < ret.count()
i < ret.count()Description
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
; ++i)
32-35
80 ret[i] = ret[i].trimmed();
executed 35 times by 2 tests: ret[i] = ret[i].trimmed();
Executed by:
  • tst_QDir
  • tst_QDirModel
35
81 return
executed 32 times by 2 tests: return ret;
Executed by:
  • tst_QDir
  • tst_QDirModel
ret;
executed 32 times by 2 tests: return ret;
Executed by:
  • tst_QDir
  • tst_QDirModel
32
82}-
83-
84inline void QDirPrivate::setPath(const QString &path)-
85{-
86 QString p = QDir::fromNativeSeparators(path);-
87 if (p.endsWith(QLatin1Char('/'))
p.endsWith(QLatin1Char('/'))Description
TRUEevaluated 1093 times by 19 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_QSidebar
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 17927 times by 247 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
1093-17927
88 && p.length() > 1
p.length() > 1Description
TRUEevaluated 769 times by 15 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 324 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QSidebar
  • tst_selftests - unknown status
324-769
89-
90-
91-
92-
93-
94-
95-
96 ) {-
97 p.truncate(p.length() - 1);-
98 }
executed 769 times by 15 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
769
99-
100 dirEntry = QFileSystemEntry(p, QFileSystemEntry::FromInternalPath());-
101 metaData.clear();-
102 initFileEngine();-
103 clearFileLists();-
104 absoluteDirEntry = QFileSystemEntry();-
105}
executed 19020 times by 248 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
19020
106-
107inline void QDirPrivate::clearFileLists()-
108{-
109 fileListsInitialized = false;-
110 files.clear();-
111 fileInfos.clear();-
112}
executed 19723 times by 248 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
19723
113-
114inline void QDirPrivate::resolveAbsoluteEntry() const-
115{-
116 if (!absoluteDirEntry.isEmpty()
!absoluteDirEntry.isEmpty()Description
TRUEevaluated 5149 times by 14 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSidebar
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_uic
FALSEevaluated 8343 times by 134 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
|| dirEntry.isEmpty()
dirEntry.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 8343 times by 134 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
)
0-8343
117 return;
executed 5149 times by 14 tests: return;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSidebar
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qmakelib
  • tst_uic
5149
118-
119 QString absoluteName;-
120 if (fileEngine.isNull()
fileEngine.isNull()Description
TRUEevaluated 8338 times by 134 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QMovie
) {
5-8338
121 if (!dirEntry.isRelative()
!dirEntry.isRelative()Description
TRUEevaluated 7949 times by 133 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 389 times by 14 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QNetworkDiskCache
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qimagereader - unknown status
&& dirEntry.isClean()
dirEntry.isClean()Description
TRUEevaluated 7898 times by 133 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFiledialog
) {
51-7949
122 absoluteDirEntry = dirEntry;-
123 return;
executed 7898 times by 133 tests: return;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • ...
7898
124 }-
125-
126 absoluteName = QFileSystemEngine::absoluteName(dirEntry).filePath();-
127 }
executed 440 times by 14 tests: end of block
Executed by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QNetworkDiskCache
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qimagereader - unknown status
else {
440
128 absoluteName = fileEngine->fileName(QAbstractFileEngine::AbsoluteName);-
129 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QMovie
5
130-
131 absoluteDirEntry = QFileSystemEntry(QDir::cleanPath(absoluteName), QFileSystemEntry::FromInternalPath());-
132}
executed 445 times by 15 tests: end of block
Executed by:
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qimagereader - unknown status
445
133-
134-
135struct QDirSortItem-
136{-
137 mutable QString filename_cache;-
138 mutable QString suffix_cache;-
139 QFileInfo item;-
140};-
141-
142-
143class QDirSortItemComparator-
144{-
145 int qt_cmp_si_sort_flags;-
146public:-
147 QDirSortItemComparator(int flags) : qt_cmp_si_sort_flags(flags) {}
executed 970 times by 128 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
970
148 bool operator()(const QDirSortItem &, const QDirSortItem &) const;-
149};-
150-
151bool QDirSortItemComparator::operator()(const QDirSortItem &n1, const QDirSortItem &n2) const-
152{-
153 const QDirSortItem* f1 = &n1;-
154 const QDirSortItem* f2 = &n2;-
155-
156 if ((
(qt_cmp_si_sor...ir::DirsFirst)Description
TRUEevaluated 5814 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
FALSEevaluated 64747 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
qt_cmp_si_sort_flags & QDir::DirsFirst)
(qt_cmp_si_sor...ir::DirsFirst)Description
TRUEevaluated 5814 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
FALSEevaluated 64747 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
&& (
(f1->item.isDi...>item.isDir())Description
TRUEevaluated 671 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
FALSEevaluated 5143 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
f1->item.isDir() != f2->item.isDir())
(f1->item.isDi...>item.isDir())Description
TRUEevaluated 671 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
FALSEevaluated 5143 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
)
671-64747
157 return
executed 671 times by 4 tests: return f1->item.isDir();
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
f1->item.isDir();
executed 671 times by 4 tests: return f1->item.isDir();
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
671
158 if ((
(qt_cmp_si_sor...Dir::DirsLast)Description
TRUEevaluated 294 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 69596 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
qt_cmp_si_sort_flags & QDir::DirsLast)
(qt_cmp_si_sor...Dir::DirsLast)Description
TRUEevaluated 294 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 69596 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
&& (
(f1->item.isDi...>item.isDir())Description
TRUEevaluated 102 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 192 times by 1 test
Evaluated by:
  • tst_QDir
f1->item.isDir() != f2->item.isDir())
(f1->item.isDi...>item.isDir())Description
TRUEevaluated 102 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 192 times by 1 test
Evaluated by:
  • tst_QDir
)
102-69596
159 return
executed 102 times by 1 test: return !f1->item.isDir();
Executed by:
  • tst_QDir
!f1->item.isDir();
executed 102 times by 1 test: return !f1->item.isDir();
Executed by:
  • tst_QDir
102
160-
161 qint64 r = 0;-
162 int sortBy = (qt_cmp_si_sort_flags & QDir::SortByMask)-
163 | (qt_cmp_si_sort_flags & QDir::Type);-
164-
165 switch (sortBy) {-
166 case
executed 307 times by 2 tests: case QDir::Time:
Executed by:
  • tst_QDir
  • tst_QItemModel
QDir::Time:
executed 307 times by 2 tests: case QDir::Time:
Executed by:
  • tst_QDir
  • tst_QItemModel
{
307
167 QDateTime firstModified = f1->item.lastModified();-
168 QDateTime secondModified = f2->item.lastModified();-
169-
170-
171-
172-
173-
174 firstModified.setTimeSpec(Qt::UTC);-
175 secondModified.setTimeSpec(Qt::UTC);-
176-
177 r = firstModified.msecsTo(secondModified);-
178 break;
executed 307 times by 2 tests: break;
Executed by:
  • tst_QDir
  • tst_QItemModel
307
179 }-
180 case
executed 486 times by 2 tests: case QDir::Size:
Executed by:
  • tst_QDir
  • tst_QItemModel
QDir::Size:
executed 486 times by 2 tests: case QDir::Size:
Executed by:
  • tst_QDir
  • tst_QItemModel
486
181 r = f2->item.size() - f1->item.size();-
182 break;
executed 486 times by 2 tests: break;
Executed by:
  • tst_QDir
  • tst_QItemModel
486
183 case
executed 795 times by 2 tests: case QDir::Type:
Executed by:
  • tst_QDir
  • tst_QItemModel
QDir::Type:
executed 795 times by 2 tests: case QDir::Type:
Executed by:
  • tst_QDir
  • tst_QItemModel
795
184 {-
185 bool ic = qt_cmp_si_sort_flags & QDir::IgnoreCase;-
186-
187 if (f1->suffix_cache.isNull()
f1->suffix_cache.isNull()Description
TRUEevaluated 464 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
FALSEevaluated 331 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
)
331-464
188 f1->suffix_cache = ic
icDescription
TRUEevaluated 304 times by 1 test
Evaluated by:
  • tst_QItemModel
FALSEevaluated 160 times by 1 test
Evaluated by:
  • tst_QDir
? f1->item.suffix().toLower()
executed 464 times by 2 tests: f1->suffix_cache = ic ? f1->item.suffix().toLower() : f1->item.suffix();
Executed by:
  • tst_QDir
  • tst_QItemModel
160-464
189 : f1->item.suffix();
executed 464 times by 2 tests: f1->suffix_cache = ic ? f1->item.suffix().toLower() : f1->item.suffix();
Executed by:
  • tst_QDir
  • tst_QItemModel
464
190 if (f2->suffix_cache.isNull()
f2->suffix_cache.isNull()Description
TRUEevaluated 428 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
FALSEevaluated 367 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
)
367-428
191 f2->suffix_cache = ic
icDescription
TRUEevaluated 291 times by 1 test
Evaluated by:
  • tst_QItemModel
FALSEevaluated 137 times by 1 test
Evaluated by:
  • tst_QDir
? f2->item.suffix().toLower()
executed 428 times by 2 tests: f2->suffix_cache = ic ? f2->item.suffix().toLower() : f2->item.suffix();
Executed by:
  • tst_QDir
  • tst_QItemModel
137-428
192 : f2->item.suffix();
executed 428 times by 2 tests: f2->suffix_cache = ic ? f2->item.suffix().toLower() : f2->item.suffix();
Executed by:
  • tst_QDir
  • tst_QItemModel
428
193-
194 r = qt_cmp_si_sort_flags & QDir::LocaleAware
qt_cmp_si_sort...r::LocaleAwareDescription
TRUEnever evaluated
FALSEevaluated 795 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
0-795
195 ? f1->suffix_cache.localeAwareCompare(f2->suffix_cache)-
196 : f1->suffix_cache.compare(f2->suffix_cache);-
197 }-
198 break;
executed 795 times by 2 tests: break;
Executed by:
  • tst_QDir
  • tst_QItemModel
795
199 default
executed 68200 times by 128 tests: default:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
:
executed 68200 times by 128 tests: default:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
68200
200 ;-
201 }
executed 68200 times by 128 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
68200
202-
203 if (r == 0
r == 0Description
TRUEevaluated 69172 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 616 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QItemModel
&& sortBy != QDir::Unsorted
sortBy != QDir::UnsortedDescription
TRUEevaluated 69172 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEnever evaluated
) {
0-69172
204-
205 bool ic = qt_cmp_si_sort_flags & QDir::IgnoreCase;-
206-
207 if (f1->filename_cache.isNull()
f1->filename_cache.isNull()Description
TRUEevaluated 7573 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 61599 times by 126 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
)
7573-61599
208 f1->filename_cache = ic
icDescription
TRUEevaluated 3171 times by 126 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 4402 times by 6 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QXmlSimpleReader
? f1->item.fileName().toLower()
executed 7573 times by 128 tests: f1->filename_cache = ic ? f1->item.fileName().toLower() : f1->item.fileName();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
3171-7573
209 : f1->item.fileName();
executed 7573 times by 128 tests: f1->filename_cache = ic ? f1->item.fileName().toLower() : f1->item.fileName();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
7573
210 if (f2->filename_cache.isNull()
f2->filename_cache.isNull()Description
TRUEevaluated 4929 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 64243 times by 127 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
)
4929-64243
211 f2->filename_cache = ic
icDescription
TRUEevaluated 1327 times by 126 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 3602 times by 6 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QXmlSimpleReader
? f2->item.fileName().toLower()
executed 4929 times by 128 tests: f2->filename_cache = ic ? f2->item.fileName().toLower() : f2->item.fileName();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
1327-4929
212 : f2->item.fileName();
executed 4929 times by 128 tests: f2->filename_cache = ic ? f2->item.fileName().toLower() : f2->item.fileName();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
4929
213-
214 r = qt_cmp_si_sort_flags & QDir::LocaleAware
qt_cmp_si_sort...r::LocaleAwareDescription
TRUEnever evaluated
FALSEevaluated 69172 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
0-69172
215 ? f1->filename_cache.localeAwareCompare(f2->filename_cache)-
216 : f1->filename_cache.compare(f2->filename_cache);-
217 }
executed 69172 times by 128 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
69172
218 if (qt_cmp_si_sort_flags & QDir::Reversed
qt_cmp_si_sort...QDir::ReversedDescription
TRUEevaluated 1579 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEevaluated 68209 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
)
1579-68209
219 return
executed 1579 times by 2 tests: return r > 0;
Executed by:
  • tst_QDir
  • tst_QDirModel
r > 0;
executed 1579 times by 2 tests: return r > 0;
Executed by:
  • tst_QDir
  • tst_QDirModel
1579
220 return
executed 68209 times by 128 tests: return r < 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
r < 0;
executed 68209 times by 128 tests: return r < 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
68209
221}-
222-
223inline void QDirPrivate::sortFileList(QDir::SortFlags sort, QFileInfoList &l,-
224 QStringList *names, QFileInfoList *infos)-
225{-
226-
227 int n = l.size();-
228 if (n > 0
n > 0Description
TRUEevaluated 1154 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 320 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_qmakelib
) {
320-1154
229 if (n == 1
n == 1Description
TRUEevaluated 184 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QResourceEngine
FALSEevaluated 970 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
|| (
(sort & QDir::...QDir::UnsortedDescription
TRUEnever evaluated
FALSEevaluated 970 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
sort & QDir::SortByMask) == QDir::Unsorted
(sort & QDir::...QDir::UnsortedDescription
TRUEnever evaluated
FALSEevaluated 970 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
) {
0-970
230 if (infos
infosDescription
TRUEevaluated 121 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
FALSEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
)
63-121
231 *
executed 121 times by 4 tests: *infos = l;
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
infos = l;
executed 121 times by 4 tests: *infos = l;
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
121
232 if (names
namesDescription
TRUEevaluated 65 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
FALSEevaluated 119 times by 3 tests
Evaluated by:
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
) {
65-119
233 for (int i = 0; i < n
i < nDescription
TRUEevaluated 65 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
FALSEevaluated 65 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
; ++i)
65
234 names->append(l.at(i).fileName());
executed 65 times by 3 tests: names->append(l.at(i).fileName());
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
65
235 }
executed 65 times by 3 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QMimeDatabase
65
236 }
executed 184 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QResourceEngine
else {
184
237 QScopedArrayPointer<QDirSortItem> si(new QDirSortItem[n]);-
238 for (int i = 0; i < n
i < nDescription
TRUEevaluated 12585 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
FALSEevaluated 970 times by 128 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
; ++i)
970-12585
239 si[i].item = l.at(i);
executed 12585 times by 128 tests: si[i].item = l.at(i);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
12585
240 std::sort(si.data(), si.data() + n, QDirSortItemComparator(sort));-
241-
242 if (infos
infosDescription
TRUEevaluated 611 times by 18 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 359 times by 116 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
359-611
243 for (int i = 0; i < n
i < nDescription
TRUEevaluated 10063 times by 18 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 611 times by 18 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_rcc
  • tst_uic
; ++i)
611-10063
244 infos->append(si[i].item);
executed 10063 times by 18 tests: infos->append(si[i].item);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_rcc
  • tst_uic
10063
245 }
executed 611 times by 18 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTemporaryDir
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_rcc
  • tst_uic
611
246 if (names
namesDescription
TRUEevaluated 418 times by 119 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 552 times by 14 tests
Evaluated by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
) {
418-552
247 for (int i = 0; i < n
i < nDescription
TRUEevaluated 2848 times by 119 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 418 times by 119 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
; ++i)
418-2848
248 names->append(si[i].item.fileName());
executed 2848 times by 119 tests: names->append(si[i].item.fileName());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
2848
249 }
executed 418 times by 119 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
418
250 }
executed 970 times by 128 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
970
251 }-
252}
executed 1474 times by 129 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
1474
253inline void QDirPrivate::initFileLists(const QDir &dir) const-
254{-
255 if (!fileListsInitialized
!fileListsInitializedDescription
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
FALSEevaluated 95 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_qmakelib
) {
66-95
256 QFileInfoList l;-
257 QDirIterator it(dir);-
258 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 328 times by 6 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
FALSEevaluated 66 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
) {
66-328
259 it.next();-
260 l.append(it.fileInfo());-
261 }
executed 328 times by 6 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
328
262 sortFileList(sort, l, &files, &fileInfos);-
263 fileListsInitialized = true;-
264 }
executed 66 times by 7 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
66
265}
executed 161 times by 7 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_qmakelib
161
266-
267inline void QDirPrivate::initFileEngine()-
268{-
269 fileEngine.reset(QFileSystemEngine::resolveEntryAndCreateLegacyEngine(dirEntry, metaData));-
270}
executed 19723 times by 248 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
19723
271QDir::QDir(QDirPrivate &p) : d_ptr(&p)-
272{-
273}
never executed: end of block
0
274-
275-
276-
277-
278-
279-
280-
281QDir::QDir(const QString &path) : d_ptr(new QDirPrivate(path))-
282{-
283}
executed 18066 times by 248 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • ...
18066
284QDir::QDir(const QString &path, const QString &nameFilter,-
285 SortFlags sort, Filters filters)-
286 : d_ptr(new QDirPrivate(path, QDir::nameFiltersFromString(nameFilter), sort, filters))-
287{-
288}
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirModel
27
289-
290-
291-
292-
293-
294-
295-
296QDir::QDir(const QDir &dir)-
297 : d_ptr(dir.d_ptr)-
298{-
299}
executed 324 times by 7 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
324
300-
301-
302-
303-
304-
305QDir::~QDir()-
306{-
307}-
308void QDir::setPath(const QString &path)-
309{-
310 d_ptr->setPath(path);-
311}
executed 873 times by 12 tests: end of block
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTemporaryDir
  • tst_languageChange
873
312QString QDir::path() const-
313{-
314 const QDirPrivate* d = d_ptr.constData();-
315 return
executed 17022 times by 74 tests: return d->dirEntry.filePath();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMessageBox
  • ...
d->dirEntry.filePath();
executed 17022 times by 74 tests: return d->dirEntry.filePath();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMessageBox
  • ...
17022
316}-
317QString QDir::absolutePath() const-
318{-
319 const QDirPrivate* d = d_ptr.constData();-
320 d->resolveAbsoluteEntry();-
321 return
executed 12064 times by 65 tests: return d->absoluteDirEntry.filePath();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • ...
d->absoluteDirEntry.filePath();
executed 12064 times by 65 tests: return d->absoluteDirEntry.filePath();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • ...
12064
322}-
323QString QDir::canonicalPath() const-
324{-
325 const QDirPrivate* d = d_ptr.constData();-
326 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 1186 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDir
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QProcess
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
) {
1-1186
327 QFileSystemEntry answer = QFileSystemEngine::canonicalName(d->dirEntry, d->metaData);-
328 return
executed 1186 times by 36 tests: return answer.filePath();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDir
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QProcess
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • ...
answer.filePath();
executed 1186 times by 36 tests: return answer.filePath();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDir
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QProcess
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • ...
1186
329 }-
330 return
executed 1 time by 1 test: return d->fileEngine->fileName(QAbstractFileEngine::CanonicalName);
Executed by:
  • tst_QDir
d->fileEngine->fileName(QAbstractFileEngine::CanonicalName);
executed 1 time by 1 test: return d->fileEngine->fileName(QAbstractFileEngine::CanonicalName);
Executed by:
  • tst_QDir
1
331}-
332QString QDir::dirName() const-
333{-
334 const QDirPrivate* d = d_ptr.constData();-
335 return
executed 25 times by 6 tests: return d->dirEntry.fileName();
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QTemporaryDir
  • tst_QTranslator
d->dirEntry.fileName();
executed 25 times by 6 tests: return d->dirEntry.fileName();
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QTemporaryDir
  • tst_QTranslator
25
336}-
337QString QDir::filePath(const QString &fileName) const-
338{-
339 const QDirPrivate* d = d_ptr.constData();-
340 if (isAbsolutePath(fileName)
isAbsolutePath(fileName)Description
TRUEevaluated 4239 times by 59 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • ...
FALSEevaluated 7833 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
)
4239-7833
341 return
executed 4239 times by 59 tests: return fileName;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • ...
fileName;
executed 4239 times by 59 tests: return fileName;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • ...
4239
342-
343 QString ret = d->dirEntry.filePath();-
344 if (!fileName.isEmpty()
!fileName.isEmpty()Description
TRUEevaluated 7832 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
) {
1-7832
345 if (!ret.isEmpty()
!ret.isEmpty()Description
TRUEevaluated 7832 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
FALSEnever evaluated
&& ret[(int)ret.length()-1] != QLatin1Char('/')
ret[(int)ret.l...atin1Char('/')Description
TRUEevaluated 7831 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
&& fileName[0] != QLatin1Char('/')
fileName[0] !=...atin1Char('/')Description
TRUEevaluated 7831 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
FALSEnever evaluated
)
0-7832
346 ret += QLatin1Char('/');
executed 7831 times by 217 tests: ret += QLatin1Char('/');
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
7831
347 ret += fileName;-
348 }
executed 7832 times by 217 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
7832
349 return
executed 7833 times by 217 tests: return ret;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
ret;
executed 7833 times by 217 tests: return ret;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • ...
7833
350}-
351QString QDir::absoluteFilePath(const QString &fileName) const-
352{-
353 const QDirPrivate* d = d_ptr.constData();-
354 if (isAbsolutePath(fileName)
isAbsolutePath(fileName)Description
TRUEevaluated 240 times by 6 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1419 times by 88 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFrame
  • tst_QFtp
  • ...
)
240-1419
355 return
executed 240 times by 6 tests: return fileName;
Executed by:
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qmakelib
  • tst_qstandardpaths
fileName;
executed 240 times by 6 tests: return fileName;
Executed by:
  • tst_NetworkSelfTest
  • tst_QDir
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_qmakelib
  • tst_qstandardpaths
240
356-
357 d->resolveAbsoluteEntry();-
358 const QString absoluteDirPath = d->absoluteDirEntry.filePath();-
359 if (fileName.isEmpty()
fileName.isEmpty()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_qmakelib
FALSEevaluated 1415 times by 88 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFrame
  • tst_QFtp
  • ...
)
4-1415
360 return
executed 4 times by 2 tests: return absoluteDirPath;
Executed by:
  • tst_QDir
  • tst_qmakelib
absoluteDirPath;
executed 4 times by 2 tests: return absoluteDirPath;
Executed by:
  • tst_QDir
  • tst_qmakelib
4
361 if (!absoluteDirPath.endsWith(QLatin1Char('/'))
!absoluteDirPa...tin1Char('/'))Description
TRUEevaluated 1414 times by 88 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFrame
  • tst_QFtp
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
)
1-1414
362 return
executed 1414 times by 88 tests: return absoluteDirPath % QLatin1Char('/') % fileName;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFrame
  • tst_QFtp
  • ...
absoluteDirPath % QLatin1Char('/') % fileName;
executed 1414 times by 88 tests: return absoluteDirPath % QLatin1Char('/') % fileName;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFrame
  • tst_QFtp
  • ...
1414
363 return
executed 1 time by 1 test: return absoluteDirPath % fileName;
Executed by:
  • tst_QDir
absoluteDirPath % fileName;
executed 1 time by 1 test: return absoluteDirPath % fileName;
Executed by:
  • tst_QDir
1
364}-
365QString QDir::relativeFilePath(const QString &fileName) const-
366{-
367 QString dir = cleanPath(absolutePath());-
368 QString file = cleanPath(fileName);-
369-
370 if (isRelativePath(file)
isRelativePath(file)Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QTemporaryDir
FALSEevaluated 66 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
|| isRelativePath(dir)
isRelativePath(dir)Description
TRUEnever evaluated
FALSEevaluated 66 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
)
0-66
371 return
executed 41 times by 2 tests: return file;
Executed by:
  • tst_QDir
  • tst_QTemporaryDir
file;
executed 41 times by 2 tests: return file;
Executed by:
  • tst_QDir
  • tst_QTemporaryDir
41
372 QString result;-
373 QVector<QStringRef> dirElts = dir.splitRef(QLatin1Char('/'), QString::SkipEmptyParts);-
374 QVector<QStringRef> fileElts = file.splitRef(QLatin1Char('/'), QString::SkipEmptyParts);-
375-
376 int i = 0;-
377 while (i < dirElts.size()
i < dirElts.size()Description
TRUEevaluated 132 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
FALSEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QTemporaryFile
  • tst_qmakelib
&& i < fileElts.size()
i < fileElts.size()Description
TRUEevaluated 132 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
FALSEnever evaluated
&&
0-132
378-
379-
380-
381 dirElts.at(i) == fileElts.at(i)
dirElts.at(i) ...fileElts.at(i)Description
TRUEevaluated 128 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QTemporaryFile
  • tst_qmakelib
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
)
4-128
382-
383 ++
executed 128 times by 3 tests: ++i;
Executed by:
  • tst_QDir
  • tst_QTemporaryFile
  • tst_qmakelib
i;
executed 128 times by 3 tests: ++i;
Executed by:
  • tst_QDir
  • tst_QTemporaryFile
  • tst_qmakelib
128
384-
385 for (int j = 0; j < dirElts.size() - i
j < dirElts.size() - iDescription
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
FALSEevaluated 66 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
; ++j)
32-66
386 result += QLatin1String("../");
executed 32 times by 2 tests: result += QLatin1String("../");
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
32
387-
388 for (int j = i; j < fileElts.size()
j < fileElts.size()Description
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
FALSEevaluated 66 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
; ++j) {
66-92
389 result += fileElts.at(j);-
390 if (j < fileElts.size() - 1
j < fileElts.size() - 1Description
TRUEevaluated 30 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
FALSEevaluated 62 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
)
30-62
391 result += QLatin1Char('/');
executed 30 times by 4 tests: result += QLatin1Char('/');
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
30
392 }
executed 92 times by 4 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
92
393-
394 if (result.isEmpty()
result.isEmpty()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_qmakelib
FALSEevaluated 62 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
)
4-62
395 return
executed 4 times by 2 tests: return QLatin1String(".");
Executed by:
  • tst_QDir
  • tst_qmakelib
QLatin1String(".");
executed 4 times by 2 tests: return QLatin1String(".");
Executed by:
  • tst_QDir
  • tst_qmakelib
4
396 return
executed 62 times by 4 tests: return result;
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
result;
executed 62 times by 4 tests: return result;
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QTemporaryFile
  • tst_qmakelib
62
397}-
398QString QDir::toNativeSeparators(const QString &pathName)-
399{-
400 return
executed 119668 times by 271 tests: return pathName;
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
  • ...
pathName;
executed 119668 times by 271 tests: return pathName;
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
  • ...
119668
401}-
402QString QDir::fromNativeSeparators(const QString &pathName)-
403{-
404 return
executed 613846 times by 310 tests: return pathName;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • ...
pathName;
executed 613846 times by 310 tests: return pathName;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • ...
613846
405}-
406bool QDir::cd(const QString &dirName)-
407{-
408-
409 const QDirPrivate * const d = d_ptr.constData();-
410-
411 if (dirName.isEmpty()
dirName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 58 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
|| dirName == QLatin1String(".")
dirName == QLatin1String(".")Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 57 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
)
0-58
412 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QDir
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QDir
1
413 QString newPath;-
414 if (isAbsolutePath(dirName)
isAbsolutePath(dirName)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QXmlStream
FALSEevaluated 54 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
) {
3-54
415 newPath = cleanPath(dirName);-
416 }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QXmlStream
else {
3
417 if (isRoot()
isRoot()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
FALSEevaluated 50 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
)
4-50
418 newPath = d->dirEntry.filePath();
executed 4 times by 2 tests: newPath = d->dirEntry.filePath();
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
4
419 else-
420 newPath = d->dirEntry.filePath() % QLatin1Char('/');
executed 50 times by 10 tests: newPath = d->dirEntry.filePath() % QLatin1Char('/');
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
50
421 newPath += dirName;-
422 if (dirName.indexOf(QLatin1Char('/')) >= 0
dirName.indexO...har('/')) >= 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 50 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
4-50
423 || dirName == QLatin1String("..")
dirName == QLatin1String("..")Description
TRUEevaluated 32 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
FALSEevaluated 18 times by 5 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
18-32
424 || d->dirEntry.filePath() == QLatin1String(".")
d->dirEntry.fi...in1String(".")Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
FALSEevaluated 15 times by 4 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
) {
3-15
425 newPath = cleanPath(newPath);-
426-
427-
428 if (newPath.startsWith(QLatin1String("/../"))
newPath.starts...tring("/../"))Description
TRUEnever evaluated
FALSEevaluated 39 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
|| newPath == QLatin1String("/..")
newPath == QLa...1String("/..")Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
FALSEevaluated 34 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
)
0-39
429 return
executed 5 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
false;
executed 5 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
5
430 if (newPath.startsWith(QLatin1String(".."))
newPath.starts...1String(".."))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 32 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
) {
2-32
431 newPath = QFileInfo(newPath).absoluteFilePath();-
432 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDir
2
433 }
executed 34 times by 8 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
34
434 }
executed 49 times by 10 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
49
435-
436 QScopedPointer<QDirPrivate> dir(new QDirPrivate(*d_ptr.constData()));-
437 dir->setPath(newPath);-
438 if (!dir->exists()
!dir->exists()Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
FALSEevaluated 49 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
)
3-49
439 return
executed 3 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
false;
executed 3 times by 2 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
3
440-
441 d_ptr = dir.take();-
442 return
executed 49 times by 11 tests: return true;
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
true;
executed 49 times by 11 tests: return true;
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
49
443}-
444bool QDir::cdUp()-
445{-
446 return
executed 26 times by 8 tests: return cd(QString::fromLatin1(".."));
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
cd(QString::fromLatin1(".."));
executed 26 times by 8 tests: return cd(QString::fromLatin1(".."));
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QUrl
  • tst_qmakelib
26
447}-
448-
449-
450-
451-
452QStringList QDir::nameFilters() const-
453{-
454 const QDirPrivate* d = d_ptr.constData();-
455 return
executed 13 times by 1 test: return d->nameFilters;
Executed by:
  • tst_QDir
d->nameFilters;
executed 13 times by 1 test: return d->nameFilters;
Executed by:
  • tst_QDir
13
456}-
457void QDir::setNameFilters(const QStringList &nameFilters)-
458{-
459 QDirPrivate* d = d_ptr.data();-
460 d->initFileEngine();-
461 d->clearFileLists();-
462-
463 d->nameFilters = nameFilters;-
464}
executed 376 times by 9 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_languageChange
376
465void QDir::addResourceSearchPath(const QString &path)-
466{-
467-
468 QResource::addSearchPath(path);-
469-
470-
471-
472}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
2
473void QDir::setSearchPaths(const QString &prefix, const QStringList &searchPaths)-
474{-
475 if (prefix.length() < 2
prefix.length() < 2Description
TRUEnever evaluated
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
) {
0-35
476 QMessageLogger(__FILE__, 1022, __PRETTY_FUNCTION__).warning("QDir::setSearchPaths: Prefix must be longer than 1 character");-
477 return;
never executed: return;
0
478 }-
479-
480 for (int i = 0; i < prefix.count()
i < prefix.count()Description
TRUEevaluated 318 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
; ++i) {
35-318
481 if (!prefix.at(i).isLetterOrNumber()
!prefix.at(i)....tterOrNumber()Description
TRUEnever evaluated
FALSEevaluated 318 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
) {
0-318
482 QMessageLogger(__FILE__, 1028, __PRETTY_FUNCTION__).warning("QDir::setSearchPaths: Prefix can only contain letters or numbers");-
483 return;
never executed: return;
0
484 }-
485 }
executed 318 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QNetworkReply
318
486-
487 QWriteLocker lock(&QCoreGlobalData::instance()->dirSearchPathsLock);-
488 QMap<QString, QStringList> &paths = QCoreGlobalData::instance()->dirSearchPaths;-
489 if (searchPaths.isEmpty()
searchPaths.isEmpty()Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
) {
13-22
490 paths.remove(prefix);-
491 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QDir
else {
22
492 paths.insert(prefix, searchPaths);-
493 }
executed 13 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QNetworkReply
13
494}-
495void QDir::addSearchPath(const QString &prefix, const QString &path)-
496{-
497 if (path.isEmpty()
path.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDir
)
0-13
498 return;
never executed: return;
0
499-
500 QWriteLocker lock(&QCoreGlobalData::instance()->dirSearchPathsLock);-
501 QCoreGlobalData::instance()->dirSearchPaths[prefix] += path;-
502}
executed 13 times by 1 test: end of block
Executed by:
  • tst_QDir
13
503QStringList QDir::searchPaths(const QString &prefix)-
504{-
505 QReadLocker lock(&QCoreGlobalData::instance()->dirSearchPathsLock);-
506 return
executed 123 times by 5 tests: return QCoreGlobalData::instance()->dirSearchPaths.value(prefix);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
QCoreGlobalData::instance()->dirSearchPaths.value(prefix);
executed 123 times by 5 tests: return QCoreGlobalData::instance()->dirSearchPaths.value(prefix);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
123
507}-
508-
509-
510-
511-
512-
513-
514QDir::Filters QDir::filter() const-
515{-
516 const QDirPrivate* d = d_ptr.constData();-
517 return
executed 16 times by 1 test: return d->filters;
Executed by:
  • tst_QDir
d->filters;
executed 16 times by 1 test: return d->filters;
Executed by:
  • tst_QDir
16
518}-
519void QDir::setFilter(Filters filters)-
520{-
521 QDirPrivate* d = d_ptr.data();-
522 d->initFileEngine();-
523 d->clearFileLists();-
524-
525 d->filters = filters;-
526}
executed 320 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
320
527-
528-
529-
530-
531-
532-
533QDir::SortFlags QDir::sorting() const-
534{-
535 const QDirPrivate* d = d_ptr.constData();-
536 return
executed 16 times by 1 test: return d->sort;
Executed by:
  • tst_QDir
d->sort;
executed 16 times by 1 test: return d->sort;
Executed by:
  • tst_QDir
16
537}-
538void QDir::setSorting(SortFlags sort)-
539{-
540 QDirPrivate* d = d_ptr.data();-
541 d->initFileEngine();-
542 d->clearFileLists();-
543-
544 d->sort = sort;-
545}
executed 5 times by 1 test: end of block
Executed by:
  • tst_QDir
5
546uint QDir::count() const-
547{-
548 const QDirPrivate* d = d_ptr.constData();-
549 d->initFileLists(*this);-
550 return
executed 29 times by 2 tests: return d->files.count();
Executed by:
  • tst_QDir
  • tst_qmakelib
d->files.count();
executed 29 times by 2 tests: return d->files.count();
Executed by:
  • tst_QDir
  • tst_qmakelib
29
551}-
552QString QDir::operator[](int pos) const-
553{-
554 const QDirPrivate* d = d_ptr.constData();-
555 d->initFileLists(*this);-
556 return
executed 53 times by 2 tests: return d->files[pos];
Executed by:
  • tst_QDir
  • tst_qmakelib
d->files[pos];
executed 53 times by 2 tests: return d->files[pos];
Executed by:
  • tst_QDir
  • tst_qmakelib
53
557}-
558QStringList QDir::entryList(Filters filters, SortFlags sort) const-
559{-
560 const QDirPrivate* d = d_ptr.constData();-
561 return
executed 693 times by 118 tests: return entryList(d->nameFilters, filters, sort);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • ...
entryList(d->nameFilters, filters, sort);
executed 693 times by 118 tests: return entryList(d->nameFilters, filters, sort);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • ...
693
562}-
563QFileInfoList QDir::entryInfoList(Filters filters, SortFlags sort) const-
564{-
565 const QDirPrivate* d = d_ptr.constData();-
566 return
executed 253 times by 9 tests: return entryInfoList(d->nameFilters, filters, sort);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QCssParser
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
entryInfoList(d->nameFilters, filters, sort);
executed 253 times by 9 tests: return entryInfoList(d->nameFilters, filters, sort);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QCssParser
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
253
567}-
568QStringList QDir::entryList(const QStringList &nameFilters, Filters filters,-
569 SortFlags sort) const-
570{-
571 const QDirPrivate* d = d_ptr.constData();-
572-
573 if (filters == NoFilter
filters == NoFilterDescription
TRUEevaluated 64 times by 7 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 684 times by 116 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
64-684
574 filters = d->filters;
executed 64 times by 7 tests: filters = d->filters;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_qmakelib
64
575 if (sort == NoSort
sort == NoSortDescription
TRUEevaluated 709 times by 120 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • ...
FALSEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
)
39-709
576 sort = d->sort;
executed 709 times by 120 tests: sort = d->sort;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • ...
709
577-
578 if (filters == d->filters
filters == d->filtersDescription
TRUEevaluated 89 times by 8 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 659 times by 115 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
&& sort == d->sort
sort == d->sortDescription
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDir
&& nameFilters == d->nameFilters
nameFilters == d->nameFiltersDescription
TRUEevaluated 68 times by 6 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QXmlStream
  • tst_qmakelib
) {
8-659
579 d->initFileLists(*this);-
580 return
executed 68 times by 6 tests: return d->files;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
d->files;
executed 68 times by 6 tests: return d->files;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
68
581 }-
582-
583 QFileInfoList l;-
584 QDirIterator it(d->dirEntry.filePath(), nameFilters, filters);-
585 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 2585 times by 116 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 680 times by 116 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
680-2585
586 it.next();-
587 l.append(it.fileInfo());-
588 }
executed 2585 times by 116 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
2585
589 QStringList ret;-
590 d->sortFileList(sort, l, &ret, 0);-
591 return
executed 680 times by 116 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
ret;
executed 680 times by 116 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
680
592}-
593QFileInfoList QDir::entryInfoList(const QStringList &nameFilters, Filters filters,-
594 SortFlags sort) const-
595{-
596 const QDirPrivate* d = d_ptr.constData();-
597-
598 if (filters == NoFilter
filters == NoFilterDescription
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 697 times by 12 tests
Evaluated by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QXmlSimpleReader
  • tst_uic
)
42-697
599 filters = d->filters;
executed 42 times by 5 tests: filters = d->filters;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
42
600 if (sort == NoSort
sort == NoSortDescription
TRUEevaluated 183 times by 11 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QCssParser
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_rcc
  • tst_uic
FALSEevaluated 556 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDirModel
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QXmlSimpleReader
)
183-556
601 sort = d->sort;
executed 183 times by 11 tests: sort = d->sort;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QCssParser
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_rcc
  • tst_uic
183
602-
603 if (filters == d->filters
filters == d->filtersDescription
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 697 times by 12 tests
Evaluated by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QXmlSimpleReader
  • tst_uic
&& sort == d->sort
sort == d->sortDescription
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QVariant
  • tst_rcc
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QResourceEngine
&& nameFilters == d->nameFilters
nameFilters == d->nameFiltersDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QVariant
  • tst_rcc
) {
5-697
604 d->initFileLists(*this);-
605 return
executed 11 times by 2 tests: return d->fileInfos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
d->fileInfos;
executed 11 times by 2 tests: return d->fileInfos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
11
606 }-
607-
608 QFileInfoList l;-
609 QDirIterator it(d->dirEntry.filePath(), nameFilters, filters);-
610 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 9856 times by 14 tests
Evaluated by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
FALSEevaluated 728 times by 14 tests
Evaluated by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
) {
728-9856
611 it.next();-
612 l.append(it.fileInfo());-
613 }
executed 9856 times by 14 tests: end of block
Executed by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
9856
614 QFileInfoList ret;-
615 d->sortFileList(sort, l, 0, &ret);-
616 return
executed 728 times by 14 tests: return ret;
Executed by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
ret;
executed 728 times by 14 tests: return ret;
Executed by:
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDirModel
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_rcc
  • tst_uic
728
617}-
618bool QDir::mkdir(const QString &dirName) const-
619{-
620 const QDirPrivate* d = d_ptr.constData();-
621-
622 if (dirName.isEmpty()
dirName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1425 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • 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_QTemporaryDir
  • tst_QTemporaryFile
  • tst_qstandardpaths
  • tst_uic
) {
0-1425
623 QMessageLogger(__FILE__, 1395, __PRETTY_FUNCTION__).warning("QDir::mkdir: Empty or null file name");-
624 return
never executed: return false;
false;
never executed: return false;
0
625 }-
626-
627 QString fn = filePath(dirName);-
628 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 1425 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • 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_QTemporaryDir
  • tst_QTemporaryFile
  • tst_qstandardpaths
  • tst_uic
FALSEnever evaluated
)
0-1425
629 return
executed 1425 times by 18 tests: return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), false);
Executed by:
  • tst_QAbstractNetworkCache
  • 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_QTemporaryDir
  • tst_QTemporaryFile
  • tst_qstandardpaths
  • tst_uic
QFileSystemEngine::createDirectory(QFileSystemEntry(fn), false);
executed 1425 times by 18 tests: return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), false);
Executed by:
  • tst_QAbstractNetworkCache
  • 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_QTemporaryDir
  • tst_QTemporaryFile
  • tst_qstandardpaths
  • tst_uic
1425
630 return
never executed: return d->fileEngine->mkdir(fn, false);
d->fileEngine->mkdir(fn, false);
never executed: return d->fileEngine->mkdir(fn, false);
0
631}-
632bool QDir::rmdir(const QString &dirName) const-
633{-
634 const QDirPrivate* d = d_ptr.constData();-
635-
636 if (dirName.isEmpty()
dirName.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDirModel
FALSEevaluated 2734 times by 55 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_QIcon
  • 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
  • ...
) {
2-2734
637 QMessageLogger(__FILE__, 1419, __PRETTY_FUNCTION__).warning("QDir::rmdir: Empty or null file name");-
638 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDirModel
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDirModel
2
639 }-
640-
641 QString fn = filePath(dirName);-
642 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 2734 times by 55 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_QIcon
  • 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
  • ...
FALSEnever evaluated
)
0-2734
643 return
executed 2734 times by 55 tests: return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), false);
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_QIcon
  • 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
  • ...
QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), false);
executed 2734 times by 55 tests: return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), false);
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_QIcon
  • 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
  • ...
2734
644-
645 return
never executed: return d->fileEngine->rmdir(fn, false);
d->fileEngine->rmdir(fn, false);
never executed: return d->fileEngine->rmdir(fn, false);
0
646}-
647bool QDir::mkpath(const QString &dirPath) const-
648{-
649 const QDirPrivate* d = d_ptr.constData();-
650-
651 if (dirPath.isEmpty()
dirPath.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 398 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_selftests - unknown status
) {
0-398
652 QMessageLogger(__FILE__, 1447, __PRETTY_FUNCTION__).warning("QDir::mkpath: Empty or null file name");-
653 return
never executed: return false;
false;
never executed: return false;
0
654 }-
655-
656 QString fn = filePath(dirPath);-
657 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 398 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-398
658 return
executed 398 times by 13 tests: return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), true);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_selftests - unknown status
QFileSystemEngine::createDirectory(QFileSystemEntry(fn), true);
executed 398 times by 13 tests: return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), true);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
  • tst_qmakelib
  • tst_selftests - unknown status
398
659 return
never executed: return d->fileEngine->mkdir(fn, true);
d->fileEngine->mkdir(fn, true);
never executed: return d->fileEngine->mkdir(fn, true);
0
660}-
661bool QDir::rmpath(const QString &dirPath) const-
662{-
663 const QDirPrivate* d = d_ptr.constData();-
664-
665 if (dirPath.isEmpty()
dirPath.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 79 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
) {
0-79
666 QMessageLogger(__FILE__, 1473, __PRETTY_FUNCTION__).warning("QDir::rmpath: Empty or null file name");-
667 return
never executed: return false;
false;
never executed: return false;
0
668 }-
669-
670 QString fn = filePath(dirPath);-
671 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 79 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-79
672 return
executed 79 times by 2 tests: return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), true);
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), true);
executed 79 times by 2 tests: return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), true);
Executed by:
  • tst_QDir
  • tst_selftests - unknown status
79
673 return
never executed: return d->fileEngine->rmdir(fn, true);
d->fileEngine->rmdir(fn, true);
never executed: return d->fileEngine->rmdir(fn, true);
0
674}-
675bool QDir::removeRecursively()-
676{-
677 if (!d_ptr->exists()
!d_ptr->exists()Description
TRUEevaluated 133 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QTemporaryDir
  • tst_qmakelib
FALSEevaluated 2388 times by 52 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
)
133-2388
678 return
executed 133 times by 5 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QTemporaryDir
  • tst_qmakelib
true;
executed 133 times by 5 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QTemporaryDir
  • tst_qmakelib
133
679-
680 bool success = true;-
681 const QString dirPath = path();-
682-
683 QDirIterator di(dirPath, QDir::AllEntries | QDir::Hidden | QDir::System | QDir::NoDotAndDotDot);-
684 while (di.hasNext()
di.hasNext()Description
TRUEevaluated 3348 times by 42 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • ...
FALSEevaluated 2388 times by 52 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
) {
2388-3348
685 di.next();-
686 const QFileInfo& fi = di.fileInfo();-
687 const QString &filePath = di.filePath();-
688 bool ok;-
689 if (fi.isDir()
fi.isDir()Description
TRUEevaluated 2057 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qfileinfo - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qstandardpaths - unknown status
  • tst_qtemporaryfile - unknown status
  • tst_uic - unknown status
FALSEevaluated 1291 times by 37 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qpixmap - unknown status
  • ...
&& !fi.isSymLink()
!fi.isSymLink()Description
TRUEevaluated 2056 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qfileinfo - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qstandardpaths - unknown status
  • tst_qtemporaryfile - unknown status
  • tst_uic - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
) {
1-2057
690 ok = QDir(filePath).removeRecursively();-
691 }
executed 2056 times by 22 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_languageChange
  • tst_qfileinfo - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qnetworkdiskcache - unknown status
  • tst_qstandardpaths - unknown status
  • tst_qtemporaryfile - unknown status
  • tst_uic - unknown status
else {
2056
692 ok = QFile::remove(filePath);-
693 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 1292 times by 37 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qpixmap - unknown status
  • ...
) {
0-1292
694 const QFile::Permissions permissions = QFile::permissions(filePath);-
695 if (!(permissions & QFile::WriteUser)
!(permissions ...le::WriteUser)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
696 ok = QFile::setPermissions(filePath, permissions | QFile::WriteUser)
QFile::setPerm...le::WriteUser)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: ok = QFile::setPermissions(filePath, permissions | QFile::WriteUser) && QFile::remove(filePath);
0
697 && QFile::remove(filePath)
QFile::remove(filePath)Description
TRUEnever evaluated
FALSEnever evaluated
;
never executed: ok = QFile::setPermissions(filePath, permissions | QFile::WriteUser) && QFile::remove(filePath);
0
698 }
never executed: end of block
0
699 }
executed 1292 times by 37 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • tst_qmimedatabase-cache - unknown status
  • tst_qmimedatabase-xml - unknown status
  • tst_qpixmap - unknown status
  • ...
1292
700 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 3348 times by 42 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • ...
)
0-3348
701 success = false;
never executed: success = false;
0
702 }
executed 3348 times by 42 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfile - unknown status
  • tst_qfileinfo - unknown status
  • tst_qimagewriter - unknown status
  • tst_qmakelib
  • ...
3348
703-
704 if (success
successDescription
TRUEevaluated 2388 times by 52 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
FALSEnever evaluated
)
0-2388
705 success = rmdir(absolutePath());
executed 2388 times by 52 tests: success = rmdir(absolutePath());
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
2388
706-
707 return
executed 2388 times by 52 tests: return success;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
success;
executed 2388 times by 52 tests: return success;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSharedPointer
  • tst_QSql
  • tst_QTemporaryDir
  • tst_QXmlStream
  • tst_languageChange
  • tst_largefile - unknown status
  • tst_qabstractfileengine - unknown status
  • ...
2388
708}-
709bool QDir::isReadable() const-
710{-
711 const QDirPrivate* d = d_ptr.constData();-
712-
713 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
FALSEnever evaluated
) {
0-3
714 if (!d->metaData.hasFlags(QFileSystemMetaData::UserReadPermission)
!d->metaData.h...eadPermission)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
FALSEnever evaluated
)
0-3
715 QFileSystemEngine::fillMetaData(d->dirEntry, d->metaData, QFileSystemMetaData::UserReadPermission);
executed 3 times by 1 test: QFileSystemEngine::fillMetaData(d->dirEntry, d->metaData, QFileSystemMetaData::UserReadPermission);
Executed by:
  • tst_QDir
3
716-
717 return
executed 3 times by 1 test: return (d->metaData.permissions() & QFile::ReadUser) != 0;
Executed by:
  • tst_QDir
(d->metaData.permissions() & QFile::ReadUser) != 0;
executed 3 times by 1 test: return (d->metaData.permissions() & QFile::ReadUser) != 0;
Executed by:
  • tst_QDir
3
718 }-
719-
720 const QAbstractFileEngine::FileFlags info =-
721 d->fileEngine->fileFlags(QAbstractFileEngine::DirectoryType-
722 | QAbstractFileEngine::PermsMask);-
723 if (!(info & QAbstractFileEngine::DirectoryType)
!(info & QAbst...DirectoryType)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
724 return
never executed: return false;
false;
never executed: return false;
0
725 return
never executed: return info & QAbstractFileEngine::ReadUserPerm;
info & QAbstractFileEngine::ReadUserPerm;
never executed: return info & QAbstractFileEngine::ReadUserPerm;
0
726}-
727bool QDir::exists() const-
728{-
729 return
executed 1444 times by 18 tests: return d_ptr->exists();
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPlugin
  • tst_QPrinter
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qstandardpaths
d_ptr->exists();
executed 1444 times by 18 tests: return d_ptr->exists();
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QPlugin
  • tst_QPrinter
  • tst_QSettings
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
  • tst_qstandardpaths
1444
730}-
731bool QDir::isRoot() const-
732{-
733 if (d_ptr->fileEngine.isNull()
d_ptr->fileEngine.isNull()Description
TRUEevaluated 60 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDir
)
2-60
734 return
executed 60 times by 10 tests: return d_ptr->dirEntry.isRoot();
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
d_ptr->dirEntry.isRoot();
executed 60 times by 10 tests: return d_ptr->dirEntry.isRoot();
Executed by:
  • tst_QCssParser
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QUrl
  • tst_qmakelib
60
735 return
executed 2 times by 1 test: return d_ptr->fileEngine->fileFlags(QAbstractFileEngine::FlagsMask) & QAbstractFileEngine::RootFlag;
Executed by:
  • tst_QDir
d_ptr->fileEngine->fileFlags(QAbstractFileEngine::FlagsMask) & QAbstractFileEngine::RootFlag;
executed 2 times by 1 test: return d_ptr->fileEngine->fileFlags(QAbstractFileEngine::FlagsMask) & QAbstractFileEngine::RootFlag;
Executed by:
  • tst_QDir
2
736}-
737bool QDir::isRelative() const-
738{-
739 if (d_ptr->fileEngine.isNull()
d_ptr->fileEngine.isNull()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
)
1-15
740 return
executed 15 times by 2 tests: return d_ptr->dirEntry.isRelative();
Executed by:
  • tst_QDir
  • tst_QDirModel
d_ptr->dirEntry.isRelative();
executed 15 times by 2 tests: return d_ptr->dirEntry.isRelative();
Executed by:
  • tst_QDir
  • tst_QDirModel
15
741 return
executed 1 time by 1 test: return d_ptr->fileEngine->isRelativePath();
Executed by:
  • tst_QDir
d_ptr->fileEngine->isRelativePath();
executed 1 time by 1 test: return d_ptr->fileEngine->isRelativePath();
Executed by:
  • tst_QDir
1
742}-
743bool QDir::makeAbsolute()-
744{-
745 const QDirPrivate *d = d_ptr.constData();-
746 QScopedPointer<QDirPrivate> dir;-
747 if (!d->fileEngine.isNull()
!d->fileEngine.isNull()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
) {
0-1
748 QString absolutePath = d->fileEngine->fileName(QAbstractFileEngine::AbsoluteName);-
749 if (QDir::isRelativePath(absolutePath)
QDir::isRelati...(absolutePath)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
750 return
never executed: return false;
false;
never executed: return false;
0
751-
752 dir.reset(new QDirPrivate(*d_ptr.constData()));-
753 dir->setPath(absolutePath);-
754 }
never executed: end of block
else {
0
755 d->resolveAbsoluteEntry();-
756 dir.reset(new QDirPrivate(*d_ptr.constData()));-
757 dir->setPath(d->absoluteDirEntry.filePath());-
758 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDir
1
759 d_ptr = dir.take();-
760 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QDir
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QDir
1
761}-
762bool QDir::operator==(const QDir &dir) const-
763{-
764 const QDirPrivate *d = d_ptr.constData();-
765 const QDirPrivate *other = dir.d_ptr.constData();-
766-
767 if (d == other
d == otherDescription
TRUEnever evaluated
FALSEevaluated 82 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
0-82
768 return
never executed: return true;
true;
never executed: return true;
0
769 Qt::CaseSensitivity sensitive;-
770 if (d->fileEngine.isNull()
d->fileEngine.isNull()Description
TRUEevaluated 82 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEnever evaluated
|| other->fileEngine.isNull()
other->fileEngine.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-82
771 if (d->fileEngine.data() != other->fileEngine.data()
d->fileEngine....eEngine.data()Description
TRUEnever evaluated
FALSEevaluated 82 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
0-82
772 return
never executed: return false;
false;
never executed: return false;
0
773-
774 sensitive = QFileSystemEngine::isCaseSensitive()
QFileSystemEng...aseSensitive()Description
TRUEevaluated 82 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEnever evaluated
? Qt::CaseSensitive : Qt::CaseInsensitive;
0-82
775 }
executed 82 times by 4 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
else {
82
776 if (d->fileEngine->caseSensitive() != other->fileEngine->caseSensitive()
d->fileEngine-...aseSensitive()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
777 return
never executed: return false;
false;
never executed: return false;
0
778 sensitive = d->fileEngine->caseSensitive()
d->fileEngine->caseSensitive()Description
TRUEnever evaluated
FALSEnever evaluated
? Qt::CaseSensitive : Qt::CaseInsensitive;
0
779 }
never executed: end of block
0
780-
781 if (d->filters == other->filters
d->filters == other->filtersDescription
TRUEevaluated 78 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
4-78
782 && d->sort == other->sort
d->sort == other->sortDescription
TRUEevaluated 74 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
4-74
783 && d->nameFilters == other->nameFilters
d->nameFilters...r->nameFiltersDescription
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
) {
4-70
784-
785-
786 if (d->dirEntry.filePath() == other->dirEntry.filePath()
d->dirEntry.fi...try.filePath()Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
)
22-48
787 return
executed 22 times by 3 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFiledialog
  • tst_QSettings
true;
executed 22 times by 3 tests: return true;
Executed by:
  • tst_QDir
  • tst_QFiledialog
  • tst_QSettings
22
788-
789 if (exists()
exists()Description
TRUEevaluated 44 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
) {
4-44
790 if (!dir.exists()
!dir.exists()Description
TRUEnever evaluated
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
)
0-44
791 return
never executed: return false;
false;
never executed: return false;
0
792-
793 return
executed 44 times by 2 tests: return canonicalPath().compare(dir.canonicalPath(), sensitive) == 0;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
canonicalPath().compare(dir.canonicalPath(), sensitive) == 0;
executed 44 times by 2 tests: return canonicalPath().compare(dir.canonicalPath(), sensitive) == 0;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
44
794 } else {-
795 if (dir.exists()
dir.exists()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
)
0-4
796 return
never executed: return false;
false;
never executed: return false;
0
797-
798 d->resolveAbsoluteEntry();-
799 other->resolveAbsoluteEntry();-
800 return
executed 4 times by 1 test: return d->absoluteDirEntry.filePath().compare(other->absoluteDirEntry.filePath(), sensitive) == 0;
Executed by:
  • tst_QDir
d->absoluteDirEntry.filePath().compare(other->absoluteDirEntry.filePath(), sensitive) == 0;
executed 4 times by 1 test: return d->absoluteDirEntry.filePath().compare(other->absoluteDirEntry.filePath(), sensitive) == 0;
Executed by:
  • tst_QDir
4
801 }-
802 }-
803 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDir
12
804}-
805-
806-
807-
808-
809-
810QDir &QDir::operator=(const QDir &dir)-
811{-
812 d_ptr = dir.d_ptr;-
813 return
executed 377 times by 8 tests: return *this;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
*this;
executed 377 times by 8 tests: return *this;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPrinter
  • tst_languageChange
377
814}-
815QDir &QDir::operator=(const QString &path)-
816{-
817 d_ptr->setPath(path);-
818 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QDir
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QDir
1
819}-
820bool QDir::remove(const QString &fileName)-
821{-
822 if (fileName.isEmpty()
fileName.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QDirModel
  • tst_qmake
) {
1-26
823 QMessageLogger(__FILE__, 1767, __PRETTY_FUNCTION__).warning("QDir::remove: Empty or null file name");-
824 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
1
825 }-
826 return
executed 26 times by 3 tests: return QFile::remove(filePath(fileName));
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_qmake
QFile::remove(filePath(fileName));
executed 26 times by 3 tests: return QFile::remove(filePath(fileName));
Executed by:
  • tst_QDir
  • tst_QDirModel
  • tst_qmake
26
827}-
828bool QDir::rename(const QString &oldName, const QString &newName)-
829{-
830 if (oldName.isEmpty()
oldName.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
|| newName.isEmpty()
newName.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
) {
1-18
831 QMessageLogger(__FILE__, 1792, __PRETTY_FUNCTION__).warning("QDir::rename: Empty or null file name(s)");-
832 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDir
2
833 }-
834-
835 QFile file(filePath(oldName));-
836 if (!file.exists()
!file.exists()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
)
1-16
837 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
1
838 return
executed 16 times by 4 tests: return file.rename(filePath(newName));
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
file.rename(filePath(newName));
executed 16 times by 4 tests: return file.rename(filePath(newName));
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QTemporaryDir
16
839}-
840bool QDir::exists(const QString &name) const-
841{-
842 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 5115 times by 195 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
) {
1-5115
843 QMessageLogger(__FILE__, 1815, __PRETTY_FUNCTION__).warning("QDir::exists: Empty or null file name");-
844 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QDir
1
845 }-
846 return
executed 5115 times by 195 tests: return QFile::exists(filePath(name));
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
QFile::exists(filePath(name));
executed 5115 times by 195 tests: return QFile::exists(filePath(name));
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
5115
847}-
848QFileInfoList QDir::drives()-
849{-
850-
851-
852-
853 return
executed 78 times by 13 tests: return QFSFileEngine::drives();
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
QFSFileEngine::drives();
executed 78 times by 13 tests: return QFSFileEngine::drives();
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QPrinter
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • tst_languageChange
78
854-
855}-
856QChar QDir::separator()-
857{-
858-
859-
860-
861 return
executed 90130 times by 185 tests: return QLatin1Char('/');
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • ...
QLatin1Char('/');
executed 90130 times by 185 tests: return QLatin1Char('/');
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • ...
90130
862-
863}-
864bool QDir::setCurrent(const QString &path)-
865{-
866 return
executed 494 times by 25 tests: return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
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
QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
executed 494 times by 25 tests: return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
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
867}-
868QString QDir::currentPath()-
869{-
870 return
executed 1623 times by 45 tests: return QFileSystemEngine::currentPath().filePath();
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • 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_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPlugin
  • tst_QPluginLoader
  • tst_QPrinter
  • ...
QFileSystemEngine::currentPath().filePath();
executed 1623 times by 45 tests: return QFileSystemEngine::currentPath().filePath();
Executed by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • 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_QIODevice
  • tst_QIcon
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPlugin
  • tst_QPluginLoader
  • tst_QPrinter
  • ...
1623
871}-
872QString QDir::homePath()-
873{-
874 return
executed 4648 times by 68 tests: return QFileSystemEngine::homePath();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
QFileSystemEngine::homePath();
executed 4648 times by 68 tests: return QFileSystemEngine::homePath();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
4648
875}-
876QString QDir::tempPath()-
877{-
878 return
executed 8783 times by 49 tests: return QFileSystemEngine::tempPath();
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_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • ...
QFileSystemEngine::tempPath();
executed 8783 times by 49 tests: return QFileSystemEngine::tempPath();
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_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPdfWriter
  • tst_QPixmap
  • ...
8783
879}-
880QString QDir::rootPath()-
881{-
882 return
executed 43 times by 6 tests: return QFileSystemEngine::rootPath();
Executed by:
  • tst_QDir
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QSidebar
  • tst_QStorageInfo
QFileSystemEngine::rootPath();
executed 43 times by 6 tests: return QFileSystemEngine::rootPath();
Executed by:
  • tst_QDir
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QSidebar
  • tst_QStorageInfo
43
883}-
884bool QDir::match(const QStringList &filters, const QString &fileName)-
885{-
886 for (QStringList::ConstIterator sit = filters.constBegin(); sit != filters.constEnd()
sit != filters.constEnd()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
; ++sit) {
4-14
887 QRegExp rx(*sit, Qt::CaseInsensitive, QRegExp::Wildcard);-
888 if (rx.exactMatch(fileName)
rx.exactMatch(fileName)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QDir
)
6-8
889 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QDir
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QDir
6
890 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QDir
8
891 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDir
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDir
4
892}-
893bool QDir::match(const QString &filter, const QString &fileName)-
894{-
895 return
executed 5 times by 1 test: return match(nameFiltersFromString(filter), fileName);
Executed by:
  • tst_QDir
match(nameFiltersFromString(filter), fileName);
executed 5 times by 1 test: return match(nameFiltersFromString(filter), fileName);
Executed by:
  • tst_QDir
5
896}-
897__attribute__((visibility("default"))) QString qt_normalizePathSegments(const QString &name, bool allowUncPaths)-
898{-
899 const int len = name.length();-
900-
901 if (len == 0
len == 0Description
TRUEnever evaluated
FALSEevaluated 76323 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
)
0-76323
902 return
never executed: return name;
name;
never executed: return name;
0
903-
904 int i = len - 1;-
905 QVarLengthArray<QChar> outVector(len);-
906 int used = len;-
907 QChar *out = outVector.data();-
908 const QChar *p = name.unicode();-
909 const QChar *prefix = p;-
910 int up = 0;-
911-
912 int prefixLength = 0;-
913-
914 if (allowUncPaths
allowUncPathsDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 76271 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
&& len >= 2
len >= 2Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDir
&& p[1].unicode() == '/'
p[1].unicode() == '/'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QDir
&& p[0].unicode() == '/'
p[0].unicode() == '/'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QDir
) {
2-76271
915-
916 prefixLength = 2;-
917-
918-
919-
920-
921-
922 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QDir
else if (p[0].unicode() == '/'
p[0].unicode() == '/'Description
TRUEevaluated 76179 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 141 times by 10 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QMovie
  • tst_QTemporaryDir
  • tst_QUrl
  • tst_qmakelib
) {
3-76179
923 prefixLength = 1;-
924 }
executed 76179 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
76179
925 p += prefixLength;-
926 i -= prefixLength;-
927-
928-
929 if (i > 0
i > 0Description
TRUEevaluated 76223 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 100 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QResourceEngine
  • tst_QSidebar
&& p[i].unicode() == '/'
p[i].unicode() == '/'Description
TRUEevaluated 232 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QResourceEngine
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 75991 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
100-76223
930 out[--used].unicode() = '/';-
931 --i;-
932 }
executed 232 times by 14 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QResourceEngine
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
232
933-
934 while (i >= 0
i >= 0Description
TRUEevaluated 357473 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 76323 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
76323-357473
935-
936 if (p[i].unicode() == '/'
p[i].unicode() == '/'Description
TRUEevaluated 3548 times by 64 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • ...
FALSEevaluated 353925 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
3548-353925
937 --i;-
938 continue;
executed 3548 times by 64 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • ...
3548
939 }-
940-
941-
942 if (p[i].unicode() == '.'
p[i].unicode() == '.'Description
TRUEevaluated 3523 times by 45 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • ...
FALSEevaluated 350402 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
&& (i == 0
i == 0Description
TRUEevaluated 43 times by 8 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QUrl
  • tst_qstandardpaths
FALSEevaluated 3480 times by 45 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • ...
|| p[i-1].unicode() == '/'
p[i-1].unicode() == '/'Description
TRUEevaluated 1503 times by 39 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSql
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_languageChange
  • ...
FALSEevaluated 1977 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
)) {
43-350402
943 --i;-
944 continue;
executed 1546 times by 40 tests: continue;
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSql
  • tst_QTemporaryFile
  • tst_QUrl
  • ...
1546
945 }-
946-
947-
948 if (i >= 1
i >= 1Description
TRUEevaluated 352356 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QUrl
  • tst_qmakelib
&& p[i].unicode() == '.'
p[i].unicode() == '.'Description
TRUEevaluated 1977 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 350379 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
&& p[i-1].unicode() == '.'
p[i-1].unicode() == '.'Description
TRUEevaluated 1975 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDir
2-352356
949 && (i == 1
i == 1Description
TRUEevaluated 68 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
FALSEevaluated 1907 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
|| (i >= 2
i >= 2Description
TRUEevaluated 1907 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
FALSEnever evaluated
&& p[i-2].unicode() == '/'
p[i-2].unicode() == '/'Description
TRUEevaluated 1902 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDir
))) {
0-1907
950 ++up;-
951 i -= 2;-
952 continue;
executed 1970 times by 20 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
1970
953 }-
954-
955-
956 if (!up
!upDescription
TRUEevaluated 349369 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 1040 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
&& used != len
used != lenDescription
TRUEevaluated 273529 times by 174 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
FALSEevaluated 75840 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
&& out[used].unicode() != '/'
out[used].unicode() != '/'Description
TRUEevaluated 273308 times by 174 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
FALSEevaluated 221 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QResourceEngine
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
)
221-349369
957 out[--used] = QLatin1Char('/');
executed 273308 times by 174 tests: out[--used] = QLatin1Char('/');
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
273308
958-
959-
960 while (i >= 0
i >= 0Description
TRUEevaluated 3370292 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 73531 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
73531-3370292
961 if (p[i].unicode() == '/'
p[i].unicode() == '/'Description
TRUEevaluated 276878 times by 174 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
FALSEevaluated 3093414 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
276878-3093414
962 --i;-
963 break;
executed 276878 times by 174 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
276878
964 }-
965-
966-
967 if (!up
!upDescription
TRUEevaluated 3084206 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 9208 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
)
9208-3084206
968 out[--used] = p[i];
executed 3084206 times by 184 tests: out[--used] = p[i];
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
3084206
969 --i;-
970 }
executed 3093414 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
3093414
971-
972-
973 if (up
upDescription
TRUEevaluated 1040 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 349369 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
)
1040-349369
974 --
executed 1040 times by 20 tests: --up;
Executed by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
up;
executed 1040 times by 20 tests: --up;
Executed by:
  • tst_NetworkSelfTest
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QUrl
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
1040
975 }
executed 350409 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
350409
976-
977-
978 while (up
upDescription
TRUEevaluated 930 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
FALSEevaluated 76323 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
930-76323
979 if (used != len
used != lenDescription
TRUEevaluated 817 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFiledialog
FALSEevaluated 113 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
&& out[used].unicode() != '/'
out[used].unicode() != '/'Description
TRUEevaluated 813 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFiledialog
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDir
)
4-817
980 out[--used] = QLatin1Char('/');
executed 813 times by 3 tests: out[--used] = QLatin1Char('/');
Executed by:
  • tst_QDir
  • tst_QFileSystemModel
  • tst_QFiledialog
813
981 out[--used] = QLatin1Char('.');-
982 out[--used] = QLatin1Char('.');-
983 --up;-
984 }
executed 930 times by 5 tests: end of block
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
930
985-
986 bool isEmpty = used == len;-
987-
988 if (prefixLength
prefixLengthDescription
TRUEevaluated 76182 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 141 times by 10 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QMovie
  • tst_QTemporaryDir
  • tst_QUrl
  • tst_qmakelib
) {
141-76182
989 if (!isEmpty
!isEmptyDescription
TRUEevaluated 76061 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 121 times by 11 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QResourceEngine
  • tst_QSidebar
  • tst_languageChange
&& out[used].unicode() == '/'
out[used].unicode() == '/'Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QFiledialog
FALSEevaluated 76059 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
2-76061
990-
991-
992 ++used;-
993 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QFiledialog
2
994 for (int i = prefixLength - 1; i >= 0
i >= 0Description
TRUEevaluated 76185 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 76182 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
; --i)
76182-76185
995 out[--used] = prefix[i];
executed 76185 times by 184 tests: out[--used] = prefix[i];
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
76185
996 }
executed 76182 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
else {
76182
997 if (isEmpty
isEmptyDescription
TRUEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileSystemModel
FALSEevaluated 124 times by 9 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QMovie
  • tst_QTemporaryDir
  • tst_QUrl
  • tst_qmakelib
) {
17-124
998-
999-
1000 out[--used] = QLatin1Char('.');-
1001 }
executed 17 times by 4 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileSystemModel
else if (out[used].unicode() == '/'
out[used].unicode() == '/'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 119 times by 9 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QMovie
  • tst_QTemporaryDir
  • tst_QUrl
  • tst_qmakelib
) {
5-119
1002-
1003-
1004-
1005 out[--used] = QLatin1Char('.');-
1006 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QDir
5
1007 }
executed 141 times by 10 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QMovie
  • tst_QTemporaryDir
  • tst_QUrl
  • tst_qmakelib
141
1008-
1009-
1010 QString ret = (used == 0
used == 0Description
TRUEevaluated 71482 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 4841 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • ...
? name : QString(out + used, len - used));
4841-71482
1011 return
executed 76323 times by 184 tests: return ret;
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
ret;
executed 76323 times by 184 tests: return ret;
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
76323
1012}-
1013QString QDir::cleanPath(const QString &path)-
1014{-
1015 if (path.isEmpty()
path.isEmpty()Description
TRUEevaluated 490 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
FALSEevaluated 76249 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
)
490-76249
1016 return
executed 490 times by 5 tests: return path;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
path;
executed 490 times by 5 tests: return path;
Executed by:
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_languageChange
490
1017 QString name = path;-
1018 QChar dir_separator = separator();-
1019 if (dir_separator != QLatin1Char('/')
dir_separator ...atin1Char('/')Description
TRUEnever evaluated
FALSEevaluated 76249 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
)
0-76249
1020 name.replace(dir_separator, QLatin1Char('/'));
never executed: name.replace(dir_separator, QLatin1Char('/'));
0
1021-
1022 bool allowUncPaths = false;-
1023-
1024-
1025-
1026-
1027 QString ret = qt_normalizePathSegments(name, allowUncPaths);-
1028-
1029-
1030 if (ret.length() > 1
ret.length() > 1Description
TRUEevaluated 76124 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
FALSEevaluated 125 times by 12 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QResourceEngine
  • tst_QSidebar
  • tst_languageChange
&& ret.endsWith(QLatin1Char('/'))
ret.endsWith(QLatin1Char('/'))Description
TRUEevaluated 211 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QResourceEngine
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 75913 times by 184 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
) {
125-76124
1031-
1032-
1033-
1034-
1035-
1036-
1037-
1038 ret.chop(1);-
1039 }
executed 211 times by 13 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QResourceEngine
  • tst_QXmlStream
  • tst_qmakelib
  • tst_rcc
211
1040-
1041 return
executed 76249 times by 184 tests: return ret;
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
ret;
executed 76249 times by 184 tests: return ret;
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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDataStream
  • ...
76249
1042}-
1043-
1044-
1045-
1046-
1047-
1048-
1049-
1050bool QDir::isRelativePath(const QString &path)-
1051{-
1052 return
executed 19303 times by 252 tests: return QFileInfo(path).isRelative();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
QFileInfo(path).isRelative();
executed 19303 times by 252 tests: return QFileInfo(path).isRelative();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
19303
1053}-
1054-
1055-
1056-
1057-
1058void QDir::refresh() const-
1059{-
1060 QDirPrivate *d = const_cast<QDir*>(this)->d_ptr.data();-
1061 d->metaData.clear();-
1062 d->initFileEngine();-
1063 d->clearFileLists();-
1064}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDir
2
1065-
1066-
1067-
1068-
1069QDirPrivate* QDir::d_func()-
1070{-
1071 return
never executed: return d_ptr.data();
d_ptr.data();
never executed: return d_ptr.data();
0
1072}-
1073QStringList QDir::nameFiltersFromString(const QString &nameFilter)-
1074{-
1075 return
executed 32 times by 2 tests: return QDirPrivate::splitFilters(nameFilter);
Executed by:
  • tst_QDir
  • tst_QDirModel
QDirPrivate::splitFilters(nameFilter);
executed 32 times by 2 tests: return QDirPrivate::splitFilters(nameFilter);
Executed by:
  • tst_QDir
  • tst_QDirModel
32
1076}-
1077QDebug operator<<(QDebug debug, QDir::Filters filters)-
1078{-
1079 QDebugStateSaver save(debug);-
1080 debug.resetFormat();-
1081 QStringList flags;-
1082 if (filters == QDir::NoFilter
filters == QDir::NoFilterDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1083 flags << QLatin1String("NoFilter");-
1084 }
never executed: end of block
else {
0
1085 if (filters & QDir::Dirs
filters & QDir::DirsDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Dirs");
never executed: flags << QLatin1String("Dirs");
0
1086 if (filters & QDir::AllDirs
filters & QDir::AllDirsDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("AllDirs");
never executed: flags << QLatin1String("AllDirs");
0
1087 if (filters & QDir::Files
filters & QDir::FilesDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Files");
never executed: flags << QLatin1String("Files");
0
1088 if (filters & QDir::Drives
filters & QDir::DrivesDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Drives");
never executed: flags << QLatin1String("Drives");
0
1089 if (filters & QDir::NoSymLinks
filters & QDir::NoSymLinksDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("NoSymLinks");
never executed: flags << QLatin1String("NoSymLinks");
0
1090 if (filters & QDir::NoDot
filters & QDir::NoDotDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("NoDot");
never executed: flags << QLatin1String("NoDot");
0
1091 if (filters & QDir::NoDotDot
filters & QDir::NoDotDotDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("NoDotDot");
never executed: flags << QLatin1String("NoDotDot");
0
1092 if ((
(filters & QDi...ir::AllEntriesDescription
TRUEnever evaluated
FALSEnever evaluated
filters & QDir::AllEntries) == QDir::AllEntries
(filters & QDi...ir::AllEntriesDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("AllEntries");
never executed: flags << QLatin1String("AllEntries");
0
1093 if (filters & QDir::Readable
filters & QDir::ReadableDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Readable");
never executed: flags << QLatin1String("Readable");
0
1094 if (filters & QDir::Writable
filters & QDir::WritableDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Writable");
never executed: flags << QLatin1String("Writable");
0
1095 if (filters & QDir::Executable
filters & QDir::ExecutableDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Executable");
never executed: flags << QLatin1String("Executable");
0
1096 if (filters & QDir::Modified
filters & QDir::ModifiedDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Modified");
never executed: flags << QLatin1String("Modified");
0
1097 if (filters & QDir::Hidden
filters & QDir::HiddenDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Hidden");
never executed: flags << QLatin1String("Hidden");
0
1098 if (filters & QDir::System
filters & QDir::SystemDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("System");
never executed: flags << QLatin1String("System");
0
1099 if (filters & QDir::CaseSensitive
filters & QDir::CaseSensitiveDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("CaseSensitive");
never executed: flags << QLatin1String("CaseSensitive");
0
1100 }
never executed: end of block
0
1101 debug.noquote() << "QDir::Filters(" << flags.join(QLatin1Char('|')) << ')';-
1102 return
never executed: return debug;
debug;
never executed: return debug;
0
1103}-
1104-
1105static QDebug operator<<(QDebug debug, QDir::SortFlags sorting)-
1106{-
1107 QDebugStateSaver save(debug);-
1108 debug.resetFormat();-
1109 if (sorting == QDir::NoSort
sorting == QDir::NoSortDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1110 debug << "QDir::SortFlags(NoSort)";-
1111 }
never executed: end of block
else {
0
1112 QString type;-
1113 if ((
(sorting & 3) == QDir::NameDescription
TRUEnever evaluated
FALSEnever evaluated
sorting & 3) == QDir::Name
(sorting & 3) == QDir::NameDescription
TRUEnever evaluated
FALSEnever evaluated
) type = QLatin1String("Name");
never executed: type = QLatin1String("Name");
0
1114 if ((
(sorting & 3) == QDir::TimeDescription
TRUEnever evaluated
FALSEnever evaluated
sorting & 3) == QDir::Time
(sorting & 3) == QDir::TimeDescription
TRUEnever evaluated
FALSEnever evaluated
) type = QLatin1String("Time");
never executed: type = QLatin1String("Time");
0
1115 if ((
(sorting & 3) == QDir::SizeDescription
TRUEnever evaluated
FALSEnever evaluated
sorting & 3) == QDir::Size
(sorting & 3) == QDir::SizeDescription
TRUEnever evaluated
FALSEnever evaluated
) type = QLatin1String("Size");
never executed: type = QLatin1String("Size");
0
1116 if ((
(sorting & 3) ...QDir::UnsortedDescription
TRUEnever evaluated
FALSEnever evaluated
sorting & 3) == QDir::Unsorted
(sorting & 3) ...QDir::UnsortedDescription
TRUEnever evaluated
FALSEnever evaluated
) type = QLatin1String("Unsorted");
never executed: type = QLatin1String("Unsorted");
0
1117-
1118 QStringList flags;-
1119 if (sorting & QDir::DirsFirst
sorting & QDir::DirsFirstDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("DirsFirst");
never executed: flags << QLatin1String("DirsFirst");
0
1120 if (sorting & QDir::DirsLast
sorting & QDir::DirsLastDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("DirsLast");
never executed: flags << QLatin1String("DirsLast");
0
1121 if (sorting & QDir::IgnoreCase
sorting & QDir::IgnoreCaseDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("IgnoreCase");
never executed: flags << QLatin1String("IgnoreCase");
0
1122 if (sorting & QDir::LocaleAware
sorting & QDir::LocaleAwareDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("LocaleAware");
never executed: flags << QLatin1String("LocaleAware");
0
1123 if (sorting & QDir::Type
sorting & QDir::TypeDescription
TRUEnever evaluated
FALSEnever evaluated
) flags << QLatin1String("Type");
never executed: flags << QLatin1String("Type");
0
1124 debug.noquote() << "QDir::SortFlags(" << type << '|' << flags.join(QLatin1Char('|')) << ')';-
1125 }
never executed: end of block
0
1126 return
never executed: return debug;
debug;
never executed: return debug;
0
1127}-
1128-
1129QDebug operator<<(QDebug debug, const QDir &dir)-
1130{-
1131 QDebugStateSaver save(debug);-
1132 debug.resetFormat();-
1133 debug << "QDir(" << dir.path() << ", nameFilters = {"-
1134 << dir.nameFilters().join(QLatin1Char(','))-
1135 << "}, "-
1136 << dir.sorting()-
1137 << ','-
1138 << dir.filter()-
1139 << ')';-
1140 return
never executed: return debug;
debug;
never executed: return debug;
0
1141}-
1142-
1143-
1144-
Switch to Source codePreprocessed file

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