aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/index/index_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/index/index_test.go')
-rw-r--r--plumbing/format/index/index_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/index/index_test.go b/plumbing/format/index/index_test.go
index 8c915d8..67286b3 100644
--- a/plumbing/format/index/index_test.go
+++ b/plumbing/format/index/index_test.go
@@ -6,7 +6,7 @@ import (
func (s *IndexSuite) TestIndexEntry(c *C) {
idx := &Index{
- Entries: []Entry{
+ Entries: []*Entry{
{Name: "foo", Size: 42},
{Name: "bar", Size: 82},
},
@@ -17,6 +17,6 @@ func (s *IndexSuite) TestIndexEntry(c *C) {
c.Assert(e.Name, Equals, "foo")
e, err = idx.Entry("missing")
+ c.Assert(e, IsNil)
c.Assert(err, Equals, ErrEntryNotFound)
- c.Assert(e.Name, Equals, "")
}