gopacttest

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 19 Imported by: 0

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

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

func RequireCodeStyle(t testing.TB, root string)

RequireCodeStyle verifies the repository-wide gopact source policy.

func RequireModelConformance added in v0.0.58

func RequireModelConformance(t *testing.T, model gopact.Model)

RequireModelConformance verifies the minimal core Model contract.

func RequireStoreConformance added in v0.2.0

func RequireStoreConformance(t *testing.T, newStore func(*testing.T) workflow.Store)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL