diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-05-04 01:48:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 01:48:53 +0200 |
commit | e727d4d0cf4beff77c44bb143a5edb560c840aab (patch) | |
tree | f43a94ef85be1f3a36c5dfb1bb60eb0747c15902 /plumbing/format/index/encoder_test.go | |
parent | 727bf94da8e3cebd3ff467d30425b12d671fbca7 (diff) | |
parent | 75c5adffb8b1e80665753784129e2f16210514c1 (diff) | |
download | go-git-e727d4d0cf4beff77c44bb143a5edb560c840aab.tar.gz |
Merge pull request #364 from mcuadros/index-pointer
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) |