class Crytic::Mutation::InjectMutatedSubjectIntoSpecs
- Crytic::Mutation::InjectMutatedSubjectIntoSpecs
- Crystal::Visitor
- Reference
- Object
Defined in:
crytic/mutation/inject_mutated_subject_into_specs.crConstructors
Class Method Summary
- .already_parsed_file_name
- .file_list
- .parse_file(file, &)
- .project_path : String
- .project_path? : String | Nil
- .register_file(file)
- .relative_path_to_project(path)
- .require_expanders
-
.reset
Because the class is used and instantiated multiple times, but these are class vars, they need to be reset :(
Instance Method Summary
- #astree : Crystal::ASTNode
- #astree? : Crystal::ASTNode | Nil
- #enriched_source : String
- #enriched_source? : String | Nil
- #path : String
-
#process
Inject in AST tree if required.
- #source : String
- #to_mutated_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.
- #visit(node : Crystal::ASTNode)
Constructor Detail
def self.new(path : String, source : String, subject_path : String, mutated_subject_source : String)
#
Class Method Detail
def self.reset
#
Because the class is used and instantiated multiple times, but these are class vars, they need to be reset :(
Instance Method Detail
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.