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.
Click to show internal directories.
Click to hide internal directories.