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

Method TestOpenBareMissingWorktree

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

Source from the content-addressed store, hash-verified

206}
207
208func (s *RepositorySuite) TestOpenBareMissingWorktree(c *C) {
209 st := memory.NewStorage()
210
211 r, err := Init(st, memfs.New())
212 c.Assert(err, IsNil)
213 c.Assert(r, NotNil)
214
215 r, err = Open(st, nil)
216 c.Assert(err, IsNil)
217 c.Assert(r, NotNil)
218}
219
220func (s *RepositorySuite) TestOpenNotExists(c *C) {
221 r, err := Open(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
OpenFunction · 0.85

Tested by

no test coverage detected