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) #

[View source]

Instance Method Detail

def astree : Crystal::ASTNode #

[View source]
def astree? : Crystal::ASTNode | Nil #

[View source]
def enriched_source : String #

[View source]
def enriched_source? : String | Nil #

[View source]
def path : String #

[View source]
def process #

Inject in AST tree if required.


[View source]
def to_mutated_source #

[View 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.


[View source]
def visit(node : Crystal::ASTNode) #

[View source]