Update calls UpdateFunc.
(repo ghrepo.Interface, issueNumber int, number int, name *string, body *string)
| 358 | |
| 359 | // Update calls UpdateFunc. |
| 360 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected