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

Method Get

pkg/cmd/issue/artifact/client/client_mock.go:240–257  ·  view source on GitHub ↗

Get calls GetFunc.

(repo ghrepo.Interface, issueNumber int, number int)

Source from the content-addressed store, hash-verified

238
239// Get calls GetFunc.
240func (mock *ArtifactClientMock) Get(repo ghrepo.Interface, issueNumber int, number int) (*ArtifactWithVersions, error) {
241 if mock.GetFunc == nil {
242 panic("ArtifactClientMock.GetFunc: method is nil but ArtifactClient.Get was just called")
243 }
244 callInfo := struct {
245 Repo ghrepo.Interface
246 IssueNumber int
247 Number int
248 }{
249 Repo: repo,
250 IssueNumber: issueNumber,
251 Number: number,
252 }
253 mock.lockGet.Lock()
254 mock.calls.Get = append(mock.calls.Get, callInfo)
255 mock.lockGet.Unlock()
256 return mock.GetFunc(repo, issueNumber, number)
257}
258
259// GetCalls gets all the calls that were made to Get.
260// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected