Expand description
Companion testing helpers for Trellis.
This crate is intentionally narrow. It helps tests inspect transaction traces, resource lifecycle plans, materialized output frames, and conformance support levels without executing host resources or replacing Rust’s existing testing ecosystem.
The Cargo package is named trellis-testing to avoid the crates.io
normalized-name collision with trellis_test.
Structs§
- Conformance
Check Report - Executed conformance check summary.
- Conformance
Failure - Failure returned by an executable conformance suite.
- Conformance
Report - Report of supported and unsupported conformance levels.
- Conformance
Runner - Executable opt-in conformance suite for application graphs.
- Conformance
Suite - Opt-in set of conformance levels an application wants to exercise.
- Fake
Host - Deterministic fake host boundary for resource status simulations.
- Fake
Host Event - Status event produced by the fake host boundary.
- Harness
Step - Builder for one harness transaction step.
- Host
Status Record - Recorded classification for a host status event.
- NoRedaction
- Redactor that preserves all trace data.
- Oracle
Check - Successful oracle comparison.
- Oracle
Mismatch - Full-recompute oracle mismatch.
- Output
Audit Context - Structural context for an audited output frame assertion.
- Output
Ledger - Fake output consumer ledger for materialized output frames.
- Output
Snapshot - Current ledger view for one materialized output.
- Resource
Audit Context - Structural context for an audited resource command assertion.
- Resource
Command Context - Structural context for a resource command observed by the ledger.
- Resource
Command Record - Applied resource command with transaction and generation context.
- Resource
Ledger - Fake resource lifecycle ledger for applying Trellis resource plans.
- Resource
Snapshot - Current or historical ledger view for one resource key.
- Resource
Status Context - Structural context for a host status classification.
- Scenario
- Deterministic scenario recorder for transaction scripts.
- Scenario
Step - Named transaction trace captured by a scenario test.
- Transaction
Script - Deterministic transaction script that can be replayed against a fresh graph.
- Transaction
Script Step - One named transaction in a replayable script.
- Transaction
Script Step Builder - Builder for one transaction script step.
- Trellis
Harness - Scenario runner for deterministic transaction scripts.
Enums§
- Audit
Assertion Error - Failure from an explainability assertion over transaction audit data.
- Conformance
Check Result - Result returned by one executable conformance check.
- Conformance
Level - Opt-in conformance levels for application graph tests.
- Host
Status Class - Classification for host status delivery.
- Output
Ledger Error - Output ledger assertion failure.
- Resource
Ledger Error - Resource ledger assertion failure.
- Scenario
Error - Scenario assertion failure.
Traits§
- Full
Recompute Oracle - Application-owned full-recompute oracle for a Trellis graph wrapper.
- Scenario
Target - Application target that exposes the Trellis graph under test.
- Trace
Redactor - Redaction hook for scenario debug and snapshot output.
Functions§
- assert_
dependency_ path_ exists - Asserts that a deterministic dependency path exists in the graph.
- assert_
every_ output_ frame_ has_ revision - Asserts every output frame has a graph-visible revision explanation.
- assert_
every_ output_ frame_ has_ scope - Asserts every output frame has a graph-visible scope explanation.
- assert_
every_ resource_ command_ has_ cause - Asserts every resource command has a graph-visible cause.
- assert_
incremental_ equals_ full - Asserts that incremental observation equals application full recompute.
- assert_
no_ unexplained_ output_ frame - Asserts every output frame in a result has matching audit explanation.
- assert_
no_ unexplained_ plan - Asserts every resource command in a result has matching audit explanation.
- conformance
- Creates an empty executable conformance runner.
Type Aliases§
- Host
Status Event - Explicit host status event fed to tests after plan application.