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

Method TestObjectNotFound

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

Source from the content-addressed store, hash-verified

724}
725
726func (s *SuiteDotGit) TestObjectNotFound(c *C) {
727 fs := fixtures.ByTag(".git").ByTag("unpacked").One().DotGit()
728 dir := New(fs)
729
730 hash := plumbing.NewHash("not-found-object")
731 file, err := dir.Object(hash)
732 c.Assert(err, NotNil)
733 c.Assert(file, IsNil)
734}
735
736func (s *SuiteDotGit) TestSubmodules(c *C) {
737 fs := fixtures.ByTag("submodule").One().DotGit()

Callers

nothing calls this directly

Calls 3

NewHashFunction · 0.92
NewFunction · 0.70
ObjectMethod · 0.45

Tested by

no test coverage detected