class Mutest::Mutator::Node::Regexp::ZeroOrMore

Mutator for zero-or-more quantifier, `*`

Constants

MAP

Public Instance Methods

dispatch() click to toggle source

Replace `/a*/` with `/a+/`, `/a*?/` with `/a+?/`, and `/a*+/` with `/a++/`

@return [undefined]

# File lib/mutest/mutator/node/regexp/zero_or_more.rb, line 20
def dispatch
  emit(s(MAP.fetch(node.type), *children))
  emit_subject_mutations
  emit(subject)
end