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

Method cleanup

kdevplatform/shell/tests/test_projectcontroller.cpp:180–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void TestProjectController::cleanup()
181{
182 // also close any opened projects as we do not get a clean fixture,
183 // following tests should start off clean.
184 const auto projects = m_projCtrl->projects();
185 for (IProject* p : projects) {
186 m_projCtrl->closeProject(p);
187 }
188 for (const Path& cfg : std::as_const(m_tmpConfigs)) {
189 QFile::remove(cfg.pathOrUrl());
190 }
191 qDeleteAll(m_fileManagerGarbage);
192 m_fileManagerGarbage.clear();
193}
194
195////////////////////// Commands //////////////////////////////////////////////
196

Callers 1

temporaryMethod · 0.45

Calls 4

projectsMethod · 0.80
pathOrUrlMethod · 0.80
closeProjectMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected