Class: Mutest::Result::Subject Private
- Inherits:
-
Object
- Object
- Mutest::Result::Subject
- 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.
Subject result
Constant Summary
Constants included from Coverage
Instance Method Summary collapse
-
#alive_mutation_results ⇒ Array<Result::Mutation>
private
Alive mutations.
-
#amount_mutation_results ⇒ Fixnum
private
Amount of mutations.
-
#amount_mutations ⇒ Fixnum
private
Amount of mutations.
-
#amount_mutations_alive ⇒ Fixnum
private
Number of alive mutations.
-
#amount_mutations_killed ⇒ Fixnum
private
Number of killed mutations.
-
#success? ⇒ Boolean
private
Test if subject was processed successful.
Methods included from Coverage
Methods included from Mutest::Result
Instance Method Details
#alive_mutation_results ⇒ Array<Result::Mutation>
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.
Alive mutations
139 140 141 |
# File 'lib/mutest/result.rb', line 139 def alive_mutation_results mutation_results.reject(&:success?) end |
#amount_mutation_results ⇒ 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
147 148 149 |
# File 'lib/mutest/result.rb', line 147 def amount_mutation_results mutation_results.length end |
#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
154 155 156 |
# File 'lib/mutest/result.rb', line 154 def amount_mutations subject.mutations.length end |
#amount_mutations_alive ⇒ 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.
Number of alive mutations
168 169 170 |
# File 'lib/mutest/result.rb', line 168 def amount_mutations_alive alive_mutation_results.length end |
#amount_mutations_killed ⇒ 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.
Number of killed mutations
161 162 163 |
# File 'lib/mutest/result.rb', line 161 def amount_mutations_killed killed_mutation_results.length 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 subject was processed successful
132 133 134 |
# File 'lib/mutest/result.rb', line 132 def success? alive_mutation_results.empty? end |