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

Method checkSeverityGroup

kdevplatform/shell/tests/test_problemmodel.cpp:555–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555bool TestProblemModel::checkSeverityGroup(int row, const IProblem::Ptr &problem)
556{
557 QModelIndex parent = m_model->index(row, 0);
558 MYVERIFY(parent.isValid());
559 MYCOMPARE(m_model->data(parent).toString(), problem->severityString());
560
561 QModelIndex idx = m_model->index(0, 0, parent);
562 MYVERIFY(idx.isValid());
563 MYCOMPARE(m_model->data(idx).toString(), problem->description());
564
565 return true;
566}
567
568QTEST_MAIN(TestProblemModel)
569

Callers

nothing calls this directly

Calls 6

indexMethod · 0.45
isValidMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
severityStringMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected