aboutsummaryrefslogtreecommitdiffstats
path: root/formats/objfile/writer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'formats/objfile/writer_test.go')
-rw-r--r--formats/objfile/writer_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/formats/objfile/writer_test.go b/formats/objfile/writer_test.go
index 0061f3f..160491c 100644
--- a/formats/objfile/writer_test.go
+++ b/formats/objfile/writer_test.go
@@ -16,20 +16,20 @@ var _ = Suite(&SuiteWriter{})
func (s *SuiteWriter) TestWriteObjfile(c *C) {
for k, fixture := range objfileFixtures {
- comment := fmt.Sprintf("test %d: ", k)
+ com := fmt.Sprintf("test %d: ", k)
hash := core.NewHash(fixture.hash)
content, _ := base64.StdEncoding.DecodeString(fixture.content)
buffer := new(bytes.Buffer)
// Write the data out to the buffer
- testWriter(c, buffer, hash, fixture.t, content, comment)
+ testWriter(c, buffer, hash, fixture.t, content, com)
// Read the data back in from the buffer to be sure it matches
- testReader(c, buffer, hash, fixture.t, content, comment)
+ testReader(c, buffer, hash, fixture.t, content, com)
}
}
-func testWriter(c *C, dest io.Writer, hash core.Hash, typ core.ObjectType, content []byte, comment string) {
+func testWriter(c *C, dest io.Writer, hash core.Hash, typ core.ObjectType, content []byte, com string) {
length := int64(len(content))
w, err := NewWriter(dest, typ, length)
c.Assert(err, IsNil)