| 68 | } |
| 69 | |
| 70 | void timeSwitchingBranch(GitPlugin* plugin, const QUrl& repository, const QString& branchName) |
| 71 | { |
| 72 | QVERIFY(plugin); |
| 73 | |
| 74 | QElapsedTimer timer; |
| 75 | timer.start(); |
| 76 | |
| 77 | auto* const job = plugin->switchBranch(repository, branchName); |
| 78 | const auto createJobElapsedMs = timer.restart(); |
| 79 | VERIFYJOB(job); |
| 80 | const auto runJobElapsedMs = timer.elapsed(); |
| 81 | |
| 82 | qDebug().noquote() << "switching to" << branchName.leftJustified(8, ' ') << ": creating a job took" |
| 83 | << createJobElapsedMs << "ms; running the job took" << runJobElapsedMs << "ms"; |
| 84 | } |
| 85 | |
| 86 | } // unnamed namespace |
| 87 |
nothing calls this directly
no test coverage detected