Documentation
¶
Overview ¶
Package testenv builds an indexed test registry for tests of the interfaces on top of the service: the API, MCP server, CLI and commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
Reg *testreg.Registry
Svc *service.Service
// DB is the index file, for tests that open it themselves.
DB string
}
Env is a test registry and an index of it.
func Indexed ¶
Indexed starts a test registry and indexes it into a temp file, kept open for the test's lifetime.
func IndexedFile ¶
IndexedFile indexes a test registry into a temp file and closes it, so a command under test can open it.