(c *C)
| 199 | } |
| 200 | |
| 201 | func (s *WorktreeSuite) TestPullProgress(c *C) { |
| 202 | r, _ := Init(memory.NewStorage(), memfs.New()) |
| 203 | |
| 204 | r.CreateRemote(&config.RemoteConfig{ |
| 205 | Name: DefaultRemoteName, |
| 206 | URLs: []string{s.GetBasicLocalRepositoryURL()}, |
| 207 | }) |
| 208 | |
| 209 | w, err := r.Worktree() |
| 210 | c.Assert(err, IsNil) |
| 211 | |
| 212 | buf := bytes.NewBuffer(nil) |
| 213 | err = w.Pull(&PullOptions{ |
| 214 | Progress: buf, |
| 215 | }) |
| 216 | |
| 217 | c.Assert(err, IsNil) |
| 218 | c.Assert(buf.Len(), Not(Equals), 0) |
| 219 | } |
| 220 | |
| 221 | func (s *WorktreeSuite) TestPullProgressWithRecursion(c *C) { |
| 222 | if testing.Short() { |
nothing calls this directly
no test coverage detected