//! Step definitions for `crates/rtb-error/tests/features/error.feature`.
//!//! Scenario-local state lives on `ErrorWorld`.
pubmoderror_steps;usestd::sync::{Arc, Mutex};usecucumber::World;usemiette::Diagnostic;/// Per-scenario state. Cucumber constructs a fresh `ErrorWorld` per scenario.
#[derive(Debug, Default, World)]pubstructErrorWorld{/// The diagnostic currently under test.
pubsubject:Option<Arc<dyn Diagnostic +Send+Sync+'static>>,
/// Last captured render output.
pubrendered:Option<String>,
/// Last captured panic message, if `install_panic_hook` was exercised.
pubcaptured_panic:Arc<Mutex<Option<String>>>,
/// Flag set when a step expected a panic and none occurred, or vice versa.
pubpanic_occurred:bool,
}