free_mutant/lib/mutant/mutator/node/literal/symbol.rb
Markus Schirp caf6c368d0 Remove indeterministic mutations
A mutation test that passes/fails on code today should also pass/fail on
the same code tomorrow.

* Closes #173
* Closes #127
* Closes #27
2014-05-10 14:37:25 +00:00

35 lines
638 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
class Literal < self
# Mutator for symbol literals
class Symbol < self
handle(:sym)
children :value
PREFIX = '__mutant__'.freeze
private
# Emit mutatns
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
Mutator::Util::Symbol.each(value, self) do |value|
emit_self(value)
end
end
end # Symbol
end # Literal
end # Node
end # Mutator
end # Mutant