(c *C)
| 1815 | } |
| 1816 | |
| 1817 | func (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 | |
| 1826 | func (s *WorktreeSuite) TestAddAll(c *C) { |
| 1827 | fs := memfs.New() |
nothing calls this directly
no test coverage detected