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

Function assertFileExist

mob_test.go:2200–2208  ·  view source on GitHub ↗
(t *testing.T, filename string)

Source from the content-addressed store, hash-verified

2198}
2199
2200func assertFileExist(t *testing.T, filename string) {
2201 path := workingDir + "/" + filename
2202 if strings.Index(filename, "/") == 0 {
2203 path = filename
2204 }
2205 if _, err := os.Stat(path); os.IsNotExist(err) {
2206 failWithFailure(t, "existing file "+path, "no file at "+path)
2207 }
2208}
2209
2210func createFileAndCommitIt(t *testing.T, filename string, content string, commitMessage string) {
2211 createFile(t, filename, content)

Calls 1

failWithFailureFunction · 0.70

Tested by

no test coverage detected