Documentation
¶
Overview ¶
Package gopacttest provides reusable protocol conformance helpers for gopact implementations. Application task-quality evaluation remains outside the runtime and this package.
Package gopacttest provides reusable conformance helpers for gopact extensions.
Index ¶
- func RequireAgentConformance(t *testing.T, testCase AgentConformanceCase)
- func RequireCodeStyle(t testing.TB, root string)
- func RequireModelConformance(t *testing.T, model gopact.Model)
- func RequireStoreConformance(t *testing.T, newStore func(*testing.T) workflow.Store)
- func RequireWorkflowAgentConformance(t *testing.T, testCase AgentConformanceCase)
- type AgentConformanceCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireAgentConformance ¶ added in v0.0.58
func RequireAgentConformance(t *testing.T, testCase AgentConformanceCase)
RequireAgentConformance verifies the minimal ADK Agent contract shared by direct and Workflow-backed implementations.
func RequireCodeStyle ¶ added in v0.0.58
RequireCodeStyle verifies the repository-wide gopact source policy.
func RequireModelConformance ¶ added in v0.0.58
RequireModelConformance verifies the minimal core Model contract.
func RequireStoreConformance ¶ added in v0.2.0
RequireStoreConformance verifies portable workflow recovery and RunLog behavior shared by Store implementations. Each subtest requests a fresh Store.
func RequireWorkflowAgentConformance ¶ added in v0.1.0
func RequireWorkflowAgentConformance(t *testing.T, testCase AgentConformanceCase)
RequireWorkflowAgentConformance verifies the minimal Agent contract plus Workflow lifecycle, lineage, and run-extension semantics.
Types ¶
type AgentConformanceCase ¶ added in v0.0.58
type AgentConformanceCase struct {
Agent agent.Agent
Request agent.Request
Validate func(agent.Response) error
ConcurrentCalls int
}
AgentConformanceCase configures reusable public Agent contract checks. Validate is a deterministic test assertion for Request, not a task-quality evaluator.