Files
kandev/apps/backend/internal/agent/runtime/lifecycle/testing_support.go
T
2026-08-07 23:32:04 +01:00

16 lines
560 B
Go

package lifecycle
import agentctl "github.com/kandev/kandev/internal/agent/runtime/agentctl"
// ExecutionStoreForTesting returns the manager's execution store.
// Intended for use by test packages that need to inject executions.
func (m *Manager) ExecutionStoreForTesting() *ExecutionStore {
return m.executionStore
}
// SetAgentCtlClientForTesting injects an agentctl client into a synthetic
// execution used by focused tests in dependent packages.
func (ae *AgentExecution) SetAgentCtlClientForTesting(client *agentctl.Client) {
ae.agentctl = client
}