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

Method Update

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

Update calls UpdateFunc.

(repo ghrepo.Interface, issueNumber int, number int, name *string, body *string)

Source from the content-addressed store, hash-verified

358
359// Update calls UpdateFunc.
360func (mock *ArtifactClientMock) Update(repo ghrepo.Interface, issueNumber int, number int, name *string, body *string) (*Artifact, error) {
361 if mock.UpdateFunc == nil {
362 panic("ArtifactClientMock.UpdateFunc: method is nil but ArtifactClient.Update was just called")
363 }
364 callInfo := struct {
365 Repo ghrepo.Interface
366 IssueNumber int
367 Number int
368 Name *string
369 Body *string
370 }{
371 Repo: repo,
372 IssueNumber: issueNumber,
373 Number: number,
374 Name: name,
375 Body: body,
376 }
377 mock.lockUpdate.Lock()
378 mock.calls.Update = append(mock.calls.Update, callInfo)
379 mock.lockUpdate.Unlock()
380 return mock.UpdateFunc(repo, issueNumber, number, name, body)
381}
382
383// UpdateCalls gets all the calls that were made to Update.
384// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected