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