Skip to main content

Options

Struct Options 

Source
pub struct Options {
Show 36 fields pub dir: PathBuf, pub package: Option<String>, pub list: bool, pub test_workspace: bool, pub verify: bool, pub work_dir: Option<PathBuf>, pub progress: bool, pub since: Option<String>, pub lines: Vec<String>, pub baseline: Option<PathBuf>, pub write_baseline: Option<PathBuf>, pub also_test: Vec<String>, pub dependents: bool, pub effects: bool, pub rebuild: bool, pub error_values: Vec<String>, pub source_only: bool, pub literal_operators: bool, pub shard: Option<Shard>, pub nextest: Option<Nextest>, pub test_selection: TestSelection, pub opt_level: Option<u8>, pub timeout_seconds: Option<u64>, pub baseline_jobs: usize, pub serial_timeout_rechecks: bool, pub wrapper_grace: Duration, pub audit: Option<usize>, pub cargo: CargoConfig, pub jobs: usize, pub all_files: bool, pub git_index: bool, pub copy_fixtures: Vec<PathBuf>, pub copy_fixture_excludes: Vec<PathBuf>, pub output_fixtures: Vec<Fixture>, pub checkpoint: bool, pub doc: bool,
}

Fields§

§dir: PathBuf

Directory of the package (or workspace) to analyse.

§package: Option<String>§list: bool

Return source candidates without running a build.

§test_workspace: bool

Run every member’s tests against the selected package.

§verify: bool

Re-run the tests against one survivor per input gap to confirm the prediction.

§work_dir: Option<PathBuf>

Where to put the copy and its build. Default: <target dir>/tmt.

§progress: bool

Progress lines on stderr.

§since: Option<String>

Analyse only code changed since this git revision (plus untracked files).

§lines: Vec<String>

Analyse only these lines: FILE:FROM-TO, with FILE relative to the package.

§baseline: Option<PathBuf>

Findings listed in this file are not reported.

§write_baseline: Option<PathBuf>

Write the findings of this run to this file, as a baseline for later runs.

§also_test: Vec<String>

Other workspace packages whose tests are run too.

§dependents: bool

Run the tests of every workspace package that depends on the analysed one.

§effects: bool

Trace surviving mutants to say what they change in the tests.

§rebuild: bool

Build and run, one by one, the mutants that cannot be switched at run time.

§error_values: Vec<String>

Rust expressions used as the payload of a Result error mutation.

§source_only: bool§literal_operators: bool§shard: Option<Shard>§nextest: Option<Nextest>§test_selection: TestSelection§opt_level: Option<u8>

Optimisation level to build the tests with, instead of the profile’s own.

§timeout_seconds: Option<u64>

Override the time allowed for each test runner under a mutant.

§baseline_jobs: usize§serial_timeout_rechecks: bool§wrapper_grace: Duration§audit: Option<usize>

Run this many surviving mutants against all tests and record the tests twice.

§cargo: CargoConfig

Cargo’s choice of features and of the lock file, the same for every cargo command.

§jobs: usize

How many mutants to run at the same time.

§all_files: bool

Copy every file of the workspace, including the ones git ignores.

§git_index: bool§copy_fixtures: Vec<PathBuf>§copy_fixture_excludes: Vec<PathBuf>§output_fixtures: Vec<Fixture>§checkpoint: bool§doc: bool

Also run the doc tests (slow: rustdoc recompiles them for every mutant they reach).

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.