MCPcopy Create free account
hub / github.com/go-git/go-git / TestObjectPack

Method TestObjectPack

storage/filesystem/dotgit/dotgit_test.go:495–503  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

493}
494
495func (s *SuiteDotGit) TestObjectPack(c *C) {
496 f := fixtures.Basic().ByTag(".git").One()
497 fs := f.DotGit()
498 dir := New(fs)
499
500 pack, err := dir.ObjectPack(plumbing.NewHash(f.PackfileHash))
501 c.Assert(err, IsNil)
502 c.Assert(filepath.Ext(pack.Name()), Equals, ".pack")
503}
504
505func (s *SuiteDotGit) TestObjectPackWithKeepDescriptors(c *C) {
506 f := fixtures.Basic().ByTag(".git").One()

Callers

nothing calls this directly

Calls 4

NewHashFunction · 0.92
ObjectPackMethod · 0.80
NewFunction · 0.70
NameMethod · 0.65

Tested by

no test coverage detected