-
Notifications
You must be signed in to change notification settings - Fork 534
Conversation
worktree_status.go
Outdated
@@ -72,6 +74,8 @@ func (w *Worktree) status(commit plumbing.Hash) (Status, error) { | |||
fs.Staging = Unmodified | |||
} | |||
|
|||
fmt.Println(ch, a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover?
worktree_status.go
Outdated
if err != nil { | ||
return err | ||
} | ||
|
||
fillSystemInfo(e, info.Sys()) | ||
return nil | ||
} | ||
|
||
func (w *Worktree) Remove(path string) (plumbing.Hash, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document this method.
worktree_status.go
Outdated
return err | ||
} | ||
|
||
func (w *Worktree) Move(from, to string) (plumbing.Hash, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document this method.
@@ -20,3 +20,20 @@ func (s *IndexSuite) TestIndexEntry(c *C) { | |||
c.Assert(e, IsNil) | |||
c.Assert(err, Equals, ErrEntryNotFound) | |||
} | |||
|
|||
func (s *IndexSuite) TestIndexRemove(c *C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestIndexRemoveNonexistentEntry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I didn't know, because the codecov comment is not appearing...
@@ -590,3 +590,68 @@ func (s *WorktreeSuite) TestAddUnmodified(c *C) { | |||
c.Assert(hash.String(), Equals, "c192bd6a24ea1ab01d78686e417c8bdc7c3d197f") | |||
c.Assert(err, IsNil) | |||
} | |||
|
|||
func (s *WorktreeSuite) TestRemove(c *C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestRemoveNonexistentElement?
worktree_test.go
Outdated
c.Assert(status.File("LICENSE").Staging, Equals, Deleted) | ||
} | ||
|
||
func (s *WorktreeSuite) TestRemoveDeletedFromWorktree(c *C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestRemoveNonexistentDeletedElement?
Codecov Report
@@ Coverage Diff @@
## master #395 +/- ##
==========================================
- Coverage 77.29% 76.62% -0.68%
==========================================
Files 123 123
Lines 8753 8787 +34
==========================================
- Hits 6766 6733 -33
- Misses 1226 1302 +76
+ Partials 761 752 -9
Continue to review full report at Codecov.
|
Requires src-d/go-billy#29