| 473 | } |
| 474 | |
| 475 | void TestProblems::testRanges() |
| 476 | { |
| 477 | QFETCH(QByteArray, code); |
| 478 | QFETCH(RangeList, ranges); |
| 479 | |
| 480 | const auto problems = parse(code); |
| 481 | RangeList actualRanges; |
| 482 | for (auto problem : problems) { |
| 483 | actualRanges << problem->rangeInCurrentRevision(); |
| 484 | } |
| 485 | qDebug() << actualRanges << ranges; |
| 486 | QCOMPARE(actualRanges, ranges); |
| 487 | } |
| 488 | |
| 489 | void TestProblems::testSeverity() |
| 490 | { |
nothing calls this directly
no test coverage detected