(c *C)
| 1034 | } |
| 1035 | |
| 1036 | func (s *WorktreeSuite) TestStatusEmptyDirty(c *C) { |
| 1037 | fs := memfs.New() |
| 1038 | err := util.WriteFile(fs, "foo", []byte("foo"), 0755) |
| 1039 | c.Assert(err, IsNil) |
| 1040 | |
| 1041 | storage := memory.NewStorage() |
| 1042 | |
| 1043 | r, err := Init(storage, fs) |
| 1044 | c.Assert(err, IsNil) |
| 1045 | |
| 1046 | w, err := r.Worktree() |
| 1047 | c.Assert(err, IsNil) |
| 1048 | |
| 1049 | status, err := w.Status() |
| 1050 | c.Assert(err, IsNil) |
| 1051 | c.Assert(status.IsClean(), Equals, false) |
| 1052 | c.Assert(status, HasLen, 1) |
| 1053 | } |
| 1054 | |
| 1055 | func (s *WorktreeSuite) TestReset(c *C) { |
| 1056 | fs := memfs.New() |
nothing calls this directly
no test coverage detected