(c *C)
| 1602 | } |
| 1603 | |
| 1604 | func (s *WorktreeSuite) TestSubmodules(c *C) { |
| 1605 | path := fixtures.ByTag("submodule").One().Worktree().Root() |
| 1606 | r, err := PlainOpen(path) |
| 1607 | c.Assert(err, IsNil) |
| 1608 | |
| 1609 | w, err := r.Worktree() |
| 1610 | c.Assert(err, IsNil) |
| 1611 | |
| 1612 | l, err := w.Submodules() |
| 1613 | c.Assert(err, IsNil) |
| 1614 | |
| 1615 | c.Assert(l, HasLen, 2) |
| 1616 | } |
| 1617 | |
| 1618 | func (s *WorktreeSuite) TestAddUntracked(c *C) { |
| 1619 | fs := memfs.New() |
nothing calls this directly
no test coverage detected