class Crytic::Mutation::InjectMutatedSubjectIntoSpecs

Defined in:

crytic/mutation/inject_mutated_subject_into_specs.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, source : String, mutated_subject : MutatedSubject, tracker : Tracker) #

Instance Method Detail

def astree : Crystal::ASTNode #

def astree? : Crystal::ASTNode | Nil #

def enriched_source : String #

def enriched_source? : String | Nil #

def path : String #

def process #

Inject in AST tree if required.


def to_mutated_source #

def visit(node : Crystal::Require) #

Management of required file is nasty and should be improved Since I've hard time to replace node on visit, I change the file argument to a number linked to an array of files Then on finalization, we replace each require "xxx" by the proper file.


def visit(node : Crystal::ASTNode) #