Class: Mutant::Result::Subject
- Inherits:
-
Object
- Object
- Mutant::Result::Subject
- Includes:
- Mutant::Result, Coverage
- Defined in:
- lib/mutant/result.rb
Overview
Subject result
Constant Summary
Constants included from Coverage
Instance Method Summary collapse
-
#alive_mutation_results ⇒ Array<Result::Mutation>
private
Killed 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.
-
#continue? ⇒ Boolean
private
Test if runner should continue on subject.
-
#killed_mutation_results ⇒ Array<Result::Mutation>
private
Alive 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.
Killed mutations
163 164 165 |
# File 'lib/mutant/result.rb', line 163 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
173 174 175 |
# File 'lib/mutant/result.rb', line 173 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
182 183 184 |
# File 'lib/mutant/result.rb', line 182 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
200 201 202 |
# File 'lib/mutant/result.rb', line 200 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
191 192 193 |
# File 'lib/mutant/result.rb', line 191 def amount_mutations_killed killed_mutation_results.length end |
#continue? ⇒ 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 runner should continue on subject
154 155 156 |
# File 'lib/mutant/result.rb', line 154 def continue? mutation_results.all?(&:success?) end |
#killed_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
209 210 211 |
# File 'lib/mutant/result.rb', line 209 def killed_mutation_results mutation_results.select(&: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 subject was processed successful
145 146 147 |
# File 'lib/mutant/result.rb', line 145 def success? alive_mutation_results.empty? end |