Class: Phronomy::Testing::Eval::Runner
- Inherits:
-
Object
- Object
- Phronomy::Testing::Eval::Runner
- Defined in:
- lib/phronomy/testing/eval/runner.rb
Overview
Sequential test-only evaluator. Concurrency belongs to the subsystem under test, not to the evaluation helper itself.
Instance Method Summary collapse
-
#initialize(scorer: Scorer::ExactMatch.new) ⇒ Runner
constructor
A new instance of Runner.
- #run(dataset, callable) ⇒ Object
Constructor Details
#initialize(scorer: Scorer::ExactMatch.new) ⇒ Runner
Returns a new instance of Runner.
9 10 11 |
# File 'lib/phronomy/testing/eval/runner.rb', line 9 def initialize(scorer: Scorer::ExactMatch.new) @scorer = scorer end |
Instance Method Details
#run(dataset, callable) ⇒ Object
13 14 15 |
# File 'lib/phronomy/testing/eval/runner.rb', line 13 def run(dataset, callable) dataset.to_a.map { |eval_case| run_one(eval_case, callable) } end |