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

Method GetSessionLogs

pkg/cmd/agent-task/capi/client_mock.go:334–349  ·  view source on GitHub ↗

GetSessionLogs calls GetSessionLogsFunc.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

332
333// GetSessionLogs calls GetSessionLogsFunc.
334func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected