aboutsummaryrefslogtreecommitdiffstats
path: root/config/config_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-05-24 11:22:32 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2020-05-24 11:22:32 +0200
commit26d02b3fec4434d663445d580497204e79284db0 (patch)
tree979557eb9427829331fedcc80f9f8879b590b7cb /config/config_test.go
parent16207827862af21b6e822df9aafd0007ba19a36f (diff)
downloadgo-git-26d02b3fec4434d663445d580497204e79284db0.tar.gz
config: ReadConfig and LoadConfig from scopes
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go6
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{