MetricCheck class

One metric's verdict against its recorded golden (regression gate). Every metric is lower-is-better; a metric with no recorded golden under ref or any is reported as noGolden (a check before the first record — warned, not failed).

Constructors

MetricCheck({required String metric, required String ref, required num measured, required num? golden, required num? limit, required double slack})
const

Properties

deltaPct num?
Signed percent the measured value deviates from the golden ((measured − golden) / golden × 100, one decimal), null without a golden.
no setter
golden num?
Recorded golden under ref or any, or null when none exists.
final
hashCode int
The hash code for this object.
no setterinherited
limit num?
One-sided gate bound = ceil(|golden * slack|) clamped to ≥ 1. Null when there is no golden.
final
measured num
Measured median of this run.
final
metric String
Metric key (scenario id).
final
noGolden bool
True when this metric was measured but has no recorded golden yet.
no setter
ref String
Reference the golden was looked up under (falls back to any).
final
regression bool
Regression: measured worse than the golden by more than the slack.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slack double
Slack fraction used for the gate.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited