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

Method TestOpen

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

Source from the content-addressed store, hash-verified

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