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

28 lines
485 B
Ruby
Raw Normal View History

module Mutant
class Mutator
class Node
2014-04-22 17:55:58 +00:00
# Emitter for perl style match current line node
class MatchCurrentLine < self
handle :match_current_line
children :regexp
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_singletons
emit_regexp_mutations
end
end # MatchCurrentLine
end # Node
end # Mutator
end # Mutant