Search calls SearchFunc.
(repo ghrepo.Interface, filters SearchFilters, after string, limit int)
| 678 | |
| 679 | // Search calls SearchFunc. |
| 680 | func (mock *DiscussionClientMock) Search(repo ghrepo.Interface, filters SearchFilters, after string, limit int) (*DiscussionListResult, error) { |
| 681 | if mock.SearchFunc == nil { |
| 682 | panic("DiscussionClientMock.SearchFunc: method is nil but DiscussionClient.Search was just called") |
| 683 | } |
| 684 | callInfo := struct { |
| 685 | Repo ghrepo.Interface |
| 686 | Filters SearchFilters |
| 687 | After string |
| 688 | Limit int |
| 689 | }{ |
| 690 | Repo: repo, |
| 691 | Filters: filters, |
| 692 | After: after, |
| 693 | Limit: limit, |
| 694 | } |
| 695 | mock.lockSearch.Lock() |
| 696 | mock.calls.Search = append(mock.calls.Search, callInfo) |
| 697 | mock.lockSearch.Unlock() |
| 698 | return mock.SearchFunc(repo, filters, after, limit) |
| 699 | } |
| 700 | |
| 701 | // SearchCalls gets all the calls that were made to Search. |
| 702 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected