Class: Henitai::EquivalenceDetector
- Inherits:
-
Object
- Object
- Henitai::EquivalenceDetector
- Defined in:
- lib/henitai/equivalence_detector.rb
Overview
Detects obvious equivalent mutants before execution.
The detector is intentionally conservative: it only marks mutations as equivalent when the AST shape and the operand literals make the equivalence obvious enough to be useful.
Instance Method Summary collapse
Instance Method Details
#analyze(mutant) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/henitai/equivalence_detector.rb', line 12 def analyze(mutant) return mutant unless equivalent_mutation?(mutant) mutant.status = :equivalent mutant end |