DeleteCodespace calls DeleteCodespaceFunc.
(ctx context.Context, name string, orgName string, userName string)
| 343 | |
| 344 | // DeleteCodespace calls DeleteCodespaceFunc. |
| 345 | func (mock *apiClientMock) DeleteCodespace(ctx context.Context, name string, orgName string, userName string) error { |
| 346 | if mock.DeleteCodespaceFunc == nil { |
| 347 | panic("apiClientMock.DeleteCodespaceFunc: method is nil but apiClient.DeleteCodespace was just called") |
| 348 | } |
| 349 | callInfo := struct { |
| 350 | Ctx context.Context |
| 351 | Name string |
| 352 | OrgName string |
| 353 | UserName string |
| 354 | }{ |
| 355 | Ctx: ctx, |
| 356 | Name: name, |
| 357 | OrgName: orgName, |
| 358 | UserName: userName, |
| 359 | } |
| 360 | mock.lockDeleteCodespace.Lock() |
| 361 | mock.calls.DeleteCodespace = append(mock.calls.DeleteCodespace, callInfo) |
| 362 | mock.lockDeleteCodespace.Unlock() |
| 363 | return mock.DeleteCodespaceFunc(ctx, name, orgName, userName) |
| 364 | } |
| 365 | |
| 366 | // DeleteCodespaceCalls gets all the calls that were made to DeleteCodespace. |
| 367 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected