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

Method Search

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

Search calls SearchFunc.

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

Source from the content-addressed store, hash-verified

678
679// Search calls SearchFunc.
680func (mock *DiscussionClientMock) Search(repo ghrepo.Interface, filters SearchFilters, after string, limit int) (*DiscussionListResult, error) {
681 if mock.SearchFunc == nil {
682 panic("DiscussionClientMock.SearchFunc: method is nil but DiscussionClient.Search was just called")
683 }
684 callInfo := struct {
685 Repo ghrepo.Interface
686 Filters SearchFilters
687 After string
688 Limit int
689 }{
690 Repo: repo,
691 Filters: filters,
692 After: after,
693 Limit: limit,
694 }
695 mock.lockSearch.Lock()
696 mock.calls.Search = append(mock.calls.Search, callInfo)
697 mock.lockSearch.Unlock()
698 return mock.SearchFunc(repo, filters, after, limit)
699}
700
701// SearchCalls gets all the calls that were made to Search.
702// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected