IsPullRequest calls IsPullRequestFunc.
(repo ghrepo.Interface, number int)
| 278 | |
| 279 | // IsPullRequest calls IsPullRequestFunc. |
| 280 | func (mock *ArtifactClientMock) IsPullRequest(repo ghrepo.Interface, number int) (bool, error) { |
| 281 | if mock.IsPullRequestFunc == nil { |
| 282 | panic("ArtifactClientMock.IsPullRequestFunc: method is nil but ArtifactClient.IsPullRequest was just called") |
| 283 | } |
| 284 | callInfo := struct { |
| 285 | Repo ghrepo.Interface |
| 286 | Number int |
| 287 | }{ |
| 288 | Repo: repo, |
| 289 | Number: number, |
| 290 | } |
| 291 | mock.lockIsPullRequest.Lock() |
| 292 | mock.calls.IsPullRequest = append(mock.calls.IsPullRequest, callInfo) |
| 293 | mock.lockIsPullRequest.Unlock() |
| 294 | return mock.IsPullRequestFunc(repo, number) |
| 295 | } |
| 296 | |
| 297 | // IsPullRequestCalls gets all the calls that were made to IsPullRequest. |
| 298 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected