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

Method createFile

kdevplatform/shell/tests/test_documentcontroller.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146QUrl TestDocumentController::createFile(const QTemporaryDir& dir, const QString& filename)
147{
148 QFile file(dir.path() + filename);
149 QVERIFY_RETURN(file.open(QIODevice::WriteOnly | QIODevice::Text), QUrl{});
150 file.close();
151 return QUrl::fromLocalFile(dir.path() + filename);
152}
153
154void TestDocumentController::testEmptyUrl()
155{

Callers

nothing calls this directly

Calls 3

pathMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected