pub struct Options {
pub filter: Option<String>,
pub runs: u64,
pub base_dir: PathBuf,
pub update_snapshots: bool,
}Fields§
§filter: Option<String>Only run tests whose name contains this.
runs: u64Inputs per property block.
base_dir: PathBufWhere a expect wire_compatible_with "…" path is resolved from, and where snapshots/
lives for expect page matches snapshot.
update_snapshots: boolbeck test --update: write what the page renders to instead of comparing against it.
Off by default and never inferred. A snapshot that updates itself when it disagrees is not an assertion — §21.2’s stated risk is snapshot rot and its stated mitigation is reviewing the diff, which only exists if writing is something a person asked for.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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