(t *testing.T)
| 565 | } |
| 566 | |
| 567 | func TestTOML(t *testing.T) { |
| 568 | v := New() |
| 569 | v.SetConfigType("toml") |
| 570 | |
| 571 | // Read the TOML data into Viper configuration |
| 572 | require.NoError(t, v.ReadConfig(bytes.NewBuffer(tomlExample)), "Error reading toml data") |
| 573 | |
| 574 | assert.Equal(t, "TOML Example", v.Get("title")) |
| 575 | } |
| 576 | |
| 577 | func TestDotEnv(t *testing.T) { |
| 578 | v := New() |
nothing calls this directly
no test coverage detected