pub struct MutationConfig {
pub runner: MutationRunner,
pub operators: Option<Vec<MutationOperatorName>>,
pub min_score: Option<f64>,
pub concurrency: Option<usize>,
pub typecheck: Option<bool>,
}Expand description
Project settings for fallow mutation.
Project config cannot widen what a run executes: the override that keeps
mutants near file system, process, network or database sinks is a CLI
flag only (--allow-side-effects), and no key starts a run.
Fields§
§runner: MutationRunnerThe test runner: auto, vitest, node-test or bun-test. auto
detects it from the project.
operators: Option<Vec<MutationOperatorName>>The operators to use. Unset uses each operator. --operators wins.
min_score: Option<f64>The minimum mutation score, from 0 to 100. When the score of a run is
lower, fallow mutation exits with code 1. Unset never fails a run.
--min-score wins.
concurrency: Option<usize>The number of companion processes. Unset uses half the logical cores.
--concurrency wins.
typecheck: Option<bool>Type-check each survived mutant through the TypeScript-Go companion
of --type-aware. A survivor that does not type-check becomes
compile_error and does not count in the score. Unset or false
checks no survivor. --typecheck turns the check on.
Implementations§
Source§impl MutationConfig
impl MutationConfig
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
True when no key is set.
Trait Implementations§
Source§impl Clone for MutationConfig
impl Clone for MutationConfig
Source§impl Debug for MutationConfig
impl Debug for MutationConfig
Source§impl Default for MutationConfig
impl Default for MutationConfig
Source§impl<'de> Deserialize<'de> for MutationConfig
impl<'de> Deserialize<'de> for MutationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MutationConfig
impl JsonSchema for MutationConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more