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

Method AddCommentCalls

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

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

()

Source from the content-addressed store, hash-verified

275//
276// len(mockedDiscussionClient.AddCommentCalls())
277func (mock *DiscussionClientMock) AddCommentCalls() []struct {
278 Repo ghrepo.Interface
279 DiscussionID string
280 Body string
281 ReplyToID string
282} {
283 var calls []struct {
284 Repo ghrepo.Interface
285 DiscussionID string
286 Body string
287 ReplyToID string
288 }
289 mock.lockAddComment.RLock()
290 calls = mock.calls.AddComment
291 mock.lockAddComment.RUnlock()
292 return calls
293}
294
295// Create calls CreateFunc.
296func (mock *DiscussionClientMock) Create(repo ghrepo.Interface, input CreateDiscussionInput) (*Discussion, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected