pub struct TarantulaEngine { /* private fields */ }Expand description
Tarantula fault localization engine
Implementations§
Source§impl TarantulaEngine
impl TarantulaEngine
Sourcepub fn record_execution(&mut self, file: &str, line: usize, passed: bool)
pub fn record_execution(&mut self, file: &str, line: usize, passed: bool)
Record a test execution
§Arguments
file- Source file pathline- Line numberpassed- Whether the test passed
Sourcepub fn record_test_run(&mut self, passed: bool)
pub fn record_test_run(&mut self, passed: bool)
Record a complete test run
Sourcepub fn report_for_file(&self, file: &str) -> Option<TarantulaReport>
pub fn report_for_file(&self, file: &str) -> Option<TarantulaReport>
Generate report for a specific file
Sourcepub fn generate_all_reports(&self) -> Vec<TarantulaReport>
pub fn generate_all_reports(&self) -> Vec<TarantulaReport>
Generate reports for all files with suspicious lines
Filter lines involving Rc or RefCell state updates
Returns only lines that contain Rc/RefCell patterns, which are relevant for WASM state sync debugging.
Trait Implementations§
Source§impl Debug for TarantulaEngine
impl Debug for TarantulaEngine
Source§impl Default for TarantulaEngine
impl Default for TarantulaEngine
Source§fn default() -> TarantulaEngine
fn default() -> TarantulaEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TarantulaEngine
impl RefUnwindSafe for TarantulaEngine
impl Send for TarantulaEngine
impl Sync for TarantulaEngine
impl Unpin for TarantulaEngine
impl UnsafeUnpin for TarantulaEngine
impl UnwindSafe for TarantulaEngine
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().