Class: Mutant::Result::Subject Private
- Inherits:
-
Object
- Object
- Mutant::Result::Subject
- Includes:
- Mutant::Result, Coverage
- 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 Coverage
Instance Method Summary collapse
-
#alive_mutation_results ⇒ Array<Result::Mutation>
private
Alive mutations.
-
#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.
-
#success? ⇒ Boolean
private
Test if subject was processed successful.
Methods included from Coverage
Methods included from Mutant::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
144 145 146 |
# File 'lib/mutant/result.rb', line 144 def alive_mutation_results mutation_results.reject(&:success?) end |
#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
152 153 154 |
# File 'lib/mutant/result.rb', line 152 def amount_mutation_results mutation_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
159 160 161 |
# File 'lib/mutant/result.rb', line 159 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
173 174 175 |
# File 'lib/mutant/result.rb', line 173 def amount_mutations_alive alive_mutation_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
166 167 168 |
# File 'lib/mutant/result.rb', line 166 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
137 138 139 |
# File 'lib/mutant/result.rb', line 137 def success? alive_mutation_results.empty? end |