aboutsummaryrefslogtreecommitdiffstats
path: root/blame_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-02-25 10:18:48 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-02-25 10:18:48 +0100
commit5bc563727ffa798caee3b007c366eb66c3d69caa (patch)
tree6107f49405bb605793f1bcd7ef4961ceadcb11e9 /blame_test.go
parent07ca1ac7f3058ea6d3274a01973541fb84782f5e (diff)
parent0d999e1db6cd8736ab697de8ce848fa3a5274b9f (diff)
downloadgo-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.go3
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))