Add new function ShadowLoad

This commit is contained in:
Unknwon
2017-02-22 06:10:43 -05:00
parent 173c8ba8e6
commit 74bdc99692
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -455,7 +455,7 @@ func Test_Key_Shadows(t *testing.T) {
})
Convey("Enable shadows", func() {
cfg, err := LoadSources(LoadOptions{AllowShadows: true}, []byte(_CONF_GIT_CONFIG))
cfg, err := ShadowLoad([]byte(_CONF_GIT_CONFIG))
So(err, ShouldBeNil)
So(cfg.Section(`remote "origin"`).Key("url").String(), ShouldEqual, "https://github.com/Antergone/test1.git")
So(strings.Join(cfg.Section(`remote "origin"`).Key("url").ValueWithShadows(), " "), ShouldEqual,