Class: Mutant::Runner::Killer
- Inherits:
-
Mutant::Runner
- Object
- Mutant::Runner
- Mutant::Runner::Killer
- Defined in:
- lib/mutant/runner/killer.rb
Overview
Killer runner
Constant Summary
Constants inherited from Mutant::Runner
Instance Attribute Summary collapse
-
#report ⇒ Killer::Report
readonly
private
Return kill report.
Attributes inherited from Mutant::Runner
Instance Method Summary collapse
-
#initialize(config, killer) ⇒ undefined
constructor
private
Initialize object.
-
#mutation_dead? ⇒ Boolean
Test if this killer ALONE can determine if mutation is dead.
-
#success? ⇒ Boolean
private
Test if killer ran successfully.
Methods inherited from Mutant::Runner
run, #running?, #runtime, #stop?
Constructor Details
#initialize(config, 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.
Initialize object
53 54 55 56 |
# File 'lib/mutant/runner/killer.rb', line 53 def initialize(config, killer) @killer = killer super(config) end |
Instance Attribute Details
#report ⇒ Killer::Report (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 kill report
24 25 26 |
# File 'lib/mutant/runner/killer.rb', line 24 def report @report end |
Instance Method Details
#mutation_dead? ⇒ Boolean
Test if this killer ALONE can determine if mutation is dead
39 40 41 42 |
# File 'lib/mutant/runner/killer.rb', line 39 def mutation_dead? test_report = report.test_report killer.mutation.should_fail? && test_report.failed? end |
#success? ⇒ Boolean
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 if killer ran successfully
31 32 33 |
# File 'lib/mutant/runner/killer.rb', line 31 def success? @report.success? end |