qfilesystemengine.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfilesystemengine.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qfilesystemengine_p.h"-
41#include <QtCore/qdir.h>-
42#include <QtCore/qset.h>-
43#include <QtCore/qstringbuilder.h>-
44#include <QtCore/private/qabstractfileengine_p.h>-
45#ifdef QT_BUILD_CORE_LIB-
46#include <QtCore/private/qresource_p.h>-
47#endif-
48-
49QT_BEGIN_NAMESPACE-
50-
51/*!-
52 \internal-
53-
54 Returns the canonicalized form of \a path (i.e., with all symlinks-
55 resolved, and all redundant path elements removed.-
56*/-
57QString QFileSystemEngine::slowCanonicalized(const QString &path)-
58{-
59 if (path.isEmpty())
path.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
60 return path;
never executed: return path;
0
61-
62 QFileInfo fi;-
63 const QChar slash(QLatin1Char('/'));-
64 QString tmpPath = path;-
65 int separatorPos = 0;-
66 QSet<QString> nonSymlinks;-
67 QSet<QString> known;-
68-
69 known.insert(path);-
70 do {-
71#ifdef Q_OS_WIN-
72 if (separatorPos == 0) {-
73 if (tmpPath.size() >= 2 && tmpPath.at(0) == slash && tmpPath.at(1) == slash) {-
74 // UNC, skip past the first two elements-
75 separatorPos = tmpPath.indexOf(slash, 2);-
76 } else if (tmpPath.size() >= 3 && tmpPath.at(1) == QLatin1Char(':') && tmpPath.at(2) == slash) {-
77 // volume root, skip since it can not be a symlink-
78 separatorPos = 2;-
79 }-
80 }-
81 if (separatorPos != -1)-
82#endif-
83 separatorPos = tmpPath.indexOf(slash, separatorPos + 1);-
84 QString prefix = separatorPos == -1 ? tmpPath : tmpPath.left(separatorPos);
separatorPos == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
85 if (!nonSymlinks.contains(prefix)) {
!nonSymlinks.contains(prefix)Description
TRUEnever evaluated
FALSEnever evaluated
0
86 fi.setFile(prefix);-
87 if (fi.isSymLink()) {
fi.isSymLink()Description
TRUEnever evaluated
FALSEnever evaluated
0
88 QString target = fi.symLinkTarget();-
89 if(QFileInfo(target).isRelative())
QFileInfo(target).isRelative()Description
TRUEnever evaluated
FALSEnever evaluated
0
90 target = fi.absolutePath() + slash + target;
never executed: target = fi.absolutePath() + slash + target;
0
91 if (separatorPos != -1) {
separatorPos != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
92 if (fi.isDir() && !target.endsWith(slash))
fi.isDir()Description
TRUEnever evaluated
FALSEnever evaluated
!target.endsWith(slash)Description
TRUEnever evaluated
FALSEnever evaluated
0
93 target.append(slash);
never executed: target.append(slash);
0
94 target.append(tmpPath.mid(separatorPos));-
95 }
never executed: end of block
0
96 tmpPath = QDir::cleanPath(target);-
97 separatorPos = 0;-
98-
99 if (known.contains(tmpPath))
known.contains(tmpPath)Description
TRUEnever evaluated
FALSEnever evaluated
0
100 return QString();
never executed: return QString();
0
101 known.insert(tmpPath);-
102 } else {
never executed: end of block
0
103 nonSymlinks.insert(prefix);-
104 }
never executed: end of block
0
105 }-
106 } while (separatorPos != -1);
never executed: end of block
separatorPos != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
107-
108 return QDir::cleanPath(tmpPath);
never executed: return QDir::cleanPath(tmpPath);
0
109}-
110-
111static inline bool _q_checkEntry(QFileSystemEntry &entry, QFileSystemMetaData &data, bool resolvingEntry)-
112{-
113 if (resolvingEntry) {
resolvingEntryDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
FALSEevaluated 256739 times by 301 tests
Evaluated 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
  • ...
46-256739
114 if (!QFileSystemEngine::fillMetaData(entry, data, QFileSystemMetaData::ExistsAttribute)
!QFileSystemEn...istsAttribute)Description
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
0-46
115 || !data.exists()) {
!data.exists()Description
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
0-46
116 data.clear();-
117 return false;
never executed: return false;
0
118 }-
119 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QNetworkReply
46
120-
121 return true;
executed 256785 times by 301 tests: return true;
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
  • ...
256785
122}-
123-
124static inline bool _q_checkEntry(QAbstractFileEngine *&engine, bool resolvingEntry)-
125{-
126 if (resolvingEntry) {
resolvingEntryDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 49049 times by 114 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
1-49049
127 if (!(engine->fileFlags(QAbstractFileEngine::FlagsMask) & QAbstractFileEngine::ExistsFlag)) {
!(engine->file...e::ExistsFlag)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
0-1
128 delete engine;-
129 engine = 0;-
130 return false;
never executed: return false;
0
131 }-
132 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDir
1
133-
134 return true;
executed 49050 times by 114 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
49050
135}-
136-
137static bool _q_resolveEntryAndCreateLegacyEngine_recursive(QFileSystemEntry &entry, QFileSystemMetaData &data,-
138 QAbstractFileEngine *&engine, bool resolvingEntry = false)-
139{-
140 QString const &filePath = entry.filePath();-
141 if ((engine = qt_custom_file_engine_handler_create(filePath)))
(engine = qt_c...ate(filePath))Description
TRUEevaluated 53 times by 3 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDirIterator
  • tst_QFile
FALSEevaluated 305862 times by 303 tests
Evaluated 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
  • ...
53-305862
142 return _q_checkEntry(engine, resolvingEntry);
executed 53 times by 3 tests: return _q_checkEntry(engine, resolvingEntry);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDirIterator
  • tst_QFile
53
143-
144#if defined(QT_BUILD_CORE_LIB)-
145 for (int prefixSeparator = 0; prefixSeparator < filePath.size(); ++prefixSeparator) {
prefixSeparato...ilePath.size()Description
TRUEevaluated 699631 times by 303 tests
Evaluated 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
  • ...
FALSEevaluated 21470 times by 224 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
21470-699631
146 QChar const ch = filePath[prefixSeparator];-
147 if (ch == QLatin1Char('/'))
ch == QLatin1Char('/')Description
TRUEevaluated 235313 times by 296 tests
Evaluated by:
  • tst_Gestures
  • 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
  • tst_QComboBox
  • ...
FALSEevaluated 464318 times by 238 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
235313-464318
148 break;
executed 235313 times by 296 tests: break;
Executed by:
  • tst_Gestures
  • 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
  • tst_QComboBox
  • ...
235313
149-
150 if (ch == QLatin1Char(':')) {
ch == QLatin1Char(':')Description
TRUEevaluated 49079 times by 115 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 415239 times by 235 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
49079-415239
151 if (prefixSeparator == 0) {
prefixSeparator == 0Description
TRUEevaluated 48998 times by 114 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 81 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
81-48998
152 engine = new QResourceFileEngine(filePath);-
153 return _q_checkEntry(engine, resolvingEntry);
executed 48997 times by 114 tests: return _q_checkEntry(engine, resolvingEntry);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
48997
154 }-
155-
156 if (prefixSeparator == 1)
prefixSeparator == 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 79 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
2-79
157 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QDir
2
158-
159 const QStringList &paths = QDir::searchPaths(filePath.left(prefixSeparator));-
160 for (int i = 0; i < paths.count(); i++) {
i < paths.count()Description
TRUEevaluated 47 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
FALSEevaluated 32 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32-47
161 entry = QFileSystemEntry(QDir::cleanPath(paths.at(i) % QLatin1Char('/') % filePath.midRef(prefixSeparator + 1)));-
162 // Recurse!-
163 if (_q_resolveEntryAndCreateLegacyEngine_recursive(entry, data, engine, true))
_q_resolveEntr... engine, true)Description
TRUEevaluated 47 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
FALSEnever evaluated
0-47
164 return true;
executed 47 times by 2 tests: return true;
Executed by:
  • tst_QDir
  • tst_QNetworkReply
47
165 }
never executed: end of block
0
166-
167 // entry may have been clobbered at this point.-
168 return false;
executed 32 times by 5 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32
169 }-
170-
171 // There's no need to fully validate the prefix here. Consulting the-
172 // unicode tables could be expensive and validation is already-
173 // performed in QDir::setSearchPaths.-
174 //-
175 // if (!ch.isLetterOrNumber())-
176 // break;-
177 }
executed 415239 times by 235 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
  • ...
415239
178#endif // defined(QT_BUILD_CORE_LIB)-
179-
180 return _q_checkEntry(entry, data, resolvingEntry);
executed 256785 times by 301 tests: return _q_checkEntry(entry, data, resolvingEntry);
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
  • ...
256785
181}-
182-
183/*!-
184 \internal-
185-
186 Resolves the \a entry (see QDir::searchPaths) and returns an engine for-
187 it, but never a QFSFileEngine.-
188-
189 Returns a file engine that can be used to access the entry. Returns 0 if-
190 QFileSystemEngine API should be used to query and interact with the file-
191 system object.-
192*/-
193QAbstractFileEngine *QFileSystemEngine::resolveEntryAndCreateLegacyEngine(-
194 QFileSystemEntry &entry, QFileSystemMetaData &data) {-
195 QFileSystemEntry copy = entry;-
196 QAbstractFileEngine *engine = 0;-
197-
198 if (_q_resolveEntryAndCreateLegacyEngine_recursive(copy, data, engine))
_q_resolveEntr... data, engine)Description
TRUEevaluated 305835 times by 303 tests
Evaluated 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
  • ...
FALSEevaluated 32 times by 5 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32-305835
199 // Reset entry to resolved copy.-
200 entry = copy;
executed 305835 times by 303 tests: entry = copy;
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
  • ...
305835
201 else-
202 data.clear();
executed 32 times by 5 tests: data.clear();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32
203-
204 return engine;
executed 305867 times by 303 tests: return engine;
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
  • ...
305867
205}-
206-
207//these unix functions are in this file, because they are shared by symbian port-
208//for open C file handles.-
209#ifdef Q_OS_UNIX-
210//static-
211bool QFileSystemEngine::fillMetaData(int fd, QFileSystemMetaData &data)-
212{-
213 data.entryFlags &= ~QFileSystemMetaData::PosixStatFlags;-
214 data.knownFlagsMask |= QFileSystemMetaData::PosixStatFlags;-
215-
216 QT_STATBUF statBuffer;-
217 if (QT_FSTAT(fd, &statBuffer) == 0) {
::fstat64(fd, ...atBuffer) == 0Description
TRUEevaluated 186381 times by 169 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
FALSEnever evaluated
0-186381
218 data.fillFromStatBuf(statBuffer);-
219 return true;
executed 186381 times by 169 tests: return true;
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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
186381
220 }-
221-
222 return false;
never executed: return false;
0
223}-
224-
225#if defined(_DEXTRA_FIRST)-
226static void fillStat64fromStat32(struct stat64 *statBuf64, const struct stat &statBuf32)-
227{-
228 statBuf64->st_mode = statBuf32.st_mode;-
229 statBuf64->st_size = statBuf32.st_size;-
230 statBuf64->st_ctime = statBuf32.st_ctime;-
231 statBuf64->st_mtime = statBuf32.st_mtime;-
232 statBuf64->st_atime = statBuf32.st_atime;-
233 statBuf64->st_uid = statBuf32.st_uid;-
234 statBuf64->st_gid = statBuf32.st_gid;-
235}-
236#endif-
237-
238void QFileSystemMetaData::fillFromStatBuf(const QT_STATBUF &statBuffer)-
239{-
240 // Permissions-
241 if (statBuffer.st_mode & S_IRUSR)
statBuffer.st_mode & 0400Description
TRUEevaluated 250257 times by 233 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 29 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkReply
29-250257
242 entryFlags |= QFileSystemMetaData::OwnerReadPermission;
executed 250257 times by 233 tests: entryFlags |= QFileSystemMetaData::OwnerReadPermission;
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
  • ...
250257
243 if (statBuffer.st_mode & S_IWUSR)
statBuffer.st_mode & 0200Description
TRUEevaluated 250130 times by 233 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 156 times by 16 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_languageChange
156-250130
244 entryFlags |= QFileSystemMetaData::OwnerWritePermission;
executed 250130 times by 233 tests: entryFlags |= QFileSystemMetaData::OwnerWritePermission;
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
  • ...
250130
245 if (statBuffer.st_mode & S_IXUSR)
statBuffer.st_mode & 0100Description
TRUEevaluated 20621 times by 199 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • ...
FALSEevaluated 229665 times by 182 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
20621-229665
246 entryFlags |= QFileSystemMetaData::OwnerExecutePermission;
executed 20621 times by 199 tests: entryFlags |= QFileSystemMetaData::OwnerExecutePermission;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • ...
20621
247-
248 if (statBuffer.st_mode & S_IRGRP)
statBuffer.st_... & (0400 >> 3)Description
TRUEevaluated 245731 times by 212 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 4555 times by 61 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QSaveFile
  • tst_QSharedPointer
  • tst_QSql
  • tst_QStorageInfo
  • ...
4555-245731
249 entryFlags |= QFileSystemMetaData::GroupReadPermission;
executed 245731 times by 212 tests: entryFlags |= QFileSystemMetaData::GroupReadPermission;
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
  • ...
245731
250 if (statBuffer.st_mode & S_IWGRP)
statBuffer.st_... & (0200 >> 3)Description
TRUEevaluated 712 times by 17 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QProcess
  • tst_QRawFont
  • tst_QSidebar
  • tst_QTemporaryFile
  • tst_QUuid
  • tst_languageChange
  • tst_qstandardpaths
  • tst_quuid - unknown status
FALSEevaluated 249574 times by 232 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
712-249574
251 entryFlags |= QFileSystemMetaData::GroupWritePermission;
executed 712 times by 17 tests: entryFlags |= QFileSystemMetaData::GroupWritePermission;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QProcess
  • tst_QRawFont
  • tst_QSidebar
  • tst_QTemporaryFile
  • tst_QUuid
  • tst_languageChange
  • tst_qstandardpaths
  • tst_quuid - unknown status
712
252 if (statBuffer.st_mode & S_IXGRP)
statBuffer.st_... & (0100 >> 3)Description
TRUEevaluated 18572 times by 179 tests
Evaluated by:
  • tst_NetworkSelfTest
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • ...
FALSEevaluated 231714 times by 208 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
18572-231714
253 entryFlags |= QFileSystemMetaData::GroupExecutePermission;
executed 18572 times by 179 tests: entryFlags |= QFileSystemMetaData::GroupExecutePermission;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • ...
18572
254-
255 if (statBuffer.st_mode & S_IROTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 242124 times by 211 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 8162 times by 63 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QSaveFile
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSql
  • ...
8162-242124
256 entryFlags |= QFileSystemMetaData::OtherReadPermission;
executed 242124 times by 211 tests: entryFlags |= QFileSystemMetaData::OtherReadPermission;
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
  • ...
242124
257 if (statBuffer.st_mode & S_IWOTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 550 times by 17 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QProcess
  • tst_QRawFont
  • tst_QSidebar
  • tst_QTemporaryFile
  • tst_QUuid
  • tst_languageChange
  • tst_qstandardpaths
  • tst_quuid - unknown status
FALSEevaluated 249736 times by 232 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
550-249736
258 entryFlags |= QFileSystemMetaData::OtherWritePermission;
executed 550 times by 17 tests: entryFlags |= QFileSystemMetaData::OtherWritePermission;
Executed by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QProcess
  • tst_QRawFont
  • tst_QSidebar
  • tst_QTemporaryFile
  • tst_QUuid
  • tst_languageChange
  • tst_qstandardpaths
  • tst_quuid - unknown status
550
259 if (statBuffer.st_mode & S_IXOTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 18573 times by 179 tests
Evaluated by:
  • tst_NetworkSelfTest
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • ...
FALSEevaluated 231713 times by 208 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
18573-231713
260 entryFlags |= QFileSystemMetaData::OtherExecutePermission;
executed 18573 times by 179 tests: entryFlags |= QFileSystemMetaData::OtherExecutePermission;
Executed by:
  • tst_NetworkSelfTest
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • ...
18573
261-
262 // Type-
263 if ((statBuffer.st_mode & S_IFMT) == S_IFREG)
(statBuffer.st...00) == 0100000Description
TRUEevaluated 232855 times by 197 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 17431 times by 184 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
17431-232855
264 entryFlags |= QFileSystemMetaData::FileType;
executed 232855 times by 197 tests: entryFlags |= QFileSystemMetaData::FileType;
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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
232855
265 else if ((statBuffer.st_mode & S_IFMT) == S_IFDIR)
(statBuffer.st...00) == 0040000Description
TRUEevaluated 16847 times by 179 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
FALSEevaluated 584 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRawFont
  • tst_QUuid
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
  • tst_quuid - unknown status
584-16847
266 entryFlags |= QFileSystemMetaData::DirectoryType;
executed 16847 times by 179 tests: entryFlags |= QFileSystemMetaData::DirectoryType;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
16847
267 else if ((statBuffer.st_mode & S_IFMT) != S_IFBLK)
(statBuffer.st...00) != 0060000Description
TRUEevaluated 566 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRawFont
  • tst_QUuid
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
  • tst_quuid - unknown status
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QItemModel
18-566
268 entryFlags |= QFileSystemMetaData::SequentialType;
executed 566 times by 13 tests: entryFlags |= QFileSystemMetaData::SequentialType;
Executed by:
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRawFont
  • tst_QUuid
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qnetworkreply - unknown status
  • tst_quuid - unknown status
566
269-
270 // Attributes-
271 entryFlags |= QFileSystemMetaData::ExistsAttribute;-
272 size_ = statBuffer.st_size;-
273#if defined(Q_OS_DARWIN)-
274 if (statBuffer.st_flags & UF_HIDDEN) {-
275 entryFlags |= QFileSystemMetaData::HiddenAttribute;-
276 knownFlagsMask |= QFileSystemMetaData::HiddenAttribute;-
277 }-
278#endif-
279-
280 // Times-
281 creationTime_ = statBuffer.st_ctime ? statBuffer.st_ctime : statBuffer.st_mtime;
statBuffer.st_ctim.tv_secDescription
TRUEevaluated 250283 times by 233 tests
Evaluated by:
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemModel
3-250283
282 modificationTime_ = statBuffer.st_mtime;-
283 accessTime_ = statBuffer.st_atime;-
284 userId_ = statBuffer.st_uid;-
285 groupId_ = statBuffer.st_gid;-
286}
executed 250286 times by 233 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_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
  • ...
250286
287-
288void QFileSystemMetaData::fillFromDirEnt(const QT_DIRENT &entry)-
289{-
290#if defined(_DEXTRA_FIRST)-
291 knownFlagsMask = 0;-
292 entryFlags = 0;-
293 for (dirent_extra *extra = _DEXTRA_FIRST(&entry); _DEXTRA_VALID(extra, &entry);-
294 extra = _DEXTRA_NEXT(extra)) {-
295 if (extra->d_type == _DTYPE_STAT || extra->d_type == _DTYPE_LSTAT) {-
296-
297 const struct dirent_extra_stat * const extra_stat =-
298 reinterpret_cast<struct dirent_extra_stat *>(extra);-
299-
300 // Remember whether this was a link or not, this saves an lstat() call later.-
301 if (extra->d_type == _DTYPE_LSTAT) {-
302 knownFlagsMask |= QFileSystemMetaData::LinkType;-
303 if (S_ISLNK(extra_stat->d_stat.st_mode))-
304 entryFlags |= QFileSystemMetaData::LinkType;-
305 }-
306-
307 // For symlinks, the extra type _DTYPE_LSTAT doesn't work for filling out the meta data,-
308 // as we need the stat() information there, not the lstat() information.-
309 // In this case, don't use the extra information.-
310 // Unfortunately, readdir() never seems to return extra info of type _DTYPE_STAT, so for-
311 // symlinks, we always incur the cost of an extra stat() call later.-
312 if (S_ISLNK(extra_stat->d_stat.st_mode) && extra->d_type == _DTYPE_LSTAT)-
313 continue;-
314-
315#if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT)-
316 // Even with large file support, d_stat is always of type struct stat, not struct stat64,-
317 // so it needs to be converted-
318 struct stat64 statBuf;-
319 fillStat64fromStat32(&statBuf, extra_stat->d_stat);-
320 fillFromStatBuf(statBuf);-
321#else-
322 fillFromStatBuf(extra_stat->d_stat);-
323#endif-
324 knownFlagsMask |= QFileSystemMetaData::PosixStatFlags;-
325 if (!S_ISLNK(extra_stat->d_stat.st_mode)) {-
326 knownFlagsMask |= QFileSystemMetaData::ExistsAttribute;-
327 entryFlags |= QFileSystemMetaData::ExistsAttribute;-
328 }-
329 }-
330 }-
331#elif defined(_DIRENT_HAVE_D_TYPE) || defined(Q_OS_BSD4)-
332 // BSD4 includes OS X and iOS-
333-
334 // ### This will clear all entry flags and knownFlagsMask-
335 switch (entry.d_type)-
336 {-
337 case DT_DIR:
executed 26209 times by 165 tests: case DT_DIR:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
26209
338 knownFlagsMask = QFileSystemMetaData::LinkType-
339 | QFileSystemMetaData::FileType-
340 | QFileSystemMetaData::DirectoryType-
341 | QFileSystemMetaData::SequentialType-
342 | QFileSystemMetaData::ExistsAttribute;-
343-
344 entryFlags = QFileSystemMetaData::DirectoryType-
345 | QFileSystemMetaData::ExistsAttribute;-
346-
347 break;
executed 26209 times by 165 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • ...
26209
348-
349 case DT_BLK:
executed 16 times by 2 tests: case DT_BLK:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
16
350 knownFlagsMask = QFileSystemMetaData::LinkType-
351 | QFileSystemMetaData::FileType-
352 | QFileSystemMetaData::DirectoryType-
353 | QFileSystemMetaData::BundleType-
354 | QFileSystemMetaData::AliasType-
355 | QFileSystemMetaData::SequentialType-
356 | QFileSystemMetaData::ExistsAttribute;-
357-
358 entryFlags = QFileSystemMetaData::ExistsAttribute;-
359-
360 break;
executed 16 times by 2 tests: break;
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
16
361-
362 case DT_CHR:
executed 279 times by 2 tests: case DT_CHR:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
279
363 case DT_FIFO:
executed 6 times by 3 tests: case DT_FIFO:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
6
364 case DT_SOCK:
executed 3 times by 1 test: case DT_SOCK:
Executed by:
  • tst_QItemModel
3
365 // ### System attribute-
366 knownFlagsMask = QFileSystemMetaData::LinkType-
367 | QFileSystemMetaData::FileType-
368 | QFileSystemMetaData::DirectoryType-
369 | QFileSystemMetaData::BundleType-
370 | QFileSystemMetaData::AliasType-
371 | QFileSystemMetaData::SequentialType-
372 | QFileSystemMetaData::ExistsAttribute;-
373-
374 entryFlags = QFileSystemMetaData::SequentialType-
375 | QFileSystemMetaData::ExistsAttribute;-
376-
377 break;
executed 288 times by 3 tests: break;
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
288
378-
379 case DT_LNK:
executed 57916 times by 28 tests: case DT_LNK:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSaveFile
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • ...
57916
380 knownFlagsMask = QFileSystemMetaData::LinkType;-
381 entryFlags = QFileSystemMetaData::LinkType;-
382 break;
executed 57916 times by 28 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSaveFile
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • ...
57916
383-
384 case DT_REG:
executed 16103 times by 148 tests: case DT_REG:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
16103
385 knownFlagsMask = QFileSystemMetaData::LinkType-
386 | QFileSystemMetaData::FileType-
387 | QFileSystemMetaData::DirectoryType-
388 | QFileSystemMetaData::BundleType-
389 | QFileSystemMetaData::SequentialType-
390 | QFileSystemMetaData::ExistsAttribute;-
391-
392 entryFlags = QFileSystemMetaData::FileType-
393 | QFileSystemMetaData::ExistsAttribute;-
394-
395 break;
executed 16103 times by 148 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFactoryLoader
  • tst_QFile
  • ...
16103
396-
397 case DT_UNKNOWN:
never executed: case DT_UNKNOWN:
0
398 default:
never executed: default:
0
399 clear();-
400 }
never executed: end of block
0
401#else-
402 Q_UNUSED(entry)-
403#endif-
404}-
405-
406#endif-
407-
408//static-
409QString QFileSystemEngine::resolveUserName(const QFileSystemEntry &entry, QFileSystemMetaData &metaData)-
410{-
411#if defined(Q_OS_WIN)-
412 Q_UNUSED(metaData);-
413 return QFileSystemEngine::owner(entry, QAbstractFileEngine::OwnerUser);-
414#else //(Q_OS_UNIX)-
415 if (!metaData.hasFlags(QFileSystemMetaData::UserId))
!metaData.hasF...aData::UserId)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
0-1
416 QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::UserId);
never executed: QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::UserId);
0
417 return resolveUserName(metaData.userId());
executed 1 time by 1 test: return resolveUserName(metaData.userId());
Executed by:
  • tst_QFileInfo
1
418#endif-
419}-
420-
421//static-
422QString QFileSystemEngine::resolveGroupName(const QFileSystemEntry &entry, QFileSystemMetaData &metaData)-
423{-
424#if defined(Q_OS_WIN)-
425 Q_UNUSED(metaData);-
426 return QFileSystemEngine::owner(entry, QAbstractFileEngine::OwnerGroup);-
427#else //(Q_OS_UNIX)-
428 if (!metaData.hasFlags(QFileSystemMetaData::GroupId))
!metaData.hasF...Data::GroupId)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
0-1
429 QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::GroupId);
never executed: QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::GroupId);
0
430 return resolveGroupName(metaData.groupId());
executed 1 time by 1 test: return resolveGroupName(metaData.groupId());
Executed by:
  • tst_QFileInfo
1
431#endif-
432}-
433-
434QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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