pub struct ReplayEngine<'a> { /* private fields */ }Expand description
Engine for replaying recorded mutations.
Implementations§
Source§impl<'a> ReplayEngine<'a>
impl<'a> ReplayEngine<'a>
Sourcepub fn with_mode(self, mode: ReplayMode) -> Self
pub fn with_mode(self, mode: ReplayMode) -> Self
Set the replay mode.
Sourcepub fn replay_all(
&mut self,
file: &mut PureFile,
) -> Result<ReplayResult, ReplayError>
pub fn replay_all( &mut self, file: &mut PureFile, ) -> Result<ReplayResult, ReplayError>
Replay all mutations in the log to a single file.
This is the simplest replay mode - applies all mutations sequentially.
Sourcepub fn replay_file(
&mut self,
target_path: &Path,
file: &mut PureFile,
) -> Result<ReplayResult, ReplayError>
pub fn replay_file( &mut self, target_path: &Path, file: &mut PureFile, ) -> Result<ReplayResult, ReplayError>
Replay mutations for a specific file path.
Only applies mutations that target the given file.
Sourcepub fn analyze(&self) -> ReplayAnalysis
pub fn analyze(&self) -> ReplayAnalysis
Get statistics about replayable mutations in the log.
Auto Trait Implementations§
impl<'a> Freeze for ReplayEngine<'a>
impl<'a> RefUnwindSafe for ReplayEngine<'a>
impl<'a> Send for ReplayEngine<'a>
impl<'a> Sync for ReplayEngine<'a>
impl<'a> Unpin for ReplayEngine<'a>
impl<'a> UnsafeUnpin for ReplayEngine<'a>
impl<'a> UnwindSafe for ReplayEngine<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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