(t *testing.T)
| 575 | } |
| 576 | |
| 577 | func TestDotEnv(t *testing.T) { |
| 578 | v := New() |
| 579 | v.SetConfigType("env") |
| 580 | // Read the dotenv data into Viper configuration |
| 581 | require.NoError(t, v.ReadConfig(bytes.NewBuffer(dotenvExample)), "Error reading env data") |
| 582 | |
| 583 | assert.Equal(t, "DotEnv Example", v.Get("title_dotenv")) |
| 584 | } |
| 585 | |
| 586 | func TestRemotePrecedence(t *testing.T) { |
| 587 | v := New() |
nothing calls this directly
no test coverage detected