pub struct BehaviorInventory { /* private fields */ }Implementations§
Source§impl BehaviorInventory
impl BehaviorInventory
Sourcepub fn for_snapshot(snapshot_module: &str) -> Result<Self, BehaviorError>
pub fn for_snapshot(snapshot_module: &str) -> Result<Self, BehaviorError>
Call from a dedicated snapshot module beside the checks’ owning module. Discovers this compiled libtest target, not other targets or Kani harnesses.
Sourcepub fn for_snapshot_with_runner(
snapshot_module: &str,
runner: Command,
) -> Result<Self, BehaviorError>
pub fn for_snapshot_with_runner( snapshot_module: &str, runner: Command, ) -> Result<Self, BehaviorError>
Discovers a snapshot through a configured runner, such as Cargo’s WASM
test runner. The command must accept --list --format terse --ignored.
Scope names belong to the runner’s target, not the host snapshot binary.
Sourcepub fn from_test_binary(
executable: impl AsRef<Path>,
) -> Result<Self, BehaviorError>
pub fn from_test_binary( executable: impl AsRef<Path>, ) -> Result<Self, BehaviorError>
The executable must be a trusted Rust libtest binary supporting --list.
pub fn checks(&self) -> &[BehaviorCheck]
pub fn render(&self) -> String
Trait Implementations§
Source§impl Clone for BehaviorInventory
impl Clone for BehaviorInventory
Source§impl Debug for BehaviorInventory
impl Debug for BehaviorInventory
impl Eq for BehaviorInventory
Source§impl PartialEq for BehaviorInventory
impl PartialEq for BehaviorInventory
impl StructuralPartialEq for BehaviorInventory
Auto Trait Implementations§
impl Freeze for BehaviorInventory
impl RefUnwindSafe for BehaviorInventory
impl Send for BehaviorInventory
impl Sync for BehaviorInventory
impl Unpin for BehaviorInventory
impl UnsafeUnpin for BehaviorInventory
impl UnwindSafe for BehaviorInventory
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