Documentation
¶
Overview ¶
Package testprovider contains fake provider protocols for isolated acceptance tests.
Index ¶
- Variables
- func LogEggTails(t *testing.T, dirs ...string)
- func ScopedHomeDirs(t *testing.T, scratch string) (home, localState, remoteState string)
- func ScopedHomePolicy(home string) *egg.EggConfig
- func ShortStateDir(t *testing.T, scratch string) string
- func WaitParentMailboxExit(ctx context.Context, mailbox, session string) error
- type CompletionGate
Constants ¶
This section is empty.
Variables ¶
var Codex string
var ScopedClaude string
Functions ¶
func LogEggTails ¶
LogEggTails captures fixture evidence before cleanup can stop or reap eggs.
func ScopedHomeDirs ¶ added in v0.149.4
ScopedHomeDirs keeps both wings' protected state under the provider's HOME write-deny root, alongside (not inside) its writable workspaces and TMPDIR. Reserve a one-byte state component before choosing the physical HOME name.
func ScopedHomePolicy ¶ added in v0.149.4
ScopedHomePolicy retains the default sandbox and pins the clone-local HOME and its ancestors so a provider cannot rename the protected fixture tree.
func ShortStateDir ¶ added in v0.149.4
ShortStateDir creates disposable clone-local state that fits Darwin's Unix socket limit with a full runtime ID. MkdirTemp's decimal suffix is too long in some checkout paths. A physical directory also keeps the control socket's canonical address local instead of relocating it to the host's /tmp.
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