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

Function TestStartDoneWithUncommittedChanges

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

Source from the content-addressed store, hash-verified

1239}
1240
1241func TestStartDoneWithUncommittedChanges(t *testing.T) {
1242 _, configuration := setup(t)
1243
1244 start(configuration) // should be 1 commit on mob-session so far
1245 createFile(t, "example.txt", "contentIrrelevant")
1246
1247 done(configuration)
1248
1249 assertOnBranch(t, "master")
1250 assertGitStatus(t, GitStatus{
1251 "example.txt": "A",
1252 })
1253 assertCommitsOnBranch(t, 1, "master")
1254 assertCommitsOnBranch(t, 1, "origin/master")
1255 assertNoMobSessionBranches(t, configuration, "mob-session")
1256}
1257
1258func TestStartDoneNoSquashWithUncommittedChanges(t *testing.T) {
1259 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 8

setupFunction · 0.85
startFunction · 0.85
createFileFunction · 0.85
doneFunction · 0.85
assertOnBranchFunction · 0.85
assertGitStatusFunction · 0.85
assertCommitsOnBranchFunction · 0.85

Tested by

no test coverage detected