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

Method GetSessionCalls

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

GetSessionCalls gets all the calls that were made to GetSession. Check the length with: len(mockedCapiClient.GetSessionCalls())

()

Source from the content-addressed store, hash-verified

317//
318// len(mockedCapiClient.GetSessionCalls())
319func (mock *CapiClientMock) GetSessionCalls() []struct {
320 Ctx context.Context
321 ID string
322} {
323 var calls []struct {
324 Ctx context.Context
325 ID string
326 }
327 mock.lockGetSession.RLock()
328 calls = mock.calls.GetSession
329 mock.lockGetSession.RUnlock()
330 return calls
331}
332
333// GetSessionLogs calls GetSessionLogsFunc.
334func (mock *CapiClientMock) GetSessionLogs(ctx context.Context, id string) ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected