Sha256: dc92a9043527e741e4de3a0b0ed59c1bf16616c8b3e115f3d4b3361bb38f5d60

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

module Mutant
  class Mutator
    class Node
      # Mutator that does not do mutations on ast
      class Noop < self

        # Literal references to self do not need to be mutated?
        handle(:self)

        # These nodes still need a mutator, your contribution is that close!
        handle(
          :zsuper, :not, :or, :and, :defined,
          :next, :break, :match, :gvar, :cvar, :ensure,
          :dstr, :dsym, :yield, :rescue, :redo, :defined?,
          :lvar, :splat, :const, :blockarg, :block_pass, :op_asgn, :regopt,
          :ivar, :restarg, :casgn, :masgn, :resbody, :retry, :arg_expr,
          :kwrestarg, :kwoptarg, :kwarg, :undef, :module, :cbase, :empty,
          :alias, :for, :xstr, :back_ref, :nth_ref, :class, :sclass, :match_with_lvasgn,
          :match_current_line, :or_asgn
        )

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
        end

      end # Noop
    end # Node
  end # Mutator
end # Mutant

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.3.0.beta6 lib/mutant/mutator/node/noop.rb
mutant-0.3.0.beta5 lib/mutant/mutator/node/noop.rb
mutant-0.3.0.beta4 lib/mutant/mutator/node/noop.rb
mutant-0.3.0.beta3 lib/mutant/mutator/node/noop.rb
mutant-0.3.0.beta2 lib/mutant/mutator/node/noop.rb