Sha256: 167806f32ba8f7f769913511559e1c7cb8ac604f98ea593d86252aff282b3e3b

Contents?: true

Size: 463 Bytes

Versions: 8

Compression:

Stored size: 463 Bytes

Contents

module Mutest
  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 # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

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