(selector string, pr *api.PullRequest, repo ghrepo.Interface)
| 620 | } |
| 621 | |
| 622 | func NewMockFinder(selector string, pr *api.PullRequest, repo ghrepo.Interface) *mockFinder { |
| 623 | var err error |
| 624 | if pr == nil { |
| 625 | err = &NotFoundError{errors.New("no pull requests found")} |
| 626 | } |
| 627 | return &mockFinder{ |
| 628 | expectSelector: selector, |
| 629 | pr: pr, |
| 630 | repo: repo, |
| 631 | err: err, |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | type mockFinder struct { |
| 636 | called bool |
no outgoing calls