mirror of
https://github.com/spf13/viper
synced 2025-05-11 06:37:27 +00:00
Merge branch 'bugfix/map-interface-cast' of https://github.com/linuxsong/viper into bugfix/map-interface-cast
This commit is contained in:
commit
f6249515cc
1 changed files with 2 additions and 1 deletions
|
@ -2699,6 +2699,7 @@ func TestIsPathShadowedInFlatMap(t *testing.T) {
|
||||||
|
|
||||||
path2 := []string{"bar", "foo"}
|
path2 := []string{"bar", "foo"}
|
||||||
expected2 := ""
|
expected2 := ""
|
||||||
|
|
||||||
// "bar.foo" should not shadowed by "foo"
|
// "bar.foo" should not shadowed by "foo"
|
||||||
assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, stringMap))
|
assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, stringMap))
|
||||||
assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, flagMap))
|
assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, flagMap))
|
||||||
|
|
Loading…
Add table
Reference in a new issue