MCPcopy
hub / github.com/cli/cli / ListCodespacesCalls

Method ListCodespacesCalls

pkg/cmd/codespace/mock_api.go:837–849  ·  view source on GitHub ↗

ListCodespacesCalls gets all the calls that were made to ListCodespaces. Check the length with: len(mockedapiClient.ListCodespacesCalls())

()

Source from the content-addressed store, hash-verified

835//
836// len(mockedapiClient.ListCodespacesCalls())
837func (mock *apiClientMock) ListCodespacesCalls() []struct {
838 Ctx context.Context
839 Opts codespacesAPI.ListCodespacesOptions
840} {
841 var calls []struct {
842 Ctx context.Context
843 Opts codespacesAPI.ListCodespacesOptions
844 }
845 mock.lockListCodespaces.RLock()
846 calls = mock.calls.ListCodespaces
847 mock.lockListCodespaces.RUnlock()
848 return calls
849}
850
851// ListDevContainers calls ListDevContainersFunc.
852func (mock *apiClientMock) ListDevContainers(ctx context.Context, repoID int, branch string, limit int) ([]codespacesAPI.DevContainerEntry, error) {

Callers 1

TestDeleteFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDeleteFunction · 0.76