MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testDisplayString

Method testDisplayString

tests/sourcelocationtest.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
95QTEST_MAIN(SourceLocationTest)

Callers

nothing calls this directly

Calls 2

displayStringMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected