(t *testing.T, dir, name, content string)
| 24 | ) |
| 25 | |
| 26 | func writeFile(t *testing.T, dir, name, content string) string { |
| 27 | t.Helper() |
| 28 | p := filepath.Join(dir, name) |
| 29 | if err := os.WriteFile(p, []byte(content), 0o600); err != nil { |
| 30 | t.Fatalf("write file: %v", err) |
| 31 | } |
| 32 | return p |
| 33 | } |
| 34 | |
| 35 | func TestHotUpdateConfig_AllowsLoggerLevelChange(t *testing.T) { |
| 36 | // snapshot globals we touch and restore afterwards |
no test coverage detected