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

Method GetCodespacesMachines

pkg/cmd/codespace/mock_api.go:612–633  ·  view source on GitHub ↗

GetCodespacesMachines calls GetCodespacesMachinesFunc.

(ctx context.Context, repoID int64, branch string, location string, devcontainerPath string)

Source from the content-addressed store, hash-verified

610
611// GetCodespacesMachines calls GetCodespacesMachinesFunc.
612func (mock *apiClientMock) GetCodespacesMachines(ctx context.Context, repoID int64, branch string, location string, devcontainerPath string) ([]*codespacesAPI.Machine, error) {
613 if mock.GetCodespacesMachinesFunc == nil {
614 panic("apiClientMock.GetCodespacesMachinesFunc: method is nil but apiClient.GetCodespacesMachines was just called")
615 }
616 callInfo := struct {
617 Ctx context.Context
618 RepoID int64
619 Branch string
620 Location string
621 DevcontainerPath string
622 }{
623 Ctx: ctx,
624 RepoID: repoID,
625 Branch: branch,
626 Location: location,
627 DevcontainerPath: devcontainerPath,
628 }
629 mock.lockGetCodespacesMachines.Lock()
630 mock.calls.GetCodespacesMachines = append(mock.calls.GetCodespacesMachines, callInfo)
631 mock.lockGetCodespacesMachines.Unlock()
632 return mock.GetCodespacesMachinesFunc(ctx, repoID, branch, location, devcontainerPath)
633}
634
635// GetCodespacesMachinesCalls gets all the calls that were made to GetCodespacesMachines.
636// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected