UpdateComment calls UpdateCommentFunc.
(repo ghrepo.Interface, commentID string, body string)
| 758 | |
| 759 | // UpdateComment calls UpdateCommentFunc. |
| 760 | func (mock *DiscussionClientMock) UpdateComment(repo ghrepo.Interface, commentID string, body string) (*DiscussionComment, error) { |
| 761 | if mock.UpdateCommentFunc == nil { |
| 762 | panic("DiscussionClientMock.UpdateCommentFunc: method is nil but DiscussionClient.UpdateComment was just called") |
| 763 | } |
| 764 | callInfo := struct { |
| 765 | Repo ghrepo.Interface |
| 766 | CommentID string |
| 767 | Body string |
| 768 | }{ |
| 769 | Repo: repo, |
| 770 | CommentID: commentID, |
| 771 | Body: body, |
| 772 | } |
| 773 | mock.lockUpdateComment.Lock() |
| 774 | mock.calls.UpdateComment = append(mock.calls.UpdateComment, callInfo) |
| 775 | mock.lockUpdateComment.Unlock() |
| 776 | return mock.UpdateCommentFunc(repo, commentID, body) |
| 777 | } |
| 778 | |
| 779 | // UpdateCommentCalls gets all the calls that were made to UpdateComment. |
| 780 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected