(c *C)
| 1045 | } |
| 1046 | |
| 1047 | func (s *WorktreeSuite) TestStatus(c *C) { |
| 1048 | fs := memfs.New() |
| 1049 | w := &Worktree{ |
| 1050 | r: s.Repository, |
| 1051 | Filesystem: fs, |
| 1052 | } |
| 1053 | |
| 1054 | status, err := w.Status() |
| 1055 | c.Assert(err, IsNil) |
| 1056 | |
| 1057 | c.Assert(status.IsClean(), Equals, false) |
| 1058 | c.Assert(status, HasLen, 9) |
| 1059 | } |
| 1060 | |
| 1061 | func (s *WorktreeSuite) TestStatusEmpty(c *C) { |
| 1062 | fs := memfs.New() |