agentconformance

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package agentconformance provides reusable black-box Agent Operations V1 tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAgentV1

func RunAgentV1(t *testing.T, fixture Fixture)

RunAgentV1 verifies the shared lifecycle against a real broker handler.

Types

type Endpoint

type Endpoint struct {
	BaseURL    string
	HTTPClient *http.Client
	Close      func() error
}

Endpoint is one running real broker handler backed by the fixture's durable state.

type Fixture

type Fixture struct {
	Start    func() (Endpoint, error)
	Approve  func(context.Context, agentv1.Operation) error
	Verify   func(*testing.T, agentv1.Operation)
	Token    string
	Request  agentv1.SubmitRequest
	WaitTime time.Duration
}

Fixture supplies provider behavior around the shared black-box lifecycle.

Jump to

Keyboard shortcuts

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