(c *C)
| 958 | } |
| 959 | |
| 960 | func (s *WorktreeSuite) TestStatus(c *C) { |
| 961 | fs := memfs.New() |
| 962 | w := &Worktree{ |
| 963 | r: s.Repository, |
| 964 | Filesystem: fs, |
| 965 | } |
| 966 | |
| 967 | status, err := w.Status() |
| 968 | c.Assert(err, IsNil) |
| 969 | |
| 970 | c.Assert(status.IsClean(), Equals, false) |
| 971 | c.Assert(status, HasLen, 9) |
| 972 | } |
| 973 | |
| 974 | func (s *WorktreeSuite) TestStatusEmpty(c *C) { |
| 975 | fs := memfs.New() |