(t *testing.T)
| 725 | } |
| 726 | |
| 727 | func TestEnvKeyReplacer(t *testing.T) { |
| 728 | v := NewWithOptions(EnvKeyReplacer(strings.NewReplacer("-", "_"))) |
| 729 | v.AutomaticEnv() |
| 730 | t.Setenv("REFRESH_INTERVAL", "30s") |
| 731 | assert.Equal(t, "30s", v.Get("refresh-interval")) |
| 732 | } |
| 733 | |
| 734 | func TestEnvSubConfig(t *testing.T) { |
| 735 | v := New() |
nothing calls this directly
no test coverage detected