GetCodespacesPermissionsCheck calls GetCodespacesPermissionsCheckFunc.
(ctx context.Context, repoID int64, branch string, devcontainerPath string)
| 658 | |
| 659 | // GetCodespacesPermissionsCheck calls GetCodespacesPermissionsCheckFunc. |
| 660 | func (mock *apiClientMock) GetCodespacesPermissionsCheck(ctx context.Context, repoID int64, branch string, devcontainerPath string) (bool, error) { |
| 661 | if mock.GetCodespacesPermissionsCheckFunc == nil { |
| 662 | panic("apiClientMock.GetCodespacesPermissionsCheckFunc: method is nil but apiClient.GetCodespacesPermissionsCheck was just called") |
| 663 | } |
| 664 | callInfo := struct { |
| 665 | Ctx context.Context |
| 666 | RepoID int64 |
| 667 | Branch string |
| 668 | DevcontainerPath string |
| 669 | }{ |
| 670 | Ctx: ctx, |
| 671 | RepoID: repoID, |
| 672 | Branch: branch, |
| 673 | DevcontainerPath: devcontainerPath, |
| 674 | } |
| 675 | mock.lockGetCodespacesPermissionsCheck.Lock() |
| 676 | mock.calls.GetCodespacesPermissionsCheck = append(mock.calls.GetCodespacesPermissionsCheck, callInfo) |
| 677 | mock.lockGetCodespacesPermissionsCheck.Unlock() |
| 678 | return mock.GetCodespacesPermissionsCheckFunc(ctx, repoID, branch, devcontainerPath) |
| 679 | } |
| 680 | |
| 681 | // GetCodespacesPermissionsCheckCalls gets all the calls that were made to GetCodespacesPermissionsCheck. |
| 682 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected