Sha256: a3c58738116587510d1557473f24d4b7d430b16b0cac485cf3d9b674f9f272b2

Contents?: true

Size: 862 Bytes

Versions: 26

Compression:

Stored size: 862 Bytes

Contents

# encoding: utf-8

module Mutant
  class Killer

    # A killer that executes other killer in forked environemnts
    class Forking < self
      include Equalizer.new(:killer)

      # Return killer
      #
      # @return [Killer]
      #
      # @api private
      #
      attr_reader :killer

      # Initalize killer
      #
      # @param [Killer] killer
      #   the killer that will be used
      #
      # @return [undefined]
      #
      # @api private
      #
      def initialize(killer)
        @killer = killer
      end

      # Return killer instance
      #
      # @param [Strategy] strategy
      # @param [Mutation] mutation
      #
      # @return [Killer::Forked]
      #
      # @api private
      #
      def new(strategy, mutation)
        Forked.new(killer, strategy, mutation)
      end

    end # Forking
  end # Killer
end # Mutant

Version data entries

26 entries across 26 versions & 1 rubygems

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