ListCodespaces calls ListCodespacesFunc.
(ctx context.Context, opts codespacesAPI.ListCodespacesOptions)
| 814 | |
| 815 | // ListCodespaces calls ListCodespacesFunc. |
| 816 | func (mock *apiClientMock) ListCodespaces(ctx context.Context, opts codespacesAPI.ListCodespacesOptions) ([]*codespacesAPI.Codespace, error) { |
| 817 | if mock.ListCodespacesFunc == nil { |
| 818 | panic("apiClientMock.ListCodespacesFunc: method is nil but apiClient.ListCodespaces was just called") |
| 819 | } |
| 820 | callInfo := struct { |
| 821 | Ctx context.Context |
| 822 | Opts codespacesAPI.ListCodespacesOptions |
| 823 | }{ |
| 824 | Ctx: ctx, |
| 825 | Opts: opts, |
| 826 | } |
| 827 | mock.lockListCodespaces.Lock() |
| 828 | mock.calls.ListCodespaces = append(mock.calls.ListCodespaces, callInfo) |
| 829 | mock.lockListCodespaces.Unlock() |
| 830 | return mock.ListCodespacesFunc(ctx, opts) |
| 831 | } |
| 832 | |
| 833 | // ListCodespacesCalls gets all the calls that were made to ListCodespaces. |
| 834 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected