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

Function readFile

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

Source from the content-addressed store, hash-verified

2266}
2267
2268func readFile(t *testing.T, path string) string {
2269 content, err := os.ReadFile(path)
2270 if err != nil {
2271 failWithFailure(t, "no error", fmt.Sprintf("reading file %s failed with %v", path, err))
2272 }
2273 output := string(content)
2274 return output
2275}
2276
2277func assertOnBranch(t *testing.T, branch string) {
2278 currentBranch := gitCurrentBranch()

Callers 2

TestRunOutputFunction · 0.85
TestStartDoneCoAuthorsFunction · 0.85

Calls 1

failWithFailureFunction · 0.70

Tested by

no test coverage detected