pub struct MutationPlanRequest {
pub scope: MutationScope,
pub operators: Option<Vec<Operator>>,
pub allow_side_effects: bool,
pub max_mutants: Option<usize>,
pub mutants_per_line: Option<usize>,
pub function_scope: bool,
pub skip_component_files: bool,
pub mutant_ids: Option<BTreeSet<String>>,
pub record_exports: bool,
}Expand description
What to plan.
Fields§
§scope: MutationScopeThe files and lines to mutate.
operators: Option<Vec<Operator>>The operators to use. None uses the default set
(Operator::DEFAULT).
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.
mutants_per_line: Option<usize>The maximum number of planned mutants on one source line. The plan
keeps the most productive mutants of the line and marks the others
MutantDisposition::SampledOut. None keeps each mutant.
function_scope: boolWiden each changed line of MutationScope::ChangedSinceBase to the
whole innermost function that holds it, so that a change to a
parameter or a signature selects the mutants of the function. The
other scopes ignore it.
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.
mutant_ids: Option<BTreeSet<String>>Run only the mutants with these ids. Each other mutant is pruned with
PruneReason::NotSelected. It stays in the plan, because the
instrumented file still holds its switch. None selects each mutant.
record_exports: boolWrap each exported function that holds a planned mutant, so that a recording dry run can record its arguments.
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 Forget for MutationPlanRequest
impl Freeze for MutationPlanRequest
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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