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

Method GetCodespaceBillableOwner

pkg/cmd/codespace/mock_api.go:496–511  ·  view source on GitHub ↗

GetCodespaceBillableOwner calls GetCodespaceBillableOwnerFunc.

(ctx context.Context, nwo string)

Source from the content-addressed store, hash-verified

494
495// GetCodespaceBillableOwner calls GetCodespaceBillableOwnerFunc.
496func (mock *apiClientMock) GetCodespaceBillableOwner(ctx context.Context, nwo string) (*codespacesAPI.User, error) {
497 if mock.GetCodespaceBillableOwnerFunc == nil {
498 panic("apiClientMock.GetCodespaceBillableOwnerFunc: method is nil but apiClient.GetCodespaceBillableOwner was just called")
499 }
500 callInfo := struct {
501 Ctx context.Context
502 Nwo string
503 }{
504 Ctx: ctx,
505 Nwo: nwo,
506 }
507 mock.lockGetCodespaceBillableOwner.Lock()
508 mock.calls.GetCodespaceBillableOwner = append(mock.calls.GetCodespaceBillableOwner, callInfo)
509 mock.lockGetCodespaceBillableOwner.Unlock()
510 return mock.GetCodespaceBillableOwnerFunc(ctx, nwo)
511}
512
513// GetCodespaceBillableOwnerCalls gets all the calls that were made to GetCodespaceBillableOwner.
514// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected