Sha256: 52f4537115ef668243f9e2f361de4bb68d7185ec5375d9f29bb036cde8d91b10

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

module Mutant
  class Mutator
    class Node
      # Namespace for `defined?` mutations
      class Defined < self

        handle(:defined?)

        children :expression

      private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_singletons
          emit(N_TRUE)

          emit_expression_mutations { |node| !n_self?(node) }
        end

      end # Defined
    end # Node
  end # Mutator
end # Mutant

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/defined.rb
mutant-0.8.15 lib/mutant/mutator/node/defined.rb
mutant-0.8.14 lib/mutant/mutator/node/defined.rb
mutant-0.8.13 lib/mutant/mutator/node/defined.rb
mutant-0.8.12 lib/mutant/mutator/node/defined.rb
mutant-0.8.11 lib/mutant/mutator/node/defined.rb