diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-10 01:41:19 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-10 01:41:19 +0100 |
commit | 2637279338ca9736c22b5e15fca916121ae8d089 (patch) | |
tree | 2273e55f2d2b68b9b6335924d6b00ddf3417e8e7 /plumbing/format/packfile/packfile_test.go | |
parent | 2bdfd91f04068220a72feeade31defc09f2a601e (diff) | |
download | go-git-2637279338ca9736c22b5e15fca916121ae8d089.tar.gz |
*: migration from go-git-fixtures/v4 and go-git/gcfg
Diffstat (limited to 'plumbing/format/packfile/packfile_test.go')
-rw-r--r-- | plumbing/format/packfile/packfile_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plumbing/format/packfile/packfile_test.go b/plumbing/format/packfile/packfile_test.go index 882a907..8b1b934 100644 --- a/plumbing/format/packfile/packfile_test.go +++ b/plumbing/format/packfile/packfile_test.go @@ -5,12 +5,12 @@ import ( "math" "github.com/go-git/go-billy/v5/osfs" - . "gopkg.in/check.v1" - fixtures "gopkg.in/src-d/go-git-fixtures.v3" + fixtures "github.com/go-git/go-git-fixtures/v4" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/format/idxfile" "github.com/go-git/go-git/v5/plumbing/format/packfile" "github.com/go-git/go-git/v5/plumbing/storer" + . "gopkg.in/check.v1" ) type PackfileSuite struct { @@ -49,7 +49,7 @@ func (s *PackfileSuite) TestGetByOffset(c *C) { func (s *PackfileSuite) TestID(c *C) { id, err := s.p.ID() c.Assert(err, IsNil) - c.Assert(id, Equals, s.f.PackfileHash) + c.Assert(id.String(), Equals, s.f.PackfileHash) } func (s *PackfileSuite) TestGetAll(c *C) { @@ -297,7 +297,7 @@ func (s *PackfileSuite) TestSize(c *C) { c.Assert(size, Equals, int64(76110)) // Get the size of the root commit, which is delta-encoded. - offset, err = packfile.FindOffset(f.Head) + offset, err = packfile.FindOffset(plumbing.NewHash(f.Head)) c.Assert(err, IsNil) size, err = packfile.GetSizeByOffset(offset) c.Assert(err, IsNil) |