diff options
author | paul.t <paul.t@gembaadvantage.com> | 2022-01-05 06:54:15 +0000 |
---|---|---|
committer | paul.t <paul.t@gembaadvantage.com> | 2022-01-05 06:54:15 +0000 |
commit | bf57a4c6a53423d92aeeadf1bc02877cc80459d4 (patch) | |
tree | 5fc41da16c024d40c33ebf2569e2c62717cb4a29 /plumbing | |
parent | 8d923a6fb77d7916da2df33e5a65e038cceef4e1 (diff) | |
download | go-git-bf57a4c6a53423d92aeeadf1bc02877cc80459d4.tar.gz |
remove packfile and align to test fixtures
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/format/packfile/parser_test.go | 5 | ||||
-rw-r--r-- | plumbing/format/packfile/testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack | bin | 42029 -> 0 bytes |
2 files changed, 2 insertions, 3 deletions
diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go index 9c7e218..09f3f97 100644 --- a/plumbing/format/packfile/parser_test.go +++ b/plumbing/format/packfile/parser_test.go @@ -133,10 +133,9 @@ func (s *ParserSuite) TestThinPack(c *C) { } func (s *ParserSuite) TestResolveExternalRefsInThinPack(c *C) { - f, err := os.Open("testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack") - c.Assert(err, IsNil) + extRefsThinPack := fixtures.ByTag("codecommit").One() - scanner := packfile.NewScanner(f) + scanner := packfile.NewScanner(extRefsThinPack.Packfile()) obs := new(testObserver) parser, err := packfile.NewParser(scanner, obs) diff --git a/plumbing/format/packfile/testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack b/plumbing/format/packfile/testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack Binary files differdeleted file mode 100644 index 4a57a61..0000000 --- a/plumbing/format/packfile/testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack +++ /dev/null |