Class: Mutant::Killer
- Inherits:
-
Object
- Object
- Mutant::Killer
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/killer.rb,
lib/mutant/killer/rspec.rb,
lib/mutant/killer/static.rb,
lib/mutant/killer/forking.rb
Overview
Abstract base class for mutant killers
Defined Under Namespace
Classes: Forked, Forking, Rspec, Static
Instance Attribute Summary collapse
-
#mutation ⇒ Mutation
readonly
private
Return mutation to kill.
-
#runtime ⇒ Float
readonly
private
Return runtime of killer.
-
#strategy ⇒ Strategy
readonly
private
Return strategy.
Class Method Summary collapse
-
.type ⇒ String
private
Return name of killer.
Instance Method Summary collapse
-
#fail? ⇒ true, false
private
Test for kill failure.
-
#identification ⇒ String
private
Return identification.
-
#mutation_source ⇒ String
private
Return mutated source.
-
#original_source ⇒ String
private
Return original source.
-
#type ⇒ String
private
Return mae of killer.
Instance Attribute Details
#mutation ⇒ Mutation (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 mutation to kill
93 94 95 |
# File 'lib/mutant/killer.rb', line 93 def mutation @mutation end |
#runtime ⇒ Float (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 runtime of killer
26 27 28 |
# File 'lib/mutant/killer.rb', line 26 def runtime @runtime end |
#strategy ⇒ Strategy (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 strategy
54 55 56 |
# File 'lib/mutant/killer.rb', line 54 def strategy @strategy end |
Class Method Details
.type ⇒ String
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 name of killer
62 63 64 |
# File 'lib/mutant/killer.rb', line 62 def self.type self::TYPE end |
Instance Method Details
#fail? ⇒ true, false
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.
Test for kill failure
16 17 18 |
# File 'lib/mutant/killer.rb', line 16 def fail? !@killed end |
#identification ⇒ String
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 identification
72 73 74 |
# File 'lib/mutant/killer.rb', line 72 def identification "#{type}:#{mutation.identification}".freeze end |
#mutation_source ⇒ String
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 mutated source
44 45 46 |
# File 'lib/mutant/killer.rb', line 44 def mutation_source mutation.source end |
#original_source ⇒ String
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 original source
34 35 36 |
# File 'lib/mutant/killer.rb', line 34 def original_source mutation.original_source end |
#type ⇒ String
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 mae of killer
83 84 85 |
# File 'lib/mutant/killer.rb', line 83 def type self.class.type end |