Sha256: 653fb28f7067a3bd9a8169698aee75d33613c7ccafa5a8e492a0f8d01e8abdae
Contents?: true
Size: 727 Bytes
Versions: 17
Compression:
Stored size: 727 Bytes
Contents
module Mutant class Mutator class Node class Literal < self # Mutator for regexp literals class Regex < self handle(:regexp) EMPTY_STRING = ''.freeze # No input can ever be matched with this NULL_REGEXP_SOURCE = 'a\A'.freeze children :source, :options private # Emit mutants # # @return [undefined] # # @api private # def dispatch emit_nil emit_self(s(:str, EMPTY_STRING), options) emit_self(s(:str, NULL_REGEXP_SOURCE), options) end end # Regex end # Literal end # Node end # Mutator end # Mutant
Version data entries
17 entries across 17 versions & 1 rubygems