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

35 lines
720 B
Ruby
Raw Normal View History

module Mutant
class Mutator
class Node
# Mutator that does not do mutations on ast
class Noop < self
# Literal references to self do not need to be mutated?
handle(
:self, :zsuper, :not, :or, :and, :defined,
2013-06-14 14:54:02 -04:00
:next, :break, :match, :gvar, :cvar, :ensure, :rescue,
2013-06-18 19:40:19 -04:00
:dstr, :dsym, :yield, :begin, :rescue, :gvasgn,
:lvar,
:const,
:blockarg,
:block_pass,
:ivar,
:restarg
)
2013-04-17 23:31:21 -04:00
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
end
2013-06-04 17:44:32 -04:00
2013-06-14 14:54:02 -04:00
end # Noop
2013-06-04 17:44:32 -04:00
end # Node
end # Mutator
end # Mutant