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

Method UpdateComment

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

UpdateComment calls UpdateCommentFunc.

(repo ghrepo.Interface, commentID string, body string)

Source from the content-addressed store, hash-verified

758
759// UpdateComment calls UpdateCommentFunc.
760func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected