Class: Mutant::Config::CoverageCriteria Private
- Inherits:
-
Object
- Object
- Mutant::Config::CoverageCriteria
- Defined in:
- lib/mutant/config/coverage_criteria.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.
Configuration of coverge conditions
Constant Summary collapse
- EMPTY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
new( process_abort: nil, test_result: nil, timeout: nil )
- DEFAULT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
new( process_abort: false, test_result: true, timeout: false )
- TRANSFORM =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Transform::Sequence.new( steps: [ Transform::Hash.new( optional: [ Transform::Hash::Key.new( transform: Transform::BOOLEAN, value: 'process_abort' ), Transform::Hash::Key.new( transform: Transform::BOOLEAN, value: 'test_result' ), Transform::Hash::Key.new( transform: Transform::BOOLEAN, value: 'timeout' ) ], required: [] ), Transform::Hash::Symbolize.new, ->(value) { Either::Right.new(DEFAULT.with(**value)) } ] )
Instance Method Summary collapse
-
#merge(other) ⇒ CoverageCriteria
private
Merge coverage criteria with other instance.
Instance Method Details
#merge(other) ⇒ CoverageCriteria
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.
Merge coverage criteria with other instance
Values from the other instance have precedence.
53 54 55 56 57 58 59 |
# File 'lib/mutant/config/coverage_criteria.rb', line 53 def merge(other) self.class.new( process_abort: overwrite(other, :process_abort), test_result: overwrite(other, :test_result), timeout: overwrite(other, :timeout) ) end |