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

Method Commits

pkg/search/searcher_mock.go:125–138  ·  view source on GitHub ↗

Commits calls CommitsFunc.

(query Query)

Source from the content-addressed store, hash-verified

123
124// Commits calls CommitsFunc.
125func (mock *SearcherMock) Commits(query Query) (CommitsResult, error) {
126 if mock.CommitsFunc == nil {
127 panic("SearcherMock.CommitsFunc: method is nil but Searcher.Commits was just called")
128 }
129 callInfo := struct {
130 Query Query
131 }{
132 Query: query,
133 }
134 mock.lockCommits.Lock()
135 mock.calls.Commits = append(mock.calls.Commits, callInfo)
136 mock.lockCommits.Unlock()
137 return mock.CommitsFunc(query)
138}
139
140// CommitsCalls gets all the calls that were made to Commits.
141// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected