Sha256: e74b48f655edf4b3b19864fbf2314ba2fe1c4677a767a8a5bd594c13b5e82b07
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
module BloodContracts class Debugger < Runner def runs @runs ||= storage.find_all_samples(ENV["debug"]).each end def iterations runs.size end def call return super if debugging_samples? true end def description return super if debugging_samples? "be skipped in current debugging session" end private def match_rules?(matches_storage:) matcher.call(*storage.load_sample(runs.next), storage: matches_storage) end def unexpected_further_investigation ENV["debug"] end def further_investigation ENV["debug"] end def debugging_samples? runs.size.positive? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blood_contracts-0.2.1 | lib/blood_contracts/debugger.rb |
blood_contracts-0.2.0 | lib/blood_contracts/debugger.rb |