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

Method testBranching

plugins/git/tests/test_git.cpp:462–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void GitInitTest::testBranching()
463{
464 repoInit();
465 addFiles();
466 commitFiles();
467
468 const QUrl baseUrl = QUrl::fromLocalFile(gitTest_BaseDir());
469 VcsJob* j = m_plugin->branches(baseUrl);
470 VERIFYJOB(j);
471
472 QString curBranch = runSynchronously(m_plugin->currentBranch(baseUrl)).toString();
473 QCOMPARE(curBranch, QStringLiteral("master"));
474
475 testBranch(QStringLiteral("new"));
476 testBranch(QStringLiteral("averylongbranchnamejusttotestlongnames"));
477 testBranch(QStringLiteral("KDE/4.10"));
478}
479
480void GitInitTest::revHistory()
481{

Callers

nothing calls this directly

Calls 5

gitTest_BaseDirFunction · 0.85
branchesMethod · 0.80
runSynchronouslyFunction · 0.50
toStringMethod · 0.45
currentBranchMethod · 0.45

Tested by

no test coverage detected