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

Method testFileUrl

kdevplatform/debugger/tests/test_breakpointmodel.cpp:266–273  ·  view source on GitHub ↗

Get URL to existing test file under the temporary dir.

Source from the content-addressed store, hash-verified

264
265/// Get URL to existing test file under the temporary dir.
266QUrl TestBreakpointModel::testFileUrl(const QString& fileName) const
267{
268 const QFileInfo info(m_tempDir->path(), fileName);
269 QVERIFY_RETURN(info.isFile(), QUrl{});
270 auto url = QUrl::fromLocalFile(info.canonicalFilePath());
271 QVERIFY_RETURN(url.isValid(), QUrl{});
272 return url;
273}
274
275/// Prologue for tests that use the primary test file and the breakpoint created in init().
276/// Check success with RETURN_IF_TEST_FAILED().

Callers

nothing calls this directly

Calls 2

pathMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected