MCPcopy Create free account
hub / github.com/cli/cli / ListLabels

Method ListLabels

pkg/cmd/discussion/client/client_mock.go:612–625  ·  view source on GitHub ↗

ListLabels calls ListLabelsFunc.

(repo ghrepo.Interface)

Source from the content-addressed store, hash-verified

610
611// ListLabels calls ListLabelsFunc.
612func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected