AddCommentCalls gets all the calls that were made to AddComment. Check the length with: len(mockedDiscussionClient.AddCommentCalls())
()
| 275 | // |
| 276 | // len(mockedDiscussionClient.AddCommentCalls()) |
| 277 | func (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. |
| 296 | func (mock *DiscussionClientMock) Create(repo ghrepo.Interface, input CreateDiscussionInput) (*Discussion, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected