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

Function assertFileExists

cli/pkg/cmdutil/helper_test.go:427–432  ·  view source on GitHub ↗
(t *testing.T, repoPath, relativePath string)

Source from the content-addressed store, hash-verified

425}
426
427func assertFileExists(t *testing.T, repoPath, relativePath string) {
428 t.Helper()
429 filePath := filepath.Join(repoPath, relativePath)
430 _, err := os.Stat(filePath)
431 require.NoError(t, err, "file %s should exist", relativePath)
432}
433
434func readFile(t *testing.T, repoPath, relativePath string) string {
435 t.Helper()

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected