Class: Mutineer::Mutators::ConditionFalse

Inherits:
ConditionForcing show all
Defined in:
lib/mutineer/mutators/condition_forcing.rb

Overview

Condition-forcing mutator: the condition becomes false (Tier-2).

An if branch never runs; an unless branch always runs. The mutant survives when no test needs the branch the condition guards (for an if) or skips it (for an unless).

Constant Summary collapse

VALUE =

The literal the condition is replaced with.

false
OPERATOR =

The operator name mutations carry.

:condition_false

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?

Methods inherited from Base

#heredoc?, #mutations_for