Create calls CreateFunc.
(repo ghrepo.Interface, input CreateDiscussionInput)
| 294 | |
| 295 | // Create calls CreateFunc. |
| 296 | func (mock *DiscussionClientMock) Create(repo ghrepo.Interface, input CreateDiscussionInput) (*Discussion, error) { |
| 297 | if mock.CreateFunc == nil { |
| 298 | panic("DiscussionClientMock.CreateFunc: method is nil but DiscussionClient.Create was just called") |
| 299 | } |
| 300 | callInfo := struct { |
| 301 | Repo ghrepo.Interface |
| 302 | Input CreateDiscussionInput |
| 303 | }{ |
| 304 | Repo: repo, |
| 305 | Input: input, |
| 306 | } |
| 307 | mock.lockCreate.Lock() |
| 308 | mock.calls.Create = append(mock.calls.Create, callInfo) |
| 309 | mock.lockCreate.Unlock() |
| 310 | return mock.CreateFunc(repo, input) |
| 311 | } |
| 312 | |
| 313 | // CreateCalls gets all the calls that were made to Create. |
| 314 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected