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

Method TestObjectPackNotFound

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

Source from the content-addressed store, hash-verified

553}
554
555func (s *SuiteDotGit) TestObjectPackNotFound(c *C) {
556 fs := fixtures.Basic().ByTag(".git").One().DotGit()
557 dir := New(fs)
558
559 pack, err := dir.ObjectPack(plumbing.ZeroHash)
560 c.Assert(err, Equals, ErrPackfileNotFound)
561 c.Assert(pack, IsNil)
562
563 idx, err := dir.ObjectPackIdx(plumbing.ZeroHash)
564 c.Assert(err, Equals, ErrPackfileNotFound)
565 c.Assert(idx, IsNil)
566}
567
568func (s *SuiteDotGit) TestNewObject(c *C) {
569 fs, clean := s.TemporalFilesystem()

Callers

nothing calls this directly

Calls 3

ObjectPackMethod · 0.80
ObjectPackIdxMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected