Class: Mutant::Killer::Forking

Inherits:
Mutant::Killer show all
Defined in:
lib/mutant/killer/forking.rb

Overview

A killer that executes other killer in forked environemnts

Instance Attribute Summary collapse

Attributes inherited from Mutant::Killer

#mutation, #runtime, #strategy

Instance Method Summary collapse

Methods inherited from Mutant::Killer

#fail?, #identification, #mutation_source, #original_source, type, #type

Constructor Details

#initialize(killer) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initalize killer

Parameters:

  • killer (Killer)

    the killer that will be used



78
79
80
# File 'lib/mutant/killer/forking.rb', line 78

def initialize(killer)
  @killer = killer
end

Instance Attribute Details

#killerKiller (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return killer

Returns:



67
68
69
# File 'lib/mutant/killer/forking.rb', line 67

def killer
  @killer
end

Instance Method Details

#new(strategy, mutation) ⇒ Killer::Forked

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return killer instance

Parameters:

Returns:



91
92
93
# File 'lib/mutant/killer/forking.rb', line 91

def new(strategy, mutation)
  Forked.new(killer, strategy, mutation)
end