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

Method ListDevContainers

pkg/cmd/codespace/mock_api.go:852–871  ·  view source on GitHub ↗

ListDevContainers calls ListDevContainersFunc.

(ctx context.Context, repoID int64, branch string, limit int)

Source from the content-addressed store, hash-verified

850
851// ListDevContainers calls ListDevContainersFunc.
852func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected