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
|
||||
|
||||
# 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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ module Mutant
|
|||
#
|
||||
def run
|
||||
report(subject)
|
||||
@mutations = dispatch(subject.mutations)
|
||||
@mutations = visit_collection(subject.mutations)
|
||||
report(self)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue