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

Method GetCommentReplies

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

GetCommentReplies calls GetCommentRepliesFunc.

(host string, commentID string, limit int, after string, newest bool)

Source from the content-addressed store, hash-verified

438
439// GetCommentReplies calls GetCommentRepliesFunc.
440func (mock *DiscussionClientMock) GetCommentReplies(host string, commentID string, limit int, after string, newest bool) (*Discussion, error) {
441 if mock.GetCommentRepliesFunc == nil {
442 panic("DiscussionClientMock.GetCommentRepliesFunc: method is nil but DiscussionClient.GetCommentReplies was just called")
443 }
444 callInfo := struct {
445 Host string
446 CommentID string
447 Limit int
448 After string
449 Newest bool
450 }{
451 Host: host,
452 CommentID: commentID,
453 Limit: limit,
454 After: after,
455 Newest: newest,
456 }
457 mock.lockGetCommentReplies.Lock()
458 mock.calls.GetCommentReplies = append(mock.calls.GetCommentReplies, callInfo)
459 mock.lockGetCommentReplies.Unlock()
460 return mock.GetCommentRepliesFunc(host, commentID, limit, after, newest)
461}
462
463// GetCommentRepliesCalls gets all the calls that were made to GetCommentReplies.
464// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected