Versions in this module Expand all Collapse all v1 v1.138.0 Sep 29, 2026 Changes in this version + func RecordingsNamed(source string) []string + func Replays(file *syntax.File) (map[string]string, error) + type AssertionError struct + Line int + Message string + func (f *AssertionError) Error() string + type Contracts interface + Check func(tool string, args, answer map[string]any) (checked bool, err error) + type Coverage struct + Covered int + MissedLines []int + Percent float64 + Statements int + type Loader func(ctx context.Context, runID string) (*scriptrec.Recording, error) + type Outcome struct + Calls []scriptrec.Made + Exports []scriptrun.ExportRequest + Failure string + Missing string + Publishes []scriptrun.PublishRequest + Result json.RawMessage + State map[string]any + func Replay(ctx context.Context, req Request, rec *scriptrec.Recording) Outcome + type Report struct + Coverage Coverage + Failed int + Passed int + Tests []Result + Unread []string + func Run(ctx context.Context, req Request) (*Report, error) + func (r *Report) OK() bool + type Request struct + Contracts Contracts + Destinations []script.Destination + Libraries scriptlib.Source + Load Loader + MaxMemoryBytes int64 + Name string + Source string + type Result struct + Failure string + Line int + Log string + Name string + Notes []string + Passed bool + Recording string