diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-01-10 11:19:58 +0100 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-01-10 11:19:58 +0100 |
commit | 891459cb3c854851ce6fba860e5abb49621b4193 (patch) | |
tree | 8b52262ebef5babe03ea4548539991dd181d6089 /config/config_test.go | |
parent | 4b71e650c4502d02a1cdf581650764ef897386d6 (diff) | |
download | go-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.go | 9 |
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) +} |