aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/decoder_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-03-10 01:41:19 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2020-03-10 01:41:19 +0100
commit2637279338ca9736c22b5e15fca916121ae8d089 (patch)
tree2273e55f2d2b68b9b6335924d6b00ddf3417e8e7 /plumbing/format/idxfile/decoder_test.go
parent2bdfd91f04068220a72feeade31defc09f2a601e (diff)
downloadgo-git-2637279338ca9736c22b5e15fca916121ae8d089.tar.gz
*: migration from go-git-fixtures/v4 and go-git/gcfg
Diffstat (limited to 'plumbing/format/idxfile/decoder_test.go')
-rw-r--r--plumbing/format/idxfile/decoder_test.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/plumbing/format/idxfile/decoder_test.go b/plumbing/format/idxfile/decoder_test.go
index 286fe6f..467e242 100644
--- a/plumbing/format/idxfile/decoder_test.go
+++ b/plumbing/format/idxfile/decoder_test.go
@@ -11,8 +11,8 @@ import (
"github.com/go-git/go-git/v5/plumbing"
. "github.com/go-git/go-git/v5/plumbing/format/idxfile"
+ fixtures "github.com/go-git/go-git-fixtures/v4"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git-fixtures.v3"
)
func Test(t *testing.T) { TestingT(t) }
@@ -48,7 +48,7 @@ func (s *IdxfileSuite) TestDecode(c *C) {
c.Assert(crc32, Equals, uint32(3645019190))
c.Assert(fmt.Sprintf("%x", idx.IdxChecksum), Equals, "fb794f1ec720b9bc8e43257451bd99c4be6fa1c9")
- c.Assert(fmt.Sprintf("%x", idx.PackfileChecksum), Equals, f.PackfileHash.String())
+ c.Assert(fmt.Sprintf("%x", idx.PackfileChecksum), Equals, f.PackfileHash)
}
func (s *IdxfileSuite) TestDecode64bitsOffsets(c *C) {
@@ -118,10 +118,6 @@ ch2xUA==
`
func BenchmarkDecode(b *testing.B) {
- if err := fixtures.Init(); err != nil {
- b.Errorf("unexpected error initializing fixtures: %s", err)
- }
-
f := fixtures.Basic().One()
fixture, err := ioutil.ReadAll(f.Idx())
if err != nil {