class Crytic::Mutation::InjectMutatedSubjectIntoSpecs
- Crytic::Mutation::InjectMutatedSubjectIntoSpecs
- Crystal::Visitor
- Reference
- Object
Defined in:
crytic/mutation/inject_mutated_subject_into_specs.crConstant Summary
-
STR_CAPACITY =
2 ** 20
Constructors
Class Method Summary
- .already_covered_file_name
- .cover_file(file, &)
- .file_list
- .project_path : String
- .project_path? : String | Nil
- .register_file(f)
- .relative_path_to_project(path)
- .require_expanders
- .reset
Instance Method Summary
- #astree : Crystal::ASTNode
- #astree? : Crystal::ASTNode | Nil
- #enriched_source : String
- #enriched_source? : String | Nil
- #id : Int32
- #md5_signature : String
- #path : String
-
#process
Inject in AST tree if required.
- #required_at : Int32
- #source : String
- #to_covered_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, required_at : Int32 = 0)
#
Class Method Detail
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.