Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestHarness ¶
type TestHarness struct {
// contains filtered or unexported fields
}
TestHarness provides utilities for ADK integration testing
func NewHarness ¶
func NewHarness() (*TestHarness, error)
NewHarness creates a harness over the whole fixtures tree.
func NewHarnessAt ¶
func NewHarnessAt(agentsDir string) (*TestHarness, error)
NewHarnessAt creates a harness whose discovery is fenced to agentsDir.
A caller that stages exactly the agents its test needs gets two things the shared fixtures tree cannot give it. The obvious one is isolation. The load-bearing one is that unrelated agents' start timeouts cannot starve the agents under test - that is the ~90s TestTimerAgent_Execution failure recorded as GAPI-DIV-021, and it came from discovery finding more than the test meant it to.
func (*TestHarness) GetAgentState ¶
func (h *TestHarness) GetAgentState(id string) (string, error)
GetAgentState returns the current state of an agent
func (*TestHarness) SendLifecycleAction ¶
func (h *TestHarness) SendLifecycleAction(id, action string) error
SendLifecycleAction sends a lifecycle action to an agent
func (*TestHarness) WaitForState ¶
func (h *TestHarness) WaitForState(id, expectedState string, timeout time.Duration) error
WaitForState waits for an agent to reach a specific state
Directories
¶
| Path | Synopsis |
|---|---|
|
fixtures
|
|
|
go
command
|
|
|
go/capabilities_agent
command
Capabilities agent with capability detection
|
Capabilities agent with capability detection |
|
go/hash_agent
command
Hash agent for testing schema hashing
|
Hash agent for testing schema hashing |
|
go/lifecycle_agent
command
Lifecycle agent demonstrating full lifecycle support
|
Lifecycle agent demonstrating full lifecycle support |
|
go/simple_service
command
Simple service agent for cross-ADK testing
|
Simple service agent for cross-ADK testing |