GetByNumber calls GetByNumberFunc.
(repo ghrepo.Interface, number int32)
| 366 | |
| 367 | // GetByNumber calls GetByNumberFunc. |
| 368 | func (mock *DiscussionClientMock) GetByNumber(repo ghrepo.Interface, number int32) (*Discussion, error) { |
| 369 | if mock.GetByNumberFunc == nil { |
| 370 | panic("DiscussionClientMock.GetByNumberFunc: method is nil but DiscussionClient.GetByNumber was just called") |
| 371 | } |
| 372 | callInfo := struct { |
| 373 | Repo ghrepo.Interface |
| 374 | Number int32 |
| 375 | }{ |
| 376 | Repo: repo, |
| 377 | Number: number, |
| 378 | } |
| 379 | mock.lockGetByNumber.Lock() |
| 380 | mock.calls.GetByNumber = append(mock.calls.GetByNumber, callInfo) |
| 381 | mock.lockGetByNumber.Unlock() |
| 382 | return mock.GetByNumberFunc(repo, number) |
| 383 | } |
| 384 | |
| 385 | // GetByNumberCalls gets all the calls that were made to GetByNumber. |
| 386 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected