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

Method StopCodespace

pkg/cmd/codespace/mock_api.go:959–978  ·  view source on GitHub ↗

StopCodespace calls StopCodespaceFunc.

(ctx context.Context, name string, orgName string, userName string)

Source from the content-addressed store, hash-verified

957
958// StopCodespace calls StopCodespaceFunc.
959func (mock *apiClientMock) StopCodespace(ctx context.Context, name string, orgName string, userName string) error {
960 if mock.StopCodespaceFunc == nil {
961 panic("apiClientMock.StopCodespaceFunc: method is nil but apiClient.StopCodespace was just called")
962 }
963 callInfo := struct {
964 Ctx context.Context
965 Name string
966 OrgName string
967 UserName string
968 }{
969 Ctx: ctx,
970 Name: name,
971 OrgName: orgName,
972 UserName: userName,
973 }
974 mock.lockStopCodespace.Lock()
975 mock.calls.StopCodespace = append(mock.calls.StopCodespace, callInfo)
976 mock.lockStopCodespace.Unlock()
977 return mock.StopCodespaceFunc(ctx, name, orgName, userName)
978}
979
980// StopCodespaceCalls gets all the calls that were made to StopCodespace.
981// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected