(c *C)
| 972 | } |
| 973 | |
| 974 | func (s *WorktreeSuite) TestStatusEmpty(c *C) { |
| 975 | fs := memfs.New() |
| 976 | storage := memory.NewStorage() |
| 977 | |
| 978 | r, err := Init(storage, fs) |
| 979 | c.Assert(err, IsNil) |
| 980 | |
| 981 | w, err := r.Worktree() |
| 982 | c.Assert(err, IsNil) |
| 983 | |
| 984 | status, err := w.Status() |
| 985 | c.Assert(err, IsNil) |
| 986 | c.Assert(status.IsClean(), Equals, true) |
| 987 | c.Assert(status, NotNil) |
| 988 | } |
| 989 | |
| 990 | func (s *WorktreeSuite) TestStatusCheckedInBeforeIgnored(c *C) { |
| 991 | fs := memfs.New() |
nothing calls this directly
no test coverage detected