pub struct DbgWrapMutation {
pub target: WrapTarget,
pub marker: DebugMarker,
pub in_function: Option<String>,
}Expand description
Fields§
§target: WrapTargetWhat to wrap.
marker: DebugMarkerDebug marker for tracking.
in_function: Option<String>Only apply in this function (if specified).
Implementations§
Source§impl DbgWrapMutation
impl DbgWrapMutation
Sourcepub fn method_chain(starts_with: impl Into<String>, marker: DebugMarker) -> Self
pub fn method_chain(starts_with: impl Into<String>, marker: DebugMarker) -> Self
Create a new mutation to wrap method chains.
Sourcepub fn method_call(method: impl Into<String>, marker: DebugMarker) -> Self
pub fn method_call(method: impl Into<String>, marker: DebugMarker) -> Self
Create a new mutation to wrap specific method calls.
Sourcepub fn variable(name: impl Into<String>, marker: DebugMarker) -> Self
pub fn variable(name: impl Into<String>, marker: DebugMarker) -> Self
Create a new mutation to wrap variable references.
Sourcepub fn return_expr(function: impl Into<String>, marker: DebugMarker) -> Self
pub fn return_expr(function: impl Into<String>, marker: DebugMarker) -> Self
Create a new mutation to wrap return expressions.
Sourcepub fn in_function(self, name: impl Into<String>) -> Self
pub fn in_function(self, name: impl Into<String>) -> Self
Only apply in a specific function.
Sourcepub fn transform_fn(&self, func: &PureFn) -> (PureFn, usize)
pub fn transform_fn(&self, func: &PureFn) -> (PureFn, usize)
Transform a function, handling return expression wrapping.
Trait Implementations§
Source§impl Clone for DbgWrapMutation
impl Clone for DbgWrapMutation
Source§fn clone(&self) -> DbgWrapMutation
fn clone(&self) -> DbgWrapMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DbgWrapMutation
impl Debug for DbgWrapMutation
Source§impl Mutation for DbgWrapMutation
impl Mutation for DbgWrapMutation
Source§fn mutation_type(&self) -> &'static str
fn mutation_type(&self) -> &'static str
Get the mutation type name
Source§fn validate(&self, _file: &PureFile) -> ValidationResult
fn validate(&self, _file: &PureFile) -> ValidationResult
Validate the mutation before applying Read more
Source§fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
Check if this mutation can proceed with the given strategy
Auto Trait Implementations§
impl Freeze for DbgWrapMutation
impl RefUnwindSafe for DbgWrapMutation
impl Send for DbgWrapMutation
impl Sync for DbgWrapMutation
impl Unpin for DbgWrapMutation
impl UnsafeUnpin for DbgWrapMutation
impl UnwindSafe for DbgWrapMutation
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