| 123 | } |
| 124 | |
| 125 | void TestFilteredProblemStore::testGrouping() |
| 126 | { |
| 127 | QVERIFY(m_store->grouping() == NoGrouping); |
| 128 | |
| 129 | QSignalSpy changedSpy(m_store.data(), &FilteredProblemStore::changed); |
| 130 | QSignalSpy beginRebuildSpy(m_store.data(), &FilteredProblemStore::beginRebuild); |
| 131 | QSignalSpy endRebuildSpy(m_store.data(), &FilteredProblemStore::endRebuild); |
| 132 | |
| 133 | m_store->setGrouping(PathGrouping); |
| 134 | QVERIFY(m_store->grouping() == PathGrouping); |
| 135 | |
| 136 | QCOMPARE(changedSpy.count(), 1); |
| 137 | QCOMPARE(beginRebuildSpy.count(), 1); |
| 138 | QCOMPARE(endRebuildSpy.count(), 1); |
| 139 | |
| 140 | m_store->setGrouping(NoGrouping); |
| 141 | } |
| 142 | |
| 143 | // Compares the node and it's children to a reference problem and it's diagnostics |
| 144 | bool checkDiagnodes(const ProblemStoreNode *node, const IProblem::Ptr &reference) |
nothing calls this directly
no test coverage detected