| 124 | } |
| 125 | |
| 126 | void TestProblemModelSet::testRemoveModel() |
| 127 | { |
| 128 | QSignalSpy spy(m_set.data(), &ProblemModelSet::removed); |
| 129 | |
| 130 | int c = 0; |
| 131 | for (const TestModelData& data : std::as_const(m_testData)) { |
| 132 | m_set->removeModel(data.id); |
| 133 | c++; |
| 134 | |
| 135 | QCOMPARE(spy.count(), c); |
| 136 | QVERIFY(testModelCount >= c); |
| 137 | QCOMPARE(m_set->models().count(), testModelCount - c); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | QTEST_MAIN(TestProblemModelSet) |
| 142 |
nothing calls this directly
no test coverage detected