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
# Return reporter
# Run reporter on object
#
# @param [Object] object
#
@ -153,7 +153,7 @@ module Mutant
#
# @api private
#
def dispatch(input)
def visit_collection(input)
collection = []
input.each do |object|
runner = visit(object)

View file

@ -122,7 +122,7 @@ module Mutant
def run_subjects
strategy = self.strategy
strategy.setup
@subjects = dispatch(config.subjects)
@subjects = visit_collection(config.subjects)
strategy.teardown
end

View file

@ -61,7 +61,7 @@ module Mutant
# @api private
#
def run
@killers = dispatch(config.strategy.killers(mutation))
@killers = visit_collection(config.strategy.killers(mutation))
report(self)
end

View file

@ -73,7 +73,7 @@ module Mutant
#
def run
report(subject)
@mutations = dispatch(subject.mutations)
@mutations = visit_collection(subject.mutations)
report(self)
end