free_mutant/lib/mutant/mutator/node/while.rb
Markus Schirp 16a11d2c3c Handle Rubinius::AST::While
I know this can result in infinite loops. So also add TODO note about
timeout!
2013-01-01 21:41:39 +01:00

24 lines
383 B
Ruby

module Mutant
class Mutator
class Node
class While < self
handle(Rubinius::AST::While)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_attribute_mutations(:condition)
emit_attribute_mutations(:body)
end
end
end
end
end