(c *C)
| 2115 | } |
| 2116 | |
| 2117 | func (s *RepositorySuite) TestLogFileWithOtherParamsFail(c *C) { |
| 2118 | r, _ := Init(memory.NewStorage(), nil) |
| 2119 | err := r.clone(context.Background(), &CloneOptions{ |
| 2120 | URL: s.GetBasicLocalRepositoryURL(), |
| 2121 | }) |
| 2122 | c.Assert(err, IsNil) |
| 2123 | |
| 2124 | fileName := "vendor/foo.go" |
| 2125 | cIter, err := r.Log(&LogOptions{ |
| 2126 | Order: LogOrderCommitterTime, |
| 2127 | FileName: &fileName, |
| 2128 | From: plumbing.NewHash("35e85108805c84807bc66a02d91535e1e24b38b9"), |
| 2129 | }) |
| 2130 | c.Assert(err, IsNil) |
| 2131 | defer cIter.Close() |
| 2132 | |
| 2133 | _, iterErr := cIter.Next() |
| 2134 | c.Assert(iterErr, Equals, io.EOF) |
| 2135 | } |
| 2136 | |
| 2137 | func (s *RepositorySuite) TestLogFileWithOtherParamsPass(c *C) { |
| 2138 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected