MCPcopy
hub / github.com/go-git/go-git / TestInitBare

Method TestInitBare

repository_test.go:160–169  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

158}
159
160func (s *RepositorySuite) TestInitBare(c *C) {
161 r, err := Init(memory.NewStorage(), nil)
162 c.Assert(err, IsNil)
163 c.Assert(r, NotNil)
164
165 cfg, err := r.Config()
166 c.Assert(err, IsNil)
167 c.Assert(cfg.Core.IsBare, Equals, true)
168
169}
170
171func (s *RepositorySuite) TestInitAlreadyExists(c *C) {
172 st := memory.NewStorage()

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
ConfigMethod · 0.65

Tested by

no test coverage detected