(c *C)
| 1059 | } |
| 1060 | |
| 1061 | func (s *WorktreeSuite) TestStatusEmpty(c *C) { |
| 1062 | fs := memfs.New() |
| 1063 | storage := memory.NewStorage() |
| 1064 | |
| 1065 | r, err := Init(storage, fs) |
| 1066 | c.Assert(err, IsNil) |
| 1067 | |
| 1068 | w, err := r.Worktree() |
| 1069 | c.Assert(err, IsNil) |
| 1070 | |
| 1071 | status, err := w.Status() |
| 1072 | c.Assert(err, IsNil) |
| 1073 | c.Assert(status.IsClean(), Equals, true) |
| 1074 | c.Assert(status, NotNil) |
| 1075 | } |
| 1076 | |
| 1077 | func (s *WorktreeSuite) TestStatusCheckedInBeforeIgnored(c *C) { |
| 1078 | fs := memfs.New() |
nothing calls this directly
no test coverage detected