MCPcopy Index your code
hub / github.com/go-git/go-git / TestObjectPack

Method TestObjectPack

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

Source from the content-addressed store, hash-verified

522}
523
524func (s *SuiteDotGit) TestObjectPack(c *C) {
525 f := fixtures.Basic().ByTag(".git").One()
526 fs := f.DotGit()
527 dir := New(fs)
528
529 pack, err := dir.ObjectPack(plumbing.NewHash(f.PackfileHash))
530 c.Assert(err, IsNil)
531 c.Assert(filepath.Ext(pack.Name()), Equals, ".pack")
532}
533
534func (s *SuiteDotGit) TestObjectPackWithKeepDescriptors(c *C) {
535 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