readFile reads and returns the content of a file at the specified path relative to repoPath
(t *testing.T, repoPath, relativePath string)
| 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 { |
| 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 | } |
no outgoing calls
no test coverage detected