GetCodespacesMachines calls GetCodespacesMachinesFunc.
(ctx context.Context, repoID int64, branch string, location string, devcontainerPath string)
| 610 | |
| 611 | // GetCodespacesMachines calls GetCodespacesMachinesFunc. |
| 612 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected