aboutsummaryrefslogtreecommitdiffstats
path: root/tree_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree_test.go')
-rw-r--r--tree_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/tree_test.go b/tree_test.go
index 2b509f3..4bf42be 100644
--- a/tree_test.go
+++ b/tree_test.go
@@ -191,16 +191,16 @@ func (s *SuiteTree) TestFile(c *C) {
file, err := tree.File(t.path)
found := err == nil
- comment := Commentf("subtest %d, path=%s, commit=%s", i, t.path, t.commit)
- c.Assert(found, Equals, t.found, comment)
+ com := Commentf("subtest %d, path=%s, commit=%s", i, t.path, t.commit)
+ c.Assert(found, Equals, t.found, com)
if !found {
continue
}
- c.Assert(file.Size, Equals, t.size, comment)
- c.Assert(file.Hash.IsZero(), Equals, false, comment)
- c.Assert(file.Hash, Equals, file.ID(), comment)
- c.Assert(file.Hash.String(), Equals, t.blobHash, comment)
+ c.Assert(file.Size, Equals, t.size, com)
+ c.Assert(file.Hash.IsZero(), Equals, false, com)
+ c.Assert(file.Hash, Equals, file.ID(), com)
+ c.Assert(file.Hash.String(), Equals, t.blobHash, com)
}
}