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