class

Crowbar::Context

Inherits Reference < Object

Execution context passed to mutators, selectors, and rules. Manages the deterministic PRNG, iteration counter, and current metadata trail.

Constructors

new(seed : UInt64 = PRNG.default_seed)
Source

Instance methods

add_sample(buf : Buffer) : Nil
Source
begin_iteration(input_size : Int32) : Metadata
Source
current_metadata
Source
current_metadata=(current_metadata : Metadata | Nil)
Source
iteration
Source
iteration=(iteration : Int64)
Source
prng
Source
record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
Source
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
Source
secondary_samples
Source
secondary_samples=(secondary_samples : Array(Buffer))
Source
seed
Source
seed=(new_seed : UInt64)
Source
seek(offset : Int) : Nil
Source