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