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

Function TestStartUnstagedChanges

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

Source from the content-addressed store, hash-verified

544}
545
546func TestStartUnstagedChanges(t *testing.T) {
547 output, configuration := setup(t)
548 configuration.HandleUncommittedChanges = config.FailWithError
549 createFile(t, "test.txt", "contentIrrelevant")
550
551 start(configuration)
552
553 assertOnBranch(t, "master")
554 assertNoMobSessionBranches(t, configuration, "mob-session")
555 assertOutputContains(t, output, "mob start --include-uncommitted-changes")
556 assertOutputContains(t, output, "mob start --discard-uncommitted-changes")
557}
558
559func TestStartIncludeUnstagedChanges(t *testing.T) {
560 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 6

setupFunction · 0.85
createFileFunction · 0.85
startFunction · 0.85
assertOnBranchFunction · 0.85
assertOutputContainsFunction · 0.85

Tested by

no test coverage detected