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

Function TestStartBranchWithUncommitedChangesFixWithBranch

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

Source from the content-addressed store, hash-verified

1579}
1580
1581func TestStartBranchWithUncommitedChangesFixWithBranch(t *testing.T) {
1582 output, _ := setup(t)
1583 mockExit()
1584
1585 setWorkingDir(tempDir + "/local")
1586
1587 createFile(t, "uncommited.txt", "contentIrrelevant")
1588 runMob(t, tempDir+"/local", "start", "-b", "green")
1589
1590 assertOutputContains(t, output, "mob start --branch green --include-uncommitted-changes")
1591 assertOutputContains(t, output, "mob start --branch green --discard-uncommitted-changes")
1592 resetExit()
1593}
1594
1595func TestStartBranchEnvWithUncommitedChangesFixWithoutBranch(t *testing.T) {
1596 output, _ := setup(t)

Callers

nothing calls this directly

Calls 7

setupFunction · 0.85
mockExitFunction · 0.85
setWorkingDirFunction · 0.85
createFileFunction · 0.85
runMobFunction · 0.85
assertOutputContainsFunction · 0.85
resetExitFunction · 0.85

Tested by

no test coverage detected