GetUser calls GetUserFunc.
(ctx context.Context)
| 782 | |
| 783 | // GetUser calls GetUserFunc. |
| 784 | func (mock *apiClientMock) GetUser(ctx context.Context) (*codespacesAPI.User, error) { |
| 785 | if mock.GetUserFunc == nil { |
| 786 | panic("apiClientMock.GetUserFunc: method is nil but apiClient.GetUser was just called") |
| 787 | } |
| 788 | callInfo := struct { |
| 789 | Ctx context.Context |
| 790 | }{ |
| 791 | Ctx: ctx, |
| 792 | } |
| 793 | mock.lockGetUser.Lock() |
| 794 | mock.calls.GetUser = append(mock.calls.GetUser, callInfo) |
| 795 | mock.lockGetUser.Unlock() |
| 796 | return mock.GetUserFunc(ctx) |
| 797 | } |
| 798 | |
| 799 | // GetUserCalls gets all the calls that were made to GetUser. |
| 800 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected