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

Function TestDonePullsIfAlreadyDone

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

Source from the content-addressed store, hash-verified

1767}
1768
1769func TestDonePullsIfAlreadyDone(t *testing.T) {
1770 _, configuration := setup(t)
1771 configuration.NextStay = true
1772
1773 setWorkingDir(tempDir + "/bob")
1774 start(configuration)
1775 createFile(t, "example.txt", "contentIrrelevant")
1776 next(configuration)
1777
1778 setWorkingDir(tempDir + "/alice")
1779 start(configuration)
1780 done(configuration)
1781 git("commit", "-am", "\"mob done by Alice\"")
1782 git("push")
1783
1784 setWorkingDir(tempDir + "/bob")
1785 done(configuration)
1786
1787 assertFileExist(t, "example.txt")
1788}
1789
1790func TestDoneNoSquashStartCommit(t *testing.T) {
1791 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected