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
protected val reportIdx: Int

The index of this stage with respect to stages of this type.

Link copied to clipboard
protected open override val runner: Runner

The Runner used to execute the pipeline stage.

Link copied to clipboard
open override val scoreUnits: List<ScoreReportUnit>?

List of ScoreReportUnit generated.

Link copied to clipboard
protected open override val stage: PipelineStage

The PipelineStage which should generate the ScoreReportUnit.

Link copied to clipboard
protected open val stageName: String

The name of the stage.