Update calls UpdateFunc.
(repo ghrepo.Interface, input UpdateDiscussionInput)
| 722 | |
| 723 | // Update calls UpdateFunc. |
| 724 | func (mock *DiscussionClientMock) Update(repo ghrepo.Interface, input UpdateDiscussionInput) (*Discussion, error) { |
| 725 | if mock.UpdateFunc == nil { |
| 726 | panic("DiscussionClientMock.UpdateFunc: method is nil but DiscussionClient.Update was just called") |
| 727 | } |
| 728 | callInfo := struct { |
| 729 | Repo ghrepo.Interface |
| 730 | Input UpdateDiscussionInput |
| 731 | }{ |
| 732 | Repo: repo, |
| 733 | Input: input, |
| 734 | } |
| 735 | mock.lockUpdate.Lock() |
| 736 | mock.calls.Update = append(mock.calls.Update, callInfo) |
| 737 | mock.lockUpdate.Unlock() |
| 738 | return mock.UpdateFunc(repo, input) |
| 739 | } |
| 740 | |
| 741 | // UpdateCalls gets all the calls that were made to Update. |
| 742 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected