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

Method testRemoveEmptyFolderInFolder

plugins/bazaar/tests/test_bazaar.cpp:280–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void TestBazaar::testRemoveEmptyFolderInFolder()
281{
282 repoInit();
283
284 QDir d(bazaarTest_BaseDir);
285 d.mkdir(QStringLiteral("dir"));
286
287 QDir d2(bazaarTest_BaseDir+"dir");
288 d2.mkdir(QStringLiteral("emptydir"));
289
290 VcsJob* j = m_plugin->remove(QList<QUrl>() << QUrl::fromLocalFile(bazaarTest_BaseDir+"dir/"));
291 if (j) VERIFYJOB(j);
292
293 QVERIFY(!d.exists("dir"));
294}
295
296void TestBazaar::testRemoveUnindexedFile()
297{

Callers

nothing calls this directly

Calls 3

mkdirMethod · 0.80
existsMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected