termtest

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAgentTerm

func BuildAgentTerm(t *testing.T) string

BuildAgentTerm builds the agent-term binary for doctest harnesses.

func PickFreePort

func PickFreePort(base int) (int, error)

PickFreePort finds an available TCP port near base.

Types

type Request

type Request struct {
	Phase string

	Args       []string
	ListenAddr string
	DaemonPort int

	StartDaemon        bool
	EnsureNoDaemon     bool
	RenameBeforeAttach string
	WebSessionName     string
	RunCommand         []string
	DetachSignal       bool
	RunProbeSeconds    int
	RequireGrok        bool

	AgentTermBin string
	DaemonAddr   string
}

Request is the doctest harness request for agent-term CLI tests.

type Response

type Response struct {
	ExitCode   int
	Stdout     string
	Stderr     string
	Combined   string
	HTTPStatus int
	HTTPBody   string
	DaemonPort int

	DaemonStderr        string
	SessionStillRunning bool
	DetachedSessionID   string
}

Response is the doctest harness response for agent-term CLI tests.

func Run

func Run(t *testing.T, req *Request) (*Response, error)

Run executes an agent-term doctest phase.

Jump to

Keyboard shortcuts

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