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

Method TestInitAlreadyExists

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

Source from the content-addressed store, hash-verified

169}
170
171func (s *RepositorySuite) TestInitAlreadyExists(c *C) {
172 st := memory.NewStorage()
173
174 r, err := Init(st, nil)
175 c.Assert(err, IsNil)
176 c.Assert(r, NotNil)
177
178 r, err = Init(st, nil)
179 c.Assert(err, Equals, ErrRepositoryAlreadyExists)
180 c.Assert(r, IsNil)
181}
182
183func (s *RepositorySuite) TestOpen(c *C) {
184 st := memory.NewStorage()

Callers

nothing calls this directly

Calls 2

NewStorageFunction · 0.92
InitFunction · 0.85

Tested by

no test coverage detected