testprovider

package
v0.149.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package testprovider contains fake provider protocols for isolated acceptance tests.

Index

Constants

This section is empty.

Variables

View Source
var Codex string
View Source
var ScopedClaude string

Functions

func LogEggTails

func LogEggTails(t *testing.T, dirs ...string)

LogEggTails captures fixture evidence before cleanup can stop or reap eggs.

func WaitParentMailboxExit

func WaitParentMailboxExit(ctx context.Context, mailbox, session string) error

WaitParentMailboxExit waits for the broker to observe the parent's egg exit, so survival assertions run after its mailbox cancellation, not just detach.

Types

type CompletionGate

type CompletionGate struct {
	// contains filtered or unexported fields
}

CompletionGate holds exactly one fake Codex turn in its granted workspace.

func NewCompletionGate

func NewCompletionGate(t *testing.T, workspace string) *CompletionGate

func (*CompletionGate) Release

func (g *CompletionGate) Release() error

func (*CompletionGate) WaitReady

func (g *CompletionGate) WaitReady(ctx context.Context) error

WaitReady waits for the fake's marker, published after UserPromptSubmit and opening its own FIFO. Unlike a shared writer open, this accounts for each fake.

Jump to

Keyboard shortcuts

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