(t *testing.T, dir, name, content string)
| 320 | } |
| 321 | |
| 322 | func mustWrite(t *testing.T, dir, name, content string) { |
| 323 | t.Helper() |
| 324 | if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0o644); err != nil { |
| 325 | t.Fatalf("write %s: %v", name, err) |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | func marshalHookData(t *testing.T, data hooks.Request) string { |
| 330 | t.Helper() |
no test coverage detected