GetRepository calls GetRepositoryFunc.
(ctx context.Context, nwo string)
| 746 | |
| 747 | // GetRepository calls GetRepositoryFunc. |
| 748 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected