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

Method GetOrgMemberCodespace

pkg/cmd/codespace/mock_api.go:704–723  ·  view source on GitHub ↗

GetOrgMemberCodespace calls GetOrgMemberCodespaceFunc.

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

Source from the content-addressed store, hash-verified

702
703// GetOrgMemberCodespace calls GetOrgMemberCodespaceFunc.
704func (mock *apiClientMock) GetOrgMemberCodespace(ctx context.Context, orgName string, userName string, codespaceName string) (*codespacesAPI.Codespace, error) {
705 if mock.GetOrgMemberCodespaceFunc == nil {
706 panic("apiClientMock.GetOrgMemberCodespaceFunc: method is nil but apiClient.GetOrgMemberCodespace was just called")
707 }
708 callInfo := struct {
709 Ctx context.Context
710 OrgName string
711 UserName string
712 CodespaceName string
713 }{
714 Ctx: ctx,
715 OrgName: orgName,
716 UserName: userName,
717 CodespaceName: codespaceName,
718 }
719 mock.lockGetOrgMemberCodespace.Lock()
720 mock.calls.GetOrgMemberCodespace = append(mock.calls.GetOrgMemberCodespace, callInfo)
721 mock.lockGetOrgMemberCodespace.Unlock()
722 return mock.GetOrgMemberCodespaceFunc(ctx, orgName, userName, codespaceName)
723}
724
725// GetOrgMemberCodespaceCalls gets all the calls that were made to GetOrgMemberCodespace.
726// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected