Class: Mutant::Result::Env Private
- Inherits:
-
Object
- Object
- Mutant::Result::Env
- Includes:
- Mutant::Result, CoverageMetric
- 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.
Env result object
Constant Summary
Constants included from CoverageMetric
Instance Method Summary collapse
-
#amount_mutations ⇒ Integer
private
Amount of mutations.
-
#failed_subject_results ⇒ Array<Result::Subject>
private
Failed subject results.
-
#stop? ⇒ Boolean
private
Test if processing needs to stop.
-
#success? ⇒ Boolean
private
Test if run is successful.
Methods included from CoverageMetric
Methods included from Mutant::Result
Instance Method Details
#amount_mutations ⇒ Integer
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.
Amount of mutations
108 109 110 |
# File 'lib/mutant/result.rb', line 108 def amount_mutations env.mutations.length end |
#failed_subject_results ⇒ Array<Result::Subject>
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.
Failed subject results
95 96 97 |
# File 'lib/mutant/result.rb', line 95 def failed_subject_results subject_results.reject(&:success?) end |
#stop? ⇒ 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 processing needs to stop
116 117 118 |
# File 'lib/mutant/result.rb', line 116 def stop? env.config.fail_fast && !subject_results.all?(&:success?) 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 run is successful
87 88 89 |
# File 'lib/mutant/result.rb', line 87 def success? coverage.eql?(Rational(1)) end |