(c *C)
| 2193 | } |
| 2194 | |
| 2195 | func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) { |
| 2196 | pathRE := regexp.MustCompile("R.*E") |
| 2197 | pathIter := func(path string) bool { |
| 2198 | return pathRE.MatchString(path) |
| 2199 | } |
| 2200 | cIter := object.NewCommitPathIterFromIter(pathIter, &mockErrCommitIter{}, false) |
| 2201 | defer cIter.Close() |
| 2202 | |
| 2203 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2204 | return nil |
| 2205 | }) |
| 2206 | c.Assert(err, NotNil) |
| 2207 | } |
| 2208 | |
| 2209 | func (s *RepositorySuite) TestLogPathFilterRegexp(c *C) { |
| 2210 | pathRE := regexp.MustCompile(`.*\.go`) |
nothing calls this directly
no test coverage detected