MCPcopy
hub / github.com/go-git/go-git / TestObjectPackNotFound

Method TestObjectPackNotFound

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

Source from the content-addressed store, hash-verified

581}
582
583func (s *SuiteDotGit) TestObjectPackNotFound(c *C) {
584 fs := fixtures.Basic().ByTag(".git").One().DotGit()
585 dir := New(fs)
586
587 pack, err := dir.ObjectPack(plumbing.ZeroHash)
588 c.Assert(err, Equals, ErrPackfileNotFound)
589 c.Assert(pack, IsNil)
590
591 idx, err := dir.ObjectPackIdx(plumbing.ZeroHash)
592 c.Assert(err, Equals, ErrPackfileNotFound)
593 c.Assert(idx, IsNil)
594}
595
596func (s *SuiteDotGit) TestNewObject(c *C) {
597 fs := s.TemporalFilesystem(c)

Callers

nothing calls this directly

Calls 3

ObjectPackMethod · 0.80
ObjectPackIdxMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected