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

Method DeleteCommentCalls

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

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

()

Source from the content-addressed store, hash-verified

351//
352// len(mockedDiscussionClient.DeleteCommentCalls())
353func (mock *DiscussionClientMock) DeleteCommentCalls() []struct {
354 Repo ghrepo.Interface
355 CommentID string
356} {
357 var calls []struct {
358 Repo ghrepo.Interface
359 CommentID string
360 }
361 mock.lockDeleteComment.RLock()
362 calls = mock.calls.DeleteComment
363 mock.lockDeleteComment.RUnlock()
364 return calls
365}
366
367// GetByNumber calls GetByNumberFunc.
368func (mock *DiscussionClientMock) GetByNumber(repo ghrepo.Interface, number int32) (*Discussion, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected