Class: Mutest::Result::Env Private
- Inherits:
-
Object
- Object
- Mutest::Result::Env
- Includes:
- Mutest::Result, Coverage
- Defined in:
- lib/mutest/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 Coverage
Instance Method Summary collapse
-
#amount_mutations ⇒ Fixnum
private
Amount of mutations.
-
#amount_subjects ⇒ Fixnum
private
Amount of subjects.
-
#failed_subject_results ⇒ Array<Result::Subject>
private
Failed subject results.
-
#success? ⇒ Boolean
private
Test if run is successful.
Methods included from Coverage
Methods included from Mutest::Result
Instance Method Details
#amount_mutations ⇒ Fixnum
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
96 97 98 |
# File 'lib/mutest/result.rb', line 96 def amount_mutations env.mutations.length end |
#amount_subjects ⇒ Fixnum
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 subjects
103 104 105 |
# File 'lib/mutest/result.rb', line 103 def amount_subjects env.subjects.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
84 85 86 |
# File 'lib/mutest/result.rb', line 84 def failed_subject_results subject_results.reject(&: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
76 77 78 |
# File 'lib/mutest/result.rb', line 76 def success? coverage.eql?(Rational(1)) end |