Skip to main content

shrink_sequence_by_removing

Function shrink_sequence_by_removing 

Source
pub fn shrink_sequence_by_removing<P, S, A>(
    calls_len: usize,
    run: &mut ShrinkRun,
    should_stop: S,
    on_attempt: A,
    predicate: P,
) -> SequenceShrink
where P: FnMut(&SequenceShrink) -> Option<bool>, S: FnMut() -> bool, A: FnMut(),
Expand description

Shared sequence shrinker. Tries to drop each call; predicate decides whether the candidate should be accepted, rejected, or skipped without spending a replay attempt.