(c *C)
| 52 | } |
| 53 | |
| 54 | func (s *WorktreeSuite) TestPullCheckout(c *C) { |
| 55 | fs := memfs.New() |
| 56 | r, _ := Init(memory.NewStorage(), fs) |
| 57 | r.CreateRemote(&config.RemoteConfig{ |
| 58 | Name: DefaultRemoteName, |
| 59 | URLs: []string{s.GetBasicLocalRepositoryURL()}, |
| 60 | }) |
| 61 | |
| 62 | w, err := r.Worktree() |
| 63 | c.Assert(err, IsNil) |
| 64 | |
| 65 | err = w.Pull(&PullOptions{}) |
| 66 | c.Assert(err, IsNil) |
| 67 | |
| 68 | fi, err := fs.ReadDir("") |
| 69 | c.Assert(err, IsNil) |
| 70 | c.Assert(fi, HasLen, 8) |
| 71 | } |
| 72 | |
| 73 | func (s *WorktreeSuite) TestPullFastForward(c *C) { |
| 74 | url := c.MkDir() |
nothing calls this directly
no test coverage detected