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

Method testRemoveUnindexedFile

plugins/git/tests/test_git.cpp:566–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void GitInitTest::testRemoveUnindexedFile()
567{
568 repoInit();
569
570 QVERIFY(writeFile(gitTest_BaseDir() + gitTest_FileName(), QStringLiteral("An appended line"), QIODevice::Append));
571
572 VcsJob* j = m_plugin->remove(QList<QUrl>() << QUrl::fromLocalFile(gitTest_BaseDir() + gitTest_FileName()));
573 if (j) VERIFYJOB(j);
574
575 QVERIFY(!QFile::exists(gitTest_BaseDir() + gitTest_FileName()));
576}
577
578void GitInitTest::testRemoveFolderContainingUnversionedFiles()
579{

Callers

nothing calls this directly

Calls 4

writeFileFunction · 0.85
gitTest_BaseDirFunction · 0.85
gitTest_FileNameFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected