assertFileExists checks if a file exists at the specified path relative to repoPath
(t *testing.T, repoPath, relativePath string)
| 718 | |
| 719 | // assertFileExists checks if a file exists at the specified path relative to repoPath |
| 720 | func 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 |
| 728 | func readFile(t *testing.T, repoPath, relativePath string) string { |
no test coverage detected