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

Method StartCodespace

pkg/cmd/codespace/mock_api.go:923–938  ·  view source on GitHub ↗

StartCodespace calls StartCodespaceFunc.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

921
922// StartCodespace calls StartCodespaceFunc.
923func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected