2b6470f223
The idea is to break up the big fat and ugly Runner class into dedicated pices with a single reponsibility.
41 lines
670 B
Ruby
41 lines
670 B
Ruby
module Mutant
|
|
class Runner
|
|
# Subject specific runner
|
|
class Subject < self
|
|
|
|
# Return mutation runners
|
|
#
|
|
# @return [Enumerable<Runner::Mutation>]
|
|
#
|
|
# @api private
|
|
#
|
|
attr_reader :mutations
|
|
|
|
# Initialize object
|
|
#
|
|
# @param [Configuration] config
|
|
# @param [Subject] subject
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def initialize(config, subject)
|
|
@subject = subject
|
|
super(config)
|
|
end
|
|
|
|
private
|
|
|
|
# Perform operation
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def run
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|