(t *testing.T)
| 545 | } |
| 546 | |
| 547 | func TestYML(t *testing.T) { |
| 548 | v := New() |
| 549 | v.SetConfigType("yaml") |
| 550 | |
| 551 | // Read the YAML data into Viper configuration |
| 552 | require.NoError(t, v.ReadConfig(bytes.NewBuffer(yamlExample)), "Error reading YAML data") |
| 553 | |
| 554 | assert.Equal(t, "steve", v.Get("name")) |
| 555 | } |
| 556 | |
| 557 | func TestJSON(t *testing.T) { |
| 558 | v := New() |
nothing calls this directly
no test coverage detected