MCPcopy Create free account
hub / github.com/cli/cli / DeleteComment

Method DeleteComment

pkg/cmd/discussion/client/client_mock.go:332–347  ·  view source on GitHub ↗

DeleteComment calls DeleteCommentFunc.

(repo ghrepo.Interface, commentID string)

Source from the content-addressed store, hash-verified

330
331// DeleteComment calls DeleteCommentFunc.
332func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected