free_mutant/lib/mutant/config.rb
2015-11-21 22:02:51 +00:00

31 lines
706 B
Ruby

module Mutant
# 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.
class Config
include Adamantium::Flat, Anima.new(
:debug,
:expected_coverage,
:expression_parser,
:fail_fast,
:integration,
:includes,
:isolation,
:jobs,
:kernel,
:load_path,
:matcher,
:open3,
:pathname,
:requires,
:reporter,
:zombie
)
%i[fail_fast zombie debug].each do |name|
define_method(:"#{name}?") { public_send(name) }
end
end # Config
end # Mutant