| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | - | |||||||||||||
| 8 | QFileSystemIterator::QFileSystemIterator(const QFileSystemEntry &entry, QDir::Filters filters, | - | ||||||||||||
| 9 | const QStringList &nameFilters, QDirIterator::IteratorFlags flags) | - | ||||||||||||
| 10 | : nativePath(entry.nativeFilePath()) | - | ||||||||||||
| 11 | , dir(0) | - | ||||||||||||
| 12 | , dirEntry(0) | - | ||||||||||||
| 13 | , lastError(0) | - | ||||||||||||
| 14 | { | - | ||||||||||||
| 15 | (void)filters; | - | ||||||||||||
| 16 | (void)nameFilters; | - | ||||||||||||
| 17 | (void)flags; | - | ||||||||||||
| 18 | - | |||||||||||||
| 19 | if ((
| 468-6909 | ||||||||||||
| 20 | lastError = (*__errno_location ()); | - | ||||||||||||
| 21 | } executed 468 times by 8 tests: else {end of blockExecuted by:
| 468 | ||||||||||||
| 22 | if (!nativePath.endsWith('/')
| 184-6725 | ||||||||||||
| 23 | nativePath.append('/'); executed 6725 times by 159 tests: nativePath.append('/');Executed by:
| 6725 | ||||||||||||
| 24 | } executed 6909 times by 164 tests: end of blockExecuted by:
| 6909 | ||||||||||||
| 25 | } | - | ||||||||||||
| 26 | - | |||||||||||||
| 27 | QFileSystemIterator::~QFileSystemIterator() | - | ||||||||||||
| 28 | { | - | ||||||||||||
| 29 | if (dir
| 468-6909 | ||||||||||||
| 30 | :: executed 6909 times by 164 tests: closedir(dir);::closedir(dir);Executed by:
executed 6909 times by 164 tests: ::closedir(dir);Executed by:
| 6909 | ||||||||||||
| 31 | } executed 7377 times by 165 tests: end of blockExecuted by:
| 7377 | ||||||||||||
| 32 | - | |||||||||||||
| 33 | bool QFileSystemIterator::advance(QFileSystemEntry &fileEntry, QFileSystemMetaData &metaData) | - | ||||||||||||
| 34 | { | - | ||||||||||||
| 35 | if (!dir
| 468-107102 | ||||||||||||
| 36 | return executed 468 times by 8 tests: false;return false;Executed by:
executed 468 times by 8 tests: return false;Executed by:
| 468 | ||||||||||||
| 37 | - | |||||||||||||
| 38 | dirEntry = ::readdir64(dir); | - | ||||||||||||
| 39 | - | |||||||||||||
| 40 | if (dirEntry
| 6891-100211 | ||||||||||||
| 41 | fileEntry = QFileSystemEntry(nativePath + QByteArray(dirEntry->d_name), QFileSystemEntry::FromNativePath()); | - | ||||||||||||
| 42 | metaData.fillFromDirEnt(*dirEntry); | - | ||||||||||||
| 43 | return executed 100211 times by 164 tests: true;return true;Executed by:
executed 100211 times by 164 tests: return true;Executed by:
| 100211 | ||||||||||||
| 44 | } | - | ||||||||||||
| 45 | - | |||||||||||||
| 46 | lastError = (*__errno_location ()); | - | ||||||||||||
| 47 | return executed 6891 times by 159 tests: false;return false;Executed by:
executed 6891 times by 159 tests: return false;Executed by:
| 6891 | ||||||||||||
| 48 | } | - | ||||||||||||
| 49 | - | |||||||||||||
| 50 | - | |||||||||||||
| Switch to Source code | Preprocessed file |