Rename internal method for clarity
This commit is contained in:
parent
908f285261
commit
b917be72b6
4 changed files with 5 additions and 5 deletions
|
@ -133,7 +133,7 @@ module Mutant
|
||||||
#
|
#
|
||||||
abstract_method :run
|
abstract_method :run
|
||||||
|
|
||||||
# Return reporter
|
# Run reporter on object
|
||||||
#
|
#
|
||||||
# @param [Object] object
|
# @param [Object] object
|
||||||
#
|
#
|
||||||
|
@ -153,7 +153,7 @@ module Mutant
|
||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def dispatch(input)
|
def visit_collection(input)
|
||||||
collection = []
|
collection = []
|
||||||
input.each do |object|
|
input.each do |object|
|
||||||
runner = visit(object)
|
runner = visit(object)
|
||||||
|
|
|
@ -122,7 +122,7 @@ module Mutant
|
||||||
def run_subjects
|
def run_subjects
|
||||||
strategy = self.strategy
|
strategy = self.strategy
|
||||||
strategy.setup
|
strategy.setup
|
||||||
@subjects = dispatch(config.subjects)
|
@subjects = visit_collection(config.subjects)
|
||||||
strategy.teardown
|
strategy.teardown
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def run
|
def run
|
||||||
@killers = dispatch(config.strategy.killers(mutation))
|
@killers = visit_collection(config.strategy.killers(mutation))
|
||||||
report(self)
|
report(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ module Mutant
|
||||||
#
|
#
|
||||||
def run
|
def run
|
||||||
report(subject)
|
report(subject)
|
||||||
@mutations = dispatch(subject.mutations)
|
@mutations = visit_collection(subject.mutations)
|
||||||
report(self)
|
report(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue