GitServiceTest

27

tests

0

failures

0

ignored

2.968s

duration

100%

successful

Tests

Test Duration Result
checkout creates a tracking branch from origin 0.108s passed
checkout switches to an existing local branch 0.058s passed
checkoutDetached switches a worktree to another commit and discards local modifications 0.086s passed
commitTimestamp returns the committer timestamp 0.078s passed
currentBranch returns null when HEAD is detached 0.073s passed
fastForwardLocalBranches advances a branch that is not checked out 0.227s passed
fastForwardLocalBranches advances the checked-out branch and its working tree 0.174s passed
fastForwardLocalBranches ignores branches without an origin counterpart 0.059s passed
fastForwardLocalBranches leaves a diverged local branch untouched 0.157s passed
fetchOrigin picks up new origin branches and prunes deleted ones 0.170s passed
getOriginUrl returns the origin URL, or null without an origin 0.139s passed
getTopLevel returns the repo root from a subdirectory 0.092s passed
hasNewCommits is false for an unknown branch 0.054s passed
hasNewCommits is false when the branch is up to date 0.060s passed
hasNewCommits is true after new commits arrived on origin 0.145s passed
hasNewCommits is true for a branch that only exists on origin 0.263s passed
headCommit returns the full commit hash 0.076s passed
localBranches and originBranches list branches, without HEAD 0.090s passed
localHeadCommit returns the local branch head, or null for an unknown branch 0.064s passed
newOriginBranches lists recent origin-only branches 0.116s passed
newOriginBranches skips branches whose latest commit is older than maxAge 0.136s passed
originBranchHeads maps every origin branch to its head commit, without HEAD 0.126s passed
originHeadCommit returns the origin branch head, or null for an unknown branch 0.066s passed
pullRequestHeads returns the head commits of the remote's pull-request refs 0.130s passed
resetHardToOrigin discards local commits 0.060s passed
worktreeAdd creates a detached worktree at the commit 0.086s passed
worktreePrune allows re-adding a worktree whose directory was deleted 0.075s passed

Standard output

Creating nstance of class de.hoennig.werkator.git.GitServiceTest