aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-02-22 19:05:49 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-02-22 19:05:49 +0100
commit07ca1ac7f3058ea6d3274a01973541fb84782f5e (patch)
tree8a459b8f2d00d1794103f2bf6febf46aa7f3b853 /objects_test.go
parent9c319b2c4d6bb5cff43d237583b463619e95dc93 (diff)
downloadgo-git-07ca1ac7f3058ea6d3274a01973541fb84782f5e.tar.gz
File, added size and reader is now a methodv3.0.0
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects_test.go b/objects_test.go
index 4745774..10b9661 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -67,7 +67,7 @@ func (s *ObjectsSuite) TestParseTree(c *C) {
for f, err := iter.Next(); err == nil; f, err = iter.Next() {
count++
if f.Name == "go/example.go" {
- content, _ := ioutil.ReadAll(f)
+ content, _ := ioutil.ReadAll(f.Reader())
c.Assert(content, HasLen, 2780)
}
}