MCPcopy Index your code
hub / github.com/go-git/go-git / TestLogPathWithError

Method TestLogPathWithError

repository_test.go:2181–2193  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

2179}
2180
2181func (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
2195func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) {
2196 pathRE := regexp.MustCompile("R.*E")

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.65
ForEachMethod · 0.65

Tested by

no test coverage detected