| 118 | } |
| 119 | |
| 120 | void TestDetectedProblem::testFinalLocation() |
| 121 | { |
| 122 | QString TESTPATH = QStringLiteral("/just/a/bogus/path/to/a/fake/document"); |
| 123 | int TESTLINE = 9001; |
| 124 | int TESTCOLUMN = 1337; |
| 125 | |
| 126 | DocumentRange range; |
| 127 | range.document = IndexedString(TESTPATH); |
| 128 | range.setBothLines(TESTLINE); |
| 129 | range.setBothColumns(TESTCOLUMN); |
| 130 | |
| 131 | m_problem->setFinalLocation(range); |
| 132 | |
| 133 | QCOMPARE(TESTPATH, m_problem->finalLocation().document.str()); |
| 134 | QCOMPARE(TESTLINE, m_problem->finalLocation().start().line()); |
| 135 | QCOMPARE(TESTLINE, m_problem->finalLocation().end().line()); |
| 136 | QCOMPARE(TESTCOLUMN, m_problem->finalLocation().start().column()); |
| 137 | QCOMPARE(TESTCOLUMN, m_problem->finalLocation().end().column()); |
| 138 | } |
| 139 | |
| 140 | void TestDetectedProblem::testDiagnostics() |
| 141 | { |
nothing calls this directly
no test coverage detected