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

Method URL

pkg/search/searcher_mock.go:221–234  ·  view source on GitHub ↗

URL calls URLFunc.

(query Query)

Source from the content-addressed store, hash-verified

219
220// URL calls URLFunc.
221func (mock *SearcherMock) URL(query Query) string {
222 if mock.URLFunc == nil {
223 panic("SearcherMock.URLFunc: method is nil but Searcher.URL was just called")
224 }
225 callInfo := struct {
226 Query Query
227 }{
228 Query: query,
229 }
230 mock.lockURL.Lock()
231 mock.calls.URL = append(mock.calls.URL, callInfo)
232 mock.lockURL.Unlock()
233 return mock.URLFunc(query)
234}
235
236// URLCalls gets all the calls that were made to URL.
237// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected