| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | namespace QtPrivate { | - |
| 7 | | - |
| 8 | ResultIteratorBase::ResultIteratorBase() | - |
| 9 | : mapIterator(QMap<int, ResultItem>::const_iterator()), m_vectorIndex(0) { } never executed: end of block | 0 |
| 10 | ResultIteratorBase::ResultIteratorBase(QMap<int, ResultItem>::const_iterator _mapIterator, int _vectorIndex) | - |
| 11 | : mapIterator(_mapIterator), m_vectorIndex(_vectorIndex) { }executed 304147 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 304147 |
| 12 | | - |
| 13 | int ResultIteratorBase::vectorIndex() const { return never executed: return m_vectorIndex; m_vectorIndex;never executed: return m_vectorIndex; } | 0 |
| 14 | int ResultIteratorBase::resultIndex() const { returnexecuted 205 times by 3 tests: return mapIterator.key() + m_vectorIndex;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentResultStore
mapIterator.key() + m_vectorIndex;executed 205 times by 3 tests: return mapIterator.key() + m_vectorIndex;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentResultStore
} | 205 |
| 15 | | - |
| 16 | ResultIteratorBase ResultIteratorBase::operator++() | - |
| 17 | { | - |
| 18 | if (canIncrementVectorIndex()| TRUE | evaluated 215 times by 4 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| | FALSE | evaluated 374 times by 6 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
|
) { | 215-374 |
| 19 | ++m_vectorIndex; | - |
| 20 | }executed 215 times by 4 tests: end of blockExecuted by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
else { | 215 |
| 21 | ++mapIterator; | - |
| 22 | m_vectorIndex = 0; | - |
| 23 | }executed 374 times by 6 tests: end of blockExecuted by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
| 374 |
| 24 | returnexecuted 589 times by 6 tests: return *this;Executed by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
*this;executed 589 times by 6 tests: return *this;Executed by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
| 589 |
| 25 | } | - |
| 26 | | - |
| 27 | int ResultIteratorBase::batchSize() const | - |
| 28 | { | - |
| 29 | returnexecuted 35102 times by 9 tests: return mapIterator.value().count();Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
mapIterator.value().count();executed 35102 times by 9 tests: return mapIterator.value().count();Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 35102 |
| 30 | } | - |
| 31 | | - |
| 32 | void ResultIteratorBase::batchedAdvance() | - |
| 33 | { | - |
| 34 | ++mapIterator; | - |
| 35 | m_vectorIndex = 0; | - |
| 36 | }executed 177 times by 1 test: end of block | 177 |
| 37 | | - |
| 38 | bool ResultIteratorBase::operator==(const ResultIteratorBase &other) const | - |
| 39 | { | - |
| 40 | returnexecuted 114300 times by 9 tests: return (mapIterator == other.mapIterator && m_vectorIndex == other.m_vectorIndex);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
(mapIterator == other.mapIterator && m_vectorIndex == other.m_vectorIndex);executed 114300 times by 9 tests: return (mapIterator == other.mapIterator && m_vectorIndex == other.m_vectorIndex);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 114300 |
| 41 | } | - |
| 42 | | - |
| 43 | bool ResultIteratorBase::operator!=(const ResultIteratorBase &other) const | - |
| 44 | { | - |
| 45 | returnexecuted 114279 times by 9 tests: return !operator==(other);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
!operator==(other);executed 114279 times by 9 tests: return !operator==(other);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 114279 |
| 46 | } | - |
| 47 | | - |
| 48 | bool ResultIteratorBase::isVector() const | - |
| 49 | { | - |
| 50 | return never executed: return mapIterator.value().isVector(); mapIterator.value().isVector();never executed: return mapIterator.value().isVector(); | 0 |
| 51 | } | - |
| 52 | | - |
| 53 | bool ResultIteratorBase::canIncrementVectorIndex() const | - |
| 54 | { | - |
| 55 | returnexecuted 589 times by 6 tests: return (m_vectorIndex + 1 < mapIterator.value().m_count);Executed by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
(m_vectorIndex + 1 < mapIterator.value().m_count);executed 589 times by 6 tests: return (m_vectorIndex + 1 < mapIterator.value().m_count);Executed by:- tst_QFuture
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
| 589 |
| 56 | } | - |
| 57 | | - |
| 58 | ResultStoreBase::ResultStoreBase() | - |
| 59 | : insertIndex(0), resultCount(0), m_filterMode(false), filteredResults(0) { }executed 128734 times by 13 tests: end of blockExecuted by:- tst_QDebug
- tst_QFuture
- tst_QFutureSynchronizer
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 128734 |
| 60 | | - |
| 61 | void ResultStoreBase::setFilterMode(bool enable) | - |
| 62 | { | - |
| 63 | m_filterMode = enable; | - |
| 64 | }executed 50 times by 4 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| 50 |
| 65 | | - |
| 66 | bool ResultStoreBase::filterMode() const | - |
| 67 | { | - |
| 68 | returnexecuted 34881 times by 9 tests: return m_filterMode;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
m_filterMode;executed 34881 times by 9 tests: return m_filterMode;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 34881 |
| 69 | } | - |
| 70 | | - |
| 71 | void ResultStoreBase::syncResultCount() | - |
| 72 | { | - |
| 73 | ResultIteratorBase it = resultAt(resultCount); | - |
| 74 | while (it != end()| TRUE | evaluated 34925 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 34936 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) { | 34925-34936 |
| 75 | resultCount += it.batchSize(); | - |
| 76 | it = resultAt(resultCount); | - |
| 77 | }executed 34925 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 34925 |
| 78 | }executed 34936 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 34936 |
| 79 | | - |
| 80 | void ResultStoreBase::insertResultItemIfValid(int index, ResultItem &resultItem) | - |
| 81 | { | - |
| 82 | if (resultItem.isValid()| TRUE | evaluated 34936 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 229 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
|
) { | 229-34936 |
| 83 | m_results[index] = resultItem; | - |
| 84 | syncResultCount(); | - |
| 85 | }executed 34936 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
else { | 34936 |
| 86 | filteredResults += resultItem.count(); | - |
| 87 | }executed 229 times by 4 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| 229 |
| 88 | } | - |
| 89 | | - |
| 90 | int ResultStoreBase::insertResultItem(int index, ResultItem &resultItem) | - |
| 91 | { | - |
| 92 | int storeIndex; | - |
| 93 | if (m_filterMode| TRUE | evaluated 489 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| | FALSE | evaluated 34676 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
&& index != -1| TRUE | evaluated 489 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| | FALSE | never evaluated |
&& index > insertIndex| TRUE | evaluated 58 times by 2 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentResultStore
| | FALSE | evaluated 431 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
|
) { | 0-34676 |
| 94 | pendingResults[index] = resultItem; | - |
| 95 | storeIndex = index; | - |
| 96 | }executed 58 times by 2 tests: end of blockExecuted by:- tst_QFuture
- tst_QtConcurrentResultStore
else { | 58 |
| 97 | storeIndex = updateInsertIndex(index, resultItem.count()); | - |
| 98 | insertResultItemIfValid(storeIndex - filteredResults, resultItem); | - |
| 99 | }executed 35107 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 35107 |
| 100 | syncPendingResults(); | - |
| 101 | returnexecuted 35165 times by 9 tests: return storeIndex;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
storeIndex;executed 35165 times by 9 tests: return storeIndex;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 35165 |
| 102 | } | - |
| 103 | | - |
| 104 | void ResultStoreBase::syncPendingResults() | - |
| 105 | { | - |
| 106 | | - |
| 107 | QMap<int, ResultItem>::iterator it = pendingResults.begin(); | - |
| 108 | while (it != pendingResults.end()| TRUE | evaluated 102 times by 2 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentResultStore
| | FALSE | evaluated 35121 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) { | 102-35121 |
| 109 | int index = it.key(); | - |
| 110 | if (index != resultCount + filteredResults| TRUE | evaluated 44 times by 2 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentResultStore
| | FALSE | evaluated 58 times by 2 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentResultStore
|
) | 44-58 |
| 111 | break;executed 44 times by 2 tests: break;Executed by:- tst_QFuture
- tst_QtConcurrentResultStore
| 44 |
| 112 | | - |
| 113 | ResultItem result = it.value(); | - |
| 114 | insertResultItemIfValid(index - filteredResults, result); | - |
| 115 | pendingResults.erase(it); | - |
| 116 | it = pendingResults.begin(); | - |
| 117 | }executed 58 times by 2 tests: end of blockExecuted by:- tst_QFuture
- tst_QtConcurrentResultStore
| 58 |
| 118 | }executed 35165 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 35165 |
| 119 | | - |
| 120 | int ResultStoreBase::addResult(int index, const void *result) | - |
| 121 | { | - |
| 122 | ResultItem resultItem(result, 0); | - |
| 123 | returnexecuted 34625 times by 9 tests: return insertResultItem(index, resultItem);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
insertResultItem(index, resultItem);executed 34625 times by 9 tests: return insertResultItem(index, resultItem);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 34625 |
| 124 | } | - |
| 125 | | - |
| 126 | int ResultStoreBase::addResults(int index, const void *results, int vectorSize, int totalCount) | - |
| 127 | { | - |
| 128 | if (m_filterMode == false| TRUE | evaluated 173 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| | FALSE | evaluated 231 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
|
|| vectorSize == totalCount| TRUE | evaluated 49 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| | FALSE | evaluated 182 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
|
) { | 49-231 |
| 129 | ResultItem resultItem(results, vectorSize); | - |
| 130 | returnexecuted 222 times by 5 tests: return insertResultItem(index, resultItem);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
insertResultItem(index, resultItem);executed 222 times by 5 tests: return insertResultItem(index, resultItem);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| 222 |
| 131 | } else { | - |
| 132 | if (vectorSize > 0| TRUE | evaluated 136 times by 2 testsEvaluated by:- tst_QFutureWatcher
- tst_QtConcurrentFilter
| | FALSE | evaluated 46 times by 4 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
|
) { | 46-136 |
| 133 | ResultItem filteredIn(results, vectorSize); | - |
| 134 | insertResultItem(index, filteredIn); | - |
| 135 | }executed 136 times by 2 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QtConcurrentFilter
| 136 |
| 136 | ResultItem filteredAway(0, totalCount - vectorSize); | - |
| 137 | returnexecuted 182 times by 4 tests: return insertResultItem(index + vectorSize, filteredAway);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
insertResultItem(index + vectorSize, filteredAway);executed 182 times by 4 tests: return insertResultItem(index + vectorSize, filteredAway);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentResultStore
| 182 |
| 138 | } | - |
| 139 | } | - |
| 140 | | - |
| 141 | ResultIteratorBase ResultStoreBase::begin() const | - |
| 142 | { | - |
| 143 | returnexecuted 147 times by 7 tests: return ResultIteratorBase(m_results.begin());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
ResultIteratorBase(m_results.begin());executed 147 times by 7 tests: return ResultIteratorBase(m_results.begin());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentThreadEngine
| 147 |
| 144 | } | - |
| 145 | | - |
| 146 | ResultIteratorBase ResultStoreBase::end() const | - |
| 147 | { | - |
| 148 | returnexecuted 114284 times by 9 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
ResultIteratorBase(m_results.end());executed 114284 times by 9 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 114284 |
| 149 | } | - |
| 150 | | - |
| 151 | bool ResultStoreBase::hasNextResult() const | - |
| 152 | { | - |
| 153 | return never executed: return begin() != end(); begin() != end();never executed: return begin() != end(); | 0 |
| 154 | } | - |
| 155 | | - |
| 156 | ResultIteratorBase ResultStoreBase::resultAt(int index) const | - |
| 157 | { | - |
| 158 | if (m_results.isEmpty()| TRUE | evaluated 252 times by 8 testsEvaluated by:- tst_QFuture
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 189464 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) | 252-189464 |
| 159 | returnexecuted 252 times by 8 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
ResultIteratorBase(m_results.end());executed 252 times by 8 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 252 |
| 160 | QMap<int, ResultItem>::const_iterator it = m_results.lowerBound(index); | - |
| 161 | | - |
| 162 | | - |
| 163 | | - |
| 164 | | - |
| 165 | if (it == m_results.end()| TRUE | evaluated 42340 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 147124 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) { | 42340-147124 |
| 166 | --it; | - |
| 167 | if (it.value().isVector() == false| TRUE | evaluated 34811 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 7529 times by 5 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
|
) { | 7529-34811 |
| 168 | returnexecuted 34811 times by 9 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
ResultIteratorBase(m_results.end());executed 34811 times by 9 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 34811 |
| 169 | } | - |
| 170 | }executed 7529 times by 5 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
else { | 7529 |
| 171 | if (it.key() > index| TRUE | evaluated 51615 times by 5 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| | FALSE | evaluated 95509 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) { | 51615-95509 |
| 172 | if (it == m_results.begin()| TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_QFuture
- tst_QtConcurrentResultStore
| | FALSE | evaluated 51591 times by 5 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
|
) | 24-51591 |
| 173 | returnexecuted 24 times by 2 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QtConcurrentResultStore
ResultIteratorBase(m_results.end());executed 24 times by 2 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QtConcurrentResultStore
| 24 |
| 174 | --it; | - |
| 175 | }executed 51591 times by 5 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| 51591 |
| 176 | }executed 147100 times by 9 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 147100 |
| 177 | | - |
| 178 | const int vectorIndex = index - it.key(); | - |
| 179 | | - |
| 180 | if (vectorIndex >= it.value().count()| TRUE | evaluated 401 times by 5 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| | FALSE | evaluated 154228 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) | 401-154228 |
| 181 | returnexecuted 401 times by 5 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
ResultIteratorBase(m_results.end());executed 401 times by 5 tests: return ResultIteratorBase(m_results.end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| 401 |
| 182 | else if (it.value().isVector() == false| TRUE | evaluated 84682 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 69546 times by 5 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
|
&& vectorIndex != 0| TRUE | never evaluated | | FALSE | evaluated 84682 times by 9 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) | 0-84682 |
| 183 | return never executed: return ResultIteratorBase(m_results.end()); ResultIteratorBase(m_results.end());never executed: return ResultIteratorBase(m_results.end()); | 0 |
| 184 | returnexecuted 154228 times by 9 tests: return ResultIteratorBase(it, vectorIndex);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
ResultIteratorBase(it, vectorIndex);executed 154228 times by 9 tests: return ResultIteratorBase(it, vectorIndex);Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 154228 |
| 185 | } | - |
| 186 | | - |
| 187 | bool ResultStoreBase::contains(int index) const | - |
| 188 | { | - |
| 189 | returnexecuted 43525 times by 9 tests: return (resultAt(index) != end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
(resultAt(index) != end());executed 43525 times by 9 tests: return (resultAt(index) != end());Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 43525 |
| 190 | } | - |
| 191 | | - |
| 192 | int ResultStoreBase::count() const | - |
| 193 | { | - |
| 194 | returnexecuted 29310 times by 5 tests: return resultCount;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
resultCount;executed 29310 times by 5 tests: return resultCount;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| 29310 |
| 195 | } | - |
| 196 | | - |
| 197 | | - |
| 198 | | - |
| 199 | int ResultStoreBase::updateInsertIndex(int index, int _count) | - |
| 200 | { | - |
| 201 | if (index == -1| TRUE | evaluated 34039 times by 8 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 1068 times by 6 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
|
) { | 1068-34039 |
| 202 | index = insertIndex; | - |
| 203 | insertIndex += _count; | - |
| 204 | }executed 34039 times by 8 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
else { | 34039 |
| 205 | insertIndex = qMax(index + _count, insertIndex); | - |
| 206 | }executed 1068 times by 6 tests: end of blockExecuted by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
| 1068 |
| 207 | returnexecuted 35107 times by 9 tests: return index;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
index;executed 35107 times by 9 tests: return index;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentResultStore
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 35107 |
| 208 | } | - |
| 209 | | - |
| 210 | } | - |
| 211 | | - |
| 212 | | - |
| | |