Skip to main content

Options

Struct Options 

Source
pub struct Options {
Show 19 fields pub dir: PathBuf, pub package: Option<String>, 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 opt_level: Option<u8>, pub audit: Option<usize>, pub cargo: CargoConfig, pub jobs: usize, pub all_files: bool, pub doc: bool,
}

Fields§

§dir: PathBuf

Directory of the package (or workspace) to analyse.

§package: Option<String>§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.

§opt_level: Option<u8>

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

§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.

§doc: bool

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

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> 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, 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.