(t *testing.T, filename string)
| 2073 | } |
| 2074 | |
| 2075 | func readFile(t *testing.T, filename string) string { |
| 2076 | t.Helper() |
| 2077 | |
| 2078 | content, err := os.ReadFile(filename) |
| 2079 | if err != nil { |
| 2080 | t.Fatalf("Failed to read file %q: %s", filename, err) |
| 2081 | } |
| 2082 | |
| 2083 | return string(content) |
| 2084 | } |
no outgoing calls
no test coverage detected