List calls ListFunc.
(repo ghrepo.Interface, filters ListFilters, after string, limit int)
| 534 | |
| 535 | // List calls ListFunc. |
| 536 | func (mock *DiscussionClientMock) List(repo ghrepo.Interface, filters ListFilters, after string, limit int) (*DiscussionListResult, error) { |
| 537 | if mock.ListFunc == nil { |
| 538 | panic("DiscussionClientMock.ListFunc: method is nil but DiscussionClient.List was just called") |
| 539 | } |
| 540 | callInfo := struct { |
| 541 | Repo ghrepo.Interface |
| 542 | Filters ListFilters |
| 543 | After string |
| 544 | Limit int |
| 545 | }{ |
| 546 | Repo: repo, |
| 547 | Filters: filters, |
| 548 | After: after, |
| 549 | Limit: limit, |
| 550 | } |
| 551 | mock.lockList.Lock() |
| 552 | mock.calls.List = append(mock.calls.List, callInfo) |
| 553 | mock.lockList.Unlock() |
| 554 | return mock.ListFunc(repo, filters, after, limit) |
| 555 | } |
| 556 | |
| 557 | // ListCalls gets all the calls that were made to List. |
| 558 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected