MCPcopy Create free account
hub / github.com/diillson/chatcli / readFile

Function readFile

pkg/coder/engine/multipatch_test.go:42–47  ·  view source on GitHub ↗

readFile returns the file's content or fails the test.

(t *testing.T, path string)

Source from the content-addressed store, hash-verified

40
41// readFile returns the file's content or fails the test.
42func readFile(t *testing.T, path string) string {
43 t.Helper()
44 data, err := os.ReadFile(path)
45 require.NoError(t, err)
46 return string(data)
47}
48
49// TestMultipatch_HappyPathSingleFile is the smoke test: one edit
50// against one file lands cleanly. Mirrors handlePatch but goes

Calls

no outgoing calls

Tested by

no test coverage detected