| 185 | } |
| 186 | |
| 187 | void verify() |
| 188 | { |
| 189 | //1. verify order |
| 190 | uint last = 0; |
| 191 | uint freeCount = 0; |
| 192 | for (auto& d : std::as_const(data)) { |
| 193 | if (d.value) { |
| 194 | QVERIFY(last < d.value); |
| 195 | last = d.value; |
| 196 | } else { |
| 197 | ++freeCount; |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | KDevelop::EmbeddedTreeAlgorithms<TestItem, TestItemHandler> algorithms(data.data(), data.size(), m_centralFree); |
| 202 | uint countFree = algorithms.countFreeItems(); |
| 203 | QCOMPARE(freeCount, countFree); |
| 204 | algorithms.verifyTreeConsistent(); |
| 205 | } |
| 206 | |
| 207 | uint getItem(uint number) const |
| 208 | { |
nothing calls this directly
no test coverage detected