pub struct MutateProducer { /* private fields */ }Expand description
Producer adapter that drives a MutateRun and converts the
result into a Report against the configured MutateThreshold.
Subprocess failures map to a single failing CheckResult named
mutate::<subject> with Severity::Critical. No panics.
§Example
use dev_mutate::{MutateProducer, MutateRun, MutateThreshold};
use dev_report::Producer;
let producer = MutateProducer::new(
MutateRun::new("my-crate", "0.1.0"),
MutateThreshold::min_kill_pct(70.0),
);
let report = producer.produce();
println!("{}", report.to_json().unwrap());Implementations§
Source§impl MutateProducer
impl MutateProducer
Sourcepub fn new(run: MutateRun, threshold: MutateThreshold) -> Self
pub fn new(run: MutateRun, threshold: MutateThreshold) -> Self
Build a producer with the given run + threshold.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MutateProducer
impl RefUnwindSafe for MutateProducer
impl Send for MutateProducer
impl Sync for MutateProducer
impl Unpin for MutateProducer
impl UnsafeUnpin for MutateProducer
impl UnwindSafe for MutateProducer
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