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

Method testRemoveEmptyFolder

plugins/git/tests/test_git.cpp:537–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void GitInitTest::testRemoveEmptyFolder()
538{
539 repoInit();
540
541 QDir d(gitTest_BaseDir());
542 d.mkdir(QStringLiteral("emptydir"));
543
544 VcsJob* j = m_plugin->remove(QList<QUrl>() << QUrl::fromLocalFile(gitTest_BaseDir()+"emptydir/"));
545 if (j) VERIFYJOB(j);
546
547 QVERIFY(!d.exists(QStringLiteral("emptydir")));
548}
549
550void GitInitTest::testRemoveEmptyFolderInFolder()
551{

Callers

nothing calls this directly

Calls 4

gitTest_BaseDirFunction · 0.85
mkdirMethod · 0.80
existsMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected