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

Method DeleteCodespace

pkg/cmd/codespace/mock_api.go:345–364  ·  view source on GitHub ↗

DeleteCodespace calls DeleteCodespaceFunc.

(ctx context.Context, name string, orgName string, userName string)

Source from the content-addressed store, hash-verified

343
344// DeleteCodespace calls DeleteCodespaceFunc.
345func (mock *apiClientMock) DeleteCodespace(ctx context.Context, name string, orgName string, userName string) error {
346 if mock.DeleteCodespaceFunc == nil {
347 panic("apiClientMock.DeleteCodespaceFunc: method is nil but apiClient.DeleteCodespace was just called")
348 }
349 callInfo := struct {
350 Ctx context.Context
351 Name string
352 OrgName string
353 UserName string
354 }{
355 Ctx: ctx,
356 Name: name,
357 OrgName: orgName,
358 UserName: userName,
359 }
360 mock.lockDeleteCodespace.Lock()
361 mock.calls.DeleteCodespace = append(mock.calls.DeleteCodespace, callInfo)
362 mock.lockDeleteCodespace.Unlock()
363 return mock.DeleteCodespaceFunc(ctx, name, orgName, userName)
364}
365
366// DeleteCodespaceCalls gets all the calls that were made to DeleteCodespace.
367// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected