Sha256: ba889e5094b24877c287d96515545c355898e5a609391a5d54e302d6473e3bb5

Contents?: true

Size: 610 Bytes

Versions: 26

Compression:

Stored size: 610 Bytes

Contents

# encoding: utf-8

module Mutant
  class Killer
    # Abstract base class for killer with static result
    class Static < self

      # Return result
      #
      # @return [true]
      #   if mutation was killed
      #
      # @return [false]
      #   otherwise
      #
      # @api private
      #
      def run
        self.class::RESULT
      end

      # Killer that is always successful
      class Success < self
        RESULT = true
      end # Success

      # Killer that always fails
      class Fail < self
        RESULT = false
      end # Fail

    end # Static
  end # Killer
end # Mutant

Version data entries

26 entries across 26 versions & 1 rubygems

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