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

Method GetRepository

pkg/cmd/codespace/mock_api.go:748–763  ·  view source on GitHub ↗

GetRepository calls GetRepositoryFunc.

(ctx context.Context, nwo string)

Source from the content-addressed store, hash-verified

746
747// GetRepository calls GetRepositoryFunc.
748func (mock *apiClientMock) GetRepository(ctx context.Context, nwo string) (*codespacesAPI.Repository, error) {
749 if mock.GetRepositoryFunc == nil {
750 panic("apiClientMock.GetRepositoryFunc: method is nil but apiClient.GetRepository was just called")
751 }
752 callInfo := struct {
753 Ctx context.Context
754 Nwo string
755 }{
756 Ctx: ctx,
757 Nwo: nwo,
758 }
759 mock.lockGetRepository.Lock()
760 mock.calls.GetRepository = append(mock.calls.GetRepository, callInfo)
761 mock.lockGetRepository.Unlock()
762 return mock.GetRepositoryFunc(ctx, nwo)
763}
764
765// GetRepositoryCalls gets all the calls that were made to GetRepository.
766// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected