Class: Mutant::Config Private

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutant.rb,
lib/mutant/config.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.

Standalone configuration of a mutant execution.

Does not reference any “external” volatile state. The configuration applied to current environment is being represented by the Mutant::Env object.

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(
  expression_parser: Expression::Parser.new([
    Expression::Method,
    Expression::Methods,
    Expression::Namespace::Exact,
    Expression::Namespace::Recursive
  ]),
  fail_fast:         false,
  includes:          EMPTY_ARRAY,
  integration:       Integration::Null,
  isolation:         Mutant::Isolation::Fork.new(
    devnull: ->(&block) { File.open(File::NULL, File::WRONLY, &block) },
    stdout:  $stdout,
    stderr:  $stderr,
    io:      IO,
    marshal: Marshal,
    process: Process
  ),
  jobs:              ::Parallel.processor_count,
  kernel:            Kernel,
  load_path:         $LOAD_PATH,
  matcher:           Matcher::Config::DEFAULT,
  open3:             Open3,
  pathname:          Pathname,
  requires:          EMPTY_ARRAY,
  reporter:          Reporter::CLI.build($stdout),
  zombie:            false
)