MCPcopy Create free account
hub / github.com/go-git/go-git / TestRemoteConfigDefaultValues

Method TestRemoteConfigDefaultValues

config/config_test.go:337–345  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

335}
336
337func (s *ConfigSuite) TestRemoteConfigDefaultValues(c *C) {
338 config := NewConfig()
339
340 c.Assert(config.Remotes, HasLen, 0)
341 c.Assert(config.Branches, HasLen, 0)
342 c.Assert(config.Submodules, HasLen, 0)
343 c.Assert(config.Raw, NotNil)
344 c.Assert(config.Pack.Window, Equals, DefaultPackWindow)
345}
346
347func (s *ConfigSuite) TestLoadConfigLocalScope(c *C) {
348 cfg, err := LoadConfig(LocalScope)

Callers

nothing calls this directly

Calls 1

NewConfigFunction · 0.85

Tested by

no test coverage detected