| 79 | } |
| 80 | |
| 81 | static void testDisplayString() |
| 82 | { |
| 83 | QFETCH(QUrl, url); |
| 84 | QFETCH(int, line); |
| 85 | QFETCH(int, column); |
| 86 | QFETCH(QString, displayString); |
| 87 | QFETCH(bool, valid); |
| 88 | |
| 89 | SourceLocation loc = SourceLocation::fromZeroBased(url, line, column); |
| 90 | QCOMPARE(loc.displayString(), displayString); |
| 91 | QVERIFY(loc.isValid() == valid); |
| 92 | } |
| 93 | }; |
| 94 | |
| 95 | QTEST_MAIN(SourceLocationTest) |
nothing calls this directly
no test coverage detected