Sha256: 32d81805ee15eea95a12b3d74d3516314136d1977a25f0ce5cdd3e138f174f03

Contents?: true

Size: 574 Bytes

Versions: 8

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node
      module Regexp
        # Mutator for end of line or before end of string anchor `\Z`
        class EndOfStringOrBeforeEndOfLineAnchor < Node
          handle(:regexp_eos_ob_eol_anchor)

          # Emit mutations
          #
          # Replace `\Z` with `\z`
          #
          # @return [undefined]
          def dispatch
            emit(s(:regexp_eos_anchor))
          end
        end # EndOfStringOrBeforeEndOfLineAnchor
      end # Regexp
    end # Node
  end # Mutator
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.24 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.23 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.22 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.21 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.20 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.19 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.18 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.17 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb