qfilesystementry.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfilesystementry.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QFileSystemEntry::QFileSystemEntry()-
8 : m_lastSeparator(-1),-
9 m_firstDotInFileName(-1),-
10 m_lastDotInFileName(-1)-
11{-
12}-
13-
14-
15-
16-
17-
18-
19QFileSystemEntry::QFileSystemEntry(const QString &filePath)-
20 : m_filePath(QDir::fromNativeSeparators(filePath)),-
21 m_lastSeparator(-2),-
22 m_firstDotInFileName(-2),-
23 m_lastDotInFileName(0)-
24{-
25}-
26-
27-
28-
29-
30-
31-
32QFileSystemEntry::QFileSystemEntry(const QString &filePath, FromInternalPath )-
33 : m_filePath(filePath),-
34 m_lastSeparator(-2),-
35 m_firstDotInFileName(-2),-
36 m_lastDotInFileName(0)-
37{-
38}-
39-
40-
41-
42-
43-
44QFileSystemEntry::QFileSystemEntry(const NativePath &nativeFilePath, FromNativePath )-
45 : m_nativeFilePath(nativeFilePath),-
46 m_lastSeparator(-2),-
47 m_firstDotInFileName(-2),-
48 m_lastDotInFileName(0)-
49{-
50}-
51-
52QFileSystemEntry::QFileSystemEntry(const QString &filePath, const NativePath &nativeFilePath)-
53 : m_filePath(QDir::fromNativeSeparators(filePath)),-
54 m_nativeFilePath(nativeFilePath),-
55 m_lastSeparator(-2),-
56 m_firstDotInFileName(-2),-
57 m_lastDotInFileName(0)-
58{-
59}-
60-
61QString QFileSystemEntry::filePath() const-
62{-
63 resolveFilePath();-
64 return m_filePath;-
65}-
66-
67QFileSystemEntry::NativePath QFileSystemEntry::nativeFilePath() const-
68{-
69 resolveNativeFilePath();-
70 return m_nativeFilePath;-
71}-
72-
73void QFileSystemEntry::resolveFilePath() const-
74{-
75 if (m_filePath.isEmpty() && !m_nativeFilePath.isEmpty()) {-
76 m_filePath = QDir::fromNativeSeparators(QFile::decodeName(m_nativeFilePath));-
77-
78 }-
79}-
80-
81void QFileSystemEntry::resolveNativeFilePath() const-
82{-
83 if (!m_filePath.isEmpty() && m_nativeFilePath.isEmpty()) {-
84 m_nativeFilePath = QFile::encodeName(QDir::toNativeSeparators(m_filePath));-
85 }-
86}-
87-
88QString QFileSystemEntry::fileName() const-
89{-
90 findLastSeparator();-
91-
92-
93-
94-
95 return m_filePath.mid(m_lastSeparator + 1);-
96}-
97-
98QString QFileSystemEntry::path() const-
99{-
100 findLastSeparator();-
101 if (m_lastSeparator == -1) {-
102-
103-
104-
105-
106 return QString(QLatin1Char('.'));-
107 }-
108 if (m_lastSeparator == 0)-
109 return QString(QLatin1Char('/'));-
110-
111-
112-
113-
114 return m_filePath.left(m_lastSeparator);-
115}-
116-
117QString QFileSystemEntry::baseName() const-
118{-
119 findFileNameSeparators();-
120 int length = -1;-
121 if (m_firstDotInFileName >= 0) {-
122 length = m_firstDotInFileName;-
123 if (m_lastSeparator != -1)-
124 length--;-
125 }-
126-
127-
128-
129-
130 return m_filePath.mid(m_lastSeparator + 1, length);-
131}-
132-
133QString QFileSystemEntry::completeBaseName() const-
134{-
135 findFileNameSeparators();-
136 int length = -1;-
137 if (m_firstDotInFileName >= 0) {-
138 length = m_firstDotInFileName + m_lastDotInFileName;-
139 if (m_lastSeparator != -1)-
140 length--;-
141 }-
142-
143-
144-
145-
146 return m_filePath.mid(m_lastSeparator + 1, length);-
147}-
148-
149QString QFileSystemEntry::suffix() const-
150{-
151 findFileNameSeparators();-
152-
153 if (m_lastDotInFileName == -1)-
154 return QString();-
155-
156 return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + m_lastDotInFileName + 1);-
157}-
158-
159QString QFileSystemEntry::completeSuffix() const-
160{-
161 findFileNameSeparators();-
162 if (m_firstDotInFileName == -1)-
163 return QString();-
164-
165 return m_filePath.mid(qMax((qint16)0, m_lastSeparator) + m_firstDotInFileName + 1);-
166}-
167bool QFileSystemEntry::isRelative() const-
168{-
169 return !isAbsolute();-
170}-
171-
172bool QFileSystemEntry::isAbsolute() const-
173{-
174 resolveFilePath();-
175 return (!m_filePath.isEmpty() && (m_filePath.at(0).unicode() == '/'));-
176}-
177bool QFileSystemEntry::isRoot() const-
178{-
179 resolveFilePath();-
180 if (m_filePath == QLatin1String("/")-
181-
182-
183-
184-
185 )-
186 return true;-
187-
188 return false;-
189}-
190-
191bool QFileSystemEntry::isEmpty() const-
192{-
193 return m_filePath.isEmpty() && m_nativeFilePath.isEmpty();-
194}-
195-
196-
197-
198void QFileSystemEntry::findLastSeparator() const-
199{-
200 if (m_lastSeparator == -2) {-
201 resolveFilePath();-
202 m_lastSeparator = m_filePath.lastIndexOf(QLatin1Char('/'));-
203 }-
204}-
205-
206void QFileSystemEntry::findFileNameSeparators() const-
207{-
208 if (m_firstDotInFileName == -2) {-
209 resolveFilePath();-
210 int firstDotInFileName = -1;-
211 int lastDotInFileName = -1;-
212 int lastSeparator = m_lastSeparator;-
213-
214 int stop;-
215 if (lastSeparator < 0) {-
216 lastSeparator = -1;-
217 stop = 0;-
218 } else {-
219 stop = lastSeparator;-
220 }-
221-
222 int i = m_filePath.size() - 1;-
223 for (; i >= stop; --i) {-
224 if (m_filePath.at(i).unicode() == '.') {-
225 firstDotInFileName = lastDotInFileName = i;-
226 break;-
227 } else if (m_filePath.at(i).unicode() == '/') {-
228 lastSeparator = i;-
229 break;-
230 }-
231 }-
232-
233 if (lastSeparator != i) {-
234 for (--i; i >= stop; --i) {-
235 if (m_filePath.at(i).unicode() == '.')-
236 firstDotInFileName = i;-
237 else if (m_filePath.at(i).unicode() == '/') {-
238 lastSeparator = i;-
239 break;-
240 }-
241 }-
242 }-
243 m_lastSeparator = lastSeparator;-
244 m_firstDotInFileName = firstDotInFileName == -1 ? -1 : firstDotInFileName - qMax(0, lastSeparator);-
245 if (lastDotInFileName == -1)-
246 m_lastDotInFileName = -1;-
247 else if (firstDotInFileName == lastDotInFileName)-
248 m_lastDotInFileName = 0;-
249 else-
250 m_lastDotInFileName = lastDotInFileName - firstDotInFileName;-
251 }-
252}-
253-
254bool QFileSystemEntry::isClean() const-
255{-
256 resolveFilePath();-
257 int dots = 0;-
258 bool dotok = true;-
259 bool slashok = true;-
260 for (QString::const_iterator iter = m_filePath.constBegin(); iter != m_filePath.constEnd()
iter != m_filePath.constEnd()Description
TRUEevaluated 748595 times by 156 tests
Evaluated 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
  • ...
FALSEevaluated 18319 times by 156 tests
Evaluated 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
  • ...
; ++iter++)) {
18319-748595
261 if (*
*iter == QLatin1Char('/')Description
TRUEevaluated 98093 times by 156 tests
Evaluated 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
  • ...
FALSEevaluated 650502 times by 156 tests
Evaluated 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
  • ...
iter == QLatin1Char('/')
*iter == QLatin1Char('/')Description
TRUEevaluated 98093 times by 156 tests
Evaluated 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
  • ...
FALSEevaluated 650502 times by 156 tests
Evaluated 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
262 if (dots == 1
dots == 1Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QFileSystemEntry
  • tst_rcc
FALSEevaluated 98087 times by 156 tests
Evaluated 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
  • ...
|| dots == 2
dots == 2Description
TRUEevaluated 134 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 97953 times by 156 tests
Evaluated 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
263 return
executed 140 times by 6 tests: return false;
Executed by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_rcc
  • tst_selftests - unknown status
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
264 if (!slashok
!slashokDescription
TRUEevaluated 2629 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_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
  • ...
FALSEevaluated 95324 times by 156 tests
Evaluated 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
265 return
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
  • ...
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
266 dots = 0;-
267 dotok = true;-
268 slashok = false;-
269 }
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
  • ...
else if (dotok
dotokDescription
TRUEevaluated 95073 times by 156 tests
Evaluated 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
  • ...
FALSEevaluated 555429 times by 156 tests
Evaluated 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
270 slashok = true;-
271 if (*
*iter == QLatin1Char('.')Description
TRUEevaluated 3149 times by 22 tests
Evaluated 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
FALSEevaluated 91924 times by 156 tests
Evaluated 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
  • ...
iter == QLatin1Char('.')
*iter == QLatin1Char('.')Description
TRUEevaluated 3149 times by 22 tests
Evaluated 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
FALSEevaluated 91924 times by 156 tests
Evaluated 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
272 dots++;-
273 if (dots > 2
dots > 2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileSystemEntry
FALSEevaluated 3148 times by 22 tests
Evaluated 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
274 dotok = false;
executed 1 time by 1 test: dotok = false;
Executed by:
  • tst_QFileSystemEntry
1
275 }
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
else {
3149
276-
277 dots = 0;-
278 dotok = false;-
279 }
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
280 }-
281 }
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
282 return
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
  • ...
(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
283}-
284-
285-
Switch to Source codePreprocessed file

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