ListDevContainers calls ListDevContainersFunc.
(ctx context.Context, repoID int64, branch string, limit int)
| 850 | |
| 851 | // ListDevContainers calls ListDevContainersFunc. |
| 852 | func (mock *apiClientMock) ListDevContainers(ctx context.Context, repoID int64, branch string, limit int) ([]codespacesAPI.DevContainerEntry, error) { |
| 853 | if mock.ListDevContainersFunc == nil { |
| 854 | panic("apiClientMock.ListDevContainersFunc: method is nil but apiClient.ListDevContainers was just called") |
| 855 | } |
| 856 | callInfo := struct { |
| 857 | Ctx context.Context |
| 858 | RepoID int64 |
| 859 | Branch string |
| 860 | Limit int |
| 861 | }{ |
| 862 | Ctx: ctx, |
| 863 | RepoID: repoID, |
| 864 | Branch: branch, |
| 865 | Limit: limit, |
| 866 | } |
| 867 | mock.lockListDevContainers.Lock() |
| 868 | mock.calls.ListDevContainers = append(mock.calls.ListDevContainers, callInfo) |
| 869 | mock.lockListDevContainers.Unlock() |
| 870 | return mock.ListDevContainersFunc(ctx, repoID, branch, limit) |
| 871 | } |
| 872 | |
| 873 | // ListDevContainersCalls gets all the calls that were made to ListDevContainers. |
| 874 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected