class

Crowbar::Campaign::Target

Inherits Reference < Object

Represents a targeted test endpoint with corpus seeds, mutation rules, expected non-fatal exception types, and execution boundary.

Constructors

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)
Source

Instance methods

add_expected_error(err_class : Exception.class) : Nil
Source
add_rule(rule : Rule) : Nil
Source
add_sample(sample : Buffer | Bytes | String) : Nil
Source
category
Source
category=(category : TargetCategory)
Source
execution
Source
execution=(execution : Proc(Buffer, Nil) | Nil)
Source
expected_error?(ex : Exception) : Bool
Source
expected_errors
Source
expected_errors=(expected_errors : Array(Exception.class))
Source
mutator_pool
Source
mutator_pool=(mutator_pool : MutatorPool)
Source
name
Source
name=(name : String)
Source
pattern
Source
pattern=(pattern : Pattern)
Source
rules
Source
rules=(rules : Array(Rule))
Source
samples
Source
samples=(samples : Array(Buffer))
Source
timeout
Source
timeout=(timeout : Time::Span)
Source