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

Method ListCategories

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

ListCategories calls ListCategoriesFunc.

(repo ghrepo.Interface)

Source from the content-addressed store, hash-verified

578
579// ListCategories calls ListCategoriesFunc.
580func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected