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