| 327 | } |
| 328 | |
| 329 | func (s *SuiteCommit) TestCommitIterNext(c *C) { |
| 330 | i := s.Commit.Parents() |
| 331 | |
| 332 | commit, err := i.Next() |
| 333 | c.Assert(err, IsNil) |
| 334 | c.Assert(commit.ID().String(), Equals, "35e85108805c84807bc66a02d91535e1e24b38b9") |
| 335 | |
| 336 | commit, err = i.Next() |
| 337 | c.Assert(err, IsNil) |
| 338 | c.Assert(commit.ID().String(), Equals, "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69") |
| 339 | |
| 340 | commit, err = i.Next() |
| 341 | c.Assert(err, Equals, io.EOF) |
| 342 | c.Assert(commit, IsNil) |
| 343 | } |
| 344 | |
| 345 | func (s *SuiteCommit) TestLongCommitMessageSerialization(c *C) { |
| 346 | encoded := &plumbing.MemoryObject{} |