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

Method GetUser

pkg/cmd/codespace/mock_api.go:784–797  ·  view source on GitHub ↗

GetUser calls GetUserFunc.

(ctx context.Context)

Source from the content-addressed store, hash-verified

782
783// GetUser calls GetUserFunc.
784func (mock *apiClientMock) GetUser(ctx context.Context) (*codespacesAPI.User, error) {
785 if mock.GetUserFunc == nil {
786 panic("apiClientMock.GetUserFunc: method is nil but apiClient.GetUser was just called")
787 }
788 callInfo := struct {
789 Ctx context.Context
790 }{
791 Ctx: ctx,
792 }
793 mock.lockGetUser.Lock()
794 mock.calls.GetUser = append(mock.calls.GetUser, callInfo)
795 mock.lockGetUser.Unlock()
796 return mock.GetUserFunc(ctx)
797}
798
799// GetUserCalls gets all the calls that were made to GetUser.
800// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected