MCPcopy Create free account
hub / github.com/compozy/agh / fakeSessionManager

Struct fakeSessionManager

internal/daemon/daemon_test.go:4664–4691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4662}
4663
4664type fakeSessionManager struct {
4665 mu sync.Mutex
4666 infos []*session.Info
4667 sessionEvents map[string][]store.SessionEvent
4668 nextEventSequence int64
4669 onStop func(string)
4670 stopErr func(string) error
4671 stopWithCauseErr func(string, session.StopCause, string) error
4672 requestStopErr func(string, session.StopCause, string) error
4673 createCalls []session.CreateOpts
4674 promptCalls []struct {
4675 id string
4676 msg string
4677 }
4678 syntheticPromptCalls []fakeSyntheticPromptCall
4679 syntheticPromptHook func(context.Context, string, session.SyntheticPromptOpts) (<-chan acp.AgentEvent, error)
4680 healthRows map[string]heartbeat.SessionHealth
4681 promptStarted chan struct{}
4682 promptRelease <-chan struct{}
4683 promptCtxCancelled chan struct{}
4684 stopCalls []string
4685 deleteCalls []string
4686 repairCalls []session.RepairOpts
4687 stopWithCauseCalls []fakeStopWithCauseCall
4688 requestStopCalls []fakeStopWithCauseCall
4689 waitFinalizationsRelease <-chan struct{}
4690 waitFinalizationsCalls int
4691}
4692
4693var _ SessionManager = (*fakeSessionManager)(nil)
4694var _ memoryExtractorSessionManager = (*fakeSessionManager)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected