From b917be72b6af31333eeb04f1a1a58aedd5af5ded Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 11 May 2014 14:25:11 +0000 Subject: [PATCH] Rename internal method for clarity --- lib/mutant/runner.rb | 4 ++-- lib/mutant/runner/config.rb | 2 +- lib/mutant/runner/mutation.rb | 2 +- lib/mutant/runner/subject.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/mutant/runner.rb b/lib/mutant/runner.rb index c99aba4b..ecbed1b2 100644 --- a/lib/mutant/runner.rb +++ b/lib/mutant/runner.rb @@ -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) diff --git a/lib/mutant/runner/config.rb b/lib/mutant/runner/config.rb index 5497d8f8..382222d8 100644 --- a/lib/mutant/runner/config.rb +++ b/lib/mutant/runner/config.rb @@ -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 diff --git a/lib/mutant/runner/mutation.rb b/lib/mutant/runner/mutation.rb index 445801a9..23dedb8e 100644 --- a/lib/mutant/runner/mutation.rb +++ b/lib/mutant/runner/mutation.rb @@ -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 diff --git a/lib/mutant/runner/subject.rb b/lib/mutant/runner/subject.rb index 1949deec..c8cf169d 100644 --- a/lib/mutant/runner/subject.rb +++ b/lib/mutant/runner/subject.rb @@ -73,7 +73,7 @@ module Mutant # def run report(subject) - @mutations = dispatch(subject.mutations) + @mutations = visit_collection(subject.mutations) report(self) end