GitServiceTest

27

tests

0

failures

0

ignored

4.532s

duration

100%

successful

Tests

Test Duration Result
checkout creates a tracking branch from origin 0.251s passed
checkout switches to an existing local branch 0.068s passed
checkoutDetached switches a worktree to another commit and discards local modifications 0.087s passed
commitTimestamp returns the committer timestamp 0.074s passed
currentBranch returns null when HEAD is detached 0.115s passed
fastForwardLocalBranches advances a branch that is not checked out 0.236s passed
fastForwardLocalBranches advances the checked-out branch and its working tree 0.243s passed
fastForwardLocalBranches ignores branches without an origin counterpart 0.096s passed
fastForwardLocalBranches leaves a diverged local branch untouched 0.216s passed
fetchOrigin picks up new origin branches and prunes deleted ones 0.125s passed
getOriginUrl returns the origin URL, or null without an origin 0.085s passed
getTopLevel returns the repo root from a subdirectory 0.827s passed
hasNewCommits is false for an unknown branch 0.083s passed
hasNewCommits is false when the branch is up to date 0.058s passed
hasNewCommits is true after new commits arrived on origin 0.100s passed
hasNewCommits is true for a branch that only exists on origin 0.115s passed
headCommit returns the full commit hash 0.113s passed
localBranches and originBranches list branches, without HEAD 0.072s passed
localHeadCommit returns the local branch head, or null for an unknown branch 0.143s passed
newOriginBranches lists recent origin-only branches 0.151s passed
newOriginBranches skips branches whose latest commit is older than maxAge 0.125s passed
originBranchHeads maps every origin branch to its head commit, without HEAD 0.319s passed
originHeadCommit returns the origin branch head, or null for an unknown branch 0.091s passed
pullRequestHeads returns the head commits of the remote's pull-request refs 0.349s passed
resetHardToOrigin discards local commits 0.176s passed
worktreeAdd creates a detached worktree at the commit 0.096s passed
worktreePrune allows re-adding a worktree whose directory was deleted 0.118s passed

Standard output

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