free_mutant/lib/mutant/mutator/node/mlhs.rb

28 lines
491 B
Ruby
Raw Normal View History

2013-06-14 14:19:53 -04:00
module Mutant
class Mutator
class Node
2013-06-15 11:13:01 -04:00
# Mutator for multiple assignment left hand side nodes
2013-06-14 14:19:53 -04:00
class MLHS < self
handle(:mlhs)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
children.each_index do |index|
mutate_child(index)
delete_child(index)
end
end
end # MLHS
end # Node
end # Mutator
end # Mutant