(c *C)
| 2225 | } |
| 2226 | |
| 2227 | func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) { |
| 2228 | pathRE := regexp.MustCompile("R.*E") |
| 2229 | pathIter := func(path string) bool { |
| 2230 | return pathRE.MatchString(path) |
| 2231 | } |
| 2232 | cIter := object.NewCommitPathIterFromIter(pathIter, &mockErrCommitIter{}, false) |
| 2233 | defer cIter.Close() |
| 2234 | |
| 2235 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2236 | return nil |
| 2237 | }) |
| 2238 | c.Assert(err, NotNil) |
| 2239 | } |
| 2240 | |
| 2241 | func (s *RepositorySuite) TestLogPathFilterRegexp(c *C) { |
| 2242 | pathRE := regexp.MustCompile(`.*\.go`) |
nothing calls this directly
no test coverage detected