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

Method UploadTarget

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

UploadTarget calls UploadTargetFunc.

(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

406
407// UploadTarget calls UploadTargetFunc.
408func (mock *ArtifactClientMock) UploadTarget(repo ghrepo.Interface, number int) (*UploadTarget, error) {
409 if mock.UploadTargetFunc == nil {
410 panic("ArtifactClientMock.UploadTargetFunc: method is nil but ArtifactClient.UploadTarget was just called")
411 }
412 callInfo := struct {
413 Repo ghrepo.Interface
414 Number int
415 }{
416 Repo: repo,
417 Number: number,
418 }
419 mock.lockUploadTarget.Lock()
420 mock.calls.UploadTarget = append(mock.calls.UploadTarget, callInfo)
421 mock.lockUploadTarget.Unlock()
422 return mock.UploadTargetFunc(repo, number)
423}
424
425// UploadTargetCalls gets all the calls that were made to UploadTarget.
426// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected