Class: Mutant::Runner::Config
- Inherits:
-
Mutant::Runner
- Object
- Mutant::Runner
- Mutant::Runner::Config
- Defined in:
- lib/mutant/runner/config.rb
Overview
Runner for object config
Constant Summary
Constants inherited from Mutant::Runner
Instance Attribute Summary collapse
-
#subjects ⇒ Enumerable<Runner::Subject>
readonly
private
Return subject runners.
Attributes inherited from Mutant::Runner
Class Method Summary collapse
-
.run(config) ⇒ Runner
private
Run runner for object.
Instance Method Summary collapse
-
#failed_subjects ⇒ Enumerable<Subject>
private
Return failed subjects.
-
#strategy ⇒ Strategy
private
Return strategy.
-
#success? ⇒ true, false
private
Test if run was successful.
Methods inherited from Mutant::Runner
#initialize, #reporter, #runtime, #stop?
Constructor Details
This class inherits a constructor from Mutant::Runner
Instance Attribute Details
#subjects ⇒ Enumerable<Runner::Subject> (readonly)
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 subject runners
30 31 32 |
# File 'lib/mutant/runner/config.rb', line 30 def subjects @subjects end |
Class Method Details
.run(config) ⇒ Runner
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.
Run runner for object
19 20 21 22 |
# File 'lib/mutant/runner/config.rb', line 19 def self.run(config) handler = lookup(config.class) handler.new(config) end |
Instance Method Details
#failed_subjects ⇒ Enumerable<Subject>
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 failed subjects
38 39 40 |
# File 'lib/mutant/runner/config.rb', line 38 def failed_subjects subjects.reject(&:success?) end |
#strategy ⇒ Strategy
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 strategy
64 65 66 |
# File 'lib/mutant/runner/config.rb', line 64 def strategy config.strategy end |
#success? ⇒ true, false
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 run was successful
53 54 55 |
# File 'lib/mutant/runner/config.rb', line 53 def success? failed_subjects.empty? end |