diff options
Diffstat (limited to 'blame_test.go')
-rw-r--r-- | blame_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/blame_test.go b/blame_test.go index f4203b8..1ff430e 100644 --- a/blame_test.go +++ b/blame_test.go @@ -29,13 +29,13 @@ func (s *BlameSuite) TestBlame(c *C) { commit, err := r.Commit(plumbing.NewHash(t.rev)) c.Assert(err, IsNil) - obt, err := commit.Blame(t.path) + obt, err := Blame(commit, t.path) c.Assert(err, IsNil) c.Assert(obt, DeepEquals, exp) } } -func (s *BlameSuite) mockBlame(c *C, t blameTest, r *Repository) (blame *Blame) { +func (s *BlameSuite) mockBlame(c *C, t blameTest, r *Repository) (blame *BlameResult) { commit, err := r.Commit(plumbing.NewHash(t.rev)) c.Assert(err, IsNil, Commentf("%v: repo=%s, rev=%s", err, t.repo, t.rev)) @@ -57,7 +57,7 @@ func (s *BlameSuite) mockBlame(c *C, t blameTest, r *Repository) (blame *Blame) blamedLines = append(blamedLines, l) } - return &Blame{ + return &BlameResult{ Path: t.path, Rev: plumbing.NewHash(t.rev), Lines: blamedLines, |