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

Method List

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

List calls ListFunc.

(repo ghrepo.Interface, filters ListFilters, after string, limit int)

Source from the content-addressed store, hash-verified

534
535// List calls ListFunc.
536func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected