CreateCodespace calls CreateCodespaceFunc.
(ctx context.Context, params *codespacesAPI.CreateCodespaceParams)
| 307 | |
| 308 | // CreateCodespace calls CreateCodespaceFunc. |
| 309 | func (mock *apiClientMock) CreateCodespace(ctx context.Context, params *codespacesAPI.CreateCodespaceParams) (*codespacesAPI.Codespace, error) { |
| 310 | if mock.CreateCodespaceFunc == nil { |
| 311 | panic("apiClientMock.CreateCodespaceFunc: method is nil but apiClient.CreateCodespace was just called") |
| 312 | } |
| 313 | callInfo := struct { |
| 314 | Ctx context.Context |
| 315 | Params *codespacesAPI.CreateCodespaceParams |
| 316 | }{ |
| 317 | Ctx: ctx, |
| 318 | Params: params, |
| 319 | } |
| 320 | mock.lockCreateCodespace.Lock() |
| 321 | mock.calls.CreateCodespace = append(mock.calls.CreateCodespace, callInfo) |
| 322 | mock.lockCreateCodespace.Unlock() |
| 323 | return mock.CreateCodespaceFunc(ctx, params) |
| 324 | } |
| 325 | |
| 326 | // CreateCodespaceCalls gets all the calls that were made to CreateCodespace. |
| 327 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected