Documentation
¶
Overview ¶
Package testenv keeps test runs away from the developer's real host CLIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var HostCLIs = []string{"claude", "codex"}
HostCLIs are the host programs setup and doctor execute.
Functions ¶
func Run ¶
Run runs the tests with HostCLIs removed from PATH and everything else on it still reachable.
Doctor runs `claude mcp list`, and Claude Code health-checks every server it knows by starting it — the developer's real Logos plugin included — with the test's environment, so a test's LOGOS_VAULT=<temp>/not-a-vault made the plugin fail to start. Claude Code caches that failure and skips Logos in every new session for 15 minutes: 592 of 638 recorded plugin failures on one machine came from `go test ./cmd/...`. Dropping the whole directory from PATH would take git and go with it, so each directory holding one of them is replaced by a copy made of links to everything else in it.
Types ¶
This section is empty.