(t *testing.T)
| 1566 | } |
| 1567 | |
| 1568 | func TestReadConfigWithSetConfigFile(t *testing.T) { |
| 1569 | v := New() |
| 1570 | v.SetConfigFile("config.yaml") // Dummy value to infer config type from file extension |
| 1571 | err := v.ReadConfig(bytes.NewBuffer(yamlMergeExampleSrc)) |
| 1572 | require.NoError(t, err) |
| 1573 | assert.Equal(t, 45000, v.GetInt("hello.pop")) |
| 1574 | } |
| 1575 | |
| 1576 | func TestIsSet(t *testing.T) { |
| 1577 | v := New() |
nothing calls this directly
no test coverage detected