diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-26 20:48:13 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-26 20:48:13 +0200 |
commit | 9b75cb91384dd08eed2acce8c3099e082835da12 (patch) | |
tree | f559053ac65bd67e29412f586e71fc2969cd0b8f /plumbing/format/index/encoder_test.go | |
parent | 64cd72debb2a94a49de5ffd3c3a6bfd626df7340 (diff) | |
download | go-git-9b75cb91384dd08eed2acce8c3099e082835da12.tar.gz |
plumbing: index, Entries converted in a slice of pointers
Diffstat (limited to 'plumbing/format/index/encoder_test.go')
-rw-r--r-- | plumbing/format/index/encoder_test.go | 6 |
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) |