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

Method TestWorktree

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

Source from the content-addressed store, hash-verified

3144}
3145
3146func (s *RepositorySuite) TestWorktree(c *C) {
3147 def := memfs.New()
3148 r, _ := Init(memory.NewStorage(), def)
3149 w, err := r.Worktree()
3150 c.Assert(err, IsNil)
3151 c.Assert(w.Filesystem, Equals, def)
3152}
3153
3154func (s *RepositorySuite) TestWorktreeBare(c *C) {
3155 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
WorktreeMethod · 0.80

Tested by

no test coverage detected