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

Method IsPullRequest

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

IsPullRequest calls IsPullRequestFunc.

(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

278
279// IsPullRequest calls IsPullRequestFunc.
280func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected