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

Method TestResetOptionsCommitNotFound

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

Source from the content-addressed store, hash-verified

24}
25
26func (s *OptionsSuite) TestResetOptionsCommitNotFound(c *C) {
27 o := ResetOptions{Commit: plumbing.NewHash("ab1b15c6f6487b4db16f10d8ec69bb8bf91dcabd")}
28 err := o.Validate(s.Repository)
29 c.Assert(err, NotNil)
30}
31
32func (s *OptionsSuite) TestCommitOptionsCommitter(c *C) {
33 sig := &object.Signature{}

Callers

nothing calls this directly

Calls 2

ValidateMethod · 0.95
NewHashFunction · 0.92

Tested by

no test coverage detected