(t *testing.T)
| 2091 | } |
| 2092 | |
| 2093 | func TestMergeConfigWithSetConfigFile(t *testing.T) { |
| 2094 | v := New() |
| 2095 | v.SetConfigFile("config.yaml") // Dummy value to infer config type from file extension |
| 2096 | err := v.MergeConfig(bytes.NewBuffer(yamlMergeExampleSrc)) |
| 2097 | require.NoError(t, err) |
| 2098 | assert.Equal(t, 45000, v.GetInt("hello.pop")) |
| 2099 | } |
| 2100 | |
| 2101 | func TestMergeConfigOverrideType(t *testing.T) { |
| 2102 | v := New() |
nothing calls this directly
no test coverage detected