Documentation
¶
Index ¶
- func InitGitRepoWithOrigin(t *testing.T, dir string)
- func NewTestDB(t *testing.T) *db.DB
- func SeedProjectFixture(t *testing.T, ts *TestServer, dir string, output any) error
- func SeedWorkspace(t *testing.T, ts *TestServer, slug string)
- func ServeGitRepository(t *testing.T, dir string) string
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGitRepoWithOrigin ¶ added in v0.0.10
func SeedProjectFixture ¶ added in v0.6.0
SeedProjectFixture places a test identity in the registry and its runtime definitions in the workspace.
func SeedWorkspace ¶ added in v0.0.13
func SeedWorkspace(t *testing.T, ts *TestServer, slug string)
SeedWorkspace upserts an empty workspaces table row for slug directly via the daemon's DB, bypassing both the CLI and the HTTP API (which exposes no creation endpoint). Tests that assign a project to a workspace slug other than orchestrator.DefaultWorkspaceSlug must call this first: ProjectAppService.SetProjectWorkspace rejects assignment to a slug with no corresponding row.
Types ¶
type TestServer ¶
TestServer wraps a running server for testing.
func NewTestServer ¶
func NewTestServer(t *testing.T) *TestServer
NewTestServer starts a server with a temp UNIX socket and in-memory DB.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package homeenv isolates a test binary from the real developer machine's persistent boid state — $HOME, the XDG base directories, and the docker engine — and lets a test assert that the isolation is actually in place.
|
Package homeenv isolates a test binary from the real developer machine's persistent boid state — $HOME, the XDG base directories, and the docker engine — and lets a test assert that the isolation is actually in place. |
Click to show internal directories.
Click to hide internal directories.