Rename internal method for clarity

This commit is contained in:
Markus Schirp 2014-05-11 14:25:11 +00:00
parent 908f285261
commit b917be72b6
4 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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