eval

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drift

func Drift(base, next []CaseExpect) []string

Types

type Case

type Case struct {
	Name   string       `yaml:"name"`
	Input  string       `yaml:"input"`
	Expect Expectations `yaml:"expect"`
}

func LoadCase

func LoadCase(path string) (*Case, error)

func LoadCases

func LoadCases(paths []string) ([]*Case, error)

type CaseExpect

type CaseExpect struct {
	Name                 string `json:"name"`
	Operation            string `json:"operation"`
	ConfirmationRequired bool   `json:"confirmation_required"`
	NoHTTP               bool   `json:"no_http"`
}

func Expects

func Expects(cases []*Case) []CaseExpect

type Expectations

type Expectations struct {
	ConfirmationRequired bool     `yaml:"confirmation_required"`
	OperationID          string   `yaml:"operation"`
	NoHTTP               bool     `yaml:"no_http"`
	PackContains         []string `yaml:"pack_contains"`
	PackExcludes         []string `yaml:"pack_excludes"`
	Related              []string `yaml:"related"`
}

type Runner

type Runner struct {
	Catalog   *catalog.Catalog
	Semantics agent.Notes
	Model     agent.Completer
	Loop      *agent.Loop
}

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, c *Case) error

Jump to

Keyboard shortcuts

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