SingleScoreUnitGenerator
class SingleScoreUnitGenerator(val runner: Runner, val stage: PipelineStage, displayName: String, score: Double?, isCorrect: Boolean) : ScoreUnitGenerator
A ScoreUnitGenerator which applies to a pipeline stage with a single test case.
This generator is guaranteed to generate a single ScoreReportUnit if score
is not null
.
Parameters
displayName
The user-friendly name to be displayed in the ScoreReportUnit.
score
The score of the test case, or null
if scoring is disabled.
isCorrect
Whether the test case is correct.
Constructors
Link copied to clipboard
constructor(runner: Runner, stage: PipelineStage, displayName: String, score: Double?, isCorrect: Boolean)
Properties
Link copied to clipboard
List of ScoreReportUnit generated.
Link copied to clipboard
The PipelineStage which should generate the ScoreReportUnit.