(c *C)
| 115 | } |
| 116 | |
| 117 | func (s *SuiteCommit) TestParent(c *C) { |
| 118 | commit, err := s.Commit.Parent(1) |
| 119 | c.Assert(err, IsNil) |
| 120 | c.Assert(commit.Hash.String(), Equals, "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69") |
| 121 | } |
| 122 | |
| 123 | func (s *SuiteCommit) TestParentNotFound(c *C) { |
| 124 | commit, err := s.Commit.Parent(42) |