(c *C)
| 2099 | } |
| 2100 | |
| 2101 | func (s *RepositorySuite) TestLogInvalidFile(c *C) { |
| 2102 | r, _ := Init(memory.NewStorage(), nil) |
| 2103 | err := r.clone(context.Background(), &CloneOptions{ |
| 2104 | URL: s.GetBasicLocalRepositoryURL(), |
| 2105 | }) |
| 2106 | c.Assert(err, IsNil) |
| 2107 | |
| 2108 | // Throwing in a file that does not exist |
| 2109 | fileName := "vendor/foo12.go" |
| 2110 | cIter, err := r.Log(&LogOptions{FileName: &fileName}) |
| 2111 | // Not raising an error since `git log -- vendor/foo12.go` responds silently |
| 2112 | c.Assert(err, IsNil) |
| 2113 | defer cIter.Close() |
| 2114 | |
| 2115 | _, err = cIter.Next() |
| 2116 | c.Assert(err, Equals, io.EOF) |
| 2117 | } |
| 2118 | |
| 2119 | func (s *RepositorySuite) TestLogFileInitialCommit(c *C) { |
| 2120 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected