List calls ListFunc.
(repo ghrepo.Interface, issueNumber int, artifactType string, limit int)
| 314 | |
| 315 | // List calls ListFunc. |
| 316 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected