Sha256: 90632640ae226e79b81c6729789d99b159e647f7a8063fc0bd1eaf2aab8b73cd

Contents?: true

Size: 790 Bytes

Versions: 24

Compression:

Stored size: 790 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutation
    # Neutral mutation
    class Neutral < self

      SYMBOL = 'neutral'

      # Noop mutation, special case of neutral
      class Noop < self

        SYMBOL = 'noop'

      end

      # Return identification
      #
      # @return [String]
      #
      # @api private
      #
      def identification
        "#{self.class::SYMBOL}:#{super}"
      end
      memoize :identification

      # Test if killer is successful
      #
      # @param [Killer] killer
      #
      # @return [true]
      #   if killer did NOT killed mutation
      #
      # @return [false]
      #   otherwise
      #
      # @api private
      #
      def success?(killer)
        !killer.killed?
      end

    end # Neutral
  end # Mutation
end # Mutant

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mutant-0.5.12 lib/mutant/mutation/neutral.rb
mutant-0.5.11 lib/mutant/mutation/neutral.rb
mutant-0.5.10 lib/mutant/mutation/neutral.rb
mutant-0.5.9 lib/mutant/mutation/neutral.rb
mutant-0.5.8 lib/mutant/mutation/neutral.rb
mutant-0.5.7 lib/mutant/mutation/neutral.rb
mutant-0.5.6 lib/mutant/mutation/neutral.rb
mutant-0.5.5 lib/mutant/mutation/neutral.rb
mutant-0.5.4 lib/mutant/mutation/neutral.rb
mutant-0.5.3 lib/mutant/mutation/neutral.rb
mutant-0.5.2 lib/mutant/mutation/neutral.rb
mutant-0.5.1 lib/mutant/mutation/neutral.rb
mutant-0.5.0 lib/mutant/mutation/neutral.rb
mutant-0.3.6 lib/mutant/mutation/neutral.rb
mutant-0.3.5 lib/mutant/mutation/neutral.rb
mutant-0.3.4 lib/mutant/mutation/neutral.rb
mutant-0.3.3 lib/mutant/mutation/neutral.rb
mutant-0.3.2 lib/mutant/mutation/neutral.rb
mutant-0.3.1 lib/mutant/mutation/neutral.rb
mutant-0.3.0 lib/mutant/mutation/neutral.rb