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

Function timeSwitchingBranch

plugins/git/tests/test_git.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void 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

Callers

nothing calls this directly

Calls 4

switchBranchMethod · 0.80
restartMethod · 0.80
elapsedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected