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