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

Method TestAddDirectoryErrorNotFound

worktree_test.go:1817–1824  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

1815}
1816
1817func (s *WorktreeSuite) TestAddDirectoryErrorNotFound(c *C) {
1818 r, _ := Init(memory.NewStorage(), memfs.New())
1819 w, _ := r.Worktree()
1820
1821 h, err := w.Add("foo")
1822 c.Assert(err, NotNil)
1823 c.Assert(h.IsZero(), Equals, true)
1824}
1825
1826func (s *WorktreeSuite) TestAddAll(c *C) {
1827 fs := memfs.New()

Callers

nothing calls this directly

Calls 5

NewStorageFunction · 0.92
InitFunction · 0.85
WorktreeMethod · 0.80
IsZeroMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected