ListLabels calls ListLabelsFunc.
(repo ghrepo.Interface)
| 610 | |
| 611 | // ListLabels calls ListLabelsFunc. |
| 612 | func (mock *DiscussionClientMock) ListLabels(repo ghrepo.Interface) ([]DiscussionLabel, error) { |
| 613 | if mock.ListLabelsFunc == nil { |
| 614 | panic("DiscussionClientMock.ListLabelsFunc: method is nil but DiscussionClient.ListLabels was just called") |
| 615 | } |
| 616 | callInfo := struct { |
| 617 | Repo ghrepo.Interface |
| 618 | }{ |
| 619 | Repo: repo, |
| 620 | } |
| 621 | mock.lockListLabels.Lock() |
| 622 | mock.calls.ListLabels = append(mock.calls.ListLabels, callInfo) |
| 623 | mock.lockListLabels.Unlock() |
| 624 | return mock.ListLabelsFunc(repo) |
| 625 | } |
| 626 | |
| 627 | // ListLabelsCalls gets all the calls that were made to ListLabels. |
| 628 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected