Class: Mutant::Config::CoverageCriteria Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mutant/config.rb

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.

Constant Summary collapse

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(
  [
    Transform::Hash.new(
      optional: [
        Transform::Hash::Key.new('process_abort', Transform::BOOLEAN),
        Transform::Hash::Key.new('test_result',   Transform::BOOLEAN),
        Transform::Hash::Key.new('timeout',       Transform::BOOLEAN)
      ],
      required: []
    ),
    Transform::Hash::Symbolize.new,
    ->(value) { Either::Right.new(DEFAULT.with(**value)) }
  ]
)