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 /storage/filesystem/object_test.go | |
parent | 2bdfd91f04068220a72feeade31defc09f2a601e (diff) | |
download | go-git-2637279338ca9736c22b5e15fca916121ae8d089.tar.gz |
*: migration from go-git-fixtures/v4 and go-git/gcfg
Diffstat (limited to 'storage/filesystem/object_test.go')
-rw-r--r-- | storage/filesystem/object_test.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index f9a6a76..6c35129 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -12,8 +12,8 @@ import ( "github.com/go-git/go-git/v5/plumbing/cache" "github.com/go-git/go-git/v5/storage/filesystem/dotgit" + fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" - "gopkg.in/src-d/go-git-fixtures.v3" ) type FsSuite struct { @@ -248,7 +248,7 @@ func (s *FsSuite) TestPackfileReindex(c *C) { packFixture := fixtures.ByTag("packfile").ByTag("standalone").One() packFile := packFixture.Packfile() idxFile := packFixture.Idx() - packFilename := packFixture.PackfileHash.String() + packFilename := packFixture.PackfileHash testObjectHash := plumbing.NewHash("a771b1e94141480861332fd0e4684d33071306c6") // this is an object we know exists in the standalone packfile fixtures.ByTag(".git").Test(c, func(f *fixtures.Fixture) { fs := f.DotGit() @@ -333,10 +333,6 @@ func (s *FsSuite) TestGetFromObjectFileSharedCache(c *C) { } func BenchmarkPackfileIter(b *testing.B) { - if err := fixtures.Init(); err != nil { - b.Fatal(err) - } - defer func() { if err := fixtures.Clean(); err != nil { b.Fatal(err) @@ -389,10 +385,6 @@ func BenchmarkPackfileIter(b *testing.B) { } func BenchmarkPackfileIterReadContent(b *testing.B) { - if err := fixtures.Init(); err != nil { - b.Fatal(err) - } - defer func() { if err := fixtures.Clean(); err != nil { b.Fatal(err) @@ -455,10 +447,6 @@ func BenchmarkPackfileIterReadContent(b *testing.B) { } func BenchmarkGetObjectFromPackfile(b *testing.B) { - if err := fixtures.Init(); err != nil { - b.Fatal(err) - } - defer func() { if err := fixtures.Clean(); err != nil { b.Fatal(err) |