(t *testing.T, path, want string)
| 231 | } |
| 232 | |
| 233 | func assertFileContent(t *testing.T, path, want string) { |
| 234 | t.Helper() |
| 235 | got, err := os.ReadFile(path) |
| 236 | if err != nil { |
| 237 | t.Fatal(err) |
| 238 | } |
| 239 | if string(got) != want { |
| 240 | t.Fatalf("file content = %q, want %q", string(got), want) |
| 241 | } |
| 242 | } |
no outgoing calls
no test coverage detected