BaselineManager class
Manages golden baseline reports for regression detection.
Saves and loads reference stress test reports, and compares new test runs against baselines to catch performance regressions and unexpected failures.
Constructors
- BaselineManager({String baselineDirectory = '.sate_ai/baselines', double tolerancePercent = 10.0})
- Creates a BaselineManager.
Properties
- baselineDirectory → String
-
Directory where baseline files are stored.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tolerancePercent → double
-
Tolerance percentage for metric comparisons before flagging a regression.
final
Methods
-
checkAgainstBaseline(
StressReport report) → Future< BaselineComparison?> - Runs a full baseline check for a report.
-
compare(
StressReport report, StressReport baseline) → BaselineComparison - Compares a report against a baseline.
-
deleteBaselines(
String modelId) → Future< void> - Deletes all baselines for a given model.
-
listBaselines(
) → Future< List< String> > - Lists all available baselines.
-
loadBaseline(
String modelId) → Future< StressReport?> - Loads the most recent baseline for a given model.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveBaseline(
StressReport report) → Future< String> - Saves a stress report as a golden baseline for its model.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited