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) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
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 http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://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 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include "qfilesystemengine_p.h"-
35#include <QtCore/qdir.h>-
36#include <QtCore/qset.h>-
37#include <QtCore/qstringbuilder.h>-
38#include <QtCore/private/qabstractfileengine_p.h>-
39#ifdef QT_BUILD_CORE_LIB-
40#include <QtCore/private/qresource_p.h>-
41#endif-
42-
43QT_BEGIN_NAMESPACE-
44-
45/*!-
46 \internal-
47-
48 Returns the canonicalized form of \a path (i.e., with all symlinks-
49 resolved, and all redundant path elements removed.-
50*/-
51QString QFileSystemEngine::slowCanonicalized(const QString &path)-
52{-
53 if (path.isEmpty())
path.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
54 return path;
never executed: return path;
0
55-
56 QFileInfo fi;-
57 const QChar slash(QLatin1Char('/'));-
58 QString tmpPath = path;-
59 int separatorPos = 0;-
60 QSet<QString> nonSymlinks;-
61 QSet<QString> known;-
62-
63 known.insert(path);-
64 do {-
65#ifdef Q_OS_WIN-
66 if (separatorPos == 0) {-
67 if (tmpPath.size() >= 2 && tmpPath.at(0) == slash && tmpPath.at(1) == slash) {-
68 // UNC, skip past the first two elements-
69 separatorPos = tmpPath.indexOf(slash, 2);-
70 } else if (tmpPath.size() >= 3 && tmpPath.at(1) == QLatin1Char(':') && tmpPath.at(2) == slash) {-
71 // volume root, skip since it can not be a symlink-
72 separatorPos = 2;-
73 }-
74 }-
75 if (separatorPos != -1)-
76#endif-
77 separatorPos = tmpPath.indexOf(slash, separatorPos + 1);-
78 QString prefix = separatorPos == -1 ? tmpPath : tmpPath.left(separatorPos);
separatorPos == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
79 if (!nonSymlinks.contains(prefix)) {
!nonSymlinks.contains(prefix)Description
TRUEnever evaluated
FALSEnever evaluated
0
80 fi.setFile(prefix);-
81 if (fi.isSymLink()) {
fi.isSymLink()Description
TRUEnever evaluated
FALSEnever evaluated
0
82 QString target = fi.symLinkTarget();-
83 if(QFileInfo(target).isRelative())
QFileInfo(target).isRelative()Description
TRUEnever evaluated
FALSEnever evaluated
0
84 target = fi.absolutePath() + slash + target;
never executed: target = fi.absolutePath() + slash + target;
0
85 if (separatorPos != -1) {
separatorPos != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
86 if (fi.isDir() && !target.endsWith(slash))
fi.isDir()Description
TRUEnever evaluated
FALSEnever evaluated
!target.endsWith(slash)Description
TRUEnever evaluated
FALSEnever evaluated
0
87 target.append(slash);
never executed: target.append(slash);
0
88 target.append(tmpPath.mid(separatorPos));-
89 }
never executed: end of block
0
90 tmpPath = QDir::cleanPath(target);-
91 separatorPos = 0;-
92-
93 if (known.contains(tmpPath))
known.contains(tmpPath)Description
TRUEnever evaluated
FALSEnever evaluated
0
94 return QString();
never executed: return QString();
0
95 known.insert(tmpPath);-
96 } else {
never executed: end of block
0
97 nonSymlinks.insert(prefix);-
98 }
never executed: end of block
0
99 }-
100 } while (separatorPos != -1);
never executed: end of block
separatorPos != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
101-
102 return QDir::cleanPath(tmpPath);
never executed: return QDir::cleanPath(tmpPath);
0
103}-
104-
105static inline bool _q_checkEntry(QFileSystemEntry &entry, QFileSystemMetaData &data, bool resolvingEntry)-
106{-
107 if (resolvingEntry) {
resolvingEntryDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
FALSEevaluated 544969 times by 300 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-544969
108 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
109 || !data.exists()) {
!data.exists()Description
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QNetworkReply
0-46
110 data.clear();-
111 return false;
never executed: return false;
0
112 }-
113 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_QDir
  • tst_QNetworkReply
46
114-
115 return true;
executed 545015 times by 300 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
  • ...
545015
116}-
117-
118static inline bool _q_checkEntry(QAbstractFileEngine *&engine, bool resolvingEntry)-
119{-
120 if (resolvingEntry) {
resolvingEntryDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 44726 times by 112 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-44726
121 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
122 delete engine;-
123 engine = 0;-
124 return false;
never executed: return false;
0
125 }-
126 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDir
1
127-
128 return true;
executed 44727 times by 112 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
  • ...
44727
129}-
130-
131static bool _q_resolveEntryAndCreateLegacyEngine_recursive(QFileSystemEntry &entry, QFileSystemMetaData &data,-
132 QAbstractFileEngine *&engine, bool resolvingEntry = false)-
133{-
134 QString const &filePath = entry.filePath();-
135 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 589768 times by 302 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-589768
136 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
137-
138#if defined(QT_BUILD_CORE_LIB)-
139 for (int prefixSeparator = 0; prefixSeparator < filePath.size(); ++prefixSeparator) {
prefixSeparato...ilePath.size()Description
TRUEevaluated 2156379 times by 302 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 122542 times by 223 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
  • ...
122542-2156379
140 QChar const ch = filePath[prefixSeparator];-
141 if (ch == QLatin1Char('/'))
ch == QLatin1Char('/')Description
TRUEevaluated 422471 times by 295 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 1733908 times by 237 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
  • ...
422471-1733908
142 break;
executed 422471 times by 295 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
  • ...
422471
143-
144 if (ch == QLatin1Char(':')) {
ch == QLatin1Char(':')Description
TRUEevaluated 44755 times by 113 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 1689153 times by 234 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
  • ...
44755-1689153
145 if (prefixSeparator == 0) {
prefixSeparator == 0Description
TRUEevaluated 44674 times by 112 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-44674
146 engine = new QResourceFileEngine(filePath);-
147 return _q_checkEntry(engine, resolvingEntry);
executed 44674 times by 112 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
  • ...
44674
148 }-
149-
150 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
151 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QDir
2
152-
153 const QStringList &paths = QDir::searchPaths(filePath.left(prefixSeparator));-
154 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
155 entry = QFileSystemEntry(QDir::cleanPath(paths.at(i) % QLatin1Char('/') % filePath.midRef(prefixSeparator + 1)));-
156 // Recurse!-
157 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
158 return true;
executed 47 times by 2 tests: return true;
Executed by:
  • tst_QDir
  • tst_QNetworkReply
47
159 }
never executed: end of block
0
160-
161 // entry may have been clobbered at this point.-
162 return false;
executed 32 times by 5 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32
163 }-
164-
165 // There's no need to fully validate the prefix here. Consulting the-
166 // unicode tables could be expensive and validation is already-
167 // performed in QDir::setSearchPaths.-
168 //-
169 // if (!ch.isLetterOrNumber())-
170 // break;-
171 }
executed 1689153 times by 234 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
  • ...
1689153
172#endif // defined(QT_BUILD_CORE_LIB)-
173-
174 return _q_checkEntry(entry, data, resolvingEntry);
executed 545015 times by 300 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
  • ...
545015
175}-
176-
177/*!-
178 \internal-
179-
180 Resolves the \a entry (see QDir::searchPaths) and returns an engine for-
181 it, but never a QFSFileEngine.-
182-
183 Returns a file engine that can be used to access the entry. Returns 0 if-
184 QFileSystemEngine API should be used to query and interact with the file-
185 system object.-
186*/-
187QAbstractFileEngine *QFileSystemEngine::resolveEntryAndCreateLegacyEngine(-
188 QFileSystemEntry &entry, QFileSystemMetaData &data) {-
189 QFileSystemEntry copy = entry;-
190 QAbstractFileEngine *engine = 0;-
191-
192 if (_q_resolveEntryAndCreateLegacyEngine_recursive(copy, data, engine))
_q_resolveEntr... data, engine)Description
TRUEevaluated 589742 times by 302 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-589742
193 // Reset entry to resolved copy.-
194 entry = copy;
executed 589742 times by 302 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
  • ...
589742
195 else-
196 data.clear();
executed 32 times by 5 tests: data.clear();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QUrl
32
197-
198 return engine;
executed 589774 times by 302 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
  • ...
589774
199}-
200-
201//these unix functions are in this file, because they are shared by symbian port-
202//for open C file handles.-
203#ifdef Q_OS_UNIX-
204//static-
205bool QFileSystemEngine::fillMetaData(int fd, QFileSystemMetaData &data)-
206{-
207 data.entryFlags &= ~QFileSystemMetaData::PosixStatFlags;-
208 data.knownFlagsMask |= QFileSystemMetaData::PosixStatFlags;-
209-
210 QT_STATBUF statBuffer;-
211 if (QT_FSTAT(fd, &statBuffer) == 0) {
::fstat64(fd, ...atBuffer) == 0Description
TRUEevaluated 180608 times by 168 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-180608
212 data.fillFromStatBuf(statBuffer);-
213 return true;
executed 180608 times by 168 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
  • ...
180608
214 }-
215-
216 return false;
never executed: return false;
0
217}-
218-
219#if defined(_DEXTRA_FIRST)-
220static void fillStat64fromStat32(struct stat64 *statBuf64, const struct stat &statBuf32)-
221{-
222 statBuf64->st_mode = statBuf32.st_mode;-
223 statBuf64->st_size = statBuf32.st_size;-
224 statBuf64->st_ctime = statBuf32.st_ctime;-
225 statBuf64->st_mtime = statBuf32.st_mtime;-
226 statBuf64->st_atime = statBuf32.st_atime;-
227 statBuf64->st_uid = statBuf32.st_uid;-
228 statBuf64->st_gid = statBuf32.st_gid;-
229}-
230#endif-
231-
232void QFileSystemMetaData::fillFromStatBuf(const QT_STATBUF &statBuffer)-
233{-
234 // Permissions-
235 if (statBuffer.st_mode & S_IRUSR)
statBuffer.st_mode & 0400Description
TRUEevaluated 239257 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
  • ...
FALSEevaluated 27 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkReply
27-239257
236 entryFlags |= QFileSystemMetaData::OwnerReadPermission;
executed 239257 times by 232 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
  • ...
239257
237 if (statBuffer.st_mode & S_IWUSR)
statBuffer.st_mode & 0200Description
TRUEevaluated 239135 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
  • ...
FALSEevaluated 149 times by 15 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QSaveFile
  • tst_languageChange
149-239135
238 entryFlags |= QFileSystemMetaData::OwnerWritePermission;
executed 239135 times by 232 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
  • ...
239135
239 if (statBuffer.st_mode & S_IXUSR)
statBuffer.st_mode & 0100Description
TRUEevaluated 19117 times by 197 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 220167 times by 181 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
  • ...
19117-220167
240 entryFlags |= QFileSystemMetaData::OwnerExecutePermission;
executed 19117 times by 197 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
  • ...
19117
241-
242 if (statBuffer.st_mode & S_IRGRP)
statBuffer.st_... & (0400 >> 3)Description
TRUEevaluated 234699 times by 210 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 4585 times by 60 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_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
  • tst_QTemporaryDir
  • ...
4585-234699
243 entryFlags |= QFileSystemMetaData::GroupReadPermission;
executed 234699 times by 210 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
  • ...
234699
244 if (statBuffer.st_mode & S_IWGRP)
statBuffer.st_... & (0200 >> 3)Description
TRUEevaluated 710 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 238574 times by 231 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
  • ...
710-238574
245 entryFlags |= QFileSystemMetaData::GroupWritePermission;
executed 710 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
710
246 if (statBuffer.st_mode & S_IXGRP)
statBuffer.st_... & (0100 >> 3)Description
TRUEevaluated 17072 times by 177 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 222212 times by 207 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
  • ...
17072-222212
247 entryFlags |= QFileSystemMetaData::GroupExecutePermission;
executed 17072 times by 177 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
  • ...
17072
248-
249 if (statBuffer.st_mode & S_IROTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 231092 times by 209 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 8192 times by 62 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_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
  • tst_QStorageInfo
  • ...
8192-231092
250 entryFlags |= QFileSystemMetaData::OtherReadPermission;
executed 231092 times by 209 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
  • ...
231092
251 if (statBuffer.st_mode & S_IWOTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 548 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 238736 times by 231 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
  • ...
548-238736
252 entryFlags |= QFileSystemMetaData::OtherWritePermission;
executed 548 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
548
253 if (statBuffer.st_mode & S_IXOTH)
statBuffer.st_...00 >> 3) >> 3)Description
TRUEevaluated 17073 times by 177 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 222211 times by 207 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
  • ...
17073-222211
254 entryFlags |= QFileSystemMetaData::OtherExecutePermission;
executed 17073 times by 177 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
  • ...
17073
255-
256 // Type-
257 if ((statBuffer.st_mode & S_IFMT) == S_IFREG)
(statBuffer.st...00) == 0100000Description
TRUEevaluated 223090 times by 195 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 16194 times by 183 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
  • ...
16194-223090
258 entryFlags |= QFileSystemMetaData::FileType;
executed 223090 times by 195 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
  • ...
223090
259 else if ((statBuffer.st_mode & S_IFMT) == S_IFDIR)
(statBuffer.st...00) == 0040000Description
TRUEevaluated 15610 times by 178 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-15610
260 entryFlags |= QFileSystemMetaData::DirectoryType;
executed 15610 times by 178 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
  • ...
15610
261 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
262 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
263-
264 // Attributes-
265 entryFlags |= QFileSystemMetaData::ExistsAttribute;-
266 size_ = statBuffer.st_size;-
267#if defined(Q_OS_DARWIN)-
268 if (statBuffer.st_flags & UF_HIDDEN) {-
269 entryFlags |= QFileSystemMetaData::HiddenAttribute;-
270 knownFlagsMask |= QFileSystemMetaData::HiddenAttribute;-
271 }-
272#endif-
273-
274 // Times-
275 creationTime_ = statBuffer.st_ctime ? statBuffer.st_ctime : statBuffer.st_mtime;
statBuffer.st_ctim.tv_secDescription
TRUEevaluated 239281 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
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemModel
3-239281
276 modificationTime_ = statBuffer.st_mtime;-
277 accessTime_ = statBuffer.st_atime;-
278 userId_ = statBuffer.st_uid;-
279 groupId_ = statBuffer.st_gid;-
280}
executed 239284 times by 232 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
  • ...
239284
281-
282void QFileSystemMetaData::fillFromDirEnt(const QT_DIRENT &entry)-
283{-
284#if defined(_DEXTRA_FIRST)-
285 knownFlagsMask = 0;-
286 entryFlags = 0;-
287 for (dirent_extra *extra = _DEXTRA_FIRST(&entry); _DEXTRA_VALID(extra, &entry);-
288 extra = _DEXTRA_NEXT(extra)) {-
289 if (extra->d_type == _DTYPE_STAT || extra->d_type == _DTYPE_LSTAT) {-
290-
291 const struct dirent_extra_stat * const extra_stat =-
292 reinterpret_cast<struct dirent_extra_stat *>(extra);-
293-
294 // Remember whether this was a link or not, this saves an lstat() call later.-
295 if (extra->d_type == _DTYPE_LSTAT) {-
296 knownFlagsMask |= QFileSystemMetaData::LinkType;-
297 if (S_ISLNK(extra_stat->d_stat.st_mode))-
298 entryFlags |= QFileSystemMetaData::LinkType;-
299 }-
300-
301 // For symlinks, the extra type _DTYPE_LSTAT doesn't work for filling out the meta data,-
302 // as we need the stat() information there, not the lstat() information.-
303 // In this case, don't use the extra information.-
304 // Unfortunately, readdir() never seems to return extra info of type _DTYPE_STAT, so for-
305 // symlinks, we always incur the cost of an extra stat() call later.-
306 if (S_ISLNK(extra_stat->d_stat.st_mode) && extra->d_type == _DTYPE_LSTAT)-
307 continue;-
308-
309#if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT)-
310 // Even with large file support, d_stat is always of type struct stat, not struct stat64,-
311 // so it needs to be converted-
312 struct stat64 statBuf;-
313 fillStat64fromStat32(&statBuf, extra_stat->d_stat);-
314 fillFromStatBuf(statBuf);-
315#else-
316 fillFromStatBuf(extra_stat->d_stat);-
317#endif-
318 knownFlagsMask |= QFileSystemMetaData::PosixStatFlags;-
319 if (!S_ISLNK(extra_stat->d_stat.st_mode)) {-
320 knownFlagsMask |= QFileSystemMetaData::ExistsAttribute;-
321 entryFlags |= QFileSystemMetaData::ExistsAttribute;-
322 }-
323 }-
324 }-
325#elif defined(_DIRENT_HAVE_D_TYPE) || defined(Q_OS_BSD4)-
326 // BSD4 includes OS X and iOS-
327-
328 // ### This will clear all entry flags and knownFlagsMask-
329 switch (entry.d_type)-
330 {-
331 case DT_DIR:
executed 26197 times by 164 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
  • ...
26197
332 knownFlagsMask = QFileSystemMetaData::LinkType-
333 | QFileSystemMetaData::FileType-
334 | QFileSystemMetaData::DirectoryType-
335 | QFileSystemMetaData::SequentialType-
336 | QFileSystemMetaData::ExistsAttribute;-
337-
338 entryFlags = QFileSystemMetaData::DirectoryType-
339 | QFileSystemMetaData::ExistsAttribute;-
340-
341 break;
executed 26197 times by 164 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
  • ...
26197
342-
343 case DT_BLK:
executed 16 times by 2 tests: case DT_BLK:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
16
344 knownFlagsMask = QFileSystemMetaData::LinkType-
345 | QFileSystemMetaData::FileType-
346 | QFileSystemMetaData::DirectoryType-
347 | QFileSystemMetaData::BundleType-
348 | QFileSystemMetaData::AliasType-
349 | QFileSystemMetaData::SequentialType-
350 | QFileSystemMetaData::ExistsAttribute;-
351-
352 entryFlags = QFileSystemMetaData::ExistsAttribute;-
353-
354 break;
executed 16 times by 2 tests: break;
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
16
355-
356 case DT_CHR:
executed 279 times by 2 tests: case DT_CHR:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
279
357 case DT_FIFO:
executed 6 times by 3 tests: case DT_FIFO:
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
6
358 case DT_SOCK:
executed 3 times by 1 test: case DT_SOCK:
Executed by:
  • tst_QItemModel
3
359 // ### System attribute-
360 knownFlagsMask = QFileSystemMetaData::LinkType-
361 | QFileSystemMetaData::FileType-
362 | QFileSystemMetaData::DirectoryType-
363 | QFileSystemMetaData::BundleType-
364 | QFileSystemMetaData::AliasType-
365 | QFileSystemMetaData::SequentialType-
366 | QFileSystemMetaData::ExistsAttribute;-
367-
368 entryFlags = QFileSystemMetaData::SequentialType-
369 | QFileSystemMetaData::ExistsAttribute;-
370-
371 break;
executed 288 times by 3 tests: break;
Executed by:
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QMimeDatabase
288
372-
373 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
374 knownFlagsMask = QFileSystemMetaData::LinkType;-
375 entryFlags = QFileSystemMetaData::LinkType;-
376 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
377-
378 case DT_REG:
executed 15794 times by 147 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
  • ...
15794
379 knownFlagsMask = QFileSystemMetaData::LinkType-
380 | QFileSystemMetaData::FileType-
381 | QFileSystemMetaData::DirectoryType-
382 | QFileSystemMetaData::BundleType-
383 | QFileSystemMetaData::SequentialType-
384 | QFileSystemMetaData::ExistsAttribute;-
385-
386 entryFlags = QFileSystemMetaData::FileType-
387 | QFileSystemMetaData::ExistsAttribute;-
388-
389 break;
executed 15794 times by 147 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
  • ...
15794
390-
391 case DT_UNKNOWN:
never executed: case DT_UNKNOWN:
0
392 default:
never executed: default:
0
393 clear();-
394 }
never executed: end of block
0
395#else-
396 Q_UNUSED(entry)-
397#endif-
398}-
399-
400#endif-
401-
402//static-
403QString QFileSystemEngine::resolveUserName(const QFileSystemEntry &entry, QFileSystemMetaData &metaData)-
404{-
405#if defined(Q_OS_WIN)-
406 Q_UNUSED(metaData);-
407 return QFileSystemEngine::owner(entry, QAbstractFileEngine::OwnerUser);-
408#else //(Q_OS_UNIX)-
409 if (!metaData.hasFlags(QFileSystemMetaData::UserId))
!metaData.hasF...aData::UserId)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
0-1
410 QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::UserId);
never executed: QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::UserId);
0
411 return resolveUserName(metaData.userId());
executed 1 time by 1 test: return resolveUserName(metaData.userId());
Executed by:
  • tst_QFileInfo
1
412#endif-
413}-
414-
415//static-
416QString QFileSystemEngine::resolveGroupName(const QFileSystemEntry &entry, QFileSystemMetaData &metaData)-
417{-
418#if defined(Q_OS_WIN)-
419 Q_UNUSED(metaData);-
420 return QFileSystemEngine::owner(entry, QAbstractFileEngine::OwnerGroup);-
421#else //(Q_OS_UNIX)-
422 if (!metaData.hasFlags(QFileSystemMetaData::GroupId))
!metaData.hasF...Data::GroupId)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
0-1
423 QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::GroupId);
never executed: QFileSystemEngine::fillMetaData(entry, metaData, QFileSystemMetaData::GroupId);
0
424 return resolveGroupName(metaData.groupId());
executed 1 time by 1 test: return resolveGroupName(metaData.groupId());
Executed by:
  • tst_QFileInfo
1
425#endif-
426}-
427-
428QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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