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

Method TestParentNotFound

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

Source from the content-addressed store, hash-verified

121}
122
123func (s *SuiteCommit) TestParentNotFound(c *C) {
124 commit, err := s.Commit.Parent(42)
125 c.Assert(err, Equals, ErrParentNotFound)
126 c.Assert(commit, IsNil)
127}
128
129func (s *SuiteCommit) TestPatch(c *C) {
130 from := s.commit(c, plumbing.NewHash("918c48b83bd081e863dbe1b80f8998f058cd8294"))

Callers

nothing calls this directly

Calls 1

ParentMethod · 0.80

Tested by

no test coverage detected