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

Function assertFileExists

cli/pkg/gitutil/gitcmdwrapper_test.go:720–725  ·  view source on GitHub ↗

assertFileExists checks if a file exists at the specified path relative to repoPath

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

Source from the content-addressed store, hash-verified

718
719// assertFileExists checks if a file exists at the specified path relative to repoPath
720func assertFileExists(t *testing.T, repoPath, relativePath string) {
721 t.Helper()
722 filePath := filepath.Join(repoPath, relativePath)
723 _, err := os.Stat(filePath)
724 require.NoError(t, err, "file %s should exist", relativePath)
725}
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 {

Callers 1

TestRunUpstreamMergeFunction · 0.70

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected