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

Method GetWithComments

pkg/cmd/discussion/client/client_mock.go:488–509  ·  view source on GitHub ↗

GetWithComments calls GetWithCommentsFunc.

(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool)

Source from the content-addressed store, hash-verified

486
487// GetWithComments calls GetWithCommentsFunc.
488func (mock *DiscussionClientMock) GetWithComments(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool) (*Discussion, error) {
489 if mock.GetWithCommentsFunc == nil {
490 panic("DiscussionClientMock.GetWithCommentsFunc: method is nil but DiscussionClient.GetWithComments was just called")
491 }
492 callInfo := struct {
493 Repo ghrepo.Interface
494 Number int32
495 CommentLimit int
496 After string
497 Newest bool
498 }{
499 Repo: repo,
500 Number: number,
501 CommentLimit: commentLimit,
502 After: after,
503 Newest: newest,
504 }
505 mock.lockGetWithComments.Lock()
506 mock.calls.GetWithComments = append(mock.calls.GetWithComments, callInfo)
507 mock.lockGetWithComments.Unlock()
508 return mock.GetWithCommentsFunc(repo, number, commentLimit, after, newest)
509}
510
511// GetWithCommentsCalls gets all the calls that were made to GetWithComments.
512// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected