Sha256: 438d79f7b8157969ba2329399d8a0f798e880750906b1ac30583914400d38aa9

Contents?: true

Size: 542 Bytes

Versions: 8

Compression:

Stored size: 542 Bytes

Contents

module Mutest
  class Mutator
    class Node
      # OrAsgn mutator
      class OrAsgn < self
        handle(:or_asgn)

        children :left, :right

        private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_singletons
          emit_right_mutations
          return if n_ivasgn?(left)
          emit_left_mutations do |node|
            AST::Types::ASSIGNABLE_VARIABLES.include?(node.type)
          end
        end
      end # OrAsgn
    end # Node
  end # Mutator
end # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.8 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.7 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.6 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.5 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.4 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.3 lib/mutest/mutator/node/or_asgn.rb
mutest-0.0.2 lib/mutest/mutator/node/or_asgn.rb