Class: Mutant::Killer::Forked

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

Overview

Killer that executes other killer in forked environment

Instance Attribute Summary

Attributes inherited from Mutant::Killer

#mutation, #runtime, #strategy

Instance Method Summary collapse

Methods inherited from Mutant::Killer

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

Constructor Details

#initialize(killer, strategy, mutation) ⇒ 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.

Initialize object

Parameters:



15
16
17
18
# File 'lib/mutant/killer/forking.rb', line 15

def initialize(killer, strategy, mutation)
  @killer = killer
  super(strategy, mutation)
end

Instance Method Details

#typeString

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 type

Returns:

  • (String)


26
27
28
# File 'lib/mutant/killer/forking.rb', line 26

def type
  @killer.type
end