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

Function TestStartDiscardUnstagedChanges

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

Source from the content-addressed store, hash-verified

568}
569
570func TestStartDiscardUnstagedChanges(t *testing.T) {
571 _, configuration := setup(t)
572 configuration.HandleUncommittedChanges = config.DiscardChanges
573 createFile(t, "test.txt", "contentIrrelevant")
574
575 start(configuration)
576
577 assertOnBranch(t, "mob-session")
578 assertMobSessionBranches(t, configuration, "mob-session")
579 assertCleanGitStatus(t)
580}
581
582func TestStartIncludeUnstagedChangesInNewWorkingDirectory(t *testing.T) {
583 output, configuration := setup(t)

Callers

nothing calls this directly

Calls 6

setupFunction · 0.85
createFileFunction · 0.85
startFunction · 0.85
assertOnBranchFunction · 0.85
assertMobSessionBranchesFunction · 0.85
assertCleanGitStatusFunction · 0.85

Tested by

no test coverage detected