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

Function TestStartDoneSquashWithUnpushedCommit

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

Source from the content-addressed store, hash-verified

1143}
1144
1145func TestStartDoneSquashWithUnpushedCommit(t *testing.T) {
1146 _, configuration := setup(t)
1147 configuration.DoneSquash = config.Squash
1148
1149 // now in /local
1150 createFileAndCommitIt(t, "file1.txt", "owqe", "not a mob session yet")
1151
1152 setWorkingDir(tempDir + "/alice")
1153 start(configuration)
1154 createFile(t, "file2.txt", "zcvx")
1155 next(configuration)
1156
1157 setWorkingDir(tempDir + "/local")
1158 git("push")
1159
1160 setWorkingDir(tempDir + "/alice")
1161 start(configuration)
1162 done(configuration)
1163
1164 assertFileExist(t, "file1.txt")
1165}
1166
1167func TestStartDoneSquashWipWithUnpushedCommit(t *testing.T) {
1168 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 9

setupFunction · 0.85
createFileAndCommitItFunction · 0.85
setWorkingDirFunction · 0.85
startFunction · 0.85
createFileFunction · 0.85
nextFunction · 0.85
gitFunction · 0.85
doneFunction · 0.85
assertFileExistFunction · 0.85

Tested by

no test coverage detected