MCPcopy Index your code
hub / github.com/go-git/go-git / TestOpenBare

Method TestOpenBare

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

Source from the content-addressed store, hash-verified

193}
194
195func (s *RepositorySuite) TestOpenBare(c *C) {
196 st := memory.NewStorage()
197
198 r, err := Init(st, nil)
199 c.Assert(err, IsNil)
200 c.Assert(r, NotNil)
201
202 r, err = Open(st, nil)
203 c.Assert(err, IsNil)
204 c.Assert(r, NotNil)
205}
206
207func (s *RepositorySuite) TestOpenBareMissingWorktree(c *C) {
208 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