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

Function TestStartAndNextInSubdir

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

Source from the content-addressed store, hash-verified

1801}
1802
1803func TestStartAndNextInSubdir(t *testing.T) {
1804 _, configuration := setup(t)
1805
1806 setWorkingDir(tempDir + "/local/subdir")
1807 start(configuration)
1808 createFile(t, "example.txt", "contentIrrelevant")
1809 next(configuration)
1810
1811 setWorkingDir(tempDir + "/localother/subdir")
1812 start(configuration)
1813 createFile(t, "example2.txt", "contentIrrelevant")
1814 createFile(t, "../example3.txt", "contentIrrelevant")
1815 next(configuration)
1816
1817 setWorkingDir(tempDir + "/local/subdir")
1818 start(configuration)
1819 done(configuration)
1820
1821 setWorkingDir(tempDir + "/local")
1822 assertFileExist(t, "subdir/example.txt")
1823 assertFileExist(t, "subdir/example2.txt")
1824 assertFileExist(t, "example3.txt")
1825}
1826
1827func TestIsGitIdentifiesGitRepo(t *testing.T) {
1828 setup(t)

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected