diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-09 02:48:01 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-09 02:48:01 +0200 |
commit | 59219f01bbf5f748876258fe5f4648d2cfd4d6e9 (patch) | |
tree | ec225373a7cef5187a26666ff0e2607539a050cd /formats/idxfile/decoder_test.go | |
parent | 3b1baea2dd9353f42b3a9d93f6bc92ecbe9f4f01 (diff) | |
download | go-git-59219f01bbf5f748876258fe5f4648d2cfd4d6e9.tar.gz |
format: idxfile.Encoder fix fanout generator
Diffstat (limited to 'formats/idxfile/decoder_test.go')
-rw-r--r-- | formats/idxfile/decoder_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/formats/idxfile/decoder_test.go b/formats/idxfile/decoder_test.go index 5a844a3..cd90465 100644 --- a/formats/idxfile/decoder_test.go +++ b/formats/idxfile/decoder_test.go @@ -41,11 +41,10 @@ func (s *IdxfileSuite) TestDecodeCRCs(c *C) { storage := memory.NewStorage() pd := packfile.NewDecoder(scanner, storage.ObjectStorage()) - checksum, err := pd.Decode() + _, err := pd.Decode() c.Assert(err, IsNil) i := &Idxfile{Version: VersionSupported} - i.PackfileChecksum = checksum offsets := pd.Offsets() for h, crc := range pd.CRCs() { @@ -63,5 +62,5 @@ func (s *IdxfileSuite) TestDecodeCRCs(c *C) { err = d.Decode(idx) c.Assert(err, IsNil) - c.Assert(idx, DeepEquals, i) + c.Assert(idx.Entries, DeepEquals, i.Entries) } |