GetCodespaceBillableOwner calls GetCodespaceBillableOwnerFunc.
(ctx context.Context, nwo string)
| 494 | |
| 495 | // GetCodespaceBillableOwner calls GetCodespaceBillableOwnerFunc. |
| 496 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected