pub struct MutationReplayOptions {
pub analysis: AnalysisOptions,
pub file: String,
pub mutant_id: String,
pub span: (u32, u32),
pub operator: Option<Operator>,
pub export: Option<String>,
pub args: Option<Vec<Value>>,
pub runtime: Option<PathBuf>,
pub runner_config: Option<PathBuf>,
pub call_timeout: Option<Duration>,
pub runner_timeout: Option<Duration>,
}Expand description
Options of crate::replay_mutation: one export called on the original
and on one mutant.
Fields§
§analysis: AnalysisOptionsShared project, config and cache options.
file: StringThe root-relative path of the file of the mutant, with forward slashes.
mutant_id: StringThe id of the mutant.
span: (u32, u32)The original byte span of the mutant. Two mutants can share an id in runs of other scopes, so the span selects the mutant.
operator: Option<Operator>The operator of the mutant, which finds the mutant faster and also
for an opt-in operator. None tries each operator.
export: Option<String>The export to call. None calls the export whose declaration holds
the function of the mutant.
args: Option<Vec<Value>>The arguments of each call, in the replay encoding. None replays
the inputs that a --record-args values run recorded for the
export, up to the first witness.
runtime: Option<PathBuf>The JavaScript runtime, as for a run.
runner_config: Option<PathBuf>The config file of the test runner, as for a run.
call_timeout: Option<Duration>The time limit of one call, at most 10 minutes. None uses 5
seconds.
runner_timeout: Option<Duration>The timeout of the companion init. None uses 120 seconds.
Trait Implementations§
Source§impl Clone for MutationReplayOptions
impl Clone for MutationReplayOptions
Source§impl Debug for MutationReplayOptions
impl Debug for MutationReplayOptions
Auto Trait Implementations§
impl Forget for MutationReplayOptions
impl Freeze for MutationReplayOptions
impl Move for MutationReplayOptions
impl RefUnwindSafe for MutationReplayOptions
impl Send for MutationReplayOptions
impl Sync for MutationReplayOptions
impl Unpin for MutationReplayOptions
impl UnsafeUnpin for MutationReplayOptions
impl UnwindSafe for MutationReplayOptions
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