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

Method ListCodespaces

pkg/cmd/codespace/mock_api.go:816–831  ·  view source on GitHub ↗

ListCodespaces calls ListCodespacesFunc.

(ctx context.Context, opts codespacesAPI.ListCodespacesOptions)

Source from the content-addressed store, hash-verified

814
815// ListCodespaces calls ListCodespacesFunc.
816func (mock *apiClientMock) ListCodespaces(ctx context.Context, opts codespacesAPI.ListCodespacesOptions) ([]*codespacesAPI.Codespace, error) {
817 if mock.ListCodespacesFunc == nil {
818 panic("apiClientMock.ListCodespacesFunc: method is nil but apiClient.ListCodespaces was just called")
819 }
820 callInfo := struct {
821 Ctx context.Context
822 Opts codespacesAPI.ListCodespacesOptions
823 }{
824 Ctx: ctx,
825 Opts: opts,
826 }
827 mock.lockListCodespaces.Lock()
828 mock.calls.ListCodespaces = append(mock.calls.ListCodespaces, callInfo)
829 mock.lockListCodespaces.Unlock()
830 return mock.ListCodespacesFunc(ctx, opts)
831}
832
833// ListCodespacesCalls gets all the calls that were made to ListCodespaces.
834// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected