diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-25 10:18:48 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-25 10:18:48 +0100 |
commit | 5bc563727ffa798caee3b007c366eb66c3d69caa (patch) | |
tree | 6107f49405bb605793f1bcd7ef4961ceadcb11e9 /blame_test.go | |
parent | 07ca1ac7f3058ea6d3274a01973541fb84782f5e (diff) | |
parent | 0d999e1db6cd8736ab697de8ce848fa3a5274b9f (diff) | |
download | go-git-5bc563727ffa798caee3b007c366eb66c3d69caa.tar.gz |
Merge pull request #34 from scjalliance/object-reader-writer
Refactor to use core.ObjectReader and core.ObjectWriter
Diffstat (limited to 'blame_test.go')
-rw-r--r-- | blame_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blame_test.go b/blame_test.go index f64dfa9..880b0ad 100644 --- a/blame_test.go +++ b/blame_test.go @@ -56,7 +56,8 @@ func (s *BlameCommon) mockBlame(t blameTest, c *C) (blame *Blame) { file, err := commit.File(t.path) c.Assert(err, IsNil) - lines := file.Lines() + lines, err := file.Lines() + c.Assert(err, IsNil) 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)) |