MCPcopy Create free account
hub / github.com/KDE/kdevelop / testGrouping

Method testGrouping

kdevplatform/shell/tests/test_filteredproblemstore.cpp:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void 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
144bool checkDiagnodes(const ProblemStoreNode *node, const IProblem::Ptr &reference)

Callers

nothing calls this directly

Calls 4

groupingMethod · 0.80
dataMethod · 0.45
setGroupingMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected