StartCodespace calls StartCodespaceFunc.
(ctx context.Context, name string)
| 921 | |
| 922 | // StartCodespace calls StartCodespaceFunc. |
| 923 | func (mock *apiClientMock) StartCodespace(ctx context.Context, name string) error { |
| 924 | if mock.StartCodespaceFunc == nil { |
| 925 | panic("apiClientMock.StartCodespaceFunc: method is nil but apiClient.StartCodespace was just called") |
| 926 | } |
| 927 | callInfo := struct { |
| 928 | Ctx context.Context |
| 929 | Name string |
| 930 | }{ |
| 931 | Ctx: ctx, |
| 932 | Name: name, |
| 933 | } |
| 934 | mock.lockStartCodespace.Lock() |
| 935 | mock.calls.StartCodespace = append(mock.calls.StartCodespace, callInfo) |
| 936 | mock.lockStartCodespace.Unlock() |
| 937 | return mock.StartCodespaceFunc(ctx, name) |
| 938 | } |
| 939 | |
| 940 | // StartCodespaceCalls gets all the calls that were made to StartCodespace. |
| 941 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected