(c *C)
| 2168 | func (m *mockErrCommitIter) Close() {} |
| 2169 | |
| 2170 | func (s *RepositorySuite) TestLogFileWithError(c *C) { |
| 2171 | fileName := "README" |
| 2172 | cIter := object.NewCommitFileIterFromIter(fileName, &mockErrCommitIter{}, false) |
| 2173 | defer cIter.Close() |
| 2174 | |
| 2175 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2176 | return nil |
| 2177 | }) |
| 2178 | c.Assert(err, NotNil) |
| 2179 | } |
| 2180 | |
| 2181 | func (s *RepositorySuite) TestLogPathWithError(c *C) { |
| 2182 | fileName := "README" |
nothing calls this directly
no test coverage detected