(t *testing.T, content string)
| 590 | } |
| 591 | |
| 592 | func writeTempConfig(t *testing.T, content string) string { |
| 593 | t.Helper() |
| 594 | dir := t.TempDir() |
| 595 | path := filepath.Join(dir, "config.yaml") |
| 596 | if err := os.WriteFile(path, []byte(content), 0o644); err != nil { |
| 597 | t.Fatalf("write temp config: %v", err) |
| 598 | } |
| 599 | return path |
| 600 | } |
no outgoing calls
no test coverage detected