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

Method TestCommitOptionsCommitter

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

Source from the content-addressed store, hash-verified

30}
31
32func (s *OptionsSuite) TestCommitOptionsCommitter(c *C) {
33 sig := &object.Signature{}
34
35 o := CommitOptions{Author: sig}
36 err := o.Validate(s.Repository)
37 c.Assert(err, IsNil)
38
39 c.Assert(o.Committer, Equals, o.Author)
40}
41
42func (s *OptionsSuite) TestCommitOptionsLoadGlobalConfigUser(c *C) {
43 cfg := config.NewConfig()

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected