GetSessionLogs calls GetSessionLogsFunc.
(ctx context.Context, id string)
| 332 | |
| 333 | // GetSessionLogs calls GetSessionLogsFunc. |
| 334 | func (mock *CapiClientMock) GetSessionLogs(ctx context.Context, id string) ([]byte, error) { |
| 335 | if mock.GetSessionLogsFunc == nil { |
| 336 | panic("CapiClientMock.GetSessionLogsFunc: method is nil but CapiClient.GetSessionLogs was just called") |
| 337 | } |
| 338 | callInfo := struct { |
| 339 | Ctx context.Context |
| 340 | ID string |
| 341 | }{ |
| 342 | Ctx: ctx, |
| 343 | ID: id, |
| 344 | } |
| 345 | mock.lockGetSessionLogs.Lock() |
| 346 | mock.calls.GetSessionLogs = append(mock.calls.GetSessionLogs, callInfo) |
| 347 | mock.lockGetSessionLogs.Unlock() |
| 348 | return mock.GetSessionLogsFunc(ctx, id) |
| 349 | } |
| 350 | |
| 351 | // GetSessionLogsCalls gets all the calls that were made to GetSessionLogs. |
| 352 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected