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

Method List

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

List calls ListFunc.

(repo ghrepo.Interface, issueNumber int, artifactType string, limit int)

Source from the content-addressed store, hash-verified

314
315// List calls ListFunc.
316func (mock *ArtifactClientMock) List(repo ghrepo.Interface, issueNumber int, artifactType string, limit int) ([]Artifact, error) {
317 if mock.ListFunc == nil {
318 panic("ArtifactClientMock.ListFunc: method is nil but ArtifactClient.List was just called")
319 }
320 callInfo := struct {
321 Repo ghrepo.Interface
322 IssueNumber int
323 ArtifactType string
324 Limit int
325 }{
326 Repo: repo,
327 IssueNumber: issueNumber,
328 ArtifactType: artifactType,
329 Limit: limit,
330 }
331 mock.lockList.Lock()
332 mock.calls.List = append(mock.calls.List, callInfo)
333 mock.lockList.Unlock()
334 return mock.ListFunc(repo, issueNumber, artifactType, limit)
335}
336
337// ListCalls gets all the calls that were made to List.
338// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected