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

Method TestOpen

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

Source from the content-addressed store, hash-verified

182}
183
184func (s *RepositorySuite) TestOpen(c *C) {
185 st := memory.NewStorage()
186
187 r, err := Init(st, memfs.New())
188 c.Assert(err, IsNil)
189 c.Assert(r, NotNil)
190
191 r, err = Open(st, memfs.New())
192 c.Assert(err, IsNil)
193 c.Assert(r, NotNil)
194}
195
196func (s *RepositorySuite) TestOpenBare(c *C) {
197 st := memory.NewStorage()

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
OpenFunction · 0.85

Tested by

no test coverage detected