(t *testing.T, filename string)
| 2198 | } |
| 2199 | |
| 2200 | func 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 | |
| 2210 | func createFileAndCommitIt(t *testing.T, filename string, content string, commitMessage string) { |
| 2211 | createFile(t, filename, content) |
no test coverage detected