(t *testing.T, content string)
| 459 | } |
| 460 | |
| 461 | func writeHTTPSSetupTempConfig(t *testing.T, content string) string { |
| 462 | t.Helper() |
| 463 | |
| 464 | tempDir := t.TempDir() |
| 465 | configPath := filepath.Join(tempDir, "config.yaml") |
| 466 | if err := os.WriteFile(configPath, []byte(content), 0o600); err != nil { |
| 467 | t.Fatalf("os.WriteFile() error = %v", err) |
| 468 | } |
| 469 | |
| 470 | return configPath |
| 471 | } |
| 472 | |
| 473 | func readHTTPSSetupConfig(t *testing.T, configPath string) string { |
| 474 | t.Helper() |
no outgoing calls
no test coverage detected