pub struct FlakyProducer { /* private fields */ }Expand description
Producer adapter that drives a FlakyRun and converts the
result into a Report.
Subprocess failures (missing cargo, compile error, IO error
spawning the subprocess) map to a single failing CheckResult
named flaky::scan with Severity::Critical. No panics.
§Example
use dev_flaky::{FlakyProducer, FlakyRun};
use dev_report::Producer;
let producer = FlakyProducer::new(
FlakyRun::new("my-crate", "0.1.0").iterations(20),
);
let report = producer.produce();
println!("{}", report.to_json().unwrap());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlakyProducer
impl RefUnwindSafe for FlakyProducer
impl Send for FlakyProducer
impl Sync for FlakyProducer
impl Unpin for FlakyProducer
impl UnsafeUnpin for FlakyProducer
impl UnwindSafe for FlakyProducer
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