(c *C)
| 1121 | } |
| 1122 | |
| 1123 | func (s *WorktreeSuite) TestStatusEmptyDirty(c *C) { |
| 1124 | fs := memfs.New() |
| 1125 | err := util.WriteFile(fs, "foo", []byte("foo"), 0755) |
| 1126 | c.Assert(err, IsNil) |
| 1127 | |
| 1128 | storage := memory.NewStorage() |
| 1129 | |
| 1130 | r, err := Init(storage, fs) |
| 1131 | c.Assert(err, IsNil) |
| 1132 | |
| 1133 | w, err := r.Worktree() |
| 1134 | c.Assert(err, IsNil) |
| 1135 | |
| 1136 | status, err := w.Status() |
| 1137 | c.Assert(err, IsNil) |
| 1138 | c.Assert(status.IsClean(), Equals, false) |
| 1139 | c.Assert(status, HasLen, 1) |
| 1140 | } |
| 1141 | |
| 1142 | func (s *WorktreeSuite) TestStatusUnmodified(c *C) { |
| 1143 | fs := memfs.New() |
nothing calls this directly
no test coverage detected