aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/index/encoder_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/index/encoder_test.go')
-rw-r--r--plumbing/format/index/encoder_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plumbing/format/index/encoder_test.go b/plumbing/format/index/encoder_test.go
index f76fafe..bc5df0f 100644
--- a/plumbing/format/index/encoder_test.go
+++ b/plumbing/format/index/encoder_test.go
@@ -12,7 +12,7 @@ import (
func (s *IndexSuite) TestEncode(c *C) {
idx := &Index{
Version: 2,
- Entries: []Entry{{
+ Entries: []*Entry{{
CreatedAt: time.Now(),
ModifiedAt: time.Now(),
Dev: 4242,
@@ -66,7 +66,7 @@ func (s *IndexSuite) TestEncodeUnsuportedVersion(c *C) {
func (s *IndexSuite) TestEncodeWithIntentToAddUnsuportedVersion(c *C) {
idx := &Index{
Version: 2,
- Entries: []Entry{{IntentToAdd: true}},
+ Entries: []*Entry{{IntentToAdd: true}},
}
buf := bytes.NewBuffer(nil)
@@ -78,7 +78,7 @@ func (s *IndexSuite) TestEncodeWithIntentToAddUnsuportedVersion(c *C) {
func (s *IndexSuite) TestEncodeWithSkipWorktreeUnsuportedVersion(c *C) {
idx := &Index{
Version: 2,
- Entries: []Entry{{SkipWorktree: true}},
+ Entries: []*Entry{{SkipWorktree: true}},
}
buf := bytes.NewBuffer(nil)