ListCategories calls ListCategoriesFunc.
(repo ghrepo.Interface)
| 578 | |
| 579 | // ListCategories calls ListCategoriesFunc. |
| 580 | func (mock *DiscussionClientMock) ListCategories(repo ghrepo.Interface) ([]DiscussionCategory, error) { |
| 581 | if mock.ListCategoriesFunc == nil { |
| 582 | panic("DiscussionClientMock.ListCategoriesFunc: method is nil but DiscussionClient.ListCategories was just called") |
| 583 | } |
| 584 | callInfo := struct { |
| 585 | Repo ghrepo.Interface |
| 586 | }{ |
| 587 | Repo: repo, |
| 588 | } |
| 589 | mock.lockListCategories.Lock() |
| 590 | mock.calls.ListCategories = append(mock.calls.ListCategories, callInfo) |
| 591 | mock.lockListCategories.Unlock() |
| 592 | return mock.ListCategoriesFunc(repo) |
| 593 | } |
| 594 | |
| 595 | // ListCategoriesCalls gets all the calls that were made to ListCategories. |
| 596 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected