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

Method writeProjectConfig

kdevplatform/shell/tests/test_projectcontroller.cpp:504–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502////////////////////// Helpers ///////////////////////////////////////////////
503
504Path TestProjectController::writeProjectConfig(const QString& name)
505{
506 Path configPath = Path(m_scratchDir.absolutePath() + '/' + name + ".kdev4");
507 QFile f(configPath.pathOrUrl());
508 f.open(QIODevice::WriteOnly);
509 QTextStream str(&f);
510 str << "[Project]\n"
511 << "Name=" << name << "\n";
512 f.close();
513 return configPath;
514}
515
516////////////////// Custom assertions /////////////////////////////////////////
517

Callers

nothing calls this directly

Calls 4

pathOrUrlMethod · 0.80
PathClass · 0.50
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected