(c *C)
| 2200 | func (m *mockErrCommitIter) Close() {} |
| 2201 | |
| 2202 | func (s *RepositorySuite) TestLogFileWithError(c *C) { |
| 2203 | fileName := "README" |
| 2204 | cIter := object.NewCommitFileIterFromIter(fileName, &mockErrCommitIter{}, false) |
| 2205 | defer cIter.Close() |
| 2206 | |
| 2207 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2208 | return nil |
| 2209 | }) |
| 2210 | c.Assert(err, NotNil) |
| 2211 | } |
| 2212 | |
| 2213 | func (s *RepositorySuite) TestLogPathWithError(c *C) { |
| 2214 | fileName := "README" |
nothing calls this directly
no test coverage detected