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

Function ensureDirectoryExists

mob_test.go:2246–2252  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

2244}
2245
2246func ensureDirectoryExists(t *testing.T, path string) (pathToDirectory string) {
2247 err := os.MkdirAll(path, 0755)
2248 if err != nil {
2249 failWithFailure(t, "creating folder "+path, "error")
2250 }
2251 return path
2252}
2253
2254func removeFile(t *testing.T, path string) {
2255 err := os.Remove(path)

Callers 2

createDirectoryFunction · 0.85

Calls 1

failWithFailureFunction · 0.70

Tested by

no test coverage detected