(c *C)
| 32 | } |
| 33 | |
| 34 | func (s *SuiteCommit) TestDecodeNonCommit(c *C) { |
| 35 | hash := plumbing.NewHash("9a48f23120e880dfbe41f7c9b7b708e9ee62a492") |
| 36 | blob, err := s.Storer.EncodedObject(plumbing.AnyObject, hash) |
| 37 | c.Assert(err, IsNil) |
| 38 | |
| 39 | commit := &Commit{} |
| 40 | err = commit.Decode(blob) |
| 41 | c.Assert(err, Equals, ErrUnsupportedObject) |
| 42 | } |
| 43 | |
| 44 | func (s *SuiteCommit) TestType(c *C) { |
| 45 | c.Assert(s.Commit.Type(), Equals, plumbing.CommitObject) |
nothing calls this directly
no test coverage detected