16 lines
560 B
Go
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
|
|
}
|