GetComment calls GetCommentFunc.
(host string, commentID string)
| 402 | |
| 403 | // GetComment calls GetCommentFunc. |
| 404 | func (mock *DiscussionClientMock) GetComment(host string, commentID string) (*DiscussionComment, error) { |
| 405 | if mock.GetCommentFunc == nil { |
| 406 | panic("DiscussionClientMock.GetCommentFunc: method is nil but DiscussionClient.GetComment was just called") |
| 407 | } |
| 408 | callInfo := struct { |
| 409 | Host string |
| 410 | CommentID string |
| 411 | }{ |
| 412 | Host: host, |
| 413 | CommentID: commentID, |
| 414 | } |
| 415 | mock.lockGetComment.Lock() |
| 416 | mock.calls.GetComment = append(mock.calls.GetComment, callInfo) |
| 417 | mock.lockGetComment.Unlock() |
| 418 | return mock.GetCommentFunc(host, commentID) |
| 419 | } |
| 420 | |
| 421 | // GetCommentCalls gets all the calls that were made to GetComment. |
| 422 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected