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

Method TestParentNotFound

plumbing/object/commit_test.go:79–83  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

77}
78
79func (s *SuiteCommit) TestParentNotFound(c *C) {
80 commit, err := s.Commit.Parent(42)
81 c.Assert(err, Equals, ErrParentNotFound)
82 c.Assert(commit, IsNil)
83}
84
85func (s *SuiteCommit) TestPatch(c *C) {
86 from := s.commit(c, plumbing.NewHash("918c48b83bd081e863dbe1b80f8998f058cd8294"))

Callers

nothing calls this directly

Calls 1

ParentMethod · 0.80

Tested by

no test coverage detected