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

Method testRanges

plugins/clang/tests/test_problems.cpp:475–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475void 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
489void TestProblems::testSeverity()
490{

Callers

nothing calls this directly

Calls 2

parseFunction · 0.70

Tested by

no test coverage detected