Skip to content

vox-orchestrator-test-helpers API Reference (generated)

Crate: vox-orchestrator-test-helpers · Version: 0.6.0 · Target: Library (lib.rs)

Test fixtures and mocks for vox-orchestrator. Not for production code.

Test fixtures, mocks, and golden helpers for vox-orchestrator.

This crate is kind = "test-only" per layers.toml — production code must not depend on it.

DependencyKind
vox-orchestratorNormal
vox-orchestrator-typesNormal
StructDescription
MockBulletinBoardIn-memory bulletin board for use in tests. Records all published messages for assertion.
EnumDescription
FixtureError—
FunctionDescription
load_golden_fixtureLoad and deserialize a golden fixture from fixtures/<relative_path>. The fixtures directory is resolved relative to this crate’s manifest at compile time. relative_path is relative to crates/vox-orchestrator-test-helpers/fixtures/.
new—
publish—
recorded_messages—
find_message—
message_count—
clear—
Dependency Topology, diagram 13 nodes, 2 edges: vox-orchestrator-test-h… → vox-orchestrator; vox-orchestrator-test-h… → vox-orchestrator-typesvox-orchestrator-test-helpersvox-orchestratorvox-orchestrator-types
Diagram source
graph {
direction: right
node vox_orchestrator_test_helpers: "vox-orchestrator-test-helpers"
node vox_orchestrator: "vox-orchestrator"
vox_orchestrator_test_helpers -> vox_orchestrator
node vox_orchestrator_types: "vox-orchestrator-types"
vox_orchestrator_test_helpers -> vox_orchestrator_types
}
KindSymbolSignatureSourceDescription
enumFixtureErrorpub enum FixtureErrorcrates/vox-orchestrator-test-helpers/src/lib.rs#L13-L23—
fnload_golden_fixturepub fn load_golden_fixture<T: DeserializeOwned>(crates/vox-orchestrator-test-helpers/src/lib.rs#L45Load and deserialize a golden fixture from fixtures/<relative_path>. The fixtures directory is resolved relative to this crate’s manifest at compile time. relative_path is relative to crates/vox-orchestrator-test-helpers/fixtures/.
structMockBulletinBoardpub struct MockBulletinBoardcrates/vox-orchestrator-test-helpers/src/lib.rs#L75-L77In-memory bulletin board for use in tests. Records all published messages for assertion.
fnnewpub fn new() -> Selfcrates/vox-orchestrator-test-helpers/src/lib.rs#L80-L82—
fnpublishpub fn publish(&self, msg: AgentMessage)crates/vox-orchestrator-test-helpers/src/lib.rs#L84-L86—
fnrecorded_messagespub fn recorded_messages(&self) -> Vec<AgentMessage>crates/vox-orchestrator-test-helpers/src/lib.rs#L88-L90—
fnfind_messagepub fn find_message<F>(&self, predicate: F) -> Option<AgentMessage>crates/vox-orchestrator-test-helpers/src/lib.rs#L92—
fnmessage_countpub fn message_count(&self) -> usizecrates/vox-orchestrator-test-helpers/src/lib.rs#L104-L106—
fnclearpub fn clear(&self)crates/vox-orchestrator-test-helpers/src/lib.rs#L108-L110—