class

Crytic::Mutation::InjectMutatedSubjectIntoSpecs

Inherits Crystal::Visitor / Reference / Object

Constructors

new(path : String, source : String, mutated_subject : MutatedSubject, tracker : Tracker)
Source

Instance methods

astree
Source
astree?
Source
enriched_source
Source
enriched_source?
Source
path
Source
process

Inject in AST tree if required.

Source
to_mutated_source
Source
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.

Source
visit(node : Crystal::ASTNode)
Source