Sha256: bbc149d74136d9e9b5b4cc9246ef4b5b4e7adb7829c8428215feacfebea3a0ce
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
module Mutant class Mutator class Node class Literal < self # Mutator for regexp literals class Regex < self handle(:regexp) # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.3.0.beta20 | lib/mutant/mutator/node/literal/regex.rb |
mutant-0.3.0.beta19 | lib/mutant/mutator/node/literal/regex.rb |