package config import ( "os" "path/filepath" "testing" ) // writeFile is a tiny helper used by the test files; inlined so config_test.go // stays self-contained without a shared helpers file. func writeFile(t *testing.T, path, body string) error { t.Helper() dir := filepath.Dir(path) if dir != "" { if err := os.MkdirAll(dir, 0o700); err != nil { return err } } return os.WriteFile(path, []byte(body), 0o600) }