CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedDiscussionClient.CreateCalls())
()
| 315 | // |
| 316 | // len(mockedDiscussionClient.CreateCalls()) |
| 317 | func (mock *DiscussionClientMock) CreateCalls() []struct { |
| 318 | Repo ghrepo.Interface |
| 319 | Input CreateDiscussionInput |
| 320 | } { |
| 321 | var calls []struct { |
| 322 | Repo ghrepo.Interface |
| 323 | Input CreateDiscussionInput |
| 324 | } |
| 325 | mock.lockCreate.RLock() |
| 326 | calls = mock.calls.Create |
| 327 | mock.lockCreate.RUnlock() |
| 328 | return calls |
| 329 | } |
| 330 | |
| 331 | // DeleteComment calls DeleteCommentFunc. |
| 332 | func (mock *DiscussionClientMock) DeleteComment(repo ghrepo.Interface, commentID string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected