Class: RobotLab::To::Evals::Base

Inherits:
Object
  • Object
show all
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.

Direct Known Subclasses

Code, Null, ProcEval, Prose

Instance Method Summary collapse

Instance Method Details

#protected_pathsObject



19
# File 'lib/robot_lab/to/evals/base.rb', line 19

def protected_paths = []

#score(context) ⇒ Object

Raises:

  • (NotImplementedError)


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