conformance

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSuite

type BatchSuite[C any, I any] struct {
	Engram                 engram.BatchEngram[C, I]
	Context                context.Context
	Config                 C
	Inputs                 I
	Secrets                map[string]string
	StoryInfo              engram.StoryInfo
	CELContext             map[string]any
	ExpectError            bool
	RequireStructuredError bool
	ValidateError          func(error) error
	ValidateResult         func(*engram.Result) error
}

BatchSuite defines conformance checks for a BatchEngram.

func (BatchSuite[C, I]) Run

func (s BatchSuite[C, I]) Run(t testing.TB)

Run executes Init + Process and enforces the configured contract checks.

type StreamSuite

type StreamSuite[C any] struct {
	Engram                 engram.StreamingEngram[C]
	Context                context.Context
	Config                 C
	Inputs                 []engram.StreamMessage
	Secrets                map[string]string
	StoryInfo              engram.StoryInfo
	CELContext             map[string]any
	RequireValidMessages   bool
	RequireNonEmptyOutput  bool
	MinOutputCount         int
	RequireAllInputsDone   bool
	ExpectError            bool
	RequireStructuredError bool
	ValidateError          func(error) error
	ValidateOutputMessage  func(engram.StreamMessage) error
}

StreamSuite defines conformance checks for a StreamingEngram.

func (StreamSuite[C]) Run

func (s StreamSuite[C]) Run(t testing.TB)

Run executes Init + Stream and enforces the configured contract checks.

Jump to

Keyboard shortcuts

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