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

Method TestLogFileWithError

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

Source from the content-addressed store, hash-verified

2168func (m *mockErrCommitIter) Close() {}
2169
2170func (s *RepositorySuite) TestLogFileWithError(c *C) {
2171 fileName := "README"
2172 cIter := object.NewCommitFileIterFromIter(fileName, &mockErrCommitIter{}, false)
2173 defer cIter.Close()
2174
2175 err := cIter.ForEach(func(commit *object.Commit) error {
2176 return nil
2177 })
2178 c.Assert(err, NotNil)
2179}
2180
2181func (s *RepositorySuite) TestLogPathWithError(c *C) {
2182 fileName := "README"

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.65
ForEachMethod · 0.65

Tested by

no test coverage detected