Class: Mutant::Result::Subject Private
- Inherits:
-
Object
- Object
- Mutant::Result::Subject
- 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.
Subject result
Constant Summary
Constants included from CoverageMetric
Instance Method Summary collapse
-
#amount_mutation_results ⇒ Integer
private
Amount of mutations.
-
#amount_mutations ⇒ Integer
private
Amount of mutations.
-
#amount_mutations_alive ⇒ Integer
private
Number of alive mutations.
-
#amount_mutations_killed ⇒ Integer
private
Number of killed mutations.
-
#amount_timeouts ⇒ Integer
private
Amount of mutations.
-
#success? ⇒ Boolean
private
Test if subject was processed successful.
-
#uncovered_results ⇒ Array<Result::Coverage>
private
Alive mutations.
Methods included from CoverageMetric
Methods included from Mutant::Result
Instance Method Details
#amount_mutation_results ⇒ 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
211 212 213 |
# File 'lib/mutant/result.rb', line 211 def amount_mutation_results coverage_results.length end |
#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
225 226 227 |
# File 'lib/mutant/result.rb', line 225 def amount_mutations subject.mutations.length end |
#amount_mutations_alive ⇒ 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.
Number of alive mutations
239 240 241 |
# File 'lib/mutant/result.rb', line 239 def amount_mutations_alive uncovered_results.length end |
#amount_mutations_killed ⇒ 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.
Number of killed mutations
232 233 234 |
# File 'lib/mutant/result.rb', line 232 def amount_mutations_killed covered_results.length end |
#amount_timeouts ⇒ 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
218 219 220 |
# File 'lib/mutant/result.rb', line 218 def amount_timeouts coverage_results.count(&:timeout?) 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
196 197 198 |
# File 'lib/mutant/result.rb', line 196 def success? uncovered_results.empty? end |
#uncovered_results ⇒ Array<Result::Coverage>
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
203 204 205 |
# File 'lib/mutant/result.rb', line 203 def uncovered_results coverage_results.reject(&:success?) end |