GitServiceTest

27

tests

0

failures

0

ignored

2.192s

duration

100%

successful

Tests

Test Duration Result
checkout creates a tracking branch from origin 0.096s passed
checkout switches to an existing local branch 0.080s passed
checkoutDetached switches a worktree to another commit and discards local modifications 0.062s passed
commitTimestamp returns the committer timestamp 0.081s passed
currentBranch returns null when HEAD is detached 0.054s passed
fastForwardLocalBranches advances a branch that is not checked out 0.152s passed
fastForwardLocalBranches advances the checked-out branch and its working tree 0.161s passed
fastForwardLocalBranches ignores branches without an origin counterpart 0.068s passed
fastForwardLocalBranches leaves a diverged local branch untouched 0.107s passed
fetchOrigin picks up new origin branches and prunes deleted ones 0.086s passed
getOriginUrl returns the origin URL, or null without an origin 0.076s passed
getTopLevel returns the repo root from a subdirectory 0.165s passed
hasNewCommits is false for an unknown branch 0.051s passed
hasNewCommits is false when the branch is up to date 0.051s passed
hasNewCommits is true after new commits arrived on origin 0.073s passed
hasNewCommits is true for a branch that only exists on origin 0.114s passed
headCommit returns the full commit hash 0.038s passed
localBranches and originBranches list branches, without HEAD 0.060s passed
localHeadCommit returns the local branch head, or null for an unknown branch 0.042s passed
newOriginBranches lists recent origin-only branches 0.082s passed
newOriginBranches skips branches whose latest commit is older than maxAge 0.099s passed
originBranchHeads maps every origin branch to its head commit, without HEAD 0.103s passed
originHeadCommit returns the origin branch head, or null for an unknown branch 0.059s passed
pullRequestHeads returns the head commits of the remote's pull-request refs 0.084s passed
resetHardToOrigin discards local commits 0.045s passed
worktreeAdd creates a detached worktree at the commit 0.059s passed
worktreePrune allows re-adding a worktree whose directory was deleted 0.044s passed

Standard output

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