class Crowbar::Mutators::TimestampMutator

Overview

Injects critical temporal boundary dates and timestamps (Y2038, epoch 0, leap seconds)

Defined in:

crowbar/mutators/arithmetic.cr

Constant Summary

EPOCH_BOUNDARIES = ["0", "-1", "2147483647", "2147483648", "4294967295", "9223372036854775807", "-62135596800", "253402300799"]
ISO_BOUNDARIES = ["1970-01-01T00:00:00Z", "2038-01-19T03:14:07Z", "2024-02-29T23:59:59Z", "2000-02-29T00:00:00Z", "1900-02-29T00:00:00Z", "2016-12-31T23:59:60Z", "9999-12-31T23:59:59Z", "0000-00-00T00:00:00Z"]

Instance Method Summary

Instance methods inherited from class Crowbar::Mutator

adjust_score(delta : Int32) adjust_score, aliases : Array(String) aliases, description : String description, effective_weight : Float64 effective_weight, mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) mutate, name : String name, score : Int32 score, score=(score : Int32) score=, weight : Float64 weight, weight=(weight : Float64) weight=

Constructor methods inherited from class Crowbar::Mutator

new(weight : Float64 = 1.0) new

Instance Method Detail

def description : String #

def mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) #

def name : String #