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

Function TestMobClean

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

Source from the content-addressed store, hash-verified

1900}
1901
1902func TestMobClean(t *testing.T) {
1903 _, configuration := setup(t)
1904
1905 setWorkingDir(tempDir + "/alice")
1906 start(configuration)
1907 createFile(t, "file1.txt", "abc")
1908 next(configuration)
1909
1910 setWorkingDir(tempDir + "/bob")
1911 start(configuration)
1912 createFile(t, "file2.txt", "def")
1913 next(configuration)
1914
1915 setWorkingDir(tempDir + "/alice")
1916 start(configuration)
1917 createFile(t, "file3.txt", "ghi")
1918 done(configuration)
1919
1920 setWorkingDir(tempDir + "/bob")
1921 clean(configuration)
1922
1923 assertNoMobSessionBranches(t, configuration, "mob-session")
1924}
1925
1926func TestMobStartOnWipBranchWithoutCheckedOutBaseBranchWithoutHyphens(t *testing.T) {
1927 output, 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
cleanFunction · 0.85

Tested by

no test coverage detected