MCPcopy Index your code
hub / github.com/rilldata/rill / readFile

Function readFile

cli/pkg/gitutil/gitcmdwrapper_test.go:728–734  ·  view source on GitHub ↗

readFile reads and returns the content of a file at the specified path relative to repoPath

(t *testing.T, repoPath, relativePath string)

Source from the content-addressed store, hash-verified

726
727// readFile reads and returns the content of a file at the specified path relative to repoPath
728func readFile(t *testing.T, repoPath, relativePath string) string {
729 t.Helper()
730 filePath := filepath.Join(repoPath, relativePath)
731 content, err := os.ReadFile(filePath)
732 require.NoError(t, err, "failed to read file %s", relativePath)
733 return string(content)
734}

Callers 1

TestRunUpstreamMergeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected