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

Method GetCommentCalls

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

GetCommentCalls gets all the calls that were made to GetComment. Check the length with: len(mockedDiscussionClient.GetCommentCalls())

()

Source from the content-addressed store, hash-verified

423//
424// len(mockedDiscussionClient.GetCommentCalls())
425func (mock *DiscussionClientMock) GetCommentCalls() []struct {
426 Host string
427 CommentID string
428} {
429 var calls []struct {
430 Host string
431 CommentID string
432 }
433 mock.lockGetComment.RLock()
434 calls = mock.calls.GetComment
435 mock.lockGetComment.RUnlock()
436 return calls
437}
438
439// GetCommentReplies calls GetCommentRepliesFunc.
440func (mock *DiscussionClientMock) GetCommentReplies(host string, commentID string, limit int, after string, newest bool) (*Discussion, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected