MCPcopy Create free account
hub / github.com/cli/cli / CreateCodespace

Method CreateCodespace

pkg/cmd/codespace/mock_api.go:309–324  ·  view source on GitHub ↗

CreateCodespace calls CreateCodespaceFunc.

(ctx context.Context, params *codespacesAPI.CreateCodespaceParams)

Source from the content-addressed store, hash-verified

307
308// CreateCodespace calls CreateCodespaceFunc.
309func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected