pub struct Suite;Expand description
The case registry for one specification version.
Implementations§
Source§impl Suite
impl Suite
Sourcepub const fn current() -> Self
pub const fn current() -> Self
Returns the registry for the specification embedded in this crate.
Sourcepub fn cases(self) -> impl Iterator<Item = CaseMetadata>
pub fn cases(self) -> impl Iterator<Item = CaseMetadata>
Returns ordered metadata for every conformance case.
Sourcepub fn run(
self,
command: &CommandTemplate,
options: RunOptions,
) -> Result<SuiteReport, SuiteError>
pub fn run( self, command: &CommandTemplate, options: RunOptions, ) -> Result<SuiteReport, SuiteError>
Runs the suite using the default local-process runner.
The command is resolved before any case changes its working directory.
§Errors
Returns SuiteError when a path-like candidate command cannot be
resolved before execution.
Sourcepub fn run_observed<F>(
self,
command: &CommandTemplate,
options: RunOptions,
observer: F,
) -> Result<SuiteReport, SuiteError>where
F: FnMut(SuiteEvent<'_>),
pub fn run_observed<F>(
self,
command: &CommandTemplate,
options: RunOptions,
observer: F,
) -> Result<SuiteReport, SuiteError>where
F: FnMut(SuiteEvent<'_>),
Runs the suite through the local-process runner and synchronously reports progress.
The observer runs on the suite thread. It must not retain borrowed event data.
§Errors
Returns SuiteError when a path-like candidate command cannot be
resolved before execution.
Sourcepub fn run_with(
self,
runner: Arc<dyn Runner>,
options: RunOptions,
) -> SuiteReport
pub fn run_with( self, runner: Arc<dyn Runner>, options: RunOptions, ) -> SuiteReport
Runs the same registry through a custom execution adapter.
The adapter must make the candidate see fixture files and honor each invocation’s native arguments, working directory, environment changes, input mode, and timeout.
Sourcepub fn run_with_observer<F>(
self,
runner: Arc<dyn Runner>,
options: RunOptions,
observer: F,
) -> SuiteReportwhere
F: FnMut(SuiteEvent<'_>),
pub fn run_with_observer<F>(
self,
runner: Arc<dyn Runner>,
options: RunOptions,
observer: F,
) -> SuiteReportwhere
F: FnMut(SuiteEvent<'_>),
Runs the registry through a custom adapter and synchronously reports progress.
Selection by case identifier and profile completes before the first event. The observer runs on the suite thread and must not retain borrowed event data.