pub struct MutationPlanRequest {
pub scope: MutationScope,
pub operators: Option<Vec<Operator>>,
pub allow_side_effects: bool,
pub max_mutants: Option<usize>,
pub skip_component_files: bool,
}Expand description
What to plan.
Fields§
§scope: MutationScopeThe files and lines to mutate.
operators: Option<Vec<Operator>>The operators to use. None uses each operator.
allow_side_effects: boolKeep the mutants in functions that call a file system, child process, network or database sink. The default prunes them, because a mutant can turn a guarded side effect into an unguarded one.
max_mutants: Option<usize>The maximum number of planned mutants. The mutants after this limit,
in rank order, become pending.
skip_component_files: boolLeave each Vue, Svelte and Astro component file out of the plan,
with the skip reason SkipReason::RunnerCannotLoad. Set it when
the test runner has no loader for a component file.
Implementations§
Source§impl MutationPlanRequest
impl MutationPlanRequest
Sourcepub const fn new(scope: MutationScope) -> Self
pub const fn new(scope: MutationScope) -> Self
A request with the default options for scope.
Trait Implementations§
Source§impl Clone for MutationPlanRequest
impl Clone for MutationPlanRequest
Auto Trait Implementations§
impl Freeze for MutationPlanRequest
impl RefUnwindSafe for MutationPlanRequest
impl Send for MutationPlanRequest
impl Sync for MutationPlanRequest
impl Unpin for MutationPlanRequest
impl UnsafeUnpin for MutationPlanRequest
impl UnwindSafe for MutationPlanRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more