DeleteComment calls DeleteCommentFunc.
(repo ghrepo.Interface, commentID string)
| 330 | |
| 331 | // DeleteComment calls DeleteCommentFunc. |
| 332 | func (mock *DiscussionClientMock) DeleteComment(repo ghrepo.Interface, commentID string) error { |
| 333 | if mock.DeleteCommentFunc == nil { |
| 334 | panic("DiscussionClientMock.DeleteCommentFunc: method is nil but DiscussionClient.DeleteComment was just called") |
| 335 | } |
| 336 | callInfo := struct { |
| 337 | Repo ghrepo.Interface |
| 338 | CommentID string |
| 339 | }{ |
| 340 | Repo: repo, |
| 341 | CommentID: commentID, |
| 342 | } |
| 343 | mock.lockDeleteComment.Lock() |
| 344 | mock.calls.DeleteComment = append(mock.calls.DeleteComment, callInfo) |
| 345 | mock.lockDeleteComment.Unlock() |
| 346 | return mock.DeleteCommentFunc(repo, commentID) |
| 347 | } |
| 348 | |
| 349 | // DeleteCommentCalls gets all the calls that were made to DeleteComment. |
| 350 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected