Class: Mutant::Result::Mutation Private
- Inherits:
-
Object
- Object
- Mutant::Result::Mutation
- Includes:
- Mutant::Result
- Defined in:
- lib/mutant/result.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Mutation result
Instance Method Summary collapse
-
#criteria_result(coverage_criteria) ⇒ Object
private
Create mutation criteria results.
-
#killtime ⇒ Float
private
Time the tests had been running.
-
#process_abort? ⇒ Boolean
private
Test for unexpected process abort.
-
#timeout? ⇒ Boolean
private
Test for timeout.
Methods included from Mutant::Result
Instance Method Details
#criteria_result(coverage_criteria) ⇒ Object
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.
Create mutation criteria results
295 296 297 298 299 300 301 |
# File 'lib/mutant/result.rb', line 295 def criteria_result(coverage_criteria) CoverageCriteria.new( process_abort: coverage_criteria.process_abort && process_abort?, test_result: coverage_criteria.test_result && test_result_success?, timeout: coverage_criteria.timeout && timeout? ) end |
#killtime ⇒ Float
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.
Time the tests had been running
306 307 308 |
# File 'lib/mutant/result.rb', line 306 def killtime isolation_result.value&.runtime || 0.0 end |
#process_abort? ⇒ 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 for unexpected process abort
320 321 322 323 324 |
# File 'lib/mutant/result.rb', line 320 def process_abort? process_status = isolation_result.process_status or return false !timeout? && !process_status.success? end |
#timeout? ⇒ 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 for timeout
313 314 315 |
# File 'lib/mutant/result.rb', line 313 def timeout? !isolation_result.timeout.nil? end |