GetCommentReplies calls GetCommentRepliesFunc.
(host string, commentID string, limit int, after string, newest bool)
| 438 | |
| 439 | // GetCommentReplies calls GetCommentRepliesFunc. |
| 440 | func (mock *DiscussionClientMock) GetCommentReplies(host string, commentID string, limit int, after string, newest bool) (*Discussion, error) { |
| 441 | if mock.GetCommentRepliesFunc == nil { |
| 442 | panic("DiscussionClientMock.GetCommentRepliesFunc: method is nil but DiscussionClient.GetCommentReplies was just called") |
| 443 | } |
| 444 | callInfo := struct { |
| 445 | Host string |
| 446 | CommentID string |
| 447 | Limit int |
| 448 | After string |
| 449 | Newest bool |
| 450 | }{ |
| 451 | Host: host, |
| 452 | CommentID: commentID, |
| 453 | Limit: limit, |
| 454 | After: after, |
| 455 | Newest: newest, |
| 456 | } |
| 457 | mock.lockGetCommentReplies.Lock() |
| 458 | mock.calls.GetCommentReplies = append(mock.calls.GetCommentReplies, callInfo) |
| 459 | mock.lockGetCommentReplies.Unlock() |
| 460 | return mock.GetCommentRepliesFunc(host, commentID, limit, after, newest) |
| 461 | } |
| 462 | |
| 463 | // GetCommentRepliesCalls gets all the calls that were made to GetCommentReplies. |
| 464 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected