GetWithComments calls GetWithCommentsFunc.
(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool)
| 486 | |
| 487 | // GetWithComments calls GetWithCommentsFunc. |
| 488 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected