| 460 | } |
| 461 | |
| 462 | void 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 | |
| 480 | void GitInitTest::revHistory() |
| 481 | { |
nothing calls this directly
no test coverage detected