class

Crowbar::Minimizer::Reducer

Inherits Reference < Object

Anomaly-preserving test case minimizer and delta debugger. Employs hierarchical delta debugging (bisection chunk slicing, line trimming, and byte simplification) while strictly preserving syntax anomalies such as duplicate keys, malformed grammar boundaries, and protocol discrepancies.

Constructors

new(command : String | Nil = nil, predicate : Proc(Buffer, Bool) | Nil = nil, match_regex : Regex | Nil = nil, timeout_ms : Int32 = 1000, progress_callback : Proc(Int32, Int32, Int32, Nil) | Nil = nil)
Source

Instance methods

command
Source
command=(command : String | Nil)
Source
match_regex
Source
match_regex=(match_regex : Regex | Nil)
Source
predicate
Source
predicate=(predicate : Proc(Buffer, Bool) | Nil)
Source
progress_callback
Source
progress_callback=(progress_callback : Proc(Int32, Int32, Int32, Nil) | Nil)
Source
reduce(input : Buffer) : Buffer

Core reduction loop: reduces input buffer down to minimal reproducer

Source
test_candidate(candidate : Buffer) : Bool

Tests whether a candidate buffer still reproduces the failure predicate

Source
timeout_ms
Source
timeout_ms=(timeout_ms : Int32)
Source