aboutsummaryrefslogtreecommitdiffstats
path: root/config/config_test.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-01-10 11:19:58 +0100
committerJavi Fontan <jfontan@gmail.com>2018-01-10 11:19:58 +0100
commit891459cb3c854851ce6fba860e5abb49621b4193 (patch)
tree8b52262ebef5babe03ea4548539991dd181d6089 /config/config_test.go
parent4b71e650c4502d02a1cdf581650764ef897386d6 (diff)
downloadgo-git-891459cb3c854851ce6fba860e5abb49621b4193.tar.gz
Add tests for default config values
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 019cee6..a5e804f 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -156,3 +156,12 @@ func (s *ConfigSuite) TestRemoteConfigValidateDefault(c *C) {
c.Assert(fetch, HasLen, 1)
c.Assert(fetch[0].String(), Equals, "+refs/heads/*:refs/remotes/foo/*")
}
+
+func (s *ConfigSuite) TestRemoteConfigDefaultValues(c *C) {
+ config := NewConfig()
+
+ c.Assert(config.Remotes, HasLen, 0)
+ c.Assert(config.Submodules, HasLen, 0)
+ c.Assert(config.Raw, NotNil)
+ c.Assert(config.Pack.Window, Equals, defaultPackWindow)
+}