MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / assertDetermineBranches

Function assertDetermineBranches

mob_test.go:60–66  ·  view source on GitHub ↗
(t *testing.T, branch string, qualifier string, branches []string, expectedBase string, expectedWip string)

Source from the content-addressed store, hash-verified

58}
59
60func assertDetermineBranches(t *testing.T, branch string, qualifier string, branches []string, expectedBase string, expectedWip string) {
61 configuration := config.GetDefaultConfiguration()
62 configuration.WipBranchQualifier = qualifier
63 baseBranch, wipBranch := determineBranches(newBranch(branch), branches, configuration)
64 equals(t, newBranch(expectedBase), baseBranch)
65 equals(t, newBranch(expectedWip), wipBranch)
66}
67
68func TestRemoveWipPrefix(t *testing.T) {
69 configuration := config.GetDefaultConfiguration()

Callers 1

TestDetermineBranchesFunction · 0.85

Calls 3

determineBranchesFunction · 0.85
newBranchFunction · 0.85
equalsFunction · 0.85

Tested by

no test coverage detected