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

Method GetCodespacesMachinesCalls

pkg/cmd/codespace/mock_api.go:639–657  ·  view source on GitHub ↗

GetCodespacesMachinesCalls gets all the calls that were made to GetCodespacesMachines. Check the length with: len(mockedapiClient.GetCodespacesMachinesCalls())

()

Source from the content-addressed store, hash-verified

637//
638// len(mockedapiClient.GetCodespacesMachinesCalls())
639func (mock *apiClientMock) GetCodespacesMachinesCalls() []struct {
640 Ctx context.Context
641 RepoID int64
642 Branch string
643 Location string
644 DevcontainerPath string
645} {
646 var calls []struct {
647 Ctx context.Context
648 RepoID int64
649 Branch string
650 Location string
651 DevcontainerPath string
652 }
653 mock.lockGetCodespacesMachines.RLock()
654 calls = mock.calls.GetCodespacesMachines
655 mock.lockGetCodespacesMachines.RUnlock()
656 return calls
657}
658
659// GetCodespacesPermissionsCheck calls GetCodespacesPermissionsCheckFunc.
660func (mock *apiClientMock) GetCodespacesPermissionsCheck(ctx context.Context, repoID int64, branch string, devcontainerPath string) (bool, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected