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

Function moveFile

mob_test.go:2261–2266  ·  view source on GitHub ↗
(t *testing.T, oldPath string, newPath string)

Source from the content-addressed store, hash-verified

2259}
2260
2261func moveFile(t *testing.T, oldPath string, newPath string) {
2262 err := os.Rename(oldPath, newPath)
2263 if err != nil {
2264 failWithFailure(t, "no error", fmt.Sprintf("error %v occured moving %s to %s", err, oldPath, newPath))
2265 }
2266}
2267
2268func readFile(t *testing.T, path string) string {
2269 content, err := os.ReadFile(path)

Calls 1

failWithFailureFunction · 0.70

Tested by

no test coverage detected