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

Method TestOpenBareMissingWorktree

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

Source from the content-addressed store, hash-verified

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