Expand description
View fixtures for a sibling crateβs tests.
A ViewSurface only ever comes off an Arc<Workspace>, and the
constructors that build one without a real machine are behind
forge-workspaceβs own test features. A crate testing a view would
otherwise have to name that crate in its manifest to get one; this
module is the way round, kept behind its own testing feature so a
production build never sees it.
Every constructor here hands back its failure rather than panicking, so a caller that wants a panic is the one that asks for it.
Re-exportsΒ§
use std::path::Path;πuse std::sync::Arc;πuse forge_primitives::SessionSlot;πuse forge_primitives::tasks::Task;πuse forge_primitives::tasks::TaskStatus;πuse forge_primitives::CronEntry;πuse forge_primitives::CronId;πuse forge_primitives::CronKind;πuse forge_workspace::ProjectKey;πuse forge_workspace::Workspace;πuse tokio::sync::mpsc;πuse crate::SessionUpdate;πuse crate::surface::PendingKind;πuse crate::surface::ViewSurface;πuse crate::transport::TransportState;π
StructsΒ§
- Fleet
- A view surface over a stub workspace, plus the seeding a test needs to put a roster in front of it.
- View
Facts - The facts a session holds that no update stream carries, for a viewβs fixture to seed. Every field is what the session reports: leaving one out is a session that has not reported it.
ConstantsΒ§
- SEEDED_
SESSION π - The session id a seeded transcript belongs to. One per fleet is enough: a test that needs two reads two slots against their own files.
FunctionsΒ§
- config π
- The
forge.tomla fleet is built from: one[[orgs]]per entry, each project under its own directory so two projects never share a path.
Type AliasesΒ§
- Fixture
Error - What a fixture hands back when it cannot build what was asked for.