(c *C)
| 2054 | } |
| 2055 | |
| 2056 | func (s *RepositorySuite) TestLogNonHeadFile(c *C) { |
| 2057 | r, _ := Init(memory.NewStorage(), nil) |
| 2058 | err := r.clone(context.Background(), &CloneOptions{ |
| 2059 | URL: s.GetBasicLocalRepositoryURL(), |
| 2060 | }) |
| 2061 | |
| 2062 | c.Assert(err, IsNil) |
| 2063 | |
| 2064 | fileName := "README" |
| 2065 | cIter, err := r.Log(&LogOptions{FileName: &fileName}) |
| 2066 | c.Assert(err, IsNil) |
| 2067 | defer cIter.Close() |
| 2068 | |
| 2069 | _, err = cIter.Next() |
| 2070 | c.Assert(err, Equals, io.EOF) |
| 2071 | } |
| 2072 | |
| 2073 | func (s *RepositorySuite) TestLogAllFileForEach(c *C) { |
| 2074 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected