Class: Mutant::Result::Subject
- Inherits:
-
Object
- Object
- Mutant::Result::Subject
- Includes:
- Mutant::Result, Coverage
- Defined in:
- lib/mutant/result.rb
Overview
Subject result
Instance Method Summary collapse
-
#alive_mutation_results ⇒ Array<Result::Mutation>
private
Return killed mutations.
-
#amount_mutation_results ⇒ Fixnum
private
Return amount of mutations.
-
#amount_mutations ⇒ Fixnum
private
Return amount of mutations.
-
#amount_mutations_alive ⇒ Fixnum
private
Return number of alive mutations.
-
#amount_mutations_killed ⇒ Fixnum
private
Return number of killed mutations.
-
#continue? ⇒ Boolean
private
Test if runner should continue on subject.
-
#killed_mutation_results ⇒ Array<Result::Mutation>
private
Return 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.
Return killed mutations
181 182 183 |
# File 'lib/mutant/result.rb', line 181 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.
Return amount of mutations
192 193 194 |
# File 'lib/mutant/result.rb', line 192 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.
Return amount of mutations
202 203 204 |
# File 'lib/mutant/result.rb', line 202 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.
Return number of alive mutations
222 223 224 |
# File 'lib/mutant/result.rb', line 222 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.
Return number of killed mutations
212 213 214 |
# File 'lib/mutant/result.rb', line 212 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
171 172 173 |
# File 'lib/mutant/result.rb', line 171 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.
Return alive mutations
232 233 234 |
# File 'lib/mutant/result.rb', line 232 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
161 162 163 |
# File 'lib/mutant/result.rb', line 161 def success? alive_mutation_results.empty? end |