(c *C)
| 2179 | } |
| 2180 | |
| 2181 | func (s *RepositorySuite) TestLogPathWithError(c *C) { |
| 2182 | fileName := "README" |
| 2183 | pathIter := func(path string) bool { |
| 2184 | return path == fileName |
| 2185 | } |
| 2186 | cIter := object.NewCommitPathIterFromIter(pathIter, &mockErrCommitIter{}, false) |
| 2187 | defer cIter.Close() |
| 2188 | |
| 2189 | err := cIter.ForEach(func(commit *object.Commit) error { |
| 2190 | return nil |
| 2191 | }) |
| 2192 | c.Assert(err, NotNil) |
| 2193 | } |
| 2194 | |
| 2195 | func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) { |
| 2196 | pathRE := regexp.MustCompile("R.*E") |
nothing calls this directly
no test coverage detected