class
Crowbar::Context
- Crowbar::Context
- Reference
- Object
Overview
Execution context passed to mutators, selectors, and rules. Manages the deterministic PRNG, iteration counter, and current metadata trail.
Defined in:
crowbar/context.crConstructors
Instance Method Summary
- #add_sample(buf : Buffer) : Nil
- #begin_iteration(input_size : Int32) : Metadata
- #current_metadata : Metadata | Nil
- #current_metadata=(current_metadata : Metadata | Nil)
- #iteration : Int64
- #iteration=(iteration : Int64)
- #prng : PRNG
- #record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
- #record_step(category : StepCategory, name : String, description : String, range : Tuple(Int32, Int32) | Nil = nil, diff_bytes : Int32 = 0, details : Hash(String, String) = Hash(String, String).new) : TransformationStep | Nil
- #secondary_samples : Array(Buffer)
- #secondary_samples=(secondary_samples : Array(Buffer))
- #seed : UInt64
- #seed=(new_seed : UInt64)
- #seek(offset : Int) : Nil
Constructor Detail
Instance Method Detail
def record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
#
def record_step(category : StepCategory, name : String, description : String, range : Tuple(Int32, Int32) | Nil = nil, diff_bytes : Int32 = 0, details : Hash(String, String) = Hash(String, String).new) : TransformationStep | Nil
#