Sha256: 561f7e5321efd37b09d01e96835bb22e1963a21ea5ea40bfa82ecc6b786eb5b5

Contents?: true

Size: 771 Bytes

Versions: 13

Compression:

Stored size: 771 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.3.0.beta21 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta20 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta19 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta18 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta17 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta16 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta15 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta14 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta13 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta12 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta11 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta10 lib/mutant/mutation/neutral.rb
mutant-0.3.0.beta9 lib/mutant/mutation/neutral.rb