GitServiceTest

27

tests

0

failures

0

ignored

2.425s

duration

100%

successful

Tests

Test Duration Result
checkout creates a tracking branch from origin 0.097s passed
checkout switches to an existing local branch 0.054s passed
checkoutDetached switches a worktree to another commit and discards local modifications 0.060s passed
commitTimestamp returns the committer timestamp 0.057s passed
currentBranch returns null when HEAD is detached 0.044s passed
fastForwardLocalBranches advances a branch that is not checked out 0.212s passed
fastForwardLocalBranches advances the checked-out branch and its working tree 0.182s passed
fastForwardLocalBranches ignores branches without an origin counterpart 0.068s passed
fastForwardLocalBranches leaves a diverged local branch untouched 0.164s passed
fetchOrigin picks up new origin branches and prunes deleted ones 0.140s passed
getOriginUrl returns the origin URL, or null without an origin 0.077s passed
getTopLevel returns the repo root from a subdirectory 0.119s passed
hasNewCommits is false for an unknown branch 0.046s passed
hasNewCommits is false when the branch is up to date 0.055s passed
hasNewCommits is true after new commits arrived on origin 0.099s passed
hasNewCommits is true for a branch that only exists on origin 0.093s passed
headCommit returns the full commit hash 0.054s passed
localBranches and originBranches list branches, without HEAD 0.073s passed
localHeadCommit returns the local branch head, or null for an unknown branch 0.049s passed
newOriginBranches lists recent origin-only branches 0.098s passed
newOriginBranches skips branches whose latest commit is older than maxAge 0.106s passed
originBranchHeads maps every origin branch to its head commit, without HEAD 0.131s passed
originHeadCommit returns the origin branch head, or null for an unknown branch 0.047s passed
pullRequestHeads returns the head commits of the remote's pull-request refs 0.140s passed
resetHardToOrigin discards local commits 0.055s passed
worktreeAdd creates a detached worktree at the commit 0.047s passed
worktreePrune allows re-adding a worktree whose directory was deleted 0.058s passed

Standard output

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