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

Method CodeCalls

pkg/search/searcher_mock.go:112–122  ·  view source on GitHub ↗

CodeCalls gets all the calls that were made to Code. Check the length with: len(mockedSearcher.CodeCalls())

()

Source from the content-addressed store, hash-verified

110//
111// len(mockedSearcher.CodeCalls())
112func (mock *SearcherMock) CodeCalls() []struct {
113 Query Query
114} {
115 var calls []struct {
116 Query Query
117 }
118 mock.lockCode.RLock()
119 calls = mock.calls.Code
120 mock.lockCode.RUnlock()
121 return calls
122}
123
124// Commits calls CommitsFunc.
125func (mock *SearcherMock) Commits(query Query) (CommitsResult, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected