class Crytic::InMemoryMutationsGenerator

Overview

Determines all possible mutations for the given source files.

Defined in:

crytic/generator/in_memory_generator.cr

Constant Summary

ALL_MUTANTS = [Mutant::AndOrSwapPossibilities.new, Mutant::AnyAllSwapPossibilities.new, Mutant::BoolLiteralFlipPossibilities.new, Mutant::ConditionFlipPossibilities.new, Mutant::NumberLiteralChangePossibilities.new, Mutant::NumberLiteralSignFlipPossibilities.new, Mutant::RegexLiteralChangePossibilities.new, Mutant::SelectRejectSwapPossibilities.new, Mutant::StringLiteralChangePossibilities.new] of Mutant::Possibilities
DEFAULT_PREAMBLE = "require \"spec\"\nSpec.fail_fast = true\n"

Constructors

Instance Method Summary

Instance methods inherited from class Crytic::Generator

mutations_for(source : Array(String), specs : Array(String)) mutations_for

Constructor Detail

def self.new(possibilities : Array(Mutant::Possibilities), preamble : String) #

[View source]

Instance Method Detail

def mutation_factory : MutationFactory #

[View source]
def mutation_factory=(mutation_factory : MutationFactory) #

[View source]
def mutations_for(sources : Array(String), specs : Array(String)) #

[View source]