Help us shape the future of Go! Take the 2026 Go Developer Survey

presettest

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package presettest loads real preset graphs and runs scripted Runner smoke flows.

Integration tests import this package with //go:build integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(t *testing.T, overlayPaths ...string) manager.Document

Load resolves L0 + overlays from the repo root.

func MustBuildRunner

func MustBuildRunner(t *testing.T, doc manager.Document) (agentkit.Runner, *build.Result)

MustBuildRunner constructs a Runner from a resolved document.

Types

type RunOnceResult

type RunOnceResult struct {
	Runner    agentkit.Runner
	Store     agentkit.SessionStore
	SessionID agentkit.SessionID
}

RunOnceResult captures artifacts from a single preset once-run.

func RunOnce

func RunOnce(t *testing.T, prompt string, overlayPaths ...string) RunOnceResult

RunOnce loads overlays, injects a CLI prompt, chdirs to repo root, and runs until exit.

func RunWorker added in v0.3.48

func RunWorker(t *testing.T, tasks []string, overlayPaths ...string) RunOnceResult

RunWorker loads a platform/worker preset, runs each task as one turn, then exits at EOF.

Jump to

Keyboard shortcuts

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