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

Class TestProblemModel

kdevplatform/shell/tests/test_problemmodel.cpp:29–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using namespace KDevelop;
28
29class TestProblemModel : public QObject
30{
31 Q_OBJECT
32private Q_SLOTS:
33 void initTestCase();
34 void cleanupTestCase();
35
36 void testNoGrouping();
37 void testPathGrouping();
38 void testSeverityGrouping();
39 void testPlaceholderText();
40
41private:
42 QString prependPathRoot(QString const& currentPath) const;
43 void generateProblems();
44 bool checkIsSame(int row, const QModelIndex &parent, const IProblem::Ptr &problem);
45 bool checkDiagnostics(int row, const QModelIndex &parent);
46 bool checkDisplay(int row, const QModelIndex &parent, const IProblem::Ptr &problem);
47 bool checkLabel(int row, const QModelIndex &parent, const QString &label);
48 bool checkPathGroup(int row, const IProblem::Ptr &problem);
49 bool checkSeverityGroup(int row, const IProblem::Ptr &problem);
50
51 QScopedPointer<ProblemModel> m_model;
52 QVector<IProblem::Ptr> m_problems;
53 IProblem::Ptr m_diagnosticTestProblem;
54};
55
56void TestProblemModel::initTestCase()
57{

Callers

nothing calls this directly

Calls 1

initTestCaseFunction · 0.50

Tested by

no test coverage detected