Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "qfilesystementry_p.h" | - |
41 | | - |
42 | #include <QtCore/qdir.h> | - |
43 | #include <QtCore/qfile.h> | - |
44 | #include <QtCore/private/qfsfileengine_p.h> | - |
45 | #ifdef Q_OS_WIN | - |
46 | #include <QtCore/qstringbuilder.h> | - |
47 | #endif | - |
48 | | - |
49 | QT_BEGIN_NAMESPACE | - |
50 | | - |
51 | #ifdef Q_OS_WIN | - |
52 | static bool isUncRoot(const QString &server) | - |
53 | { | - |
54 | QString localPath = QDir::toNativeSeparators(server); | - |
55 | if (!localPath.startsWith(QLatin1String("\\\\"))) | - |
56 | return false; | - |
57 | | - |
58 | int idx = localPath.indexOf(QLatin1Char('\\'), 2); | - |
59 | if (idx == -1 || idx + 1 == localPath.length()) | - |
60 | return true; | - |
61 | | - |
62 | return localPath.rightRef(localPath.length() - idx - 1).trimmed().isEmpty(); | - |
63 | } | - |
64 | | - |
65 | static inline QString fixIfRelativeUncPath(const QString &path) | - |
66 | { | - |
67 | QString currentPath = QDir::currentPath(); | - |
68 | if (currentPath.startsWith(QLatin1String("//"))) | - |
69 | return currentPath % QChar(QLatin1Char('/')) % path; | - |
70 | return path; | - |
71 | } | - |
72 | #endif | - |
73 | | - |
74 | QFileSystemEntry::QFileSystemEntry() | - |
75 | : m_lastSeparator(-1), | - |
76 | m_firstDotInFileName(-1), | - |
77 | m_lastDotInFileName(-1) | - |
78 | { | - |
79 | }executed 198891 times by 271 tests: end of block Executed by:- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QBackingStore
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- ...
| 198891 |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | QFileSystemEntry::QFileSystemEntry(const QString &filePath) | - |
87 | : m_filePath(QDir::fromNativeSeparators(filePath)), | - |
88 | m_lastSeparator(-2), | - |
89 | m_firstDotInFileName(-2), | - |
90 | m_lastDotInFileName(0) | - |
91 | { | - |
92 | }executed 265996 times by 310 tests: end of block 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
- ...
| 265996 |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | QFileSystemEntry::QFileSystemEntry(const QString &filePath, FromInternalPath ) | - |
100 | : m_filePath(filePath), | - |
101 | m_lastSeparator(-2), | - |
102 | m_firstDotInFileName(-2), | - |
103 | m_lastDotInFileName(0) | - |
104 | { | - |
105 | }executed 21625 times by 250 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
- ...
| 21625 |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | QFileSystemEntry::QFileSystemEntry(const NativePath &nativeFilePath, FromNativePath ) | - |
112 | : m_nativeFilePath(nativeFilePath), | - |
113 | m_lastSeparator(-2), | - |
114 | m_firstDotInFileName(-2), | - |
115 | m_lastDotInFileName(0) | - |
116 | { | - |
117 | }executed 108863 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_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDirIterator
- ...
| 108863 |
118 | | - |
119 | QFileSystemEntry::QFileSystemEntry(const QString &filePath, const NativePath &nativeFilePath) | - |
120 | : m_filePath(QDir::fromNativeSeparators(filePath)), | - |
121 | m_nativeFilePath(nativeFilePath), | - |
122 | m_lastSeparator(-2), | - |
123 | m_firstDotInFileName(-2), | - |
124 | m_lastDotInFileName(0) | - |
125 | { | - |
126 | } never executed: end of block | 0 |
127 | | - |
128 | QString QFileSystemEntry::filePath() const | - |
129 | { | - |
130 | resolveFilePath(); | - |
131 | return m_filePath;executed 545316 times by 305 tests: return m_filePath; Executed by:- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QCheckBox
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- ...
| 545316 |
132 | } | - |
133 | | - |
134 | QFileSystemEntry::NativePath QFileSystemEntry::nativeFilePath() const | - |
135 | { | - |
136 | resolveNativeFilePath(); | - |
137 | return m_nativeFilePath;executed 220994 times by 271 tests: return m_nativeFilePath; 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
- ...
| 220994 |
138 | } | - |
139 | | - |
140 | void QFileSystemEntry::resolveFilePath() const | - |
141 | { | - |
142 | if (m_filePath.isEmpty() && !m_nativeFilePath.isEmpty()) {TRUE | evaluated 212109 times by 184 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDirIterator
- ...
| FALSE | evaluated 658450 times by 310 testsEvaluated 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
- ...
|
TRUE | evaluated 208129 times by 184 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDirIterator
- ...
| FALSE | evaluated 3980 times by 35 testsEvaluated by:- tst_QApplication
- tst_QBrush
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QPixmap
- tst_QPlainTextEdit
- tst_QPluginLoader
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- ...
|
| 3980-658450 |
143 | #if defined(QFILESYSTEMENTRY_NATIVE_PATH_IS_UTF16) | - |
144 | m_filePath = QDir::fromNativeSeparators(m_nativeFilePath); | - |
145 | #ifdef Q_OS_WIN | - |
146 | if (m_filePath.startsWith(QLatin1String("//?/UNC/"))) | - |
147 | m_filePath = m_filePath.remove(2,6); | - |
148 | if (m_filePath.startsWith(QLatin1String("//?/"))) | - |
149 | m_filePath = m_filePath.remove(0,4); | - |
150 | #endif | - |
151 | #else | - |
152 | m_filePath = QDir::fromNativeSeparators(QFile::decodeName(m_nativeFilePath)); | - |
153 | #endif | - |
154 | }executed 208129 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_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDirIterator
- ...
| 208129 |
155 | }executed 870559 times by 310 tests: end of block 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
- ...
| 870559 |
156 | | - |
157 | void QFileSystemEntry::resolveNativeFilePath() const | - |
158 | { | - |
159 | if (!m_filePath.isEmpty() && m_nativeFilePath.isEmpty()) {TRUE | evaluated 218829 times by 271 testsEvaluated 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
- ...
| FALSE | evaluated 2165 times by 37 testsEvaluated by:- tst_QColorDialog
- tst_QCoreApplication
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QPixmap
- tst_QPixmapFilter
- tst_QPlainTextEdit
- tst_QPluginLoader
- tst_QProcess
- ...
|
TRUE | evaluated 112479 times by 271 testsEvaluated 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
- ...
| FALSE | evaluated 106350 times by 176 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_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_QDataStream
- ...
|
| 2165-218829 |
160 | #ifdef Q_OS_WIN | - |
161 | QString filePath = m_filePath; | - |
162 | if (isRelative()) | - |
163 | filePath = fixIfRelativeUncPath(m_filePath); | - |
164 | m_nativeFilePath = QFSFileEnginePrivate::longFileName(QDir::toNativeSeparators(filePath)); | - |
165 | #elif defined(QFILESYSTEMENTRY_NATIVE_PATH_IS_UTF16) | - |
166 | m_nativeFilePath = QDir::toNativeSeparators(m_filePath); | - |
167 | #else | - |
168 | m_nativeFilePath = QFile::encodeName(QDir::toNativeSeparators(m_filePath)); | - |
169 | #endif | - |
170 | #ifdef Q_OS_WINRT | - |
171 | while (m_nativeFilePath.startsWith(QLatin1Char('\\'))) | - |
172 | m_nativeFilePath.remove(0,1); | - |
173 | if (m_nativeFilePath.isEmpty()) | - |
174 | m_nativeFilePath.append(QLatin1Char('.')); | - |
175 | | - |
176 | | - |
177 | | - |
178 | #if _MSC_VER >= 1900 | - |
179 | m_nativeFilePath.prepend("\\\\?\\"); | - |
180 | #endif | - |
181 | #endif | - |
182 | }executed 112479 times by 271 tests: end of block Executed by:- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QBackingStore
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- ...
| 112479 |
183 | }executed 220994 times by 271 tests: end of block Executed by:- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QBackingStore
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- ...
| 220994 |
184 | | - |
185 | QString QFileSystemEntry::fileName() const | - |
186 | { | - |
187 | findLastSeparator(); | - |
188 | #if defined(Q_OS_WIN) | - |
189 | if (m_lastSeparator == -1 && m_filePath.length() >= 2 && m_filePath.at(1) == QLatin1Char(':')) | - |
190 | return m_filePath.mid(2); | - |
191 | #endif | - |
192 | return m_filePath.mid(m_lastSeparator + 1);executed 191085 times by 194 tests: return m_filePath.mid(m_lastSeparator + 1); Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- ...
| 191085 |
193 | } | - |
194 | | - |
195 | QString QFileSystemEntry::path() const | - |
196 | { | - |
197 | findLastSeparator(); | - |
198 | if (m_lastSeparator == -1) {TRUE | evaluated 1755 times by 51 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QChar
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFontDialog
- tst_QFtp
- tst_QGlyphRun
- tst_QGraphicsScene
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLabel
- tst_QLibrary
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- ...
| FALSE | evaluated 38185 times by 171 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 1755-38185 |
199 | #if defined(Q_OS_WIN) | - |
200 | if (m_filePath.length() >= 2 && m_filePath.at(1) == QLatin1Char(':')) | - |
201 | return m_filePath.left(2); | - |
202 | #endif | - |
203 | return QString(QLatin1Char('.'));executed 1755 times by 51 tests: return QString(QLatin1Char('.')); Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QChar
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFontDialog
- tst_QFtp
- tst_QGlyphRun
- tst_QGraphicsScene
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLabel
- tst_QLibrary
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- ...
| 1755 |
204 | } | - |
205 | if (m_lastSeparator == 0)TRUE | evaluated 964 times by 15 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSidebar
- tst_QStorageInfo
- tst_QTemporaryDir
- tst_languageChange
| FALSE | evaluated 37221 times by 171 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 964-37221 |
206 | return QString(QLatin1Char('/'));executed 964 times by 15 tests: return QString(QLatin1Char('/')); Executed by:- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSidebar
- tst_QStorageInfo
- tst_QTemporaryDir
- tst_languageChange
| 964 |
207 | #if defined(Q_OS_WIN) | - |
208 | if (m_lastSeparator == 2 && m_filePath.at(1) == QLatin1Char(':')) | - |
209 | return m_filePath.left(m_lastSeparator + 1); | - |
210 | #endif | - |
211 | return m_filePath.left(m_lastSeparator);executed 37221 times by 171 tests: return m_filePath.left(m_lastSeparator); Executed by:- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| 37221 |
212 | } | - |
213 | | - |
214 | QString QFileSystemEntry::baseName() const | - |
215 | { | - |
216 | findFileNameSeparators(); | - |
217 | int length = -1; | - |
218 | if (m_firstDotInFileName >= 0) {TRUE | evaluated 11730 times by 79 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- ...
| FALSE | evaluated 253 times by 15 testsEvaluated by:- tst_QBrush
- tst_QCssParser
- tst_QDataStream
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QPixmap
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
|
| 253-11730 |
219 | length = m_firstDotInFileName; | - |
220 | if (m_lastSeparator != -1) TRUE | evaluated 11503 times by 76 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- tst_QGraphicsEffectSource
- ...
| FALSE | evaluated 227 times by 6 testsEvaluated by:- tst_QDataStream
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QImageWriter
- tst_QPixmapFilter
- tst_QXmlStream
|
| 227-11503 |
221 | length--;executed 11503 times by 76 tests: length--; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- tst_QGraphicsEffectSource
- ...
| 11503 |
222 | }executed 11730 times by 79 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- ...
| 11730 |
223 | #if defined(Q_OS_WIN) | - |
224 | if (m_lastSeparator == -1 && m_filePath.length() >= 2 && m_filePath.at(1) == QLatin1Char(':')) | - |
225 | return m_filePath.mid(2, length - 2); | - |
226 | #endif | - |
227 | return m_filePath.mid(m_lastSeparator + 1, length);executed 11983 times by 83 tests: return m_filePath.mid(m_lastSeparator + 1, length); Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| 11983 |
228 | } | - |
229 | | - |
230 | QString QFileSystemEntry::completeBaseName() const | - |
231 | { | - |
232 | findFileNameSeparators(); | - |
233 | int length = -1; | - |
234 | if (m_firstDotInFileName >= 0) {TRUE | evaluated 26 times by 2 testsEvaluated by:- tst_QFileInfo
- tst_QFileSystemEntry
| FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QFileInfo
- tst_QFileSystemEntry
|
| 12-26 |
235 | length = m_firstDotInFileName + m_lastDotInFileName; | - |
236 | if (m_lastSeparator != -1) TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QFileInfo
- tst_QFileSystemEntry
| FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_QFileInfo
- tst_QFileSystemEntry
|
| 6-20 |
237 | length--;executed 20 times by 2 tests: length--; Executed by:- tst_QFileInfo
- tst_QFileSystemEntry
| 20 |
238 | }executed 26 times by 2 tests: end of block Executed by:- tst_QFileInfo
- tst_QFileSystemEntry
| 26 |
239 | #if defined(Q_OS_WIN) | - |
240 | if (m_lastSeparator == -1 && m_filePath.length() >= 2 && m_filePath.at(1) == QLatin1Char(':')) | - |
241 | return m_filePath.mid(2, length - 2); | - |
242 | #endif | - |
243 | return m_filePath.mid(m_lastSeparator + 1, length);executed 38 times by 2 tests: return m_filePath.mid(m_lastSeparator + 1, length); Executed by:- tst_QFileInfo
- tst_QFileSystemEntry
| 38 |
244 | } | - |
245 | | - |
246 | QString QFileSystemEntry::suffix() const | - |
247 | { | - |
248 | findFileNameSeparators(); | - |
249 | | - |
250 | if (m_lastDotInFileName == -1)TRUE | evaluated 1932 times by 16 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QPrinter
- tst_languageChange
| FALSE | evaluated 15206 times by 78 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 1932-15206 |
251 | return QString();executed 1932 times by 16 tests: return QString(); Executed by:- tst_QCompleter
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QPrinter
- tst_languageChange
| 1932 |
252 | | - |
253 | return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + m_lastDotInFileName + 1);executed 15206 times by 78 tests: return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + m_lastDotInFileName + 1); Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 15206 |
254 | } | - |
255 | | - |
256 | QString QFileSystemEntry::completeSuffix() const | - |
257 | { | - |
258 | findFileNameSeparators(); | - |
259 | if (m_firstDotInFileName == -1)TRUE | evaluated 18 times by 4 testsEvaluated by:- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QLabel
- tst_QPixmap
| FALSE | evaluated 1127 times by 36 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QButtonGroup
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGroupBox
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMessageBox
- tst_QPixmap
- tst_QPixmapFilter
- ...
|
| 18-1127 |
260 | return QString();executed 18 times by 4 tests: return QString(); Executed by:- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QLabel
- tst_QPixmap
| 18 |
261 | | - |
262 | return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + 1);executed 1127 times by 36 tests: return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + 1); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QButtonGroup
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGroupBox
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMessageBox
- tst_QPixmap
- tst_QPixmapFilter
- ...
| 1127 |
263 | } | - |
264 | | - |
265 | #if defined(Q_OS_WIN) | - |
266 | bool QFileSystemEntry::isRelative() const | - |
267 | { | - |
268 | resolveFilePath(); | - |
269 | return (m_filePath.isEmpty() | - |
270 | || (m_filePath.at(0).unicode() != '/' | - |
271 | && !(m_filePath.length() >= 2 && m_filePath.at(1).unicode() == ':'))); | - |
272 | } | - |
273 | | - |
274 | bool QFileSystemEntry::isAbsolute() const | - |
275 | { | - |
276 | resolveFilePath(); | - |
277 | return ((m_filePath.length() >= 3 | - |
278 | && m_filePath.at(0).isLetter() | - |
279 | && m_filePath.at(1).unicode() == ':' | - |
280 | && m_filePath.at(2).unicode() == '/') | - |
281 | || (m_filePath.length() >= 2 | - |
282 | && m_filePath.at(0) == QLatin1Char('/') | - |
283 | && m_filePath.at(1) == QLatin1Char('/'))); | - |
284 | } | - |
285 | #else | - |
286 | bool QFileSystemEntry::isRelative() const | - |
287 | { | - |
288 | return !isAbsolute();executed 28969 times by 253 tests: return !isAbsolute(); 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
- ...
| 28969 |
289 | } | - |
290 | | - |
291 | bool QFileSystemEntry::isAbsolute() const | - |
292 | { | - |
293 | resolveFilePath(); | - |
294 | return (!m_filePath.isEmpty() && (m_filePath.at(0).unicode() == '/'));executed 43325 times by 266 tests: return (!m_filePath.isEmpty() && (m_filePath.at(0).unicode() == '/')); Executed by:- tst_Gestures
- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- 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
- ...
| 43325 |
295 | } | - |
296 | #endif | - |
297 | | - |
298 | #if defined(Q_OS_WIN) | - |
299 | bool QFileSystemEntry::isDriveRoot() const | - |
300 | { | - |
301 | resolveFilePath(); | - |
302 | #ifndef Q_OS_WINRT | - |
303 | return (m_filePath.length() == 3 | - |
304 | && m_filePath.at(0).isLetter() && m_filePath.at(1) == QLatin1Char(':') | - |
305 | && m_filePath.at(2) == QLatin1Char('/')); | - |
306 | #else // !Q_OS_WINRT | - |
307 | return m_filePath == QDir::rootPath(); | - |
308 | #endif // !Q_OS_WINRT | - |
309 | } | - |
310 | #endif | - |
311 | | - |
312 | bool QFileSystemEntry::isRoot() const | - |
313 | { | - |
314 | resolveFilePath(); | - |
315 | if (m_filePath == QLatin1String("/")TRUE | evaluated 693 times by 13 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_QSidebar
- tst_QStorageInfo
- tst_languageChange
| FALSE | evaluated 39846 times by 162 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_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_QDataStream
- ...
|
| 693-39846 |
316 | #if defined(Q_OS_WIN) | - |
317 | || isDriveRoot() | - |
318 | || isUncRoot(m_filePath) | - |
319 | #endif | - |
320 | ) | - |
321 | return true;executed 693 times by 13 tests: return true; Executed by:- tst_QCompleter
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_QSidebar
- tst_QStorageInfo
- tst_languageChange
| 693 |
322 | | - |
323 | return false;executed 39846 times by 162 tests: return false; 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_QDataStream
- ...
| 39846 |
324 | } | - |
325 | | - |
326 | bool QFileSystemEntry::isEmpty() const | - |
327 | { | - |
328 | return m_filePath.isEmpty() && m_nativeFilePath.isEmpty();executed 87221 times by 232 tests: return m_filePath.isEmpty() && m_nativeFilePath.isEmpty(); Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- ...
| 87221 |
329 | } | - |
330 | | - |
331 | | - |
332 | | - |
333 | void QFileSystemEntry::findLastSeparator() const | - |
334 | { | - |
335 | if (m_lastSeparator == -2) {TRUE | evaluated 191676 times by 217 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- ...
| FALSE | evaluated 39349 times by 165 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDirIterator
- ...
|
| 39349-191676 |
336 | resolveFilePath(); | - |
337 | m_lastSeparator = m_filePath.lastIndexOf(QLatin1Char('/')); | - |
338 | }executed 191676 times by 217 tests: end of block Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- ...
| 191676 |
339 | }executed 231025 times by 217 tests: end of block Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCssParser
- tst_QDBusConnectionNoBus
- ...
| 231025 |
340 | | - |
341 | void QFileSystemEntry::findFileNameSeparators() const | - |
342 | { | - |
343 | if (m_firstDotInFileName == -2) {TRUE | evaluated 28615 times by 88 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- ...
| FALSE | evaluated 1689 times by 11 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_languageChange
- tst_rcc
|
| 1689-28615 |
344 | resolveFilePath(); | - |
345 | int firstDotInFileName = -1; | - |
346 | int lastDotInFileName = -1; | - |
347 | int lastSeparator = m_lastSeparator; | - |
348 | | - |
349 | int stop; | - |
350 | if (lastSeparator < 0) {TRUE | evaluated 26305 times by 84 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| FALSE | evaluated 2310 times by 13 testsEvaluated by:- tst_QCompleter
- tst_QCssParser
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_languageChange
- tst_rcc
- tst_uic
|
| 2310-26305 |
351 | lastSeparator = -1; | - |
352 | stop = 0; | - |
353 | } else {executed 26305 times by 84 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| 26305 |
354 | stop = lastSeparator; | - |
355 | }executed 2310 times by 13 tests: end of block Executed by:- tst_QCompleter
- tst_QCssParser
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QPrinter
- tst_languageChange
- tst_rcc
- tst_uic
| 2310 |
356 | | - |
357 | int i = m_filePath.size() - 1; | - |
358 | for (; i >= stop; --i) {TRUE | evaluated 118713 times by 86 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| FALSE | evaluated 256 times by 17 testsEvaluated by:- tst_QBrush
- tst_QDataStream
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QGraphicsWidget
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QPixmap
- tst_QPrinter
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
|
| 256-118713 |
359 | if (m_filePath.at(i).unicode() == '.') {TRUE | evaluated 27150 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| FALSE | evaluated 91563 times by 86 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
| 27150-91563 |
360 | firstDotInFileName = lastDotInFileName = i; | - |
361 | break;executed 27150 times by 85 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 27150 |
362 | } else if (m_filePath.at(i).unicode() == '/') {TRUE | evaluated 1209 times by 16 testsEvaluated by:- tst_QCompleter
- tst_QCssParser
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_languageChange
| FALSE | evaluated 90354 times by 86 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
|
| 1209-90354 |
363 | lastSeparator = i; | - |
364 | break;executed 1209 times by 16 tests: break; Executed by:- tst_QCompleter
- tst_QCssParser
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_languageChange
| 1209 |
365 | } | - |
366 | }executed 90354 times by 86 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- 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_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- ...
| 90354 |
367 | | - |
368 | if (lastSeparator != i) {TRUE | evaluated 27150 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| FALSE | evaluated 1465 times by 27 testsEvaluated by:- tst_QBrush
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_QPrinter
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
|
| 1465-27150 |
369 | for (--i; i >= stop; --i) {TRUE | evaluated 308385 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| FALSE | evaluated 337 times by 20 testsEvaluated by:- tst_QDataStream
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QGraphicsView
- tst_QIcon
- tst_QImageWriter
- tst_QMessageBox
- tst_QPainter
- tst_QPixmap
- tst_QPixmapFilter
- tst_QPlugin
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QXmlStream
- tst_qlibrary - unknown status
|
| 337-308385 |
370 | if (m_filePath.at(i).unicode() == '.')TRUE | evaluated 202 times by 9 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QItemModel
- tst_QPlugin
- tst_qlibrary - unknown status
- tst_uic
| FALSE | evaluated 308183 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 202-308183 |
371 | firstDotInFileName = i;executed 202 times by 9 tests: firstDotInFileName = i; Executed by:- tst_QCompleter
- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QItemModel
- tst_QPlugin
- tst_qlibrary - unknown status
- tst_uic
| 202 |
372 | else if (m_filePath.at(i).unicode() == '/') {TRUE | evaluated 26813 times by 79 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- ...
| FALSE | evaluated 281370 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 26813-281370 |
373 | lastSeparator = i; | - |
374 | break;executed 26813 times by 79 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- tst_QGraphicsEffect
- ...
| 26813 |
375 | } | - |
376 | }executed 281572 times by 85 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 281572 |
377 | }executed 27150 times by 85 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 27150 |
378 | m_lastSeparator = lastSeparator; | - |
379 | m_firstDotInFileName = firstDotInFileName == -1 ? -1 : firstDotInFileName - qMax(0, lastSeparator);TRUE | evaluated 1465 times by 27 testsEvaluated by:- tst_QBrush
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_QPrinter
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| FALSE | evaluated 27150 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 1465-27150 |
380 | if (lastDotInFileName == -1)TRUE | evaluated 1465 times by 27 testsEvaluated by:- tst_QBrush
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_QPrinter
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| FALSE | evaluated 27150 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 1465-27150 |
381 | m_lastDotInFileName = -1;executed 1465 times by 27 tests: m_lastDotInFileName = -1; Executed by:- tst_QBrush
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDir
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiVariant
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QItemModel
- tst_QLabel
- tst_QPixmap
- tst_QPrinter
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| 1465 |
382 | else if (firstDotInFileName == lastDotInFileName)TRUE | evaluated 26961 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| FALSE | evaluated 189 times by 9 testsEvaluated by:- tst_QCompleter
- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QItemModel
- tst_QPlugin
- tst_qlibrary - unknown status
- tst_uic
|
| 189-26961 |
383 | m_lastDotInFileName = 0;executed 26961 times by 85 tests: m_lastDotInFileName = 0; Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 26961 |
384 | else | - |
385 | m_lastDotInFileName = lastDotInFileName - firstDotInFileName;executed 189 times by 9 tests: m_lastDotInFileName = lastDotInFileName - firstDotInFileName; Executed by:- tst_QCompleter
- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_QItemModel
- tst_QPlugin
- tst_qlibrary - unknown status
- tst_uic
| 189 |
386 | } | - |
387 | }executed 30304 times by 88 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBrush
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- ...
| 30304 |
388 | | - |
389 | bool QFileSystemEntry::isClean() const | - |
390 | { | - |
391 | resolveFilePath(); | - |
392 | int dots = 0; | - |
393 | bool dotok = true; | - |
394 | bool slashok = true; | - |
395 | for (QString::const_iterator iter = m_filePath.constBegin(); iter != m_filePath.constEnd(); ++iter) {TRUE | evaluated 748595 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| FALSE | evaluated 18319 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 18319-748595 |
396 | if (*iter == QLatin1Char('/')) {TRUE | evaluated 98093 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| FALSE | evaluated 650502 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 98093-650502 |
397 | if (dots == 1 || dots == 2)TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QFileSystemEntry
- tst_rcc
| FALSE | evaluated 98087 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
TRUE | evaluated 134 times by 6 testsEvaluated by:- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_rcc
- tst_selftests - unknown status
| FALSE | evaluated 97953 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 6-98087 |
398 | return false; executed 140 times by 6 tests: return false; Executed by:- tst_QDir
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFiledialog
- tst_rcc
- tst_selftests - unknown status
| 140 |
399 | if (!slashok)TRUE | evaluated 2629 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QNetworkDiskCache
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- ...
| FALSE | evaluated 95324 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 2629-95324 |
400 | return false; executed 2629 times by 30 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QNetworkDiskCache
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- ...
| 2629 |
401 | dots = 0; | - |
402 | dotok = true; | - |
403 | slashok = false; | - |
404 | } else if (dotok) {executed 95324 times by 156 tests: end of block Executed by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
TRUE | evaluated 95073 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| FALSE | evaluated 555429 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 95073-555429 |
405 | slashok = true; | - |
406 | if (*iter == QLatin1Char('.')) {TRUE | evaluated 3149 times by 22 testsEvaluated by:- tst_QColorDialog
- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSettings
- tst_QTextFormat
- tst_QUrl
- tst_languageChange
- tst_qfileinfo - unknown status
- tst_qlockfile - unknown status
- tst_rcc
- tst_selftests - unknown status
| FALSE | evaluated 91924 times by 156 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
|
| 3149-91924 |
407 | dots++; | - |
408 | if (dots > 2)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3148 times by 22 testsEvaluated by:- tst_QColorDialog
- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSettings
- tst_QTextFormat
- tst_QUrl
- tst_languageChange
- tst_qfileinfo - unknown status
- tst_qlockfile - unknown status
- tst_rcc
- tst_selftests - unknown status
|
| 1-3148 |
409 | dotok = false;executed 1 time by 1 test: dotok = false; | 1 |
410 | } else {executed 3149 times by 22 tests: end of block Executed by:- tst_QColorDialog
- tst_QCompleter
- tst_QDir
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemEntry
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QLockFile
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSettings
- tst_QTextFormat
- tst_QUrl
- tst_languageChange
- tst_qfileinfo - unknown status
- tst_qlockfile - unknown status
- tst_rcc
- tst_selftests - unknown status
| 3149 |
411 | | - |
412 | dots = 0; | - |
413 | dotok = false; | - |
414 | }executed 91924 times by 156 tests: end of block Executed by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| 91924 |
415 | } | - |
416 | }executed 745826 times by 156 tests: end of block Executed by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| 745826 |
417 | return (dots != 1 && dots != 2); executed 18319 times by 156 tests: return (dots != 1 && dots != 2); Executed by:- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QByteArray
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- ...
| 18319 |
418 | } | - |
419 | | - |
420 | QT_END_NAMESPACE | - |
| | |