Get URL to existing test file under the temporary dir.
| 264 | |
| 265 | /// Get URL to existing test file under the temporary dir. |
| 266 | QUrl 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(). |