Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 891459c

Browse files
committed
Add tests for default config values
Signed-off-by: Javi Fontan <jfontan@gmail.com>
1 parent 4b71e65 commit 891459c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/config_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,12 @@ func (s *ConfigSuite) TestRemoteConfigValidateDefault(c *C) {
156156
c.Assert(fetch, HasLen, 1)
157157
c.Assert(fetch[0].String(), Equals, "+refs/heads/*:refs/remotes/foo/*")
158158
}
159+
160+
func (s *ConfigSuite) TestRemoteConfigDefaultValues(c *C) {
161+
config := NewConfig()
162+
163+
c.Assert(config.Remotes, HasLen, 0)
164+
c.Assert(config.Submodules, HasLen, 0)
165+
c.Assert(config.Raw, NotNil)
166+
c.Assert(config.Pack.Window, Equals, defaultPackWindow)
167+
}

0 commit comments

Comments
 (0)