(c *C)
| 2211 | } |
| 2212 | |
| 2213 | func (s *RepositorySuite) TestLogPathWithError(c *C) { |
| 2214 | fileName := "README" |
| 2215 | pathIter := func(path string) bool { |
| 2216 | return path == fileName |
| 2217 | } |
| 2218 | cIter := object.NewCommitPathIterFromIter(pathIter, &mockErrCommitIter{}, false) |
| 2219 | defer cIter.Close() |
| 2220 | |
| 2221 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2222 | return nil |
| 2223 | }) |
| 2224 | c.Assert(err, NotNil) |
| 2225 | } |
| 2226 | |
| 2227 | func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) { |
| 2228 | pathRE := regexp.MustCompile("R.*E") |
nothing calls this directly
no test coverage detected