free_mutant/lib/mutant/config.rb
2016-07-31 12:27:53 +00:00

29 lines
660 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(
:expression_parser,
:fail_fast,
:integration,
:includes,
:isolation,
:jobs,
:kernel,
:load_path,
:matcher,
:open3,
:pathname,
:requires,
:reporter,
:zombie
)
%i[fail_fast zombie].each do |name|
define_method(:"#{name}?") { public_send(name) }
end
end # Config
end # Mutant