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

Method TestCommitOptionsParentsFromHEAD

options_test.go:19–24  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

17var _ = Suite(&OptionsSuite{})
18
19func (s *OptionsSuite) TestCommitOptionsParentsFromHEAD(c *C) {
20 o := CommitOptions{Author: &object.Signature{}}
21 err := o.Validate(s.Repository)
22 c.Assert(err, IsNil)
23 c.Assert(o.Parents, HasLen, 1)
24}
25
26func (s *OptionsSuite) TestResetOptionsCommitNotFound(c *C) {
27 o := ResetOptions{Commit: plumbing.NewHash("ab1b15c6f6487b4db16f10d8ec69bb8bf91dcabd")}

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected