StageConfigDiagnostic

Warning diagnostic emitted when any dev.ust.zinc.grader.pipeline.PipelineStage defines a ConfigUnit which implements ConfigUnit.Scorable, but the corresponding StageReportUnit does not implement StageReportUnit.Scorable.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Performs an equality check between this object and other.

Link copied to clipboard
fun DiagnosticPass.handleFailure(pipeline: Pipeline, onWarn: (List<Throwable>) -> Unit = {}, onErr: (List<Throwable>) -> Unit = {})

Verifies whether the pipeline passes this diagnostic as if by calling invoke, and invokes onWarn or onErr depending on whether this diagnostic is a DiagnosticPass.Warning or DiagnosticPass.Error respectively.

Link copied to clipboard
open override fun hashCode(): Int

Hashes this DiagnosticPass object using kotlin.reflect.KClass.hashCode of this class.

Link copied to clipboard
open operator override fun invoke(pipeline: Pipeline): List<Throwable>

Implementation of the diagnostic.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun test(pipeline: Pipeline): Boolean
Link copied to clipboard
fun verify(pipeline: Pipeline)

Verifies whether the pipeline passes this diagnostic as if by calling invoke, and throwing a VerificationException if it does not.