pub struct MatrixRunner;Expand description
Runs language rows through caller-supplied source-case runners.
The runner compares the row’s expected source outcomes with observations from the caller. It does not depend on a concrete language codec; each language crate supplies its own execution closure and publishes the report when evidence claims are needed.
Implementations§
Source§impl MatrixRunner
impl MatrixRunner
Sourcepub fn run_source_row<F>(
cx: &mut Cx,
row: &LanguageRow,
run_case: F,
) -> MatrixRunReport
pub fn run_source_row<F>( cx: &mut Cx, row: &LanguageRow, run_case: F, ) -> MatrixRunReport
Runs a single language row that has source cases only.
Sourcepub fn run_row<F, G>(
cx: &mut Cx,
row: &LanguageRow,
run_source_case: F,
run_expr_case: G,
) -> MatrixRunReportwhere
F: Fn(&mut Cx, &SourceConformanceCase) -> Result<SourceObservation>,
G: Fn(&mut Cx, &ExprRoundTripCase) -> Result<ExprRoundTripObservation>,
pub fn run_row<F, G>(
cx: &mut Cx,
row: &LanguageRow,
run_source_case: F,
run_expr_case: G,
) -> MatrixRunReportwhere
F: Fn(&mut Cx, &SourceConformanceCase) -> Result<SourceObservation>,
G: Fn(&mut Cx, &ExprRoundTripCase) -> Result<ExprRoundTripObservation>,
Runs a single language row, using caller-supplied closures for both source cases and expression round-trip cases.
Auto Trait Implementations§
impl Freeze for MatrixRunner
impl RefUnwindSafe for MatrixRunner
impl Send for MatrixRunner
impl Sync for MatrixRunner
impl Unpin for MatrixRunner
impl UnsafeUnpin for MatrixRunner
impl UnwindSafe for MatrixRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more