Class: Mutineer::Mutators::ConditionTrue
- Inherits:
-
ConditionForcing
- Object
- Prism::Visitor
- Base
- ConditionForcing
- Mutineer::Mutators::ConditionTrue
- Defined in:
- lib/mutineer/mutators/condition_forcing.rb
Overview
Condition-forcing mutator: the condition becomes true (Tier-2).
An if branch always runs; an unless branch never runs. The mutant
survives when no test runs the code with the condition false (for an
if) or true (for an unless) and checks what changes.
Constant Summary collapse
- VALUE =
The literal the condition is replaced with.
true- OPERATOR =
The operator name mutations carry.
:condition_true
Constants inherited from ConditionForcing
Mutineer::Mutators::ConditionForcing::LITERALS
Method Summary
Methods inherited from ConditionForcing
#force, #replacement, #unwrap, #visit_def_node, #visit_if_node, #visit_unless_node, #writes?