Class: RobotLab::To::Evals::Base
- Inherits:
-
Object
- Object
- RobotLab::To::Evals::Base
- Defined in:
- lib/robot_lab/to/evals/base.rb
Overview
Base class for an Eval strategy. An Eval scores the uncommitted working tree against a spec and returns a Score. It is the deciding authority for commit/rollback (via gate_ok/improved) and stop (via met_target) -- not the robot's self-report.
Subclasses override #score. #protected_paths lists grader artifacts the robot must not edit (wired into GraderLock in a later phase); the default is none.
Instance Method Summary collapse
Instance Method Details
#protected_paths ⇒ Object
19 |
# File 'lib/robot_lab/to/evals/base.rb', line 19 def protected_paths = [] |
#score(context) ⇒ Object
15 16 17 |
# File 'lib/robot_lab/to/evals/base.rb', line 15 def score(context) raise NotImplementedError, "#{self.class}#score must return an Evals::Score" end |