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

Method testRemoveUnindexedFile

plugins/bazaar/tests/test_bazaar.cpp:296–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void TestBazaar::testRemoveUnindexedFile()
297{
298 repoInit();
299
300 QFile f(bazaarTest_BaseDir + bazaarTest_FileName);
301 QVERIFY(f.open(QIODevice::Append));
302 QTextStream input(&f);
303 input << "An appended line";
304 f.close();
305
306 VcsJob* j = m_plugin->remove(QList<QUrl>() << QUrl::fromLocalFile(bazaarTest_BaseDir + bazaarTest_FileName));
307 if (j) VERIFYJOB(j);
308
309 QVERIFY(!QFile::exists(bazaarTest_BaseDir + bazaarTest_FileName));
310}
311
312void TestBazaar::testRemoveFolderContainingUnversionedFiles()
313{

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected