(c *C)
| 1402 | } |
| 1403 | |
| 1404 | func (s *WorktreeSuite) TestSubmodules(c *C) { |
| 1405 | path := fixtures.ByTag("submodule").One().Worktree().Root() |
| 1406 | r, err := PlainOpen(path) |
| 1407 | c.Assert(err, IsNil) |
| 1408 | |
| 1409 | w, err := r.Worktree() |
| 1410 | c.Assert(err, IsNil) |
| 1411 | |
| 1412 | l, err := w.Submodules() |
| 1413 | c.Assert(err, IsNil) |
| 1414 | |
| 1415 | c.Assert(l, HasLen, 2) |
| 1416 | } |
| 1417 | |
| 1418 | func (s *WorktreeSuite) TestAddUntracked(c *C) { |
| 1419 | fs := memfs.New() |
nothing calls this directly
no test coverage detected