Sha256: 1997e4b0d8fb56c4f4779336d66cdf32db86788fc8e58522e90bcaedd24c182c

Contents?: true

Size: 429 Bytes

Versions: 23

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

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

        handle(:defined?)

        children :expression

      private

        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

23 entries across 23 versions & 1 rubygems

Version Path
mutant-0.10.18 lib/mutant/mutator/node/defined.rb
mutant-0.10.17 lib/mutant/mutator/node/defined.rb
mutant-0.10.16 lib/mutant/mutator/node/defined.rb
mutant-0.10.15 lib/mutant/mutator/node/defined.rb
mutant-0.10.14 lib/mutant/mutator/node/defined.rb
mutant-0.10.13 lib/mutant/mutator/node/defined.rb
mutant-0.10.12 lib/mutant/mutator/node/defined.rb
mutant-0.10.11 lib/mutant/mutator/node/defined.rb
mutant-0.10.10 lib/mutant/mutator/node/defined.rb
mutant-0.10.9 lib/mutant/mutator/node/defined.rb
mutant-0.10.8 lib/mutant/mutator/node/defined.rb
mutant-0.10.7 lib/mutant/mutator/node/defined.rb
mutant-0.10.6 lib/mutant/mutator/node/defined.rb
mutant-0.10.5 lib/mutant/mutator/node/defined.rb
mutant-0.10.4 lib/mutant/mutator/node/defined.rb
mutant-0.10.1 lib/mutant/mutator/node/defined.rb
mutant-0.10.0 lib/mutant/mutator/node/defined.rb
mutant-0.9.14 lib/mutant/mutator/node/defined.rb
mutant-0.9.13 lib/mutant/mutator/node/defined.rb
mutant-0.9.12 lib/mutant/mutator/node/defined.rb