(c *C)
| 3399 | } |
| 3400 | |
| 3401 | func (s *WorktreeSuite) TestRestoreWorktree(c *C) { |
| 3402 | _, w, names := setupForRestore(c, s) |
| 3403 | |
| 3404 | // Attempt without files should throw an error like the git restore |
| 3405 | opts := RestoreOptions{} |
| 3406 | err := w.Restore(&opts) |
| 3407 | c.Assert(err, Equals, ErrNoRestorePaths) |
| 3408 | |
| 3409 | opts.Files = []string{names[0], names[1]} |
| 3410 | err = w.Restore(&opts) |
| 3411 | c.Assert(err, Equals, ErrRestoreWorktreeOnlyNotSupported) |
| 3412 | } |
| 3413 | |
| 3414 | func (s *WorktreeSuite) TestRestoreBoth(c *C) { |
| 3415 | _, w, names := setupForRestore(c, s) |
nothing calls this directly
no test coverage detected