aboutsummaryrefslogtreecommitdiffstats
path: root/blame_test.go
diff options
context:
space:
mode:
authorAlberto Cortés <alcortesm@gmail.com>2017-01-19 11:17:55 +0100
committerGitHub <noreply@github.com>2017-01-19 11:17:55 +0100
commit4fe64a1484f61130c282c5d415501f549658e9ab (patch)
treed3ade5c62a4b7a234e3ce775e5bc5f9915bd5da2 /blame_test.go
parent3b35cf557f7266797d0aee1d1020e08912fb34c1 (diff)
downloadgo-git-4fe64a1484f61130c282c5d415501f549658e9ab.tar.gz
blame: make line and its members public so they can be actually used (#213)
Diffstat (limited to 'blame_test.go')
-rw-r--r--blame_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/blame_test.go b/blame_test.go
index 1ff430e..857612d 100644
--- a/blame_test.go
+++ b/blame_test.go
@@ -46,13 +46,13 @@ func (s *BlameSuite) mockBlame(c *C, t blameTest, r *Repository) (blame *BlameRe
c.Assert(len(t.blames), Equals, len(lines), Commentf(
"repo=%s, path=%s, rev=%s: the number of lines in the file and the number of expected blames differ (len(blames)=%d, len(lines)=%d)\nblames=%#q\nlines=%#q", t.repo, t.path, t.rev, len(t.blames), len(lines), t.blames, lines))
- blamedLines := make([]*line, 0, len(t.blames))
+ blamedLines := make([]*Line, 0, len(t.blames))
for i := range t.blames {
commit, err := r.Commit(plumbing.NewHash(t.blames[i]))
c.Assert(err, IsNil)
- l := &line{
- author: commit.Author.Email,
- text: lines[i],
+ l := &Line{
+ Author: commit.Author.Email,
+ Text: lines[i],
}
blamedLines = append(blamedLines, l)
}