tooltest

package
v0.10.0-alpha.22 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tooltest provides conformance checks for managed background tool implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRecoveryConformance

func CheckRecoveryConformance(
	ctx context.Context,
	config *RecoveryConformanceConfig,
) error

CheckRecoveryConformance verifies that independent adapter instances share one logical operation and replay stable update identities. Backend suites may add retention-specific assertions around this common check.

Types

type RecoveryConformanceConfig

type RecoveryConformanceConfig struct {
	TaskID    string
	Arguments string
	NewTool   func() backgroundtool.RecoverableBackgroundTool
	Snapshot  func(context.Context, string) (*RecoverySnapshot, error)
}

RecoveryConformanceConfig configures CheckRecoveryConformance.

type RecoverySnapshot

type RecoverySnapshot struct {
	LogicalOperationID string
	Updates            []*backgroundtool.Update
}

RecoverySnapshot exposes backend identity and replay state to the reusable recovery conformance check. LogicalOperationID is backend-private test data; production task APIs continue to expose only the Eino task ID.

Jump to

Keyboard shortcuts

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