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

Function TestStartWithMultipleExistingBranches

mob_test.go:244–258  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

242}
243
244func TestStartWithMultipleExistingBranches(t *testing.T) {
245 output, configuration := setup(t)
246
247 configuration.WipBranchQualifier = "green"
248 start(configuration)
249 assertOnBranch(t, "mob/master-green")
250 next(configuration)
251 assertOnBranch(t, "master")
252
253 configuration.WipBranchQualifier = ""
254 start(configuration)
255 assertOnBranch(t, "mob-session")
256 assertOutputContains(t, output, "preexisting wip branches have been detected")
257 assertOutputContains(t, output, "mob/master-green")
258}
259
260func TestStartWithMultipleExistingBranchesAndEmptyWipBranchQualifier(t *testing.T) {
261 output, configuration := setup(t)

Callers

nothing calls this directly

Calls 5

setupFunction · 0.85
startFunction · 0.85
assertOnBranchFunction · 0.85
nextFunction · 0.85
assertOutputContainsFunction · 0.85

Tested by

no test coverage detected