| 487 | } |
| 488 | |
| 489 | void TestProblems::testSeverity() |
| 490 | { |
| 491 | QFETCH(QByteArray, code); |
| 492 | QFETCH(IProblem::Severity, severity); |
| 493 | |
| 494 | const auto problems = parse(code); |
| 495 | QCOMPARE(problems.size(), 1); |
| 496 | QCOMPARE(problems.at(0)->severity(), severity); |
| 497 | } |
| 498 | |
| 499 | void TestProblems::testSeverity_data() |
| 500 | { |