class
Crowbar::Campaign::Target
- Crowbar::Campaign::Target
- Reference
- Object
Overview
Represents a targeted test endpoint with corpus seeds, mutation rules, expected non-fatal exception types, and execution boundary.
Defined in:
crowbar/campaign/target.crConstructors
Instance Method Summary
- #add_expected_error(err_class : Exception.class) : Nil
- #add_rule(rule : Rule) : Nil
- #add_sample(sample : Buffer | Bytes | String) : Nil
- #category : TargetCategory
- #category=(category : TargetCategory)
- #execution : Proc(Buffer, Nil) | Nil
- #execution=(execution : Proc(Buffer, Nil) | Nil)
- #expected_error?(ex : Exception) : Bool
- #expected_errors : Array(Exception.class)
- #expected_errors=(expected_errors : Array(Exception.class))
- #mutator_pool : MutatorPool
- #mutator_pool=(mutator_pool : MutatorPool)
- #name : String
- #name=(name : String)
- #pattern : Pattern
- #pattern=(pattern : Pattern)
- #rules : Array(Rule)
- #rules=(rules : Array(Rule))
- #samples : Array(Buffer)
- #samples=(samples : Array(Buffer))
- #timeout : Time::Span
- #timeout=(timeout : Time::Span)
Constructor Detail
def self.new(name : String, category : TargetCategory = TargetCategory::Custom, samples : Array(Buffer) = [] of Buffer, rules : Array(Rule) = [] of Rule, expected_errors : Array(Exception.class) = [] of Exception.class, timeout : Time::Span = 500.milliseconds, execution : Proc(Buffer, Nil) | Nil = nil)
#