| 4662 | } |
| 4663 | |
| 4664 | type 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 | |
| 4693 | var _ SessionManager = (*fakeSessionManager)(nil) |
| 4694 | var _ memoryExtractorSessionManager = (*fakeSessionManager)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected