diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 11:22:32 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 11:22:32 +0200 |
commit | 26d02b3fec4434d663445d580497204e79284db0 (patch) | |
tree | 979557eb9427829331fedcc80f9f8879b590b7cb /config/config_test.go | |
parent | 16207827862af21b6e822df9aafd0007ba19a36f (diff) | |
download | go-git-26d02b3fec4434d663445d580497204e79284db0.tar.gz |
config: ReadConfig and LoadConfig from scopes
Diffstat (limited to 'config/config_test.go')
-rw-r--r-- | config/config_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go index 157be95..e68626b 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -170,6 +170,12 @@ func (s *ConfigSuite) TestUnmarshalMarshal(c *C) { c.Assert(string(output), DeepEquals, string(input)) } +func (s *ConfigSuite) TestLoadConfig(c *C) { + cfg, err := LoadConfig(GlobalScope) + c.Assert(err, IsNil) + c.Assert(cfg.User.Email, Not(Equals), "") +} + func (s *ConfigSuite) TestValidateConfig(c *C) { config := &Config{ Remotes: map[string]*RemoteConfig{ |