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

Method GetComment

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

GetComment calls GetCommentFunc.

(host string, commentID string)

Source from the content-addressed store, hash-verified

402
403// GetComment calls GetCommentFunc.
404func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected